/* front-page.css */


:root {
    --base: #ffffff;
    --main: #74CBBB;
    --accent: #FCE576;
    --text: #222222;
    --border: #e5e5e5;
}

/* =========================
  Hero Visual
========================= */

.hero-visual {
    position: relative;
    height: clamp(520px, 70vh, 760640px);
    overflow: hidden;
    font-family: "Noto Sans JP", "游ゴシック", sans-serif;
}

.hero-visual__bg,
.hero-visual__bg img {
    width: 100%;
    height: 100%;
}

.hero-visual__bg img {
    object-fit: cover;
    object-position: center;
    display: block;
}

/* オーバーレイ */
.hero-visual__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* コピー */
.hero-visual__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-visual__catch {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* インジケータ */
.hero-visual__indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-visual__indicator .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.hero-visual__indicator .dot.active {
    background: var(--main);
}


/* =========================
  Hero Message
========================= */

.hero-message {
    background: #fff;
    padding: 120px 20px;
    font-family: "Noto Sans JP", "游ゴシック", sans-serif;
}

.hero-message__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
}

/* 左 */
.hero-message__title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.08em;
    color: #000;
    text-align: center;
}

/* 右 */
.hero-message__text {
    font-size: 1rem;
    line-height: 2.2;
    color: #222;
    margin-bottom: 40px;
}

.hero-message__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 56px;
    border: 2px solid var(--main);
    color: var(--main);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    transition: all .3s ease;
}

.hero-message__btn:hover {
    background: var(--main);
    color: #fff;
}


/* =========================
  Responsive
========================= */

@media (max-width: 768px) {

    .hero-message {
        padding: 80px 20px;
    }

    .hero-message__inner {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-message__btn {
        margin: 0 auto;
    }
}


/* About section cards */

/* =========================
   About Feature 全体
========================= */
/* =========================
   About Feature 全体
========================= */

.about-feature {
    background: #fff;
    padding: 2rem 7rem;
    font-family: "Noto Sans JP", "游ゴシック", sans-serif;
}

.about-feature__list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

/* =========================
   Feature Item（画像＋説明セット）
========================= */

.about-feature__item {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* 画像 */

.about-feature__image {
    position: relative;
    height: 360px;
    overflow: hidden;
}

.about-feature__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ラベル */

.about-feature__label {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #000;
    white-space: nowrap;
}

/* テキスト */

.about-feature__text {
    font-size: 1rem;
    line-height: 2.2;
    color: #111;
}

/* =========================
   レスポンシブ
========================= */

@media (max-width: 768px) {

    .about-feature {
        padding: 80px 20px;
    }

    .about-feature__list {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-feature__image {
        height: 260px;
    }

    .about-feature__label {
        bottom: 20px;
        padding: 1rem 28px;
        font-size: 1rem;
    }
}


/* Services */
/* =========================
   Services 全体
========================= */

.services {
    background: #fff;
    padding: 140px 0;
    font-family: "Noto Sans JP", "游ゴシック", sans-serif;
}

.services__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

/* =========================
   タイトル
========================= */

.services__title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 40px;
    color: #000;
}

/* =========================
   説明文
========================= */

.services__lead {
    font-size: 1rem;
    line-height: 2.4;
    color: #222;
    margin-bottom: 80px;
}

.services__lead p {
    margin-bottom: 18px;
}

/* =========================
   アイコン一覧
========================= */

.services__list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =========================
   丸アイコン
========================= */

.services__icon {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.services__icon img {
    width: 46px;
    height: auto;
    margin-bottom: 10px;
}

.services__icon span {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
}

/* 色バリエーション（スクショ準拠） */
.services__item:nth-child(2) .services__icon {
    background: var(--main);
}

.services__item:nth-child(3) .services__icon {
    background: var(--main);
}

.services__item:nth-child(4) .services__icon {
    background: var(--main);
}

.services__item:nth-child(5) .services__icon {
    background: var(--main);
}

.services__item:nth-child(6) .services__icon {
    background: var(--main);
}

/* =========================
   レスポンシブ
========================= */

@media (max-width: 768px) {

    .services {
        padding: 100px 0;
    }

    .services__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .services__icon {
        width: 120px;
        height: 120px;
    }

    .services__icon img {
        width: 40px;
    }

}

/* =========================
   Services セクション
========================= */

.services {
    background: #fff;
    padding: 140px 0;
    font-family: "Noto Sans JP", "游ゴシック", sans-serif;
}

.services__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}


.services__title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 40px;
    color: #000;
}


.services__lead {
    font-size: 1rem;
    line-height: 2.4;
    color: #222;
    margin-bottom: 90px;
}

.services__lead p {
    margin-bottom: 18px;
}


.services__icons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.services__icons li {
    display: flex;
    justify-content: center;
}

.services__icons img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}


@media (max-width: 768px) {

    .services {
        padding: 100px 0;
    }

    .services__icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .services__icons img {
        width: 120px;
        height: 120px;
    }
}


/* =========================
   Clinic Info
========================= */

.clinic-info {
    background: #fff;
    padding: 140px 0;
    font-family: "Noto Sans JP", "游ゴシック", sans-serif;
}

.clinic-info__inner {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 2rem;
}


.clinic-info__title {
    text-align: center;
    margin-bottom: 40px;
}

.clinic-info__title span {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: .08em;
    background: linear-gradient(transparent 65%, var(--accent) 65%);
    padding: 0 6px;
}


.clinic-info__lead {
    text-align: center;
    font-size: 1rem;
    line-height: 2.4;
    margin-bottom: 80px;
}


.clinic-info__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.clinic-info__name {
    font-size: 26px;
    font-weight: 700;
    margin-top: 0;
}

.clinic-info__list {
    display: grid;
    grid-template-columns: 120px 1fr;
    row-gap: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.clinic-info__list dt {
    font-weight: 600;
}

.clinic-info__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    text-align: center;
}

.clinic-info__table th,
.clinic-info__table td {
    border: 2px solid var(--main);
    padding: 12px;
    color: var(--main);
}

.clinic-info__table th {
    font-weight: 600;
}


.clinic-info__partners {
    border: 2px solid var(--main);
    padding: 24px;
    margin-bottom: 80px;
}

.clinic-info__partners h3 {
    font-size: 18px;
    margin-bottom: 12px;
}


.clinic-info__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.clinic-info__logo img {
    max-width: 260px;
}

.clinic-info__cta {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}

.btn-primary,
.btn-ghost {
    min-width: 240px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    letter-spacing: .08em;
    text-decoration: none;
}

.btn-primary {
    background: var(--main);
    color: #fff;
}

.btn-ghost {
    border: 2px solid var(--main);
    color: var(--main);
}

/* =========================
   Responsive 保険CSS
   （既存CSSの下に追記）
========================= */

/* ---------- 全体のはみ出し防止 ---------- */

.clinic-info {
    overflow-x: hidden;
}

/* ---------- タイトル・リードの可変 ---------- */

@media (max-width: 768px) {

    .clinic-info {
        padding: 80px 0;
    }

    .clinic-info__title span {
        font-size: 24px;
    }

    .clinic-info__lead {
        font-size: 0.95rem;
        line-height: 2.1;
        margin-bottom: 60px;
    }
}

/* ---------- 基本情報（dl）の崩れ防止 ---------- */

@media (max-width: 768px) {

    .clinic-info__name {
        font-size: 22px;
        text-align: center;
    }

    .clinic-info__list {
        grid-template-columns: 1fr;
        row-gap: 0.5rem;
        font-size: 0.95rem;
    }

    .clinic-info__list dt {
        font-weight: 600;
        color: #555;
        margin-top: 1rem;
    }

    .clinic-info__list dd {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
}

/* ---------- 診療時間テーブル（最重要） ---------- */
/* =========================
   SP専用レイアウト（本命）
========================= */

@media (max-width: 768px) {

    /* 2カラムを完全に解除 */
    .clinic-info__grid {
        display: block;
    }

    /* 診療時間カード */
    .clinic-hours-card {
        border: 2px solid var(--main);
        border-radius: 8px;
        padding: 20px;
        margin: 24px 0 40px;
        text-align: center;
        background: #fff;
    }

    .clinic-hours-label {
        font-size: 0.85rem;
        letter-spacing: 0.1em;
        color: var(--main);
        margin-bottom: 8px;
        font-weight: 600;
    }

    .clinic-hours-time {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--main);
        letter-spacing: 0.05em;
        margin-bottom: 6px;
    }

    .clinic-hours-note {
        font-size: 0.75rem;
        color: #666;
    }

    /* PC用テーブルはSPで完全非表示 */
    .clinic-info__table {
        display: none;
    }
}

/* ---------- 連携医療機関 ---------- */

@media (max-width: 768px) {

    .clinic-info__partners {
        padding: 20px;
        margin-bottom: 60px;
    }

    .clinic-info__partners h3 {
        font-size: 16px;
    }
}

/* ---------- フッター（ロゴ＋CTA） ---------- */

@media (max-width: 768px) {

    .clinic-info__footer {
        gap: 1rem;
    }

    .clinic-info__logo img {
        max-width: 5rem;
        margin: 0 auto;
        display: block;
    }

    .clinic-info__cta {
        flex-direction: column;
        gap: 16px;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        min-width: auto;
        height: 52px;
        font-size: 0.95rem;
    }
}

/* ---------- 極小端末（iPhone SEなど） ---------- */

@media (max-width: 375px) {

    .clinic-info__title span {
        font-size: 22px;
    }

    .clinic-info__lead {
        font-size: 0.9rem;
    }
}