/* ==========================================================================
   泉松会の特徴 (/features/) ページ専用スタイル
   ========================================================================== */

.p-features-hero { background-position: center 40%; }

/* セクション区切り線を統一（about.css の :first-child 除外を上書き） */
.p-features-sec.p-about-section           { border-bottom: 1px solid rgba(0,85,46,0.1); }
.p-features-sec.p-about-section:last-child { border-bottom: none; }

/* ────────────────────────────────────────────
   セクション見出し（ナンバー + タイトル）
──────────────────────────────────────────── */
.p-features-sec__head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 3px solid var(--about-gold, #bfa67a);
}
.p-features-sec__num {
    font-family: var(--font-en, 'Montserrat', sans-serif);
    font-size: clamp(36px, 4.5vw, 52px);
    font-weight: 700;
    line-height: 1;
    color: var(--about-gold, #bfa67a);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
/* 縦区切り線 */
.p-features-sec__divider {
    display: block;
    width: 1px;
    height: 44px;
    background: rgba(191,166,122,0.5);
    flex-shrink: 0;
}
.p-features-sec__head-text { min-width: 0; }
.p-features-sec__en {
    display: block;
    font-family: var(--font-en, 'Montserrat', sans-serif);
    font-size: var(--fs-11);
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--about-gold, #bfa67a);
    margin-bottom: 4px;
}
.p-features-sec__title {
    font-family: var(--font-heading, 'Zen Kaku Gothic New', sans-serif);
    font-size: clamp(24px, 3.4vw, 40px);
    font-weight: 700;
    color: var(--about-green, #00552e);
    line-height: 1.45;
    margin: 0;
    letter-spacing: 0.04em;
}

/* ────────────────────────────────────────────
   写真ギャラリー
──────────────────────────────────────────── */
.p-features-gallery {
    margin-bottom: 36px;
}
.p-features-gallery__main {
    margin-bottom: 12px;
}
.p-features-gallery__main img {
    width: 100%;
    height: clamp(260px, 40vw, 440px);
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.p-features-gallery__sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.p-features-gallery__sub img {
    width: 100%;
    height: clamp(140px, 20vw, 220px);
    object-fit: cover;
    object-position: center 20%;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}

/* ────────────────────────────────────────────
   本文テキスト
──────────────────────────────────────────── */
.p-features-sec__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}
.p-features-sec__body p {
    font-size: clamp(16px, 1.9vw, 20px);
    line-height: 2.2;
    color: #2c3a2e;
    margin: 0;
    text-indent: 1em;
}

/* ────────────────────────────────────────────
   ご相談方法ボックス（栄養指導）
──────────────────────────────────────────── */
.p-features-howto {
    background: #fff;
    border: 1px solid rgba(0,85,46,0.12);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,85,46,0.06);
}
.p-features-howto__label {
    background: var(--about-green, #00552e);
    color: #fff;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 16px 24px;
    margin: 0;
    text-align: center;
}
.p-features-howto__body {
    padding: 36px 40px 40px;
}
.p-features-howto__lead {
    text-align: center;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 2.1;
    color: #3a4a3e;
    margin: 0 0 32px;
}
.p-features-howto__phones {
    display: grid;
    /* 1列の最小幅は「電話番号を1行で収められる幅」に合わせている。
       番号(最長12文字)≒7.3em + アイコン28px + 間隔10px + 左右padding32px。
       これを下回る幅では auto-fit が自動的に列数を減らし、最終的に縦積みになる。
       min(,100%) は極端に狭い画面でカードからはみ出さないための保険。 */
    grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
    /* 3件が2列に折り返すと右下に空セルができる。グリッドに色を敷くと
       そこだけ色が出てしまうため、背景は白のまま。仕切り線は引かず、
       すき間で区切りを見せる（列数が 3→2→1 と変わっても破綻しない）。 */
    gap: 8px;
    background: #fff;
}
.p-features-howto__phone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: #fff;
}

.p-features-howto__clinic {
    font-size: clamp(14px, 1.6vw, 17px);
    font-weight: 600;
    color: #3a4a3e;
    letter-spacing: 0.06em;
}
.p-features-howto__tel {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-en, 'Montserrat', sans-serif);
    /* 3.6vw は列幅より文字が速く育ち、広い画面で番号が2行に割れていた。
       列幅(最小290px)に収まる上限まで下げている */
    font-size: clamp(22px, 2.4vw, 30px);
    /* 番号は途中で絶対に折り返さない */
    white-space: nowrap;
    font-weight: 700;
    color: var(--about-green, #00552e);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.p-features-howto__tel:hover { color: #008c46; }
.p-features-howto__tel svg {
    width: clamp(22px, 3vw, 28px);
    height: clamp(22px, 3vw, 28px);
    flex-shrink: 0;
}

/* ────────────────────────────────────────────
   福祉ホームお問い合わせボックス
──────────────────────────────────────────── */
.p-features-contact {
    background: #fff;
    border: 1px solid rgba(0,85,46,0.12);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,85,46,0.06);
}
.p-features-contact__label {
    background: var(--about-green, #00552e);
    color: #fff;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 16px 24px;
    margin: 0;
    text-align: center;
}
.p-features-contact__list {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}
.p-features-contact__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(0,85,46,0.08);
}
.p-features-contact__item:last-child { border-bottom: none; }
.p-features-contact__name {
    font-size: clamp(14px, 1.6vw, 17px);
    font-weight: 600;
    color: #3a4a3e;
    letter-spacing: 0.06em;
    flex: 0 0 auto;
}
.p-features-contact__tel {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-en, 'Montserrat', sans-serif);
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 700;
    color: var(--about-green, #00552e);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.p-features-contact__tel svg {
    width: clamp(22px, 3vw, 28px);
    height: clamp(22px, 3vw, 28px);
    stroke: var(--about-green, #00552e);
    flex-shrink: 0;
}
.p-features-contact__tel:hover { color: #008c46; }

/* ────────────────────────────────────────────
   フェードイン
──────────────────────────────────────────── */
.p-features-sec {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}
.p-features-sec.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ────────────────────────────────────────────
   レスポンシブ
──────────────────────────────────────────── */
@media (max-width: 860px) {
    .p-features-howto__phones { grid-template-columns: 1fr; }
    .p-features-howto__phone-item + .p-features-howto__phone-item { border-left: none; border-top: 1px solid rgba(0,85,46,0.1); }
    .p-features-howto__phone-item { padding: 18px 16px; }
    .p-features-howto__body { padding: 20px 20px 24px; }
    .p-features-contact__item { flex-direction: column; align-items: center; gap: 10px; }
    .p-features-contact__name { flex: none; }
    .p-features-contact__tel { font-size: clamp(24px, 7vw, 32px); }
}

@media (max-width: 600px) {
    .p-features-sec__head { gap: 14px; }
    .p-features-gallery__sub { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ==========================================================================
   本文からコラムへ誘導するボタン
   見た目は共通の .c-button.-top-blue（ピル型）を流用するが、既定の
   --theme-color は :root の青(#1e3a8a)なので、このページのアクセント色
   （--about-green）で上書きしてコーポレートの配色に揃える。
   ========================================================================== */
/* セレクタに .c-button を足して詳細度を上げている。本文用の
   「.p-features-sec__body p { margin:0; text-indent:1em }」が (0,1,1) で
   勝ってしまい、余白が消え、中央寄せも字下げ分(半文字=10px)ずれるため。 */
.c-button.p-features-sec__more {
    /* 上下の「見た目の」余白を 52px に揃えるための値。上下で数値が違うのは：
       ・上… 本文が line-height:2.2 なので、文字の下端より段落ボックスが
              8px ほど下まである。その分を差し引いて 24px にしている
       ・下… .p-features-sec__body の margin-bottom:36px と足し合わさるため
              16px で 52px になる */
    margin: 24px 0 16px;
    text-align: center; /* セクション幅の中央に置く */
    text-indent: 0;
}
/* 塗りつぶしではなく、うっすら緑を敷いた透かし（ゴースト）ボタン。
   周囲の緑が濃いので、ボタンだけ主張しすぎないようにしている。 */
.c-button.-top-blue.p-features-sec__more a {
    background-color: color-mix(in srgb, var(--about-green, #00552e) 10%, transparent);
    border-color: color-mix(in srgb, var(--about-green, #00552e) 45%, transparent);
    color: var(--about-green, #00552e);
}
/* ホバーで塗りを起こす（他ページのボタンと同じ「反転」の考え方） */
.c-button.-top-blue.p-features-sec__more a:hover {
    background-color: var(--about-green, #00552e);
    border-color: var(--about-green, #00552e);
    color: #fff;
}
/* color-mix 未対応ブラウザ向けのフォールバック（透過付きの単色で同じ見た目にする） */
@supports not (background-color: color-mix(in srgb, #000 10%, transparent)) {
    .c-button.-top-blue.p-features-sec__more a {
        background-color: rgba(0, 85, 46, 0.1);
        border-color: rgba(0, 85, 46, 0.45);
    }
}
