/**
 * KAKARTEについてページ（page-about.php）専用CSS
 *
 * 元データ: about_mockup_v11_mvp.html（カンプ）。
 * .hero/.hero-grid/.hero-card/.container/.section/.eyebrow/.lead/.section-jump-nav/
 * .section-head/.title-set/.mark/.grid-2/.grid-3/.card/.page-grid/.side-card/.table 等は
 * テーマの共通クラス（style_pc.css）をそのまま利用し、このページで新規に必要になった
 * コンポーネントだけを .about-page 配下にスコープして実装する。
 *
 * 「4つの視点」（.cl-about-brand/.cl-brand-values/.cl-brand-value等）はfront-page.php
 * 「KAKARTEとは」セクションと完全に同一内容のため、front-page.css側のスコープを外して
 * （.front-page .cl-brand-value → .cl-brand-value）このページとフロントページの両方から
 * 共通に読み込む形にしている（front-page.cssはfunctions.phpでis_front_page()に加えて
 * is_page_template('page-about.php')でもエンキューする）。このページ独自のスタイルは持たない。
 *
 * .cl-contact-btnは現状このファイル（.about-page .cl-contact-btn）とfront-page.css
 * （.front-page .cl-contact-btn）の両方に同一定義が残っている。4つの視点と同じ理由で
 * 本来は統合すべきだが、今回はユーザー指示の範囲外のため触れていない。
 */

/* ---- CTAボタン（front-page.cssの.front-page .cl-contact-btnと同一定義。
   掲載方針・できること・掲載更新・運営会社の各CTAで共通に使う） ---- */




.about-page .cl-contact-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 8px;
    padding: 0 16px;
    border: 1.5px solid var(--teal);
    border-radius: 8px;
    background: var(--teal);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.about-page .cl-contact-btn:hover {
    background: #eef3f7;
    border-color: var(--navy);
    color: var(--navy);
    box-shadow: var(--shadow-xs, 0 4px 12px rgba(18, 48, 91, .12));
}

.about-page .cl-contact-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform: translateX(-140%);
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .35) 50%, rgba(255, 255, 255, 0) 65%);
}

.about-page .cl-contact-btn:hover::after {
    transform: translateX(140%);
    background: linear-gradient(115deg, rgba(0, 143, 163, 0) 35%, rgba(0, 143, 163, .18) 50%, rgba(0, 143, 163, 0) 65%);
}

/* ---- ヒーロー: アイキャッチ未設定時のフォールバックビジュアル（カンプの.visual/.record再現） ---- */
.about-page .hero-card {
    background: radial-gradient(circle at 50% 34%, #dcf1f5, #f7fcfd 70%);
}

.about-visual {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-record {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 62%;
    aspect-ratio: 155 / 190;
    transform: translate(-50%, -50%) rotate(-3deg);
    border: 3px solid var(--teal-dark);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(22, 63, 91, .14);
}

.about-record::before {
    content: "";
    position: absolute;
    left: 30%;
    top: -13px;
    width: 36%;
    height: 22px;
    border: 3px solid var(--teal-dark);
    border-radius: 8px;
    background: var(--teal-soft);
}

.about-lines {
    position: absolute;
    left: 16%;
    right: 16%;
    top: 26%;
    height: 7px;
    border-radius: 8px;
    background: var(--line);
    box-shadow: 0 22px 0 var(--line), 0 44px 0 var(--line);
}

.about-check {
    position: absolute;
    right: -10px;
    bottom: -10px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 24px;
}

.about-problem {
    margin-top: 23px;
    font-weight: 850;
    line-height: 1.9;
}

/* ---- ページ内目次 ----
   PC・タブレットは共通 .section-jump-nav の仕様を使用。
   768px以下のAboutページのみ、8項目を2列×4行にして縦幅を抑える。
   色・罫線・角丸・フォントウェイトは共通デザインを踏襲する。
---------------------------------------------------------- */

@media (max-width: 768px) {

    /* 1列 → 2列 */
    .about-page .section-jump-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    /* カードをSP向けにコンパクト化 */
    .about-page .section-jump-link {
        min-height: 60px;
        gap: 8px;
        padding: 10px 11px;
        border-radius: 12px;
    }

    /* 番号バッジ */
    .about-page .section-jump-number {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    /* テキスト領域 */
    .about-page .section-jump-copy {
        flex: 1;
        min-width: 0;
    }

    /* 項目名 */
    .about-page .section-jump-title {
        font-size: 12.5px;
        line-height: 1.4;
    }
}
/* ---- セクション見出し: このページは各見出しを中央寄せにする ---- */
.about-page .about-section-head-center {
    justify-content: center;
    text-align: center;
    margin-bottom: 22px;
}

.about-page .about-section-head-center .title-set {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .about-page .about-section-head-center {
        align-items: center;
    }
}

.about-lead-text {
    max-width: 720px;
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.9;
}

.about-lead-text-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ---- KAKARTEに込めた想い ---- */
.about-story {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.about-story-lead {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.7;
}

.about-story p {
    margin: 0 0 14px;
    color: #29445d;
    font-size: 14.5px;
    line-height: 1.9;
    text-align: left;
}

.about-story p:last-child {
    margin-bottom: 0;
}

.about-quote {
    margin: 22px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--teal);
    background: var(--soft);
    color: var(--navy);
    font-weight: 800;
    line-height: 1.9;
    text-align: left;
}

/* ---- KAKARTEの3つの約束 ---- */
.cl-promise-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cl-promise-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.cl-promise-item h3 {
    margin: 0;
    color: var(--navy);
    font-size: 17px;
}

.cl-promise-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* ---- KAKARTEが目指す未来 ---- */
.about-future .container {
    text-align: center;
}

.about-future-copy {
    max-width: 780px;
    margin: 0 auto;
    color: #40576d;
    font-size: 14.5px;
    line-height: 1.9;
}

.about-future-copy p {
    margin: 0 0 16px;
}

.about-future-scenes {
    color: var(--navy);
    font-weight: 700;
}

.about-future-message {
    margin: 8px 0 20px !important;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--teal-dark);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.8;
}

.about-future-message strong {
    color: var(--navy);
}

/* ---- KAKARTEでできること（front-page.cssの.cl-provision-*と同系統。
   このページは3項目・アイコンなし・リンク付きのため専用に組み直している） ---- */
.about-provision-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 30px;
    border: 1.5px solid var(--line-strong);
    border-radius: 14px;
    background: var(--soft);
}

.about-provision-list .cl-provision-item {
    position: relative;
    min-width: 0;
}

/* アイコン＋見出し */
.about-provision-head {
    display: block;
}

.cl-provision-icon-char {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-size: 20px;
    font-weight: 900;
}

.about-provision-head h3 {
    margin: 6px 0 9px;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.45;
}

/* 説明文 */
.about-provision-list .cl-provision-copy p {
    margin: 0 0 16px;
    color: #405b72;
    font-size: 12.5px;
    line-height: 1.8;
}


@media (max-width: 900px) {
    .about-provision-list {
        grid-template-columns: 1fr 1fr;
        padding: 20px 16px;
    }
}

@media (max-width: 600px) {

    /* 3つの項目自体は縦に並べる */
    .about-provision-list {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 18px 16px;
    }

    /* 「地」＋「地域・駅から探す」 */
    .about-provision-head {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }

    /* 丸アイコン */
    .about-provision-head .cl-provision-icon-char {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        margin: 0;
        font-size: 17px;
    }

    /* 見出し */
    .about-provision-head h3 {
        margin: 0;
        color: var(--navy);
        font-size: 15px;
        line-height: 1.45;
    }

    /* 本文＋CTAを2カラムにする */
    .about-provision-list .cl-provision-copy {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 12px;
    }

    /* 左側：説明文 */
    .about-provision-list .cl-provision-copy p {
        min-width: 0;
        margin: 0;
        color: #405b72;
        font-size: 12.5px;
        line-height: 1.75;
    }

    /* 右側：CTA */
    .about-provision-list .cl-provision-copy .cl-contact-btn {
        width: auto;
        min-width: max-content;
        min-height: 44px;
        padding: 0 13px;
        font-size: 11.5px;
        white-space: nowrap;
        justify-self: end;
    }
}

    .about-page .cl-promise-list {
        grid-template-columns: 1fr !important;
    }

    .about-page .cl-policy-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- 医療機関の掲載方針 ---- */
.cl-policy-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    align-items: start;
}

.cl-policy-num {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-weight: 900;
}

.cl-policy-item h3 {
    margin: 0 0 5px;
    color: var(--navy);
    font-size: 16px;
}

.cl-policy-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.about-policy-notice {
    margin-top: 22px;
    padding: 20px;
    background: #fff;
}

.about-policy-notice b {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
}

.about-policy-notice span {
    color: var(--muted);
    font-size: 12.5px;
}

.about-terms-link {
    margin-top: 22px;
    text-align: center;
}

.about-terms-link .cl-contact-btn {
    display: inline-flex;
}

/* ---- 掲載・更新について（page-contact.phpと同じ.page-grid/.side-cardを、
   サイドバー300px固定ではなく2枚均等の並びに上書きして使う） ---- */
.about-contact-grid {
    grid-template-columns: 1fr 1fr;
}

.about-contact-grid .side-card h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 17px;
}

.about-contact-grid .side-card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.about-contact-list {
    display: grid;
    gap: 2px;
}

.about-contact-list li {
    position: relative;
    padding: 9px 0 9px 22px;
    border-top: 1px solid #e4edf2;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.about-contact-list li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    color: var(--teal);
    font-weight: 900;
}

/* 「掲載・更新について」右側パネル: 実写真の代わりにCSSで簡易イラストを描く
   （contact.cssの.mail-visualと同じ、アイキャッチ未設定時のフォールバックと同じ考え方）。 */
.about-request-visual {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid var(--line-strong);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(22, 67, 91, .1);
}

.about-request-illust {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: radial-gradient(circle at 50% 34%, #dcf1f5, #f7fcfd 70%);
}

.about-request-illust::before {
    content: "";
    width: 58%;
    aspect-ratio: 4 / 3;
    border: 3px solid var(--teal-dark);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 143, 163, .12), 0 0 0 8px var(--teal-soft) inset;
}

.about-request-illust-check {
    position: absolute;
    right: 18%;
    bottom: 14%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 18px;
}

.about-request-visual__body {
    padding: 20px 22px;
    text-align: center;
}

.about-request-visual__body p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
}

.about-request-visual__body .cl-contact-btn {
    width: 100%;
}

@media (max-width: 900px) {
    .about-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- 運営会社情報 ---- */
.about-company-external {
    display: flex;
    width: max-content;
    margin: 0 auto 30px;
}

.about-company-table {
    max-width: 760px;
    margin: 0 auto;
}

.about-company-table th {
    width: 140px;
}

@media (max-width: 600px) {
    .about-record {
        width: 68%;
    }
}

.about-request-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    padding: 18px;
    object-fit: contain;
    background: #eef8fa;
}