/* Shared components. Add a class here + to _styleguide.php before using it anywhere.
   Editorial style: flat, ruled, 2px corners, bold stepped headings. */

/* ---------- layout ---------- */
.l-container { width: 100%; max-width: calc(var(--w-max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.l-read { max-width: var(--w-read); margin-inline: auto; }
.l-section { padding-block: var(--s-5); position: relative; }
.l-section--tint { background: var(--c-surface-2); border-block: 1px solid var(--c-line); }
.l-stack > * + * { margin-top: var(--s-3); }
.l-stack-lg > * + * { margin-top: var(--s-4); }
.l-grid { display: grid; gap: var(--s-4); }
@media (min-width: 768px) {
  .l-section { padding-block: var(--s-7); }
  .l-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .l-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .l-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Balanced 5-card grid: 3 on top row, 2 wider cards on bottom row */
  .l-grid--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .l-grid--5 > * { grid-column: span 2; }
  .l-grid--5 > :nth-child(4), .l-grid--5 > :nth-child(5) { grid-column: span 3; }
}

/* ---------- header ---------- */
.c-header {
  position: relative; z-index: 50; background: var(--c-surface);
  border-top: 4px solid var(--c-brand); box-shadow: var(--sh-header); height: var(--header-h);
}
.c-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.c-logo { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--f-logo); font-weight: 800; font-size: 1.25rem; color: var(--c-brand); text-decoration: none; }
.c-logo span, .c-logo .c-logo__text span { color: var(--c-accent-ink); }
.c-logo .c-logo__text { color: inherit; }
.c-logo:hover { color: var(--c-brand); }
.c-logo__mark { flex: none; }
.c-logo__bg { fill: var(--c-brand); }
.c-logo__d { fill: var(--c-surface); }
.c-logo__dot { fill: var(--c-accent); }
.c-nav { display: none; }
.c-nav__list { display: flex; align-items: center; gap: var(--s-4); list-style: none; padding: 0; margin: 0; }
.c-nav__link { font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink); text-decoration: none; padding-block: var(--s-2); border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.c-nav__link:hover, .c-nav__link[aria-current="page"] { color: var(--c-brand); border-bottom-color: var(--c-brand); }
.c-menu-btn { appearance: none; background: none; border: 0; width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; }
.c-menu-btn__bar, .c-menu-btn__bar::before, .c-menu-btn__bar::after { display: block; width: 22px; height: 2px; background: var(--c-ink); content: ""; transition: transform 0.2s var(--ease), opacity 0.2s; }
.c-menu-btn__bar { position: relative; }
.c-menu-btn__bar::before { position: absolute; top: -7px; }
.c-menu-btn__bar::after { position: absolute; top: 7px; }
.c-menu-btn[aria-expanded="true"] .c-menu-btn__bar { background: transparent; }
.c-menu-btn[aria-expanded="true"] .c-menu-btn__bar::before { transform: translateY(7px) rotate(45deg); }
.c-menu-btn[aria-expanded="true"] .c-menu-btn__bar::after { transform: translateY(-7px) rotate(-45deg); }
.c-drawer { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-h)); background: var(--c-surface); padding: var(--s-3) var(--gutter) var(--s-6); overflow-y: auto; z-index: 40; border-top: 1px solid var(--c-line); box-shadow: var(--sh-header); }
.c-drawer__list { list-style: none; padding: 0; margin: 0; }
.c-drawer__link { display: block; padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line); font-family: var(--f-head); font-weight: 700; color: var(--c-ink); text-decoration: none; }
@media (min-width: 1024px) {
  .c-nav { display: block; }
  .c-menu-btn, .c-drawer { display: none; }
}

/* ---------- buttons ---------- */
.c-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 46px; padding: 0.55rem 1.5rem; border: 1px solid transparent; border-radius: var(--r-sm);
  font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; text-decoration: none; text-align: center;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.c-btn--primary { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent); }
.c-btn--primary:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: var(--c-on-accent); }
.c-btn--outline { background: var(--c-surface); color: var(--c-brand); border-color: var(--c-brand); }
.c-btn--outline:hover { background: var(--c-brand); color: var(--c-on-dark); }
.c-btn--sm { min-height: 38px; padding: 0.35rem 1.1rem; font-size: var(--fs-xs); }
.c-btn--block { display: flex; width: 100%; }
.c-btn--arrow::after { content: "\203A"; font-size: 1.2em; line-height: 1; }
.c-btn[disabled], .c-btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

/* full-viewport overlay while a data-lock form is submitting (confirm send, etc.) */
body.is-form-sending { overflow: hidden; }
body.is-form-sending::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-form-sending);
  background: rgb(255 255 255 / 72%);
}
body.is-form-sending::after {
  content: "送信中…";
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: calc(var(--z-form-sending) + 1);
  transform: translate(-50%, -50%);
  padding: var(--s-4) var(--s-5);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-brand);
  background: var(--c-surface);
  border: var(--rule) solid var(--c-line);
  box-shadow: 0 0 0 1px var(--c-line);
}

.c-btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.c-btn-row--center { justify-content: center; }

/* ---------- headings / text ---------- */
.c-eyebrow { font-size: var(--fs-xs); font-weight: 700; color: var(--c-brand); text-transform: uppercase; }
.c-section-head { margin-bottom: var(--s-4); padding-top: var(--s-2); border-top: var(--rule) solid var(--c-ink); }
.c-section-head--center { text-align: center; }
.c-section-head__title { font-size: var(--fs-3xl); margin-top: var(--s-1); line-height: 1.35; }
.c-section-head__lead { margin-top: var(--s-3); }
.c-sub-title { font-size: var(--fs-2xl); }
.c-card-title { font-size: var(--fs-lg); }
.c-display { font-family: var(--f-head); font-size: var(--fs-hero); font-weight: 800; line-height: 1.35; color: var(--c-ink); }
.c-display em { font-style: normal; border-bottom: 3px solid var(--c-accent); }
.c-prose > * + * { margin-top: var(--s-3); }
/* Consecutive short rhythmic lines stay grouped rather than creating tall vertical gaps */
.c-prose > .c-prose__line + .c-prose__line { margin-top: 0.5rem; }
.c-prose h3 { font-size: var(--fs-xl); margin-top: var(--s-4); }
.c-prose h4 { font-size: var(--fs-lg); margin-top: var(--s-3); }
.c-prose ul, .c-prose ol { padding-left: 1.4em; }
.c-prose li + li { margin-top: var(--s-1); }
.c-lead { font-size: var(--fs-lg); color: var(--c-text); }
.c-note { font-size: var(--fs-xs); color: var(--c-caption); line-height: 1.65; }
.c-quote {
  padding: var(--s-4); border-left: 4px solid var(--c-brand);
  background: var(--c-surface-2);
  font-family: var(--f-head); font-weight: 700; font-size: var(--fs-md); color: var(--c-ink);
}
.l-section--tint .c-quote { background: var(--c-surface); }

/* ---------- page head / hero ---------- */
.c-hero { position: relative; background: var(--c-surface); padding-block: var(--s-5); border-bottom: 1px solid var(--c-line); }
.c-hero--interactive { overflow: hidden; isolation: isolate; background: var(--c-hero-bg); }
.c-hero__backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.c-hero__inner { position: relative; z-index: 2; display: grid; gap: var(--s-5); }
.c-hero__h1 { font-size: var(--fs-sm); font-weight: 700; color: var(--c-muted); }
.c-hero__body > * + * { margin-top: var(--s-3); }
.c-hero__body > .c-breadcrumb { margin-top: 0; }
.c-hero__lead { margin-top: var(--s-3); font-size: var(--fs-md); max-width: 44rem; }
.c-hero .c-btn-row { margin-top: var(--s-4); }
.c-hero .c-btn { min-height: 50px; padding-inline: 1.75rem; font-size: var(--fs-md); }
.c-hero__sns { margin-top: var(--s-3); }
.c-hero__links { margin-top: var(--s-4); padding-top: var(--s-2); border-top: 1px solid var(--c-line); }
.c-hero__links ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-1) 0; padding: 0; margin: 0; font-size: var(--fs-sm); font-weight: 700; }
.c-hero__links li { margin: 0; padding-inline: var(--s-3); border-left: 1px solid var(--c-line-strong); line-height: 1.6; }
.c-hero__links li:first-child { padding-left: 0; border-left: 0; }
.c-hero__links a { color: var(--c-link); text-decoration: none; }
.c-hero__links a:hover { color: var(--c-link-hover); text-decoration: underline; }
@media (min-width: 1024px) {
  .c-hero { padding-block: var(--s-6); }
  .c-hero__inner { grid-template-columns: minmax(0, 56rem); }
  .c-hero--media .c-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: var(--s-6); }
}
/* MV mosaic: first shot full width, the rest side by side below it. Phones show the first shot only, above the copy. */
.c-hero__media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.c-hero__media > :first-child { grid-column: 1 / -1; }
.c-hero__media .c-ph { max-width: none; }
@media (max-width: 767px) {
  .c-hero--media .c-hero__media { order: -1; }
  .c-hero__media > :not(:first-child) { display: none; }
}

.c-pagehead { background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding-block: var(--s-4); }
.c-pagehead__title { font-size: var(--fs-2xl); font-weight: 800; margin-top: var(--s-1); line-height: 1.4; }
.c-pagehead__sub { margin-top: var(--s-2); font-size: var(--fs-md); font-weight: 700; color: var(--c-muted); line-height: 1.6; }
.c-page-intro { padding-block: var(--s-5) 0; }
.c-page-intro__lead { font-size: var(--fs-md); max-width: 44rem; }
@media (min-width: 768px) {
  .c-pagehead { padding-block: var(--s-5); }
  .c-pagehead__title { font-size: var(--fs-3xl); }
}
.c-breadcrumb { font-size: var(--fs-xs); color: var(--c-muted); margin-bottom: var(--s-2); }
.c-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); padding: 0; margin: 0; }
.c-breadcrumb li + li::before { content: "\203A"; margin-right: var(--s-2); }
.c-breadcrumb a { color: var(--c-link); text-decoration: none; }
.c-breadcrumb a:hover { text-decoration: underline; }

/* ---------- dark section overrides ---------- */
.l-section--dark {
  background: var(--c-dark);
  --c-ink: var(--c-on-dark); --c-text: var(--c-on-dark-muted); --c-muted: var(--c-on-dark-muted); --c-line: var(--c-on-dark-line);
  color: var(--c-text);
}
.l-section--dark .c-section-head { border-top-color: var(--c-on-dark); }
.l-section--dark .c-eyebrow { color: var(--c-accent); }
.l-section--dark a:not(.c-btn) { color: var(--c-on-dark); }
.l-section--dark .c-btn--outline { background: transparent; color: var(--c-on-dark); border-color: var(--c-on-dark); }
.l-section--dark .c-btn--outline:hover { background: var(--c-on-dark); color: var(--c-brand); }
.l-section--dark .c-card, .l-section--dark .c-quote, .l-section--dark .c-price, .l-section--dark .c-table-wrap,
.l-section--dark .c-flow li, .l-section--dark .c-faq__item, .l-section--dark .c-columns > .c-block, .l-section--dark .c-fold, .l-section--dark .c-block--meta {
  --c-ink: var(--c-ink-lt); --c-text: var(--c-text-lt); --c-muted: var(--c-muted-lt); --c-line: var(--c-line-lt); color: var(--c-text);
}
.l-section--dark .c-card a, .l-section--dark .c-quote a { color: var(--c-link); }
.l-section--dark .c-card { border-color: var(--c-surface); border-top-color: var(--c-accent); }
.l-section--dark .c-quote { background: var(--c-surface); border-left-color: var(--c-accent); }

/* ---------- cards ("articles": ruled boxes, no shadow) ---------- */
.l-grid > .c-card, .l-grid > .c-block { margin-top: 0; }
.c-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-line); border-top: var(--rule) solid var(--c-brand); border-radius: var(--r-sm);
  padding: var(--s-4); height: 100%;
}
.c-card--flat { background: var(--c-surface-2); }
.c-card > * + * { margin-top: var(--s-3); }
.c-card__head { display: flex; align-items: center; gap: var(--s-2); }
.c-card__num { font-size: var(--fs-sm); font-weight: 800; color: var(--c-brand); }
.c-card__title { font-size: var(--fs-lg); line-height: 1.4; color: var(--c-ink); margin-top: var(--s-1); }
.c-card__sub { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sm); color: var(--c-brand); line-height: 1.5; }
.c-card .c-prose { font-size: var(--fs-sm); line-height: 1.85; }
.c-card .c-prose > * + * { margin-top: var(--s-3); }
.c-card .c-block + .c-block { margin-top: var(--s-3); }
.c-card .c-block__title { font-size: var(--fs-sm); }
.c-card__more { margin-top: auto; padding-top: var(--s-2); }
.c-link-more { font-family: var(--f-head); font-size: var(--fs-sm); font-weight: 700; color: var(--c-link); text-decoration: underline; text-underline-offset: 0.2em; }
.c-link-more::after { content: " \203A"; }
.c-link-more:hover { color: var(--c-link-hover); }

.c-tag { display: inline-block; padding: 0.15rem 0.65rem; border-radius: var(--r-sm); background: var(--c-brand-tint); color: var(--c-brand); font-size: var(--fs-xs); font-weight: 700; }
.c-tag--accent { background: var(--c-accent-tint); color: var(--c-accent-ink); }
.c-tag-list { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; }

/* funnel: progressive emphasis */
.l-section--funnel .l-grid > .c-card:nth-child(1) { background: var(--c-surface); }
.l-section--funnel .l-grid > .c-card:nth-child(2) { background: var(--c-surface-2); }
.l-section--funnel .l-grid > .c-card:nth-child(3) { background: var(--c-brand-tint-2); }
.l-section--funnel .l-grid > .c-card:nth-child(4) { background: var(--c-brand); --c-ink: var(--c-on-dark); --c-text: var(--c-on-dark); color: var(--c-on-dark); border-color: var(--c-brand); border-top-color: var(--c-accent); }
.l-section--funnel .l-grid > .c-card:nth-child(4) .c-card__num { color: var(--c-accent); }
.l-section--funnel .l-grid > .c-card:nth-child(4) .c-card__sub { color: var(--c-on-dark-muted); }

/* ---------- progressive disclosure (c-fold) ---------- */
.c-fold { border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface-2); }
.c-fold + .c-fold { margin-top: var(--s-2); }
.c-fold[open] { background: var(--c-surface); border-color: var(--c-line-strong); }
.c-fold__sum {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: 0.55rem 0.85rem;
  font-family: var(--f-head); font-weight: 700; font-size: var(--fs-xs); color: var(--c-ink);
  user-select: none;
}
.c-fold__sum::-webkit-details-marker { display: none; }
.c-fold__title { display: inline-flex; align-items: center; gap: 0.4rem; }
.c-fold__sum::after { content: "+"; flex: none; font-size: var(--fs-lg); line-height: 1; color: var(--c-brand); }
.c-fold[open] > .c-fold__sum { border-bottom: 1px solid var(--c-line); }
.c-fold[open] > .c-fold__sum::after { content: "\2212"; }
.c-fold__body { padding: 0.75rem 0.85rem; font-size: var(--fs-sm); }
.c-fold__body > * + * { margin-top: var(--s-2); }

/* ---------- price tiles ---------- */
.c-price { padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--c-accent-tint); border: 1px solid var(--c-line); border-left: 4px solid var(--c-accent); }
.c-price .c-block__title { font-size: var(--fs-xs); color: var(--c-muted); }
.c-price .c-prose > p:first-child strong { display: block; font-family: var(--f-head); font-size: var(--fs-price); line-height: 1.25; color: var(--c-ink); }
.c-price + .c-price { margin-top: var(--s-2); }
.c-card > .c-block:not(.c-price) + .c-price,
.c-card > .c-fold + .c-price,
.c-card > .c-prose + .c-price { margin-top: auto; }

/* ---------- columns (role split) ---------- */
.c-columns { align-items: stretch; }
.c-columns > .c-block {
  margin-top: 0; padding: var(--s-4); border-radius: var(--r-sm);
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-top: var(--rule) solid var(--c-brand); display: flex; flex-direction: column;
}
.c-columns > .c-block + .c-block { margin-top: 0; }
.c-columns > .c-block:nth-child(2) { border-top-color: var(--c-accent); }
.c-columns > .c-block:nth-child(3) { border-top-color: var(--c-ink); }

/* ---------- steps / timeline ---------- */
.c-steps { position: relative; list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--s-3); }
.c-steps__item {
  position: relative; display: flex; flex-direction: column; gap: var(--s-1);
  padding: var(--s-3) var(--s-4); background: var(--c-surface);
  border: 1px solid var(--c-line); border-left: 4px solid var(--c-brand);
  border-radius: var(--r-sm); counter-increment: step;
}
.c-steps__label { font-weight: 800; font-size: var(--fs-xs); color: var(--c-brand); }
.c-steps__title { font-size: var(--fs-md); color: var(--c-ink); }
.c-steps__item .c-prose { font-size: var(--fs-sm); }
@media (min-width: 768px) {
  .c-steps--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
}

/* ---------- split / aside layouts ---------- */
.l-split__media { position: relative; }
@media (min-width: 768px) {
  .l-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s-5); align-items: start; }
  .l-split__media { position: sticky; top: var(--s-4); }
  .l-section--split-rev .l-split { grid-template-columns: 0.8fr 1.2fr; }
  .l-section--split-rev .l-split__text { order: 2; }
}
@media (max-width: 767px) {
  .l-split { display: grid; gap: var(--s-4); }
  .l-split__media .c-ph { max-width: 20rem; margin-inline: auto; }
}
.l-aside { display: grid; gap: var(--s-4); }
@media (min-width: 1024px) {
  .l-aside { grid-template-columns: 0.72fr 1.28fr; gap: var(--s-6); align-items: start; }
  .l-aside__head { position: sticky; top: var(--s-4); }
}

/* ---------- FAQ ---------- */
.c-faq { border-top: 1px solid var(--c-line-strong); }
.c-faq__item { border-bottom: 1px solid var(--c-line); background: var(--c-surface); padding-inline: var(--s-2); }
.c-faq__item[open] { background: var(--c-surface-2); }
.c-faq__q {
  list-style: none; cursor: pointer; padding: var(--s-3) 2.5rem var(--s-3) 0;
  position: relative; font-family: var(--f-head); font-weight: 700; font-size: var(--fs-md); color: var(--c-ink);
}
.c-faq__q::-webkit-details-marker { display: none; }
.c-faq__q::before {
  content: "Q"; display: inline-grid; place-items: center;
  width: 1.5rem; height: 1.5rem; margin-right: var(--s-2);
  border-radius: var(--r-sm); background: var(--c-brand); color: var(--c-on-dark);
  font-size: var(--fs-sm); font-weight: 800;
}
.c-faq__q::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 1.35rem; color: var(--c-brand); }
.c-faq__item[open] > .c-faq__q::after { content: "\2212"; }
.c-faq__a { padding: var(--s-3) 0; font-size: var(--fs-sm); border-top: 1px solid var(--c-line); }
.c-faq__a > * + * { margin-top: var(--s-2); }

/* ---------- tables ---------- */
.c-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--c-ink); border-bottom: 1px solid var(--c-line-strong); background: var(--c-surface); }
.c-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--c-surface); }
.c-table th, .c-table td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.c-table tr:last-child th, .c-table tr:last-child td { border-bottom: 0; }
.c-table thead th { background: var(--c-surface-2); color: var(--c-ink); font-weight: 800; white-space: nowrap; border-bottom: 1px solid var(--c-line-strong); }
.c-table tbody th { background: var(--c-surface-2); width: 11em; min-width: 7.5em; color: var(--c-ink); border-right: 1px solid var(--c-line); }
.c-dl { border-top: 2px solid var(--c-ink); }
.c-dl__row { display: grid; border-bottom: 1px solid var(--c-line); }
.c-dl__row dt { padding: var(--s-3) var(--s-3) 0; font-weight: 700; color: var(--c-ink); }
.c-dl__row dd { margin: 0; padding: var(--s-2) var(--s-3) var(--s-3); }
@media (min-width: 768px) {
  .c-dl__row { grid-template-columns: 14em 1fr; }
  .c-dl__row dt { background: var(--c-surface-2); padding: var(--s-3); }
  .c-dl__row dd { padding: var(--s-3); }
}

/* ---------- flow ---------- */
.c-flow { list-style: none; padding: 0; display: grid; gap: var(--s-2); counter-reset: flow; }
.c-flow li {
  counter-increment: flow; position: relative;
  padding: 0.65rem var(--s-3) 0.65rem 2.75rem;
  background: var(--c-surface); border: 1px solid var(--c-line); border-top: 2px solid var(--c-brand);
  border-radius: var(--r-sm); font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sm); color: var(--c-ink);
}
.c-flow li::before {
  content: counter(flow); position: absolute; left: 0.65rem; top: 50%; translate: 0 -50%;
  width: 1.5rem; height: 1.5rem; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--c-brand); color: var(--c-on-dark); font-size: var(--fs-xs); font-weight: 800;
}
.c-flow li:not(:last-child)::after { content: "\203A"; position: absolute; right: -0.55rem; top: 50%; translate: 0 -50%; z-index: 1; font-size: 1.4rem; font-weight: 800; color: var(--c-brand); }
@media (min-width: 768px) {
  .c-flow { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
}
@media (max-width: 767px) {
  .c-flow li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -1rem; translate: -50% 0; rotate: 90deg; }
}

/* ---------- image slot (c-ph): plain gray frame until a real image is dropped in ---------- */
.c-ph {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1);
  aspect-ratio: var(--ratio, 16 / 10); padding: var(--s-3);
  background: var(--c-ph); color: var(--c-ph-ink);
  border: 1px dashed var(--c-ph-line); border-radius: var(--r-sm); text-align: center;
}
.c-ph__icon svg { width: 1.75rem; height: 1.75rem; opacity: 0.7; }
.c-ph__label { font-weight: 700; font-size: var(--fs-xs); opacity: 0.75; }
.c-ph__brief { max-width: 26ch; font-size: var(--fs-xs); line-height: 1.5; color: var(--c-muted-lt); text-wrap: balance; }
.c-ph__file { font-size: var(--fs-xs); line-height: 1.5; color: var(--c-ph-ink); opacity: 0.8; word-break: break-all; }
.c-ph--wide { --ratio: 16 / 9; max-width: 48rem; }
.c-ph--square { --ratio: 1 / 1; }
.c-ph--portrait { --ratio: 4 / 4.5; }
.c-ph--card { --ratio: 16 / 10; }
.c-ph--r3x2 { --ratio: var(--ratio-3x2); }
.c-ph--r1x1 { --ratio: var(--ratio-1x1); }
.c-ph--r4x5 { --ratio: var(--ratio-4x5); }
.c-ph--r21x9 { --ratio: var(--ratio-21x9); }
@media (max-width: 767px) {
  .c-ph--r21x9 { --ratio: var(--ratio-21x9-sp); }
}
.c-ph--banner { margin-block: var(--s-5); }
.c-ph--img { padding: 0; border: 0; background: none; }
.c-ph--img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.c-card > .c-ph, .c-columns > .c-block > .c-ph { width: calc(100% + var(--s-4) * 2); margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) var(--s-3); border-width: 0 0 1px; border-radius: 0; }
@media (min-width: 768px) {
  .l-split__media .c-ph { max-width: none; }
}

/* ---------- scenes (when explicitly used) ---------- */
.l-section--scenes { padding-bottom: 0; }
.c-scene-intro { padding-bottom: var(--s-4); }
.c-scene { padding-block: var(--s-5); border-top: 1px solid var(--c-line); }
.c-scene--alt { background: var(--c-surface-2); }
.l-section--tint .c-scene--alt { background: var(--c-surface); }
.c-scene__inner { display: grid; gap: var(--s-4); align-items: start; }
.c-scene__head { display: flex; align-items: baseline; gap: var(--s-2); }
.c-scene__no { font-weight: 800; font-size: var(--fs-xl); line-height: 1; color: var(--c-brand); }
.c-scene__title { font-size: var(--fs-xl); }
.c-scene__body > * + * { margin-top: var(--s-3); }
@media (min-width: 1024px) {
  .c-scene__inner { grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr); gap: var(--s-5); }
  .c-scene__head { flex-direction: column; position: sticky; top: var(--s-4); }
  .c-scene--table .c-scene__inner, .c-scene--statement .c-scene__inner, .c-scene--cards .c-scene__inner { grid-template-columns: 1fr; gap: var(--s-3); }
  .c-scene--table .c-scene__head, .c-scene--statement .c-scene__head, .c-scene--cards .c-scene__head { flex-direction: row; position: static; }
}

/* ---------- chain / bubbles / statement / checks / meta ---------- */
.c-chain { list-style: none; padding: 0; margin-block: var(--s-2); display: grid; gap: var(--s-2); counter-reset: chain; }
.c-chain li {
  position: relative; counter-increment: chain; padding: 0.45rem var(--s-3) 0.45rem 2.5rem;
  background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: var(--c-ink); line-height: 1.5;
}
.c-chain li::before {
  content: counter(chain); position: absolute; left: 0.6rem; top: 50%; translate: 0 -50%;
  width: 1.25rem; height: 1.25rem; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--c-brand); color: var(--c-on-dark); font-size: var(--fs-xs); font-weight: 800;
}
@media (min-width: 768px) {
  .c-chain--cols { grid-template-columns: repeat(2, 1fr); }
}

.c-bubbles { list-style: none; padding: 0; margin-block: var(--s-2); display: grid; gap: var(--s-2); }
.c-bubbles li {
  position: relative; padding: 0.55rem 0.85rem; border-radius: var(--r-sm);
  background: var(--c-surface-2); border: 1px solid var(--c-line); border-left: 3px solid var(--c-line-strong);
  color: var(--c-ink); font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sm); line-height: 1.5;
}
@media (min-width: 768px) {
  .c-bubbles { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
}
.c-bubbles--strong li { background: var(--c-brand-tint-2); border-left-color: var(--c-brand); font-size: var(--fs-sm); }
.c-bubbles--strong li strong { color: inherit; }

.c-statement {
  padding: var(--s-3) var(--s-4); border-left: 4px solid var(--c-brand);
  background: var(--c-surface-2); font-family: var(--f-head); font-weight: 700; font-size: var(--fs-md); line-height: 1.65; color: var(--c-ink);
}
.l-section--tint .c-statement { background: var(--c-surface); }
.c-statement strong { color: inherit; }
.l-section--dark .c-statement { --c-ink: var(--c-ink-lt); }

.c-label { font-family: var(--f-head); font-weight: 800; font-size: var(--fs-xs); color: var(--c-brand); padding-bottom: 0.2rem; border-bottom: 1px solid var(--c-line); }
.c-label strong { color: inherit; }

/* Clean checklists without heavy background blocks */
.c-checks { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.c-checks li { position: relative; padding: 0.25rem 0 0.25rem 1.4rem; line-height: 1.55; font-size: var(--fs-sm); color: var(--c-text); }
.c-checks li + li { margin-top: 0; }
.c-checks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.65rem;
  width: 0.55rem; height: 0.32rem;
  border-left: 2px solid var(--c-brand); border-bottom: 2px solid var(--c-brand); rotate: -45deg;
}
.c-fold__body .c-checks li { font-size: var(--fs-sm); padding-block: 0.15rem; }
.c-fold__body .c-checks li::before { top: 0.5rem; }
@media (min-width: 768px) {
  .l-section > .l-container > .c-block--list > .c-prose > .c-checks { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-4); }
}

.c-block--meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3);
  padding: 0.5rem 0.75rem; border-radius: var(--r-sm); background: var(--c-surface-2); border: 1px solid var(--c-line);
}
.c-block--meta > * + * { margin-top: 0; }
.c-block--meta .c-block__title { flex: 0 1 auto; max-width: 100%; padding: 0.1rem 0.65rem; border-radius: var(--r-sm); background: var(--c-brand-tint); color: var(--c-brand); font-size: var(--fs-xs); }
.c-block--meta .c-prose { flex: 1 1 12rem; font-size: var(--fs-sm); }
.c-card .c-block--meta { margin-top: var(--s-2); }
.c-block--list > .c-block__title { margin-bottom: var(--s-2); }

/* ---------- CTA band ---------- */
.c-cta { background: var(--c-brand-tint-2); border: 1px solid var(--c-line); border-top: var(--rule) solid var(--c-brand); border-radius: var(--r-sm); padding: var(--s-5) var(--s-4); text-align: center; }
.c-cta__title { font-size: var(--fs-2xl); }
.c-cta > * + * { margin-top: var(--s-3); }
.c-cta .c-prose { margin-inline: auto; max-width: var(--w-read); text-align: center; }
.c-cta .c-btn-row { justify-content: center; }
.l-section--dark .c-cta { background: transparent; border: 0; padding-block: var(--s-3); }
.l-section--dark .c-cta__title { font-size: var(--fs-3xl); color: var(--c-on-dark); }
.l-section--dark .c-cta .c-btn { min-height: 54px; padding-inline: 2.25rem; font-size: var(--fs-md); }

/* ---------- footer (light, ruled): brand + button | link groups | address ---------- */
.c-footer { background: var(--c-surface-2); border-top: var(--rule) solid var(--c-ink); color: var(--c-text); padding-top: var(--s-6); }
.c-footer .c-logo { color: var(--c-brand); }
.c-footer__top { display: grid; gap: var(--s-6) var(--s-5); padding-bottom: var(--s-6); }
.c-footer__brand > * + * { margin-top: var(--s-3); }
.c-footer__lead { font-size: var(--fs-sm); line-height: 1.8; color: var(--c-muted); }
.c-footer__head { margin-bottom: var(--s-3); padding-bottom: var(--s-2); border-bottom: 1px solid var(--c-line-strong); font-size: var(--fs-sm); font-weight: 800; color: var(--c-ink); }
.c-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); font-size: var(--fs-sm); line-height: 1.7; }
.c-footer__list a { color: var(--c-text); text-decoration: none; }
.c-footer__list a:hover { color: var(--c-brand); text-decoration: underline; }
.c-footer__addr { font-style: normal; }
.c-footer__bar { border-top: 1px solid var(--c-line); background: var(--c-surface); }
.c-footer__copy { padding-block: var(--s-3); font-size: var(--fs-xs); color: var(--c-footer-copy); }
@media (min-width: 640px) { .c-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .c-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .c-footer__top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.3fr); }
  .c-footer__brand { grid-column: auto; }
}

/* ---------- forms ---------- */
.c-form { display: grid; gap: var(--s-5); }
.c-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--s-4); }
.c-fieldset--tight { gap: var(--s-2); }
.c-fieldset__legend { font-family: var(--f-head); font-size: var(--fs-lg); font-weight: 800; color: var(--c-ink); padding: 0 0 var(--s-2); border-bottom: 2px solid var(--c-ink); margin-bottom: var(--s-3); width: 100%; }
.c-field { display: grid; gap: var(--s-2); }
.c-field__label { font-weight: 700; color: var(--c-ink); }
.c-badge { display: inline-block; margin-left: var(--s-2); padding: 0.1rem 0.5rem; border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 700; vertical-align: 0.1em; }
.c-badge--req { background: var(--c-danger); color: var(--c-on-dark); }
.c-badge--opt { background: var(--c-surface-2); border: 1px solid var(--c-line); color: var(--c-muted); }
.c-field__hint { font-size: var(--fs-sm); color: var(--c-muted); }
.c-input, .c-select, .c-textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 1rem; font-size: 1rem;
  background: var(--c-surface); border: 1px solid var(--c-line-strong); border-radius: var(--r-sm);
  transition: border-color 0.15s;
}
.c-textarea { min-height: 10rem; resize: vertical; }
.c-input:focus, .c-select:focus, .c-textarea:focus { border-color: var(--c-brand); outline: 2px solid var(--c-brand); outline-offset: 0; }
.c-field.is-invalid .c-input, .c-field.is-invalid .c-select, .c-field.is-invalid .c-textarea { border-color: var(--c-danger); background: var(--c-danger-tint); }
.c-field__error { color: var(--c-danger); font-size: var(--fs-sm); font-weight: 700; }
.c-field__error:empty { display: none; }
.c-choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.c-choice { position: relative; }
.c-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.c-choice span { display: inline-flex; align-items: center; min-height: 42px; padding: 0.45rem 0.95rem; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); background: var(--c-surface); font-size: var(--fs-sm); transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.c-choice input:checked + span { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-dark); font-weight: 700; }
.c-choice input:focus-visible + span { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.c-field.is-invalid .c-choice span { border-color: var(--c-danger); }
.c-datetime { display: grid; gap: var(--s-2); grid-template-columns: 1fr 1fr; }
.c-consent { display: flex; gap: var(--s-2); align-items: flex-start; }
.c-consent input { width: 1.4rem; height: 1.4rem; margin-top: 0.3rem; accent-color: var(--c-brand); }
.c-alert { padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--c-danger-tint); border: 1px solid var(--c-danger); border-left-width: 4px; color: var(--c-ink); }
.c-alert__title { font-weight: 800; color: var(--c-danger); }
.c-alert ul { margin: var(--s-2) 0 0; padding-left: 1.3em; }
.c-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.c-notebox { background: var(--c-brand-tint-2); border: 1px solid var(--c-line); border-left: 4px solid var(--c-brand); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); font-size: var(--fs-sm); }
.c-notebox > * + * { margin-top: var(--s-2); }
.c-notebox__title { font-family: var(--f-head); font-weight: 800; color: var(--c-ink); }
.c-notebox ul { padding-left: 1.3em; }
.c-methodnotes { margin-top: var(--s-2); }
.c-form-card { background: var(--c-surface); border: 1px solid var(--c-line); border-top: var(--rule) solid var(--c-brand); border-radius: var(--r-sm); padding: var(--s-4); }
@media (min-width: 768px) { .c-form-card { padding: var(--s-5); } }
.c-summary { border-top: 2px solid var(--c-ink); }
.c-summary__row { display: grid; border-bottom: 1px solid var(--c-line); }
.c-summary__row dt { padding: var(--s-3) var(--s-3) 0; font-weight: 700; color: var(--c-ink); }
.c-summary__row dd { margin: 0; padding: var(--s-2) var(--s-3) var(--s-3); white-space: pre-wrap; }
@media (min-width: 768px) {
  .c-summary__row { grid-template-columns: 16em 1fr; }
  .c-summary__row dt, .c-summary__row dd { padding: var(--s-3); }
  .c-summary__row dt { background: var(--c-surface-2); }
}
.c-turnstile { display: flex; justify-content: center; margin-block: var(--s-4); }
.c-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; align-items: center; }
.c-actions--split { flex-direction: row-reverse; }
.c-fieldset.is-muted > .c-field { opacity: 0.55; }

/* stepper */
.c-stepper { display: flex; list-style: none; padding: 0; gap: var(--s-2); justify-content: center; font-size: var(--fs-sm); }
.c-stepper__item { display: flex; align-items: center; gap: var(--s-2); color: var(--c-muted); }
.c-stepper__item + .c-stepper__item::before { content: ""; width: 2rem; height: 2px; background: var(--c-line); }
.c-stepper__num { width: 1.75rem; height: 1.75rem; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--c-surface-2); border: 1px solid var(--c-line); font-weight: 700; }
.c-stepper__item.is-current { color: var(--c-ink); font-weight: 700; }
.c-stepper__item.is-current .c-stepper__num { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-dark); }
.c-stepper__item.is-done .c-stepper__num { background: var(--c-brand-tint); border-color: var(--c-brand-tint); color: var(--c-brand); }

/* ---------- pricing page parts: subnav / price tag / sheet rows / stacked rows / estimates ---------- */
.l-section[id] { scroll-margin-top: 3.5rem; }

/* sticky in-page links under the hero (same links as the manuscript's ページ内リンク) */
.c-subnav { position: sticky; top: 0; z-index: 30; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.c-subnav__list > * + * { margin-top: 0; }
.c-subnav__list ul { list-style: none; display: flex; padding: 0; margin: 0; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.c-subnav__list ul::-webkit-scrollbar { display: none; }
.c-subnav__list li + li { margin-top: 0; }
.c-subnav__list a { display: block; padding: var(--s-3) var(--s-3); font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink); text-decoration: none; border-bottom: 3px solid transparent; }
.c-subnav__list li:first-child a { padding-left: 0; }
.c-subnav__list a:hover { color: var(--c-brand); border-bottom-color: var(--c-brand); }

/* amount stated in bold ("100,000円（税抜）", "別途お見積もり") */
.c-pricetag { padding-left: var(--s-2); border-left: 4px solid var(--c-accent); font-family: var(--f-head); font-weight: 800; font-size: var(--fs-price); line-height: 1.3; color: var(--c-ink); }
.c-pricetag strong { color: inherit; }
.c-price .c-pricetag { padding-left: 0; border-left: 0; }

/* sheet: side title | main body, one ruled row per item, no boxes */
.c-sheet { display: block; border-top: 2px solid var(--c-ink); }
.c-card--sheet { display: grid; gap: var(--s-3); height: auto; background: none; border: 0; border-bottom: 1px solid var(--c-line); border-radius: 0; padding: var(--s-4) 0; }
.c-card--sheet > * + * { margin-top: 0; }
.c-card--sheet .c-card__title { font-size: var(--fs-xl); }
.c-sheet__side > * + * { margin-top: var(--s-1); }
.c-sheet__main > * + * { margin-top: var(--s-3); }
.c-sheet__main .c-prose { font-size: var(--fs-md); }
.c-sheet__main .c-note { font-size: var(--fs-xs); }
@media (min-width: 768px) {
  .c-card--sheet { grid-template-columns: minmax(11rem, 0.3fr) minmax(0, 1fr); gap: var(--s-5); }
  .c-sheet__side { position: sticky; top: calc(4rem + var(--s-3)); align-self: start; }
}

/* rows: stacked ruled items (small number/label above the title), lists in two columns */
.c-rows { display: block; border-top: 2px solid var(--c-ink); }
.c-rows + .c-block, .c-rows + .c-rows { margin-top: var(--s-5); }
.c-card--rows { display: block; height: auto; background: none; border: 0; border-bottom: 1px solid var(--c-line); border-radius: 0; padding: var(--s-4) 0; }
.c-card--rows > * + * { margin-top: var(--s-2); }
.c-card--rows > .c-card__head + .c-card__title { margin-top: 0; }
.c-card--rows .c-card__num { font-size: var(--fs-xs); }
.c-card--rows .c-card__title { font-size: var(--fs-lg); margin-top: 0; }
.c-card--rows .c-prose { font-size: var(--fs-sm); }
@media (min-width: 768px) {
  .c-card--rows .c-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); }
}
.c-card--sheet .c-block__title, .c-card--rows .c-block__title { font-size: var(--fs-xs); font-weight: 800; color: var(--c-brand); }

/* service detail: l-aside with the title column pinned below the sticky subnav */
@media (min-width: 1024px) {
  .l-aside--sheet .l-aside__head { top: calc(4rem + var(--s-3)); }
}

/* amounts: last column of every price table is the amount */
.c-card--sheet .c-table th:last-child, .c-card--sheet .c-table td:last-child,
.c-card--receipt .c-table th:last-child, .c-card--receipt .c-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-card--sheet .c-table td:last-child, .c-card--receipt .c-table td:last-child { font-weight: 800; color: var(--c-ink); }
.c-card--sheet .c-table-wrap, .c-card--receipt .c-table-wrap { border-top-width: 1px; }
.c-card--receipt .c-table tbody tr:last-child th, .c-card--receipt .c-table tbody tr:last-child td { background: var(--c-brand-tint-2); border-top: 2px solid var(--c-ink); }
.c-card.c-card--receipt > .c-block.c-price, .c-card.c-card--receipt > .c-block:not(.c-price) + .c-price, .c-card.c-card--receipt > .c-fold + .c-price, .c-card.c-card--receipt > .c-prose + .c-price { margin-top: var(--s-3); background: none; border: 0; padding: 0; }
.l-aside--sheet .l-aside__head .c-prose { font-size: var(--fs-sm); }
.l-aside--sheet .l-aside__head .c-prose > * + * { margin-top: var(--s-2); }
.c-card--receipt .c-price .c-block__title { font-weight: 800; color: var(--c-brand); font-size: var(--fs-xs); }

/* steps in one row (APPROACH 01-05 etc.) */
@media (min-width: 768px) and (max-width: 1023px) {
  .c-steps--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .c-steps--row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); }
  .c-steps--row .c-steps__item { border-left: 1px solid var(--c-line); border-top: 4px solid var(--c-brand); padding: var(--s-3); }
}
.c-steps--row .c-steps__title { font-size: var(--fs-md); line-height: 1.5; }

.c-steps--row.c-steps--n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-steps--row.c-steps--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.c-steps--row.c-steps--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* article template: sticky table of contents + content column (wide screens only) */
.c-toc { display: none; }
@media (min-width: 1280px) {
  .l-toc { display: grid; grid-template-columns: 14rem minmax(0, 1fr); max-width: calc(var(--w-max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); column-gap: var(--s-5); }
  .c-toc { display: block; position: sticky; top: var(--s-4); align-self: start; max-height: calc(100vh - var(--s-6)); overflow-y: auto; padding-block: var(--s-6); }
  .c-toc__list { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--c-line); font-size: var(--fs-sm); line-height: 1.5; }
  .c-toc__list li + li { margin-top: 0; }
  .c-toc__list a { display: block; padding: 0.35rem 0 0.35rem var(--s-3); margin-left: -2px; border-left: 2px solid transparent; color: var(--c-muted); text-decoration: none; }
  .c-toc__list a:hover { color: var(--c-brand); border-left-color: var(--c-brand); }
  .l-toc__main .l-container { max-width: none; padding-inline: 0; }
  .l-toc__main .l-section--tint { margin-inline: calc(var(--s-4) * -1); padding-inline: var(--s-4); }
}

/* section catch copy: a real sub-heading under the H2, not a tiny label */
.c-catch .c-label, .c-catch .c-statement { padding: 0; border: 0; background: none; font-size: var(--fs-2xl); font-weight: 800; line-height: 1.5; color: var(--c-brand); }
.c-catch .c-label strong, .c-catch .c-statement strong { color: inherit; }

/* process written as "A ↓ B ↓ C": one numbered chain */
.c-flow--chain { margin-block: var(--s-3); }
.l-section > .l-container > .c-block > .c-prose:has(> .c-flow--chain) { max-width: none; }
@media (min-width: 768px) {
  .c-flow--chain { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
}

/* approach steps: the "大切にしていること" note sits at the card bottom as a plain ruled line, not a nested box */
.c-steps--row .c-steps__item { display: flex; flex-direction: column; }
.c-steps--row .c-block--meta { display: block; margin-top: auto; padding: var(--s-2) 0 0; border: 0; border-top: 1px solid var(--c-line); border-radius: 0; background: none; }
.c-steps--row .c-block--meta .c-block__title { padding: 0; background: none; color: var(--c-brand); }
.c-steps--row .c-statement { padding: 0; border: 0; background: none; font-size: var(--fs-sm); line-height: 1.75; }

.c-flow__arrow { display: none; }

/* no box inside a box: bold statements keep a plain bar inside quotes/cards, and quote text is one uniform style */
.c-quote .c-statement, .c-quote .c-label, .c-quote .c-note { padding: 0; border: 0; background: none; font-size: inherit; line-height: 1.7; color: inherit; }
.c-quote > * + * { margin-top: var(--s-3); }
.c-card .c-statement, .c-columns .c-statement, .c-fold .c-statement, .c-steps__item .c-statement { background: none; border-left-width: 3px; padding: 0 0 0 var(--s-2); }

/* ruled: newspaper-style columns (heavy top rule, label above title, no box) - the alternative to boxed cards */
.l-grid:has(> .c-card--ruled) { gap: var(--s-6) var(--s-5); }
.c-card--ruled { background: none; border: 0; border-top: var(--rule) solid var(--c-ink); border-radius: 0; padding: var(--s-4) 0 0; }
.c-card--ruled > * + * { margin-top: var(--s-3); }
.c-card--ruled .c-card__num { font-size: var(--fs-sm); font-weight: 800; color: var(--c-brand); }
.c-card--ruled .c-card__title { font-size: var(--fs-xl); margin-top: var(--s-2); }
.c-card--ruled .c-card__sub { font-size: var(--fs-md); margin-top: var(--s-2); }
.c-card--ruled .c-prose { font-size: var(--fs-md); line-height: 1.9; }
@media (min-width: 1024px) {
  .l-grid--5:has(> .c-card--ruled) > :nth-child(n) { grid-column: span 2; }
}
.l-section--tint .c-card--ruled { background: none; }

/* consecutive bold lines: one stacked list, accent bar, no boxes */
.c-keylines { list-style: none; padding: 0; margin-block: var(--s-3); display: grid; gap: var(--s-2); border-left: 4px solid var(--c-brand); padding-left: var(--s-3); }
.c-keylines li { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: var(--fs-lg); line-height: 1.55; color: var(--c-ink); }
.c-keylines li strong { color: inherit; }
.l-section--dark .c-keylines { border-left-color: var(--c-accent); }
.l-section--dark .c-keylines li { color: var(--c-on-dark); }

/* vertical rhythm: components (grids, quotes, buttons, flows, tables...) never sit 8px from their neighbours */
.l-section .c-block > * + :is(.l-grid, .c-block, .c-quote, .c-btn-row, .c-flow, .c-steps, .c-table-wrap, .c-bubbles, .c-keylines, .c-ph, .c-columns, .c-faq, .c-sheet, .c-rows, .c-cta, .c-statement, .c-note),
.l-section .c-block > :is(.l-grid, .c-block, .c-quote, .c-btn-row, .c-flow, .c-steps, .c-table-wrap, .c-bubbles, .c-keylines, .c-ph, .c-columns, .c-faq, .c-sheet, .c-rows, .c-cta, .c-statement, .c-note) + * { margin-top: var(--s-4); }
.l-section .c-block > .c-block__title + * { margin-top: var(--s-3); }
.l-section .c-block > :is(.c-block, .c-flow, .c-steps, .c-sheet, .c-rows) + :is(.c-btn-row, .c-quote, .c-block) { margin-top: var(--s-5); }
.l-section .c-prose > :is(.l-grid, .c-block, .c-quote, .c-btn-row, .c-flow, .c-steps, .c-table-wrap, .c-bubbles, .c-keylines, .c-ph, .c-columns, .c-faq, .c-sheet, .c-rows, .c-cta, .c-statement, .c-note) + *, .l-section .c-prose > * + :is(.l-grid, .c-block, .c-quote, .c-btn-row, .c-flow, .c-steps, .c-table-wrap, .c-bubbles, .c-keylines, .c-ph, .c-columns, .c-faq, .c-sheet, .c-rows, .c-cta, .c-statement, .c-note) { margin-top: var(--s-4); }
.l-section .c-prose > .c-note { margin-top: var(--s-3); }
.c-card .c-block > * + *, .c-fold__body > * + *, .c-faq__a > * + * { margin-top: var(--s-2); }
.c-card .c-prose > * + * { margin-top: var(--s-3); }
.c-card .c-prose > * + :is(.c-table-wrap, .c-flow, .c-btn-row) { margin-top: var(--s-3); }

.l-section .c-prose > .c-pricetag + *, .l-section .c-prose > * + .c-pricetag { margin-top: var(--s-3); }
.c-steps__item { gap: var(--s-2); }
.l-section .l-aside__body > * + * { margin-top: var(--s-4); }
.l-section .l-aside__body > .c-block + .c-block { margin-top: var(--s-4); }
.c-card > .c-btn-row, .c-card > * + .c-btn-row { margin-top: var(--s-3); }
.l-section .c-card .c-sheet__main > .c-block + .c-block, .l-section .c-sheet__main > .c-block + .c-block { margin-top: var(--s-4); }

/* readability floor: notes 13px, multi-line bold statements/bubbles/checks/subheads at 1.7+ line height */
.c-note { font-size: var(--fs-sm); line-height: 1.75; }
.c-statement, .c-bubbles li, .c-quote { line-height: 1.75; }
.c-checks li, .c-card__sub { line-height: 1.7; }
.c-checks { gap: 0.5rem; }

/* journey: vertical timeline (label | rail | body); actions become chips */
.c-steps--timeline { gap: 0; }
.c-steps--timeline .c-steps__item { position: relative; display: block; padding: 0 0 var(--s-6) var(--s-5); background: none; border: 0; border-radius: 0; }
.c-steps--timeline .c-steps__item::before { content: ""; position: absolute; left: 0.45rem; top: 0.5rem; bottom: 0; width: 2px; background: var(--c-line-strong); }
.c-steps--timeline .c-steps__item::after { content: ""; position: absolute; left: 0; top: 0.35rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--c-brand); box-shadow: 0 0 0 4px var(--c-surface); }
.c-steps--timeline .c-steps__item:last-child { padding-bottom: 0; }
.c-steps--timeline .c-steps__item:last-child::before { display: none; }
.c-steps--timeline .c-steps__label { font-size: var(--fs-sm); }
.c-steps--timeline .c-steps__title { font-size: var(--fs-2xl); line-height: 1.4; }
.c-steps--timeline .c-card__sub { font-size: var(--fs-md); }
.c-steps--timeline .c-prose { font-size: var(--fs-md); line-height: 1.9; max-width: var(--w-read); }
.c-steps--timeline .c-block > .c-block__title { font-size: var(--fs-xs); font-weight: 800; color: var(--c-brand); }
.c-steps--timeline .c-checks { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.c-steps--timeline .c-checks li { padding: 0.3rem 0.9rem; border: 1px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-surface); font-size: var(--fs-sm); }
.c-steps--timeline .c-checks li::before { display: none; }
.l-section--tint .c-steps--timeline .c-steps__item::after { box-shadow: 0 0 0 4px var(--c-surface-2); }
@media (min-width: 768px) {
  .c-steps--timeline .c-steps__item { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: var(--s-6); padding-left: 0; }
  .c-steps--timeline .c-steps__item > * { grid-column: 2; }
  .c-steps--timeline .c-steps__item > .c-steps__label { grid-column: 1; grid-row: 1; padding-top: 0.2rem; text-align: right; }
  .c-steps--timeline .c-steps__item::before { left: calc(8.5rem + var(--s-6) / 2 - 1px); }
  .c-steps--timeline .c-steps__item::after { left: calc(8.5rem + var(--s-6) / 2 - 0.5rem); }
}

/* consultation band (dark): message left, worries right */
.c-cta--split { display: grid; gap: var(--s-6); text-align: left; padding-inline: 0; }
.c-cta--split > * + * { margin-top: 0; }
.c-cta__main > * + *, .c-cta__aside > * + * { margin-top: var(--s-4); }
.c-cta--split .c-cta__title { font-size: var(--fs-3xl); line-height: 1.4; }
.c-cta--split .c-prose { margin-inline: 0; max-width: none; text-align: left; }
.c-cta--split .c-btn-row, .c-cta__actions { justify-content: flex-start; }
.c-cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.c-cta__main .c-note { font-size: var(--fs-sm); }
.l-section--dark .c-cta .c-catch .c-label, .l-section--dark .c-cta .c-catch .c-statement,
.l-section--dark .c-cta .c-statement { padding: 0; border: 0; background: none; color: var(--c-on-dark); }
.l-section--dark .c-cta .c-catch .c-label, .l-section--dark .c-cta .c-catch .c-statement { font-size: var(--fs-2xl); }
.l-section--dark .c-cta .c-bubbles li { background: rgb(255 255 255 / 8%); border: 1px solid var(--c-on-dark-line); border-left: 3px solid var(--c-accent); color: var(--c-on-dark); }
.l-section--dark .c-cta .c-bubbles { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .c-cta--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
}

/* ---------- reveal ---------- */
.js .js-reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.js .js-reveal.is-in { opacity: 1; transform: none; }

/* ---------- section spacing & misc ---------- */
.c-block + .c-block { margin-top: var(--s-4); }
.c-block__label { font-weight: 800; color: var(--c-brand); font-size: var(--fs-xs); }
.c-block__title { font-size: var(--fs-lg); }
.c-block > * + * { margin-top: var(--s-2); }
.c-sns-list { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; }
.l-read-left { max-width: var(--w-read); }
.l-section > .l-container > * + * { margin-top: var(--s-4); }
.l-section > .l-container > .c-section-head { margin-bottom: 0; }
.l-section > .l-container > .c-section-head + * { margin-top: var(--s-4); }
.l-section > .l-container > .c-prose,
.l-section > .l-container > .c-block > .c-prose { max-width: var(--w-read); }
.l-section .l-grid + *, .l-section .c-flow + *, .l-section .c-steps + *, .l-section .c-table-wrap + * { margin-top: var(--s-4); }
.l-section .c-quote { margin-top: var(--s-4); }

@media (max-width: 479px) {
  .c-table th, .c-table td { padding: 0.65rem 0.5rem; }
  .c-table tbody th { width: 6em; min-width: 0; }
  .c-table:has(thead th:nth-child(3)) { table-layout: fixed; }
  .c-table:has(thead th:nth-child(3)) thead th { white-space: normal; }
  .c-table:has(thead th:nth-child(4)) { table-layout: auto; min-width: 34rem; }
  .c-table:has(thead th:nth-child(4)) thead th, .c-table:has(thead th:nth-child(4)) tbody th { white-space: nowrap; }
  .c-datetime { grid-template-columns: 1fr; }
}

/* ---------- top page layout fixes ---------- */
/* components placed inside prose must not inherit the list indent (chips sat 1.4em in from the text edge) */
.c-prose :is(.c-bubbles, .c-checks) { padding-left: 0; }

/* quote chips: 3 -> one row, 4 -> 2x2 (4 across on wide screens); never a 3+1 orphan */
@media (min-width: 768px) {
  .c-bubbles--n3 { grid-template-columns: 1fr; }
  .c-bubbles--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .c-bubbles--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .c-bubbles--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* a lead that carries chips spans the container; its text lines keep the reading width */
.l-section > .l-container > .c-prose:has(> .c-bubbles) { max-width: none; }
.l-section > .l-container > .c-prose:has(> .c-bubbles) > :not(.c-bubbles) { max-width: var(--w-read); }

/* WHAT IS SNS MARKETING: intro text beside the 4-stage flow */
.l-funnel-intro { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) {
  .l-funnel-intro { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--s-6); align-items: start; }
}
.c-flow.c-flow--vertical { grid-template-columns: 1fr; gap: var(--s-4); }
.c-flow.c-flow--vertical li { padding: var(--s-3) var(--s-3) var(--s-3) 3.5rem; font-size: var(--fs-md); line-height: 1.6; }
.c-flow.c-flow--vertical li::before { left: var(--s-3); width: 1.75rem; height: 1.75rem; font-size: var(--fs-sm); }
.c-flow.c-flow--vertical li:not(:last-child)::after {
  content: "\203A"; right: auto; left: calc(var(--s-3) + 0.875rem); top: auto; bottom: -1.45rem;
  translate: -50% 0; rotate: 90deg;
}

/* section sub-heads read as sub-heads, not as card titles */
.l-section--funnel .c-block > .c-block__title,
.l-section--price .c-block > .c-block__title,
.l-section--ruled .c-block > .c-block__title { font-size: var(--fs-xl); }
.l-section--price .c-block > .c-block > .c-block__title { font-size: var(--fs-lg); }

/* a lone price box in a text block stays compact instead of spanning the container */
.c-block > .c-block.c-price:not(:has(.c-table-wrap)) { max-width: 30rem; }
.c-card .c-block.c-price:not(:has(.c-table-wrap)) { max-width: none; }

/* price tables: amount column right-aligned, tabular figures */
.c-price .c-table th:last-child, .c-price .c-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-price .c-table td:last-child { font-weight: 800; color: var(--c-ink); }

/* notes under a price box / plan pair */
.c-price-notes { margin-top: var(--s-2); }
.c-price-notes > .c-note { margin-top: 0; }
.c-price-notes > .c-note + .c-note { margin-top: var(--s-1); }

/* price section: notes list in two columns, closing buttons on one row */
@media (min-width: 768px) {
  .l-section--price .c-block--list > .c-prose > .c-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); }
}

/* 2-column card grid whose odd last card spans the full row */
@media (min-width: 768px) {
  .l-grid--last-wide > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* price boxes sit under their text with a clear gap; table boxes follow the text instead of dropping to the card bottom */
.c-card > .c-prose:has(+ .c-price), .c-card > .c-fold:has(+ .c-price) { margin-bottom: var(--s-4); }
.c-card > .c-block.c-price:has(.c-table-wrap) { margin-top: var(--s-4); }
@media (min-width: 768px) {
  .l-grid--last-wide > :last-child:nth-child(odd) .c-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); }
  .l-grid--last-wide > :last-child:nth-child(odd) > .c-block.c-price { margin-top: var(--s-4); max-width: 30rem; }
}
/* two-column price tables: the name column takes the room, the amount stays beside it */
.c-price .c-table:not(:has(thead th:nth-child(3))) tbody th { width: 68%; min-width: 0; }

/* focus chrome (confirm / thanks): logo only, copyright bar only */
.c-header--focus .c-header__inner { justify-content: flex-start; }
.c-footer--focus { margin-top: var(--s-6); }

/* prevent decorative step arrows and numbers from polluting copy-paste into AI chats */
.c-flow__arrow, .c-card__num, .c-scene__no { -webkit-user-select: none; user-select: none; }

