@charset "utf-8";
/*
  11 王道コーポレート 下層ページの装飾。
  読む順番: style.css（ヘッダー・ボタン・見出しの罫）→ _shared/pages-base.css（配置）→ このファイル。
  ページの頭は紺の帯（右に写真）、区画は白、締めの相談は写真に紺を重ねた帯。
*/

:root {
  --pg-bg: #ffffff;
  --pg-fg: var(--ink);
  --pg-muted: var(--muted);
  --pg-accent: var(--navy);
  --pg-accent-fg: #ffffff;
  --pg-line: var(--line);
  --pg-card-bg: #ffffff;
  --pg-radius: 2px;
  --pg-max: 1120px;
  --pg-font-head: var(--font-jp);
  --pg-font-body: var(--font-jp);
  --band-photo: none;
}

/* 帯の写真（ページごと）。確認の仕組みと患者説明動画は本文に写真があるので帯は紺だけ */
body[data-page="pricing"] { --band-photo: url("/assets/photos/P03.webp"); }
body[data-page="process"] { --band-photo: url("/assets/photos/P07.webp"); }
body[data-page="contact"] { --band-photo: url("/assets/photos/P15.webp"); }
body[data-page="faq"] { --band-photo: url("/assets/photos/P14.webp"); }
body[data-page="ai-policy"] { --band-photo: url("/assets/photos/P04.webp"); }
body[data-page="about"] { --band-photo: url("/assets/photos/P08.webp"); }
body[data-page="privacy"] { --band-photo: url("/assets/photos/P06.webp"); }
body[data-page="samples"] { --band-photo: url("/assets/photos/P10.webp"); }
body[data-page="quality"] .band-note, body[data-page="patient-explainer"] .band-note { display: none; }

/* ---- ページ全体（帯は幅いっぱい、本文は中央の列） ---- */
.subpage .page { position: relative; padding: 0 0 clamp(72px, 9vw, 128px); overflow-wrap: break-word; }
.subpage .page:has(> .cta-band:last-child) { padding-bottom: 0; }
.subpage .page > * { width: min(var(--pg-max), calc(100% - 2 * var(--gutter))); max-width: none; }
.subpage .page > .band-note + .page-head { margin-top: 0; }
.subpage .page > .page-head + * { margin-top: clamp(48px, 6vw, 88px); }
.subpage .page p, .subpage .page li, .subpage .page dd { line-height: 1.95; }

.band-note {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: var(--gutter);
  width: auto !important;
  margin: 0 !important;
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: .06em;
  color: #fff;
  background: var(--navy-deep);
}

/* ---- ページの頭: 紺の帯 ---- */
.subpage .page > .page-head {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(280px, 30vw, 380px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 92px) calc(44% + 40px) clamp(56px, 7vw, 92px) max(var(--gutter), calc((100% - var(--pg-max)) / 2));
  overflow: hidden;
  color: #fff;
  background: var(--navy) repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 14px);
}
body[data-page="quality"] .page > .page-head, body[data-page="patient-explainer"] .page > .page-head { padding-right: max(var(--gutter), calc((100% - var(--pg-max)) / 2)); }
.subpage .page > .page-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  background: var(--band-photo) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36%);
  mask-image: linear-gradient(90deg, transparent 0, #000 36%);
}
.subpage .page > .page-head::before { content: ""; width: 56px; height: 3px; margin-bottom: 26px; background: var(--sky); }
.subpage .page-title { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.4; letter-spacing: .08em; color: #fff; }
.subpage .page .page-lead { max-width: 38em; margin-top: 20px; font-size: 16px; line-height: 2; color: #d7e0ec; }

/* ---- 区画の見出しと本文 ---- */
.subpage .page .section-title { font-size: clamp(23px, 2.6vw, 32px); }
.subpage .page .page-section > .section-title + * { margin-top: clamp(24px, 3vw, 40px); }
.subpage .page h3 { color: var(--navy); }
.subpage .page .prose { color: var(--ink-soft); }
.subpage .page .prose a, .subpage .page .faq__answer a { color: var(--link); font-weight: 500; }
.subpage .page .prose ul { padding-left: 0; list-style: none; }
.subpage .page .prose ul > li { position: relative; padding-left: 1.4em; }
.subpage .page .prose ul > li::before { content: ""; position: absolute; left: .2em; top: .85em; width: 7px; height: 7px; background: var(--navy); }
.subpage .page .notice { padding: 16px 20px 16px 22px; color: var(--ink-soft); background: var(--pale); border-left: 3px solid var(--navy); }
.subpage .page .notice--privacy strong { color: var(--navy); }
.subpage .page > figure.media { margin-top: clamp(48px, 6vw, 80px); }
.subpage .page figure.media img { aspect-ratio: 12 / 5; object-fit: cover; }
.subpage .page figure.media figcaption { color: var(--muted); }

/* ---- 3 つの確認 ---- */
.subpage .page .checks { gap: clamp(16px, 2vw, 28px); }
.subpage .page .checks > .check { gap: 10px; padding: 30px clamp(22px, 2.4vw, 32px) 32px; background: var(--pale); border-top: 3px solid var(--navy); }
.subpage .page .check__role { font-size: 26px; letter-spacing: .14em; }
.subpage .page .check__who { align-self: flex-start; padding: 1px 12px; font-size: 13px; font-weight: 500; color: var(--navy); background: #fff; border: 1px solid var(--line); }
.subpage .page .check__looks { font-size: 15px; color: var(--ink-soft); }

/* ---- 納品物 ---- */
.subpage .page ul.deliverables { gap: 10px; max-width: none; }
.subpage .page ul.deliverables > li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-weight: 500; color: var(--navy); background: #fff; border: 1px solid var(--line); }
.subpage .page ul.deliverables > li::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--navy); }

/* ---- 進め方（縦の線でつないだ番号） ---- */
.subpage .page .steps > .step { grid-template-columns: 48px minmax(0, 1fr); column-gap: clamp(18px, 2.6vw, 36px); padding: 0 0 40px; border: 0; }
.subpage .page .steps > .step:last-child { padding-bottom: 0; border: 0; }
.subpage .page .steps > .step::before {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.subpage .page .steps > .step::after { content: ""; position: absolute; left: 24px; top: 48px; bottom: 0; width: 1px; background: var(--line); }
.subpage .page .steps > .step:last-child::after { display: none; }
.subpage .page .step__title { padding-top: 8px; font-size: 20px; letter-spacing: .06em; }
.subpage .page .step__weeks { justify-self: start; padding: 0 10px; font-family: var(--font-num), var(--font-jp); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--navy); border: 1px solid var(--navy); }
.subpage .page .step__body { color: var(--ink-soft); }
.subpage .page .step__ask { margin-top: 6px; padding: 14px 18px; font-size: 15px; color: var(--ink-soft); background: var(--pale); }
.subpage .page .step__ask strong { margin-bottom: 2px; font-weight: 700; color: var(--navy); }

/* ---- 条件の一覧（表の形） ---- */
.subpage .page dl.terms-list { max-width: none; border: 1px solid var(--line); border-bottom: 0; }
.subpage .page dl.terms-list > div { grid-template-columns: minmax(8em, 15em) minmax(0, 1fr); gap: 0; padding: 0; border-top: 0; border-bottom: 1px solid var(--line); }
.subpage .page dl.terms-list > div:last-child { border-bottom: 1px solid var(--line); }
.subpage .page dl.terms-list dt { padding: 18px 22px; font-weight: 500; color: var(--navy); background: var(--pale); }
.subpage .page dl.terms-list dd { padding: 18px 22px; color: var(--ink-soft); }

/* 価格の考え方: 工程を左から右へ並べる */
.subpage .page dl.terms-list--flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; border: 0; }
.subpage .page dl.terms-list--flow > div { display: flex; flex-direction: column; grid-template-columns: none; border: 1px solid var(--line); }
.subpage .page dl.terms-list--flow > div:last-child { border-bottom: 1px solid var(--line); }
.subpage .page dl.terms-list--flow dt { position: relative; padding: 16px 30px 16px 18px; min-height: 5.2em; display: flex; align-items: center; color: #fff; background: var(--navy); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); }
.subpage .page dl.terms-list--flow > div:last-child dt { clip-path: none; }
.subpage .page dl.terms-list--flow dd { padding: 16px 18px 20px; font-size: 15px; }

/* ---- 料金のカード ---- */
.subpage .page .plan-index { position: sticky; z-index: 5; top: 64px; margin-top: clamp(24px, 3vw, 36px); background: #fff; border-bottom: 1px solid var(--line); }
.subpage .page .plan-index ul { display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.subpage .page .plan-index a { position: relative; display: flex; align-items: center; min-height: 52px; padding: 0 16px; font-size: 14px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.subpage .page .plan-index a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.subpage .page .plan-index a:hover::after, .subpage .page .plan-index a.is-current::after { transform: scaleX(1); }
.subpage .page .plan-index a.is-current { color: var(--navy); }

.subpage .page .price-cards { gap: clamp(16px, 2vw, 24px); }
.subpage .page .price-cards--main { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; margin-top: clamp(40px, 5vw, 64px); }
.subpage .page .price-cards--more { grid-template-columns: minmax(0, 1fr); margin-top: clamp(16px, 2vw, 24px); }
.subpage .page .price-card {
  position: relative;
  gap: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  scroll-margin-top: 140px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.subpage .page .price-card:hover { transform: translateY(-4px); border-color: #b9c4d2; box-shadow: 0 26px 44px -32px rgba(13, 29, 55, .6); }
.subpage .page .price-card__head { display: grid; gap: 10px; padding: clamp(24px, 2.6vw, 34px) clamp(22px, 2.4vw, 32px) 24px; border-bottom: 1px solid var(--line); }
.subpage .page .price-card__head > *, .subpage .page .price-card__body > * { margin: 0; }
.subpage .page .price-card__name { font-size: 19px; line-height: 1.5; letter-spacing: .06em; }
.subpage .page .price-card__price { display: grid; gap: 2px; }
.subpage .page .price-card__ex { font-size: 15px; font-weight: 500; color: var(--navy); }
.subpage .page .price-card__ex .num { font-family: var(--font-num); font-size: clamp(34px, 3.2vw, 44px); font-weight: 700; line-height: 1.15; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.subpage .page .price-card__in { font-size: 14px; color: var(--muted); }
.subpage .page .price-card__body { display: flex; flex: 1; flex-direction: column; gap: 16px; padding: 24px clamp(22px, 2.4vw, 32px) clamp(24px, 2.6vw, 32px); }
.subpage .page .price-card__summary { font-size: 15px; color: var(--ink-soft); }
.subpage .page .price-card__for { padding: 12px 16px; font-size: 14px; color: var(--ink-soft); background: var(--pale); }
.subpage .page .price-card__for strong { margin-bottom: 2px; font-size: 13px; color: var(--navy); }
.subpage .page .price-card__includes { display: grid; gap: 6px; padding: 0; list-style: none; font-size: 15px; }
.subpage .page .price-card__includes li { position: relative; padding-left: 26px; }
.subpage .page .price-card__includes li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 10px; height: 5px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.subpage .page .price-card__terms { gap: 0; font-size: 14px; border-top: 1px solid var(--line); }
.subpage .page .price-card__terms > div { grid-template-columns: 6.5em minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid var(--line); }
.subpage .page .price-card__terms dt { font-weight: 500; color: var(--navy); }
.subpage .page .price-card__terms dd { color: var(--ink-soft); }
.subpage .page .price-card__cta { align-self: stretch; justify-content: center; margin-top: auto; }

/* 最初の 1 本に: 紺の頭・上に持ち上げる */
.subpage .page .price-card.is-featured { z-index: 1; border: 2px solid var(--navy); box-shadow: 0 28px 48px -34px rgba(13, 29, 55, .7); }
.subpage .page .price-card.is-featured .price-card__head { color: #fff; background: var(--navy) repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 14px); border-bottom-color: var(--navy); }
.subpage .page .price-card.is-featured .price-card__name, .subpage .page .price-card.is-featured .price-card__ex { color: #fff; }
.subpage .page .price-card.is-featured .price-card__in { color: var(--on-navy-soft); }
.subpage .page .price-card__badge { position: absolute; top: -15px; left: clamp(20px, 2.2vw, 30px); padding: 3px 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--navy); background: #fff; border: 2px solid var(--navy); }

/* 横長のカード（病院向けシリーズ・改訂保守） */
.subpage .page .price-card--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.subpage .page .price-card--wide .price-card__head { align-content: start; border-bottom: 0; border-right: 1px solid var(--line); background: var(--pale); }
.subpage .page .price-card--wide .price-card__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; align-content: start; gap: 16px clamp(24px, 3vw, 40px); }
.subpage .page .price-card--wide .price-card__for, .subpage .page .price-card--wide .price-card__includes { grid-column: 1; }
.subpage .page .price-card--wide .price-card__terms, .subpage .page .price-card--wide .price-card__cta { grid-column: 2; }
.subpage .page .price-card--wide .price-card__cta { align-self: end; margin-top: 0; }

@media (min-width: 1081px) {
  .subpage .page .price-cards--main { padding-top: 16px; }
  .subpage .page .price-card.is-featured { margin-top: -16px; }
}

/* ---- よくある質問 ---- */
.subpage .page .faq { max-width: none; }
.subpage .page details.faq__item { border-top-color: var(--line); }
.subpage .page .faq__item > summary { padding: 22px 64px 22px 4px; font-size: 17px; font-weight: 500; line-height: 1.7; color: var(--navy); transition: color .2s; }
.subpage .page .faq__item > summary::after {
  content: "";
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1.5px 12px no-repeat;
  transition: background-color .25s;
}
.subpage .page .faq__item[open] > summary::after { content: ""; background: linear-gradient(#fff, #fff) center / 12px 1.5px no-repeat, var(--navy); }
.subpage .page .faq__answer { padding: 0 64px 26px 4px; color: var(--ink-soft); }

/* ---- 相談フォーム ---- */
.subpage .page form.contact-form { max-width: none; padding: clamp(24px, 4vw, 48px); background: var(--pale); }
.subpage .page .contact-form label { font-size: 14px; font-weight: 500; color: var(--navy); }
.subpage .page .contact-form input, .subpage .page .contact-form select, .subpage .page .contact-form textarea { min-height: 48px; color: var(--ink); background: #fff; border-color: #c3ccd8; }
.subpage .page .contact-form ::placeholder { color: #5b6878; opacity: 1; }
.subpage .page .contact-form fieldset:disabled input, .subpage .page .contact-form fieldset:disabled select, .subpage .page .contact-form fieldset:disabled textarea { background: #fbfcfd; cursor: not-allowed; }
.subpage .page .contact-form button { min-width: 220px; justify-content: center; }

/* ---- 締めの相談の帯（写真に紺を重ねる・幅いっぱい） ---- */
.subpage .page > .cta-band {
  position: relative;
  isolation: isolate;
  width: 100%;
  justify-items: start;
  gap: 20px;
  margin-top: clamp(72px, 9vw, 128px);
  padding: clamp(72px, 9vw, 120px) max(var(--gutter), calc((100% - var(--pg-max)) / 2));
  overflow: hidden;
  color: #fff;
  background: var(--navy-deep);
  border: 0;
  border-radius: 0;
}
.subpage .page > .cta-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/photos/P01.webp") center 60% / cover no-repeat; }
.subpage .page > .cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 29, 55, .95) 0%, rgba(13, 29, 55, .88) 60%, rgba(13, 29, 55, .78) 100%); }
.subpage .page > .cta-band h2 { max-width: 20em; font-size: clamp(24px, 3vw, 36px); line-height: 1.5; letter-spacing: .05em; color: #fff; }
.subpage .page > .cta-band p { max-width: 38em; color: #e1e8f1; }
.subpage .page > .cta-band .button { color: var(--navy); background: #fff; border-color: #fff; }
.subpage .page > .cta-band .button:hover { background: var(--pale); border-color: var(--pale); }

/* ---- パンくず ---- */
.breadcrumb { background: #fff; border-top: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-block: 0; padding: 16px 0; list-style: none; font-size: 13px; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; margin: 0 14px 0 10px; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: rotate(45deg); }
.breadcrumb a { color: var(--link); }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: .25em; }

/* ---- 現れる動き（pages.js が html.pg-motion を付けたときだけ） ---- */
.pg-motion .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s var(--ease); transition-delay: var(--d, 0s); }
.pg-motion .rv.is-in { opacity: 1; transform: none; }
.pg-motion .price-card.rv.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ---- 中くらいの幅 ---- */
@media (max-width: 1080px) {
  .subpage .page .plan-index { top: 58px; }
  .subpage .page .price-cards--main { grid-template-columns: minmax(0, 1fr); }
  .subpage .page .price-cards--main .price-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .subpage .page .price-cards--main .price-card__head { align-content: start; border-bottom: 0; border-right: 1px solid var(--line); }
  .subpage .page .price-card.is-featured .price-card__head { border-right-color: var(--navy); }
  .subpage .page .price-card--wide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .subpage .page .price-card--wide .price-card__body { grid-template-columns: minmax(0, 1fr); }
  .subpage .page .price-card--wide .price-card__body > * { grid-column: 1; }
  .subpage .page dl.terms-list--flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subpage .page dl.terms-list--flow dt { clip-path: none; min-height: 0; }
}
@media (max-width: 900px) {
  .subpage .page > .page-head { min-height: 0; padding: calc(clamp(170px, 44vw, 260px) + 40px) var(--gutter) 48px; }
  body[data-page="quality"] .page > .page-head, body[data-page="patient-explainer"] .page > .page-head { padding: 56px var(--gutter) 52px; }
  .subpage .page > .page-head::after { left: 0; bottom: auto; width: auto; height: clamp(170px, 44vw, 260px); -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent); mask-image: linear-gradient(180deg, #000 50%, transparent); }
}

/* ---- 狭い幅（375 など） ---- */
@media (max-width: 640px) {
  .subpage .page { padding-bottom: 72px; }
  .subpage .page > .page-head::before { margin-bottom: 20px; }
  .subpage .page .page-lead { font-size: 15px; }
  .subpage .page .plan-index ul { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .subpage .page .plan-index a { padding: 0 12px; }
  .subpage .page .price-cards--main .price-card, .subpage .page .price-card--wide { display: flex; }
  .subpage .page .price-cards--main .price-card__head, .subpage .page .price-card--wide .price-card__head { border-right: 0; border-bottom: 1px solid var(--line); }
  .subpage .page dl.terms-list > div { grid-template-columns: minmax(0, 1fr); }
  .subpage .page dl.terms-list dt { padding: 12px 18px; }
  .subpage .page dl.terms-list dd { padding: 14px 18px 18px; }
  .subpage .page dl.terms-list--flow { grid-template-columns: minmax(0, 1fr); }
  .subpage .page .steps > .step { grid-template-columns: 40px minmax(0, 1fr); padding-bottom: 32px; }
  .subpage .page .steps > .step::before { width: 40px; height: 40px; font-size: 16px; }
  .subpage .page .steps > .step::after { left: 20px; top: 40px; }
  .subpage .page .faq__item > summary { padding-right: 56px; font-size: 16px; }
  .subpage .page .faq__answer { padding-right: 4px; }
  .subpage .page .contact-form button { width: 100%; min-width: 0; }
  .subpage .page > .cta-band .button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-motion .rv { opacity: 1; transform: none; }
}
