/* 価格表示スタイル */
.cost-display {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(69, 84, 108, 0.1);
    position: relative;
    border: 1px solid #799aa3;
}

/* カテゴリタイトル */
.cost-category-title {
    font-size: 14px;
    font-weight: 300;
    color: #799aa3;
    margin-bottom: 10px;
    text-align: right;
    padding: 0px 12px;
    border-radius: 4px;
    display: block;
    align-self: flex-end;
    font-style: italic;
    position: relative;
    margin-left: auto;
    margin-right: 0;
}


/* 価格コンテンツ */
.cost-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.cost-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.cost-label {
    font-size: 14px;
    color: #799aa3;
    margin-bottom: 8px;
    font-weight: 500;
}

.cost-value {
    font-size: 18px;
    font-weight: bold;
    color: #182b38;
}

/* スライダーコンテナ */
.cost-slider-container {
    flex: 1;
    max-width: 300px;
    margin: 0 20px;
}

/* スライダートラック */
.slider-track {
    position: relative;
    height: 8px;
    background: linear-gradient(90deg, #799aa3, #182b38);
    border-radius: 4px;
    margin: 20px 0 10px 0;
    overflow: visible;
}

/* スライダーフィル */
.slider-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #799aa3, #182b38);
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(69, 84, 108, 0.1);
}

/* スライダーサム（つまみ） */
.slider-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.slider-thumb.low {
    border-color: #182b38;
    background: #182b38;
    color: white;
}

.slider-thumb.high {
    border-color: #182b38;
    background: #182b38;
    color: white;
}

.slider-thumb.median {
    border-color: #fab549;
    background: #fab549;
    width: 16px;
    height: 16px;
    z-index: 15;
}

/* スライダーラベル */
.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.slider-label.low {
    font-size: 12px;
    color: #799aa3;
    font-weight: 500;
}

.slider-label.high {
    font-size: 12px;
    color: #182b38;
    font-weight: 500;
}

/* ホバー効果 */
.slider-thumb:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* ツールチップ風の表示 */
.slider-thumb::after {
    content: attr(data-value);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.slider-thumb:hover::after {
    opacity: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .cost-display {
        padding: 15px;
        margin: 15px 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .cost-category-title {
        font-size: 14px;
        margin-bottom: 15px;
        padding: 6px 10px;
        text-align: center;
        align-self: center;
        width: 100%;
    }
    
    .cost-content {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .cost-slider-container {
        width: 100%;
        max-width: 100%;
        margin: 15px 0;
    }
    
    .cost-item {
        min-width: auto;
        width: 100%;
        text-align: center;
    }
    
    .slider-track {
        width: 100%;
        margin: 20px 0 10px 0;
    }
    
    .slider-labels {
        width: 100%;
        justify-content: space-between;
    }
}

/* スマートフォン専用対応 */
@media (max-width: 480px) {
    .cost-display {
        padding: 12px;
        margin: 10px 0;
        width: 100%;
        min-width: 100%;
    }
    
    .cost-category-title {
        font-size: 13px;
        margin-bottom: 12px;
        padding: 5px 8px;
    }
    
    .cost-content {
        gap: 12px;
    }
    
    .cost-item {
        padding: 0 5px;
    }
    
    .cost-label {
        font-size: 13px;
    }
    
    .cost-value {
        font-size: 16px;
    }
    
    .slider-track {
        height: 6px;
        margin: 15px 0 8px 0;
    }
    
    .slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .slider-thumb.median {
        width: 14px;
        height: 14px;
    }
    
    .slider-label {
        font-size: 11px;
    }
}

/* ホバー効果 */
.cost-display:hover {
    box-shadow: 0 4px 12px rgba(69, 84, 108, 0.15);
    transition: box-shadow 0.3s ease;
}

.cost-value:hover {
    color: #799aa3;
    transition: color 0.3s ease;
}
/* CSS Variables for KeySession Brand Colors */
:root {
    --brand-primary-dark: #182b38;
    --brand-primary-mid: #45546c;
    --brand-accent-gold: #fab549;
    --brand-accent-green: #77b800;
    --brand-neutral-ivory: #faf6e4;
    --brand-neutral-white: #ffffff;
    --brand-accent-muted-teal: #799aa3;
    --brand-accent-red: #b82e12;
}

/* ===== Shortcode padding / margin 統一 ===== */

/* セクション間の余白を統一 */
.tp-content-section,
.tp-voices-section,
.tp-curriculum-table {
    margin: 1.5rem 0;
}

/* company_achievement: Bootstrap p-2 を上書きしてpadding統一 */
.entry-content .bg-white.p-2 {
    padding: 0 !important;
}

/* 各ショートコード内の p 要素のpadding/marginリセット */
.tp-content-section p,
.tp-voices-section p,
.achievement-content p,
.plan-list-container p {
    padding: 0;
    margin: 0 0 0.25rem 0;
}

/* ショートコード内 h4 の余白統一 */
.tp-voices-section h4,
.tp-voices-section h3 {
    margin: 0 0 0.75rem;
    padding: 0;
}

/* plan_table / company_achievement の h4 は直前に出力される */
.entry-content h4 + .tp-content-section,
.entry-content h4 + .table-responsive {
    margin-top: 0;
}

/* plan_btn の余白統一 */
.entry-content .button.shadow.big.custom {
    margin: 1.5rem 0;
}

/* Curriculum Table Styles */
.tp-curriculum-table {
    font-size: 1.1em;
    margin: 1rem 0;
}

.tp-curriculum-table table {
    font-size: 1.1em;
    border-collapse: collapse;
    width: 100%;
}

.tp-curriculum-table caption {
    caption-side: top;
    font-weight: 600;
    color: var(--brand-primary-dark);
    margin-bottom: 1rem;
    font-size: 1.2em;
}

.tp-curriculum-table th {
    background-color: var(--brand-primary-mid);
    color: var(--brand-neutral-white);
    font-weight: bold;
    padding: 1rem;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

.tp-curriculum-table tbody th {
    max-width: 300px;
    min-width: 180px;
    color: var(--brand-primary-dark);
    font-weight: 600;
}

.tp-curriculum-table td, .tp-curriculum-table th {
    vertical-align: middle;
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.tp-curriculum-table td {
    background-color: var(--brand-neutral-white);
    color: var(--brand-primary-dark);
}

.tp-curriculum-table td ul {
    margin-bottom: 0px;
    list-style: none;
    padding-left: 0;
}

.tp-curriculum-table td ul li {
    margin: 5px 0;
    position: relative;
    padding-left: 20px;
    font-size: 1em;
}

.tp-curriculum-table td ul li::before {
    font-family: "Font Awesome 5 Free";
    content: "\f0da";
    margin-right: 8px;
    color: var(--brand-accent-gold);
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
}

/* Font Awesome Icons */
.fas.fa-book-open, .fas.fa-list-ul {
    color: var(--brand-accent-gold);
    margin-right: 0.5rem;
}

/* Horizontal UL List Styles */
table.simple ul.training_option_name {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: center;
}

table.simple ul.training_option_name li {
    display: inline-flex;
    align-items: center;
    background-color: var(--brand-accent-gold);
    color: var(--brand-primary-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin: 0;
    line-height: 1.2;
}

table.simple ul.training_option_name li:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    background-color: var(--brand-primary-dark);
    color: var(--brand-neutral-white);
}

table.simple ul.training_option_name li i {
    margin-right: 0.4rem;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Responsive adjustments for horizontal UL */
@media screen and (max-width: 1200px) {
    table.simple ul.training_option_name {
        gap: 0.5rem;
    }

    table.simple ul.training_option_name li {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 768px) {
    table.simple ul.training_option_name {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.5rem;
        align-items: start;
    }

    table.simple ul.training_option_name li {
        white-space: normal;
        text-align: center;
        justify-content: center;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-height: auto;
        width: 100%;
    }
}

.tp-voices-section {
    margin-top: 2rem;
}

.tp-voices-section h3 {
    color: var(--brand-primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.tp-voices-container {
    margin-bottom: 1rem;
}

.tp-testimonial-card {
    background-color: #f8f9fa;
    border-left: 3px solid var(--brand-accent-gold);
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 0 6px 6px 0;
    transition: all 0.2s ease;
}

.tp-testimonial-card:hover {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.entry-content .tp-testimonial-card p {
    margin: 0;
    color: var(--brand-primary-dark);
    font-size: 14px;
    line-height: 1.6;
    padding: 0;
}

.tp-testimonial-card.collapse {
    display: none;
}

.tp-testimonial-card.collapse.show {
    display: block;
}

/* 統一トグルボタン */
.ks-toggle-btn {
    display: inline-block;
    background: none !important;
    border: 1px solid var(--brand-accent-gold) !important;
    color: var(--brand-accent-gold) !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ks-toggle-btn:hover {
    background-color: var(--brand-accent-gold) !important;
    color: #fff !important;
}

.ks-toggle-btn[data-action="show-less"] {
    background-color: var(--brand-primary-dark) !important;
    border-color: var(--brand-primary-dark) !important;
    color: #fff !important;
}

.ks-toggle-btn[data-action="show-less"]:hover {
    background-color: var(--brand-primary-mid) !important;
    border-color: var(--brand-primary-mid) !important;
    color: #fff !important;
}

.ks-toggle-btn i {
    margin-right: 4px;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .tp-voices-section {
        padding: 0;
        margin: 0;
    }

    .tp-voices-section h3 {
        font-size: 1.5rem;
    }

    .tp-testimonial-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .tp-testimonial-card p {
        font-size: 0.95rem;
    }
}

/* Overall section layout */
.achievement-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    margin: 2rem 0;
}

/* Header section */
.achievement-header {
    background: linear-gradient(135deg, #182B38 0%, #2a4a5a 100%);
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.achievement-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.achievement-subtitle {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    color: #fff;
}

/* Content section */
.achievement-content {
    padding: 5px;
}

/* Achievement card styles */
.offer-card-horizontal {
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
    background: #fff;
}

.offer-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    border-color: #fab549;
}

.entry-content .offer-card-horizontal .card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
    overflow: hidden;
}

/* Logo with text wrap */
.achievement-logo {
    float: left;
    margin-right: 0.75rem;
    margin-bottom: 0.25rem;
}

.achievement-logo img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Content that wraps around logo */
.achievement-content {
    overflow: hidden;
}

.achievement-content .client-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.15rem;
    color: #182B38;
    line-height: 1.2;
}

.achievement-content .training-info {
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.achievement-content .training-details {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.2;
}

.achievement-content a {
    color: #182B38;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.achievement-content a:hover {
    color: #fab549;
    text-decoration: none;
}

.achievement-content .fa-users,
.achievement-content .fa-clock {
    color: #fab549;
    margin-right: 0.3em;
    font-size: 0.85rem;
}

/* Action buttons section */
.achievement-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.achievement-actions .btn {
    margin: 0 0.5rem;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.achievement-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Legacy: achievement-toggle → ks-toggle-btn に移行済み */

.btn-outline-secondary {
    background-color: #182B38 !important;
    border-color: #182B38 !important;
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 12px 24px;
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background-color: #0f1a23 !important;
    border-color: #0f1a23 !important;
    color: #fff !important;
}

/* Container styles */
[id^="achievement-container"] {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .achievement-header {
        padding: 1.25rem 0.75rem;
    }

    .achievement-title {
        font-size: 1.5rem;
    }

    .achievement-subtitle {
        font-size: 0.9rem;
    }

    .achievement-content {
        padding: 1.25rem 0.75rem;
    }

    .offer-card-horizontal .card-body {
        padding: 0.5rem;
    }

    .achievement-logo {
        margin-right: 0.5rem;
        margin-bottom: 0.15rem;
    }

    .achievement-logo img {
        width: 45px;
        height: 45px;
    }

    .achievement-content .client-name {
        font-size: 0.95rem;
    }

    .achievement-content .training-info {
        font-size: 0.85rem;
    }

    .achievement-content .training-details {
        font-size: 0.8rem;
    }

    .achievement-actions {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .achievement-actions .btn {
        margin: 0.5rem;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Plan List Shortcode Styles */

/* Container */
.plan-list-container {
    margin: 2rem 0;
}

/* Row layout */
.plan-list-container .row {
    margin: 0 -10px;
}

/* Plan card styling - horizontal layout */
.plan-list-container .list-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 100px;
    margin-bottom:5px;
}


/* Card image container - left side */
.plan-list-container .list-card-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    flex: 0 0 180px;
    min-width: 180px;
}

.plan-list-container .list-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.plan-list-container .list-card:hover .list-card-image img {
    transform: scale(1.05);
}

/* Category badges - now inside card body */
.plan-list-container .category-badges {
    margin-top: 8px;
}

.plan-list-container .category-badges .badge {
    background: #6c757d !important;
    color: #fff !important;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: none;
    letter-spacing: 0.3px;
    margin-right: 5px;
    margin-bottom: 3px;
    display: inline-block;
}

.plan-list-container .category-badges .badge:last-child {
    margin-right: 0;
}

/* Remove old member-plan styles since we moved categories */
.plan-list-container .member-plan {
    display: none;
}

/* Card body - right side */
.plan-list-container .list-card-body {
    padding: 15px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plan-list-container .list-card-body h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    color: #333;
    border:none;
    padding:0;
}

.plan-list-container .list-card-body h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.plan-list-container .list-card-body h3 a:hover {
    color: #fab549;
    text-decoration: none;
}

/* Training time */
.plan-list-container .list-card-body p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    padding:0;
}

.plan-list-container .list-card-body p i {
//    color: #fab549;
    margin-right: 5px;
}

/* Card title styling */
.plan-list-container .card_title {
    margin: 0 0 8px 0;
    line-height: 1.4;
    font-weight: 600;
    color: #333;
}

.plan-list-container .card_title a {
    color: #333;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.plan-list-container .card_title a:hover {
    color: #fab549;
    text-decoration: none;
}

/* Plan subtitle styling */
.plan-list-container .plan-subtitle {
    font-size: 14px;
    color: #333;
    line-height: 1.8em;
    margin: 0;
    padding: 0;
    font-weight: 400;
    opacity: 0.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline;
}

.plan-list-container .plan-subtitle:empty {
    display: none;
}

/* Plan issue styling */
.plan-list-container .plan-issue {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
    font-weight: 500;
}

.plan-list-container .plan-issue:empty {
    display: none;
}

.plan-list-container .plan-issue i {
    color: #b82e12;
    font-size: 11px;
}

/* Plan goal styling */
.plan-list-container .plan-goal {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
    font-weight: 500;
}

.plan-list-container .plan-goal:empty {
    display: none;
}

.plan-list-container .plan-goal i {
    color: #77b800;
    font-size: 11px;
}

/* Responsive adjustments for subtitle */
@media (max-width: 768px) {
    .plan-list-container .plan-subtitle {
        font-size: 14px;
        margin-bottom: 6px;
    }
}

@media (max-width: 576px) {
    .plan-list-container .plan-subtitle {
        font-size: 10px;
        margin-bottom: 5px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .plan-list-container .col-md-4 {
        margin-bottom: 15px;
    }

    .plan-list-container .list-card {
        flex-direction: column;
        min-height: auto;
    }

    .plan-list-container .list-card-image {
        flex: 0 0 180px;
        min-width: auto;
    }

    .plan-list-container .list-card-body {
        padding: 12px 15px;
    }

    .plan-list-container .list-card-body h3 {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .plan-list-container .row {
        margin: 0 -5px;
    }

    .plan-list-container .col-md-4 {
        padding: 0 5px;
        margin-bottom: 10px;
    }

    .plan-list-container .list-card-image {
        flex: 0 0 140px;
    }

    .plan-list-container .list-card-body {
        padding: 10px 12px;
    }

    .plan-list-container .list-card-body h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .plan-list-container .list-card-body p {
        font-size: 12px;
    }
}

/* Loading state */
.plan-list-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty state */
.plan-list-container .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.plan-list-container .empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Focus states for accessibility */
.plan-list-container .list-card:focus-within {
    outline: 2px solid #fab549;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .plan-list-container .list-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .plan-list-container .list-card:hover {
        transform: none;
    }
}
