/* ==========================================================================
   case.php 専用スタイル
   共通の style.css を読み込んだ後に使用
   ========================================================================== */

/* ==========================================================================
   1. ページ全体
   ========================================================================== */

.case-page .main-content {
    max-width: 900px;
}

.case-page .course-block {
    margin-bottom: 0;
}

.case-page .section-divider {
    margin: 48px 0;
}

.case-page .first-divider {
    margin: 38px 0 42px;
}

.case-page .section-title {
    font-weight: 600;
}

.case-page .section-lead {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    color: #53606c;
    font-size: 14px;
    line-height: 1.85;
}

/* ==========================================================================
   2. ファーストビュー
   ========================================================================== */

.case-page .case-hero {
    margin-bottom: 0;
    text-align: center;
}

.case-page .hero-title {
    margin-bottom: 8px;
    padding-left: 0;
    border-left: 0;
    text-align: center;
}

.case-page .case-hero-subtitle {
    margin: 0;
    color: #4b5f73;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    text-align: center;
}

/* ==========================================================================
   3. 導入文
   ========================================================================== */

.case-page .case-introduction {
    max-width: 740px;
    margin: 30px auto 0;
    padding: 0 4px;
    text-align: left;
}

.case-page .case-introduction p {
    margin: 0 0 14px;
    color: #3d4650;
    font-size: 14.5px;
    line-height: 1.9;
}

.case-page .case-introduction p:last-child {
    margin-bottom: 0;
}

.case-page .case-introduction .case-privacy-note {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #dbe4ec;
    color: #68737e;
    font-size: 12px;
    line-height: 1.75;
}

/* ==========================================================================
   ファーストビューの説明文を読ませる調整
   ========================================================================== */

.case-page .case-introduction {
    max-width: 700px;
}

.case-page .case-introduction .case-introduction-lead {
    margin-bottom: 18px;
    color: #2f465d;
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.95;
}

.case-page .case-introduction .case-introduction-policy {
    margin-top: 20px;
    margin-bottom: 0;
    padding: 13px 16px;
    border-left: 3px solid #6f9fc5;
    background: rgba(255, 255, 255, 0.48);
    color: #294b6c;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.9;
}

.case-page .case-introduction .case-privacy-note {
    margin-top: 22px;
}

/* ==========================================================================
   4. 指導事例カード
   ========================================================================== */

.case-page .case-card {
    margin: 0 0 24px;
    padding: 26px 28px;
    border-color: #d9e2eb;
    box-shadow: 0 2px 8px rgba(6, 40, 82, 0.025);
}

.case-page .case-card:last-child {
    margin-bottom: 0;
}

.case-page .case-card-title {
    margin: 0 0 15px;
    color: #173f65;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.65;
}

/* ==========================================================================
   5. 事例分類タグ
   ========================================================================== */

.case-page .case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 12px;
}

.case-page .case-tag {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #dce4ec;
    border-radius: 4px;
    background: #f8fafc;
    color: #5c6670;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
}

.case-page .case-tag-primary {
    border-color: #cddceb;
    background: #f2f6fa;
    color: #254a70;
}

/* ==========================================================================
   6. 常時表示する事例要約
   ========================================================================== */

.case-page .case-summary-grid {
    display: block;
    margin: 14px 0 12px;
    border-top: 1px solid #e1e7ed;
}

.case-page .case-summary-item {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 16px;
    padding: 13px 2px;
    border: 0;
    border-bottom: 1px solid #e1e7ed;
    border-radius: 0;
    background: transparent;
}

.case-page .case-summary-label {
    margin: 0;
    color: #385675;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.7;
}

.case-page .case-summary-label::before {
    display: none;
}

.case-page .case-summary-val {
    margin: 0;
    color: #414950;
    font-size: 13.5px;
    line-height: 1.75;
}

/* ==========================================================================
   7. 詳細開閉ボタン
   ========================================================================== */

.case-page .case-toggle-wrapper {
    margin-top: 14px;
}

.case-page .case-toggle-details {
    width: 100%;
}

.case-page .case-toggle-details summary {
    display: block;
    width: 100%;
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.case-page .case-toggle-details summary::-webkit-details-marker {
    display: none;
}

.case-page .case-toggle-details summary::marker {
    content: "";
}

.case-page .case-toggle-details summary:focus {
    outline: none;
}

.case-page .case-toggle-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    padding: 10px 54px 10px 16px;
    border: 1px solid #d3dfeb;
    border-radius: 5px;
    background: #f5f8fb;
    box-shadow: none;
    color: #245887;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.6;
    text-align: left;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* 右端の＋／−アイコン */
.case-page .case-toggle-btn::after {
    content: "＋";
    position: absolute;
    top: 50%;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #b8cadd;
    border-radius: 50%;
    background: #ffffff;
    color: #245887;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

/* マウス操作時 */
.case-page .case-toggle-details summary:hover .case-toggle-btn {
    border-color: #aac0d4;
    background: #edf4f9;
    color: #123f69;
}

.case-page .case-toggle-details summary:hover .case-toggle-btn::after {
    border-color: #8eacc7;
    background: #ffffff;
    color: #123f69;
}

/* キーボード操作時 */
.case-page .case-toggle-details summary:focus-visible {
    outline: none;
}

.case-page .case-toggle-details summary:focus-visible .case-toggle-btn {
    border-color: #7fa4c4;
    box-shadow: 0 0 0 3px rgba(42, 109, 175, 0.2);
}

/* 開閉文言 */
.case-page .case-toggle-details .text-open {
    display: none;
}

.case-page .case-toggle-details[open] .text-closed {
    display: none;
}

.case-page .case-toggle-details[open] .text-open {
    display: inline;
}

/* 開いている状態 */
.case-page .case-toggle-details[open] .case-toggle-btn {
    border-color: #cbd9e6;
    background: #ffffff;
    color: #52687d;
}

.case-page .case-toggle-details[open] .case-toggle-btn::after {
    content: "−";
    border-color: #bdccda;
    background: #f5f8fb;
    color: #52687d;
}

/* ==========================================================================
   8. 開閉後の詳細本文
   ========================================================================== */

.case-page .case-toggle-content {
    margin-top: 14px;
    padding: 22px 2px 0;
    border: 0;
    border-top: 1px solid #dfe7ee;
    border-radius: 0;
    background: transparent;
    animation: caseFadeIn 0.2s ease-in-out;
}

@keyframes caseFadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-page .case-section-unit {
    margin-bottom: 24px;
}

.case-page .case-section-unit:last-child {
    margin-bottom: 0;
}

.case-page .case-heading-h4 {
    margin: 0 0 8px;
    padding-left: 9px;
    border-left: 2px solid #8cacc9;
    color: #294d70;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.case-page .case-text-p {
    margin: 0 0 10px;
    color: #414950;
    font-size: 13.5px;
    line-height: 1.9;
}

.case-page .case-text-p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   9. 下部の通常本文
   ========================================================================== */

.case-page .case-plain-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 4px;
}

.case-page .case-plain-content p {
    margin: 0 0 14px;
    color: #414950;
    font-size: 14px;
    line-height: 1.9;
}

.case-page .case-plain-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   10. 関連ページへのリンク
   ========================================================================== */

.case-page .case-link-area {
    margin-top: 22px;
    text-align: center;
}

.case-page .case-related-link {
    display: inline-block;
    max-width: 100%;
    padding: 9px 20px;
    border: 1px solid #8daac5;
    border-radius: 4px;
    background: transparent;
    color: #173f65;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.case-page .case-related-link:hover,
.case-page .case-related-link:focus-visible {
    border-color: #6d8ba7;
    background: #f4f8fb;
    color: #062852;
}

.case-page .case-related-note {
    margin-top: 9px;
    color: #68737e;
    font-size: 12px;
    line-height: 1.7;
}

/* ==========================================================================
   前職時代の手紙への主導線
   ========================================================================== */

.case-page .case-letter-cta {
    margin-top: 24px;
    text-align: center;
}

.case-page .case-letter-note {
    margin: 0 0 13px;
    color: #536373;
    font-size: 12.5px;
    line-height: 1.75;
    text-align: center;
}

.case-page .case-letter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 250px;
    padding: 11px 24px;
    border: 1px solid #173f65;
    border-radius: 4px;
    background: #173f65;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(6, 40, 82, 0.1);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.case-page .case-letter-link:hover,
.case-page .case-letter-link:focus-visible {
    border-color: #0b304f;
    background: #0b304f;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(6, 40, 82, 0.16);
    transform: translateY(-1px);
}

.case-page .case-letter-link:focus-visible {
    outline: 3px solid rgba(42, 109, 175, 0.3);
    outline-offset: 3px;
}

.case-page .case-letter-link span {
    font-size: 15px;
    font-weight: 400;
}

/* ==========================================================================
   11. ブログへのリンク
   ========================================================================== */

.case-page .case-blog-link {
    color: #245887;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.7;
    text-decoration: underline;
    text-decoration-color: #a9bfd3;
    text-underline-offset: 4px;
}

.case-page .case-blog-link:hover,
.case-page .case-blog-link:focus-visible {
    color: #062852;
    text-decoration-color: #062852;
}

.case-page .external-link-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border: 1px solid #d5e0ea;
    border-radius: 3px;
    background: #f5f8fa;
    color: #52687d;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.4;
    vertical-align: middle;
}

/* ==========================================================================
   12. 相談CTA
   ========================================================================== */

.case-page .case-cta {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 36px 28px;
    border: 1px solid #dce8f5;
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
}

.case-page .case-cta-title {
    margin: 0 0 16px;
    color: #173f65;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.5;
}

.case-page .case-cta-text {
    margin: 0 0 20px;
    color: #414950;
    font-size: 14.5px;
    line-height: 1.9;
    text-align: left;
}

.case-page .case-cta-capacity {
    margin: 0 0 24px;
    color: #294d70;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.7;
}

.case-page .case-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.case-page .case-cta-buttons .btn {
    width: 100%;
    max-width: 380px;
}

.case-page .case-cta-note {
    margin: 14px 0 0;
    color: #68737e;
    font-size: 12.5px;
    line-height: 1.7;
}

/* ==========================================================================
   13. スマートフォン
   ========================================================================== */

@media (max-width: 767px) {
    .case-page .main-content {
        padding-right: 16px;
        padding-left: 16px;
    }

    .case-page .section-divider {
        margin: 38px 0;
    }

    .case-page .first-divider {
        margin: 30px 0 34px;
    }

    .case-page .case-hero-subtitle {
        font-size: 15px;
    }

    .case-page .case-introduction {
        margin-top: 24px;
        padding: 0;
    }

    .case-page .case-introduction p {
        font-size: 14px;
        line-height: 1.85;
    }

    .case-page .case-card {
        padding: 20px 18px;
    }

    .case-page .case-card-title {
        font-size: 16px;
        line-height: 1.65;
    }

    .case-page .case-summary-item {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 12px 0;
    }

    .case-page .case-summary-label {
        font-size: 12px;
    }

    .case-page .case-summary-val {
        font-size: 13.5px;
    }

    .case-page .case-toggle-content {
        padding-top: 20px;
    }

    .case-page .case-section-unit {
        margin-bottom: 22px;
    }

    .case-page .case-plain-content {
        padding: 0;
    }

    .case-page .case-related-link {
        width: 100%;
        padding: 10px 14px;
    }

    .case-page .case-cta {
        margin-top: 32px;
        padding: 28px 18px;
    }

    .case-page .case-cta-title {
        font-size: 19px;
    }

    .case-page .case-cta-text {
        font-size: 14px;
    }

    .case-page .case-introduction .case-introduction-lead {
        font-size: 14.5px;
        line-height: 1.9;
    }

    .case-page .case-introduction .case-introduction-policy {
        padding: 12px 13px;
        font-size: 14px;
        line-height: 1.85;
    }
    .case-page .case-letter-note {
        font-size: 12px;
        text-align: left;
    }

    .case-page .case-letter-link {
        width: 100%;
        min-width: 0;
        padding: 11px 14px;
    }
    .case-page .case-toggle-wrapper {
        margin-top: 13px;
    }

    .case-page .case-toggle-btn {
        min-height: 46px;
        padding: 10px 50px 10px 14px;
        font-size: 13px;
    }

    .case-page .case-toggle-btn::after {
        right: 12px;
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}

/* ==========================================================================
   14. アニメーション抑制設定
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .case-page .case-toggle-content {
        animation: none;
    }

    .case-page .case-toggle-btn,
    .case-page .case-related-link,
    .case-page .case-letter-link {
        transition: none;
    }

    .case-page .case-letter-link:hover,
    .case-page .case-letter-link:focus-visible {
        transform: none;
    }
}
