/* ===========================================
   Components: 下層ページの共通部品
   トップページの雰囲気（白地とグレーの帯を交互に、テーマの水色をアクセント）に合わせる。
   ページ固有の色・装飾はここに足さず、page-xxx.css にも書かない。
=========================================== */

/* ---- Page wrapper ---- */
.p-lower {
    --c-accent-text: #2a7f8a;        /* 白・グレー地の小さな文字用（コントラスト4.5:1以上） */
    --c-accent-strong: #379aa7;      /* ボタン地（白の太字18px以上で3:1以上） */
    --c-line: rgba(121, 194, 204, 0.45);
    --c-band: var(--color-bg-gray);
    background-color: var(--color-bg);
}
.p-lower__body {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}
/* 直下のブロックを1段ずつ積み、偶数段をトップページと同じグレーの帯にする */
.p-lower__body > * {
    padding: 64px 0;
}
.p-lower__body > :nth-child(even) {
    background: var(--c-band);
    box-shadow: 0 0 0 100vmax var(--c-band);
    clip-path: inset(0 -100vmax);
}
.p-lower__body > :last-child { margin-bottom: 0; }

/* ---- ページタイトル（layout.css の .page-hero）----
   共通設定は生成り色で終わるため、白地の本文との境目が出る。白で終わるように上書きする */
.p-lower .page-hero {
    background: linear-gradient(180deg, #e8f4f5 0%, #f2f9fa 45%, var(--color-bg) 100%);
}
.p-lower .page-hero__divider span::before {
    background: #f6fbfb; /* 区切りの丸の中を、その位置の背景色に合わせる */
}

/* ---- Section + heading ---- */
.c-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}
.c-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}
.c-heading__title {
    /* base.css の h2 装飾（下線・transform）を打ち消して作り直す */
    position: static;
    left: auto;
    transform: none;
    display: block;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-text);
}
.c-heading__title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    margin: 14px auto 0;
    background: var(--color-primary);
}
.c-heading__en {
    order: -1;
    font-family: 'Inter', var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-accent-text);
}
.c-lead {
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-text-light);
    margin: 0;
}

/* ---- Card ---- */
.c-card {
    background: var(--color-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}
.c-card p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--color-text-light);
    margin: 0 0 1em;
}
.c-card p:last-child { margin-bottom: 0; }
.c-card__title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--color-text);
}

/* カードの外に置いた小見出し：前のブロックとは離し、続く内容に近づける */
.c-section > .c-card__title {
    margin: 16px 0 -8px;
    font-size: 18px;
}

/* 2枚並び（スマホでは縦積み） */
.c-pair {
    display: flex;
    flex-wrap: wrap;
    gap: var(--card-gap);
}
.c-pair > * {
    flex: 1 1 400px;
    min-width: 0;
}

/* ---- Media: 画像＋テキスト ---- */
.c-media {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
}
.c-media__body {
    flex: 1 1 360px;
    min-width: 0;
}
.c-media__img {
    flex: 0 1 360px;
    width: 360px;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}
.c-media--reverse { flex-direction: row-reverse; }

/* 単独の図版（比較表など）。PC/スマホで出し分けるときは base.css の .pc-only / .sp-only を併用 */
.c-figure {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-lg);
}
/* .c-figure の display:block が base.css の出し分けを上書きしないようにする */
.c-figure.sp-only { display: none; }

/* ---- Grid: カードを2列・3列に並べる ---- */
.c-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--card-gap);
}
.c-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-card__img {
    /* 小さい元画像を引き伸ばさない。縦長でも高すぎないように抑える */
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 260px;
    height: auto;
    border-radius: var(--radius-md);
    margin: 0 auto 16px;
}

/* ---- Bullets: カード内などの箇条書き ---- */
.c-bullets {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}
.c-bullets:last-child { margin-bottom: 0; }
.c-bullets li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--color-text-light);
}
.c-bullets li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.75em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* ---- Steps: 番号付きの流れ ---- */
.c-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.c-steps__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--color-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 22px 28px;
}
.c-steps__num {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-pale);
    font-family: 'Inter', var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--c-accent-text);
}
.c-steps__body {
    flex: 1;
    min-width: 0;
    padding-top: 8px;
}
.c-steps__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--color-text);
}
.c-steps__body p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--color-text-light);
    margin: 0;
}
.c-steps__body p + p { margin-top: 0.6em; }

/* ---- List: 区切り線のリスト ---- */
.c-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.c-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-text);
}
.c-list li::before {
    content: "";
    flex: 0 0 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* 項目名＋説明 */
.c-deflist {
    margin: 0;
    background: var(--color-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
}
.c-deflist__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    padding: 20px 28px;
}
.c-deflist__row + .c-deflist__row { border-top: 1px solid var(--color-border-light); }
.c-deflist dt {
    flex: 0 1 240px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}
.c-deflist dd {
    flex: 1 1 400px;
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
    color: var(--color-text-light);
}

/* ---- CTA（template-parts/reserve-cta.php） ---- */
.c-cta {
    background: var(--color-primary-pale);
    border-radius: 12px;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.p-lower__body > .c-cta {
    /* 帯の段に当たっても帯にせず、上下に余白を取る */
    background: var(--color-primary-pale);
    box-shadow: none;
    clip-path: none;
    margin: 64px 0;
}
.c-cta__title {
    position: static;
    left: auto;
    transform: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.c-cta__text {
    margin: 0;
    max-width: 680px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--color-text-light);
}
.c-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}
.c-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 44px;
    border-radius: var(--radius-pill);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.c-cta__btn--primary { background: var(--c-accent-strong); color: var(--color-bg); }
.c-cta__btn--outline { border: 2px solid var(--color-primary); color: var(--c-accent-text); background: var(--color-bg); }
.c-cta__back {
    font-size: 14px;
    color: var(--c-accent-text);
    padding: 8px;
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .p-lower__body { padding: 0 16px; }
    .p-lower__body > * { padding: 44px 0; }
    .c-heading__title { font-size: 20px; }
    .c-card { padding: 20px; }
    .c-media,
    .c-media--reverse { flex-direction: column; align-items: stretch; gap: 16px; }
    .c-media__body,
    .c-media__img { flex: none; width: 100%; }
    .c-figure.pc-only { display: none; }
    .c-figure.sp-only { display: block; }
    .c-grid,
    .c-grid--3,
    .c-list { grid-template-columns: 1fr; }
    .c-steps__item { padding: 18px; gap: 14px; }
    .c-steps__num { flex-basis: 36px; height: 36px; font-size: 14px; }
    .c-steps__body { padding-top: 4px; }
    .c-steps__title { font-size: 15px; }
    .c-steps__body p { font-size: 13px; line-height: 1.8; }
    .c-deflist__row { flex-direction: column; padding: 16px 20px; }
    .c-deflist dt, .c-deflist dd { flex: none; }
    .c-deflist dd { font-size: 13px; line-height: 1.8; }
    .p-lower__body > .c-cta { margin: 44px 0; }
    .c-cta { padding: 32px 20px; align-items: stretch; }
    .c-cta__title { font-size: 18px; line-height: 1.6; }
    .c-cta__buttons { flex-direction: column; }
}
