/*
  site.css — 全スタイル（base -> layout -> components -> utilities）
  参照: _仕様書/03〜06・09_CodingGuideline.md
  トークンは tokens.css を先に読み込むこと。
*/

/* =========================================================
   1. RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-background);
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding-left: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }

/* 本文中のリンクは常時下線（05 §10 / 08 §6） */
.c-prose a,
.news-list a {
  color: var(--color-action);
  text-decoration: underline;
  transition: color var(--dur-fast) var(--ease-out);
}
.c-prose a:hover,
.news-list a:hover {
  color: var(--color-action-dark);
}
.c-prose p + p,
.c-prose ul,
.c-prose ol {
  margin-top: var(--space-16);
}
.c-prose ul {
  list-style: disc;
  padding-left: 1.5em;
}
.c-prose ol {
  list-style: decimal;
  padding-left: 1.5em;
}
.c-prose ol ol {
  list-style: decimal;
  margin-top: var(--space-8);
}
.c-prose li + li {
  margin-top: var(--space-8);
}
.c-prose img {
  border-radius: var(--radius-md);
  margin-bottom: var(--space-16);
}
.map-embed {
  border: 0;
  border-radius: var(--radius-md);
}
/* 更新履歴用の定義リスト（バージョン+日付=dt / 変更内容=dd。05 §16） */
.c-prose .history-list dt {
  font-weight: 700;
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border);
}
.c-prose .history-list dt:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.c-prose .history-list dd {
  margin-left: 0;
  margin-top: var(--space-4);
  color: var(--color-text-sub);
}
.link-more {
  display: inline-block;
  color: var(--color-action);
  font-weight: 700;
}

h1, h2, h3, h4 { line-height: 1.3; }
h1 { font-size: var(--text-h1); font-weight: 800; }
h2 { font-size: var(--text-h2); font-weight: 700; }
h3 { font-size: var(--text-h3); font-weight: 600; }
h4 { font-size: var(--text-h4); font-weight: 600; }

/* 強調は太字化だけでなく色でも区別する（改訂 → 12§27） */
strong, b, .c-prose strong { font-weight: 700; color: var(--color-primary-dark); }

.u-latin { font-family: var(--font-latin); }
.u-tabular { font-variant-numeric: tabular-nums; }

/* 二重フォーカスリング（03 §11） */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-background), 0 0 0 4px var(--color-action);
  border-radius: var(--radius-sm);
}

/* stickyヘッダーによる遮蔽防止（08 §5 / 2.4.11） */
[id], a, button, input, textarea, select {
  scroll-margin-top: var(--scroll-margin);
}

/* ページ内アンカー（Hero「製品を見る」→#products 等）のスムーズスクロール。
   reduced-motion 時は下のブロックで auto に上書きされる（08 §11 準拠） */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* prefers-reduced-motion（08 §11） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   2. LAYOUT
   ========================================================= */
.l-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.l-section {
  padding-block: var(--section-y);
}
.l-section--lg {
  padding-block: var(--section-y-lg);
}
.l-section--surface {
  background: var(--color-surface);
}

.l-grid {
  display: grid;
  gap: var(--space-24);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .l-grid--cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .l-grid--cards { grid-template-columns: repeat(3, 1fr); }
}

.l-prose {
  max-width: 68ch;
}

.l-container--narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.l-container--md {
  max-width: var(--container-md);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* --- Split layout（Hero構造の汎用化。改訂 → 12§27） --- */
.l-split {
  display: grid;
  gap: var(--space-48);
  align-items: center;
}
@media (min-width: 768px) {
  .l-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-64);
  }
  .l-split--text-lead {
    grid-template-columns: 3fr 2fr;
  }
  .l-split--reverse .l-split__media {
    order: -1;
  }
}

/* --- Large Statement セクション（改訂 → 12§27） --- */
.l-statement__lead {
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.4;
  max-width: 28ch;
  text-wrap: balance;
}

/* --- Problem List（問題提起セクションの視覚化。既存文の再配置のみ・新規CSSトークンなし。改訂 → 12§32） --- */
.problem-list {
  display: grid;
  gap: var(--space-16);
  grid-template-columns: 1fr;
  margin-block: var(--space-24);
  list-style: none;
  padding-left: 0;
}
@media (min-width: 640px) {
  .problem-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.problem-list__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-16) var(--space-24);
  color: var(--color-text-sub);
}

/* --- Metric Cards（詳細tableの前に置く数値サマリー。改訂 → 12§27） --- */
.metric-cards {
  display: grid;
  gap: var(--space-16);
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: var(--space-32);
}
@media (min-width: 640px) {
  .metric-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-24);
  }
}
.metric-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-24) var(--space-16);
  text-align: center;
}
.metric-card__value {
  display: block;
  font-family: var(--font-latin);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: var(--text-h1);
  letter-spacing: -0.01em;
  color: var(--color-primary);
}
.metric-card__label {
  margin-top: var(--space-8);
  font-size: var(--text-small);
  color: var(--color-text-sub);
}

/* =========================================================
   3. COMPONENTS
   ========================================================= */

/* --- Scroll sentinels（IntersectionObserverでのスクロール監視用。09 §4-6） --- */
.scroll-sentinel {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  visibility: hidden;
  pointer-events: none;
}
.scroll-sentinel--top { top: 0; }
.scroll-sentinel--350 { top: 350px; }

/* --- SkipLink (06 §1) --- */
.skip-link {
  position: absolute;
  left: var(--space-16);
  top: -100px;
  background: var(--color-background);
  color: var(--color-action);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  z-index: var(--z-toast);
  font-weight: 700;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus {
  top: var(--space-16);
}

/* --- SiteHeader (05 §1 / 06 §2) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}
.site-header__logo {
  flex-shrink: 0;
}
.site-header__logo img {
  height: 32px;
  width: auto;
}
@media (min-width: 1024px) {
  .site-header__logo img { height: 40px; }
}
.site-header__nav {
  display: none;
}
@media (min-width: 1024px) {
  .site-header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-24);
  }
}
.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}
.site-header__nav-link,
.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-8) 0;
  border-bottom: 2px solid transparent;
}
.site-header__nav-link:hover,
.mega-trigger:hover {
  color: var(--color-action);
  text-decoration: underline;
}
.site-header__nav-link[aria-current="true"],
.mega-trigger[aria-current="true"] {
  border-bottom-color: var(--color-action);
  color: var(--color-action);
}
.mega-trigger svg {
  transition: transform var(--dur-base) var(--ease-out);
}
.mega-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.site-header .site-header__cta {
  display: none;
}
@media (min-width: 1024px) {
  .site-header .site-header__cta { display: inline-flex; }
}
.site-header__hamburger {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  .site-header__hamburger { display: none; }
}

/* --- MegaMenu (05 §11 / 06 §3) --- */
.mega-menu-item {
  position: relative;
}
.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: var(--z-dropdown);
  padding: var(--space-16);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-spring);
}
.mega-panel[hidden] {
  display: none;
}
.mega-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}
.mega-panel--list {
  width: 320px;
}
.mega-panel--products {
  width: 720px;
}
.mega-panel__list {
  display: flex;
  flex-direction: column;
}
.mega-panel__link {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.mega-panel__link:hover {
  background: var(--color-primary-light);
}
.mega-panel__products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-16);
}
.mega-panel__product img {
  aspect-ratio: 16 / 9;
  width: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.mega-panel__product-name {
  font-weight: 700;
  margin-top: var(--space-8);
}
.mega-panel__product-desc {
  font-size: var(--text-small);
  color: var(--color-text-sub);
  margin-top: var(--space-4);
}
.mega-panel__trial-link {
  display: inline-block;
  margin-top: var(--space-8);
  color: var(--color-action);
  text-decoration: underline;
  font-size: var(--text-small);
}

/* --- MobileDrawer (06 §4) --- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: var(--z-overlay);
}
.drawer-overlay[hidden] { display: none; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--color-background);
  z-index: var(--z-drawer);
  overflow-y: auto;
  padding: var(--space-24);
  transform: translateX(0);
}
.drawer[hidden] { display: none; }
.drawer__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: auto;
}
.drawer__list {
  margin-top: var(--space-16);
  display: flex;
  flex-direction: column;
}
.drawer__section-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
}
.drawer__section-trigger svg {
  transition: transform var(--dur-base) var(--ease-out);
}
.drawer__section-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.drawer__section-panel[hidden] { display: none; }
.drawer__section-panel {
  display: flex;
  flex-direction: column;
  padding-block: var(--space-8);
}
.drawer__section-panel a {
  padding: 12px 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.drawer__link {
  display: flex;
  align-items: center;
  height: 48px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 700;
}
.drawer__cta {
  margin-top: var(--space-24);
  width: 100%;
}
.drawer__tel {
  display: block;
  margin-top: var(--space-16);
  text-align: center;
  color: var(--color-action);
}
body.has-drawer-open {
  overflow: hidden;
}

/* --- Breadcrumb (05 §8 / 06 §5) --- */
.breadcrumb {
  padding-block: var(--space-16);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--text-small);
}
.breadcrumb__list li {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.breadcrumb__list li:not(:first-child)::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--color-border);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.breadcrumb a {
  color: var(--color-action);
  text-decoration: underline;
}
.breadcrumb [aria-current="page"] {
  color: var(--color-text-sub);
}

/* --- PageHeader (05 §9) --- */
.page-header {
  background: var(--color-primary);
  height: 104px;
  display: flex;
  align-items: center;
}
@media (min-width: 1024px) {
  .page-header { height: 160px; }
}
.page-header h1 {
  color: var(--color-text-inverse);
}
/* サブライン表示時（MAY）は高さを1行分+gapのみ最小限拡張。Hero化はしない（改訂 → 12§34） */
.page-header--with-sub {
  height: 128px;
}
@media (min-width: 1024px) {
  .page-header--with-sub { height: 184px; }
}
.page-header__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.page-header__sub {
  color: var(--color-text-inverse-muted);
  font-size: var(--text-body);
}

/* --- Hero (05 §3) --- */
.hero {
  padding-block: var(--space-96);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  gap: var(--space-32);
  align-items: center;
}
@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 3fr 2fr; /* コピー主体へ再構成（改訂 → 12§27。旧: 1fr 1fr） */
    gap: var(--space-64);
  }
}
.hero__title {
  font-size: var(--text-display);
  color: var(--color-primary-dark);
  text-wrap: balance;
  font-weight: 800;
  line-height: 1.25;
}
/* タグラインの語句を単位化し、語句の途中改行（「確かな技術」で切れる等）を防ぐ。
   spanが原子となるため折返しは語句の切れ目（読点の後）でのみ発生し、
   狭幅（320px等）でも横スクロールにならない。text-wrap:balanceとも両立する。 */
.hero__title-phrase {
  white-space: nowrap;
}
.hero__sub {
  margin-top: var(--space-16);
  color: var(--color-text);
  max-width: 52ch;
}
.hero__cta {
  margin-top: var(--space-24);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}
.hero__media img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.hero__decor {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  z-index: -1;
}

/* --- StatsBar (06 §17) --- */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-32);
  padding-block: var(--space-32);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stats-bar__item {
  flex: 1 1 160px;
}
.stats-bar__value {
  font-family: var(--font-latin);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}
.stats-bar__label {
  font-size: var(--text-small);
  color: var(--color-text-sub);
  margin-top: var(--space-4);
}

/* --- StatsBar band（ネイビー全幅バリアント。03§6改訂と対の「面のレイヤー」強化 → 12§24） --- */
.stats-band {
  background: var(--color-primary);
  padding-block: var(--space-48);
}
.stats-band .stats-bar {
  border: none;
  padding-block: 0;
}
.stats-band .stats-bar__value {
  color: var(--color-text-inverse);
}
.stats-band .stats-bar__label {
  color: var(--color-text-inverse-muted);
}

/* --- Buttons (05 §5 / 06 §7) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  white-space: nowrap;
  /* transform系はease-spring（微小オーバーシュート）で「生きた」質感に。色/影はease-outのまま（改訂 → 12§27） */
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-snappy) var(--ease-spring);
}
.btn svg { flex-shrink: 0; }
.btn--sm {
  height: 40px;
  padding: 8px 20px;
}
/* 塗りボタンは Elevation 1→2 の奥行きで主要動線を引き立てる（03 §6 の2段階内） */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-cta {
  background: var(--color-action);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-cta:hover { background: var(--color-action-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-action);
}
.btn-ghost:hover { background: var(--color-primary-light); }
.btn:active { transform: translateY(1px); }
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn--block {
  width: 100%;
}

/* --- Card (05 §4 / 06 §8) --- */
.card {
  position: relative;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
  overflow: hidden;
}
.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-brand-blue);
}
.card:hover .card__thumb,
.card:focus-within .card__thumb {
  transform: scale(1.04);
}
/* 「詳しく見る →」等の矢印はhoverで前進（マイクロインタラクション。装飾のみ・aria-hidden） */
.card__link [aria-hidden="true"],
.link-more [aria-hidden="true"] {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.card:hover .card__link [aria-hidden="true"],
.card:focus-within .card__link [aria-hidden="true"],
.link-more:hover [aria-hidden="true"],
.link-more:focus-visible [aria-hidden="true"] {
  transform: translateX(var(--space-4));
}
.card__thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-bottom: 3px solid var(--color-brand-blue);
  transition: transform var(--dur-base) var(--ease-spring);
}
.card__body {
  padding: var(--space-24);
}
.card__title {
  font-size: var(--text-h3);
}
.card__desc {
  margin-top: var(--space-8);
  color: var(--color-text-sub);
}
.card__link {
  display: inline-block;
  margin-top: var(--space-16);
  color: var(--color-action);
  font-weight: 700;
}
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card--info {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: none;
  padding: var(--space-24);
}
.card--info:hover { transform: none; box-shadow: none; }

/* --- SpecTable / SectionHeading tables (05 §6 / 06 §10) --- */
/* モバイルファースト: デフォルトはth/td縦積み（05 §6）。640px以上で表本来のレイアウトへ（09 §3-5: min-widthのみ） */
.spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td {
  display: block;
  width: 100%;
}
.spec-table tr {
  border-bottom: 1px solid var(--color-border);
}
.spec-table th,
.spec-table td {
  padding: 12px 16px;
  border-bottom: none;
  text-align: left;
  vertical-align: top;
}
.spec-table {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.spec-table th {
  background: var(--color-surface);
  font-weight: 700;
}
.spec-table td .u-tabular {
  font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) {
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td {
    display: revert;
    width: revert;
  }
  .spec-table tr {
    border-bottom: none;
  }
  .spec-table th,
  .spec-table td {
    border-bottom: 1px solid var(--color-border);
  }
  .spec-table th {
    width: 25%;
    min-width: 160px;
  }
}

/* --- SectionHeading (06 §11) --- */
.section-heading {
  position: relative;
  padding-bottom: var(--space-16);
  margin-bottom: var(--space-32);
}
/* CTA直前の付随セクション（お知らせ・関連情報）を静かに扱う。タグはh2のまま視覚のみ縮小（07§10準拠。改訂 → 12§32） */
h2.section-heading--minor {
  font-size: var(--text-h3);
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-16);
}
.section-heading--minor::after {
  width: 32px;
  height: 2px;
}
.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--color-brand-blue);
}

/* --- Forms (05 §7 / 06 §12) --- */
.form {
  max-width: 680px;
}
.field {
  margin-bottom: var(--space-24);
}
.field__label {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 700;
  margin-bottom: var(--space-8);
}
.field__hint {
  font-size: var(--text-small);
  color: var(--color-text-sub);
  margin-bottom: var(--space-8);
}
.field__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-background);
}
textarea.field__input {
  height: auto;
  padding: 12px 16px;
}
.field__input:focus-visible {
  border-color: var(--color-action);
}
.field__input[aria-invalid="true"] {
  border: 2px solid var(--color-error);
}
.field__error {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--color-error);
  font-size: var(--text-small);
  margin-top: var(--space-8);
}
.field__radio-group,
.field__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.field__radio-item,
.field__checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  min-height: 44px;
}
.badge-required {
  display: inline-flex;
  align-items: center;
  background: var(--color-brand-red);
  color: var(--color-text-inverse);
  font-size: var(--text-label);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.step-indicator {
  display: flex;
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}
.step-indicator li {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.step-indicator__circle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.step-indicator [aria-current="step"] .step-indicator__circle {
  background: var(--color-action);
  color: var(--color-text-inverse);
  border-color: var(--color-action);
}
.step-indicator .is-done .step-indicator__circle {
  background: var(--color-success);
  color: var(--color-text-inverse);
  border-color: var(--color-success);
}
.form-actions {
  display: flex;
  gap: var(--space-16);
  flex-direction: column-reverse;
  justify-content: flex-end;
}
.form-actions .btn { width: 100%; }
@media (min-width: 640px) {
  .form-actions {
    flex-direction: row;
  }
  .form-actions .btn { width: auto; }
}
.error-summary {
  border: 2px solid var(--color-error);
  border-radius: var(--radius-md);
  padding: var(--space-16) var(--space-24);
  margin-bottom: var(--space-24);
}
.error-summary h2 {
  color: var(--color-error);
  font-size: var(--text-h4);
}
.error-summary ul {
  margin-top: var(--space-8);
}
.error-summary a {
  color: var(--color-error);
  text-decoration: underline;
}

/* --- Alert (05 / 06 §13) --- */
.alert {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
  padding: var(--space-16);
  border-radius: var(--radius-sm);
  border-left: 3px solid;
}
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border-color: var(--color-success);
}
.alert-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  border-color: var(--color-warning);
}
.alert-error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border-color: var(--color-error);
}

/* --- NewsList (05 §14 / 06 §9) --- */
.news-list li {
  display: flex;
  gap: var(--space-16);
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-border);
}
.news-list time {
  flex: 0 0 7em;
  font-family: var(--font-latin);
  font-variant-numeric: tabular-nums;
  color: var(--color-text-sub);
}

/* --- CTABand (05 §12 / 06 §16) --- */
.cta-band {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding-block: var(--space-64);
  text-align: center;
}
.cta-band h2 { color: var(--color-text-inverse); }
.cta-band p {
  color: var(--color-text-inverse-muted);
  margin-top: var(--space-8);
}
.cta-band__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-16);
  margin-top: var(--space-24);
}
.cta-band .btn-primary {
  background: var(--color-text-inverse);
  color: var(--color-primary);
}
.cta-band .btn-primary:hover { background: var(--color-surface); }
.cta-band .btn-ghost {
  border-color: var(--color-text-inverse);
  color: var(--color-text-inverse);
}
.cta-band .btn-ghost:hover { background: var(--color-overlay-inverse); }
.cta-band__tel {
  display: block;
  margin-top: var(--space-24);
  color: var(--color-text-inverse);
}

/* --- SiteFooter (05 §2 / 06 §6) --- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding-block: var(--space-64);
}
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid {
  display: grid;
  gap: var(--space-32);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.site-footer__heading {
  font-weight: 700;
  margin-bottom: var(--space-16);
}
.site-footer__list li {
  margin-bottom: var(--space-8);
}
.site-footer__contact address {
  margin-top: var(--space-8);
  line-height: 1.8;
}
.site-footer__bottom {
  margin-top: var(--space-24);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-divider-inverse);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-16);
  font-size: var(--text-small);
}
.site-footer__bottom-links {
  display: flex;
  gap: var(--space-16);
}

/* --- Gallery (06 §18) --- */
.gallery {
  display: flex;
  gap: var(--space-16);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-8);
}
.gallery__item {
  flex: 0 0 80%;
  max-width: 640px;
  scroll-snap-align: start;
}
.gallery__item img {
  border-radius: var(--radius-md);
}

/* --- Slideshow（自動送り＋停止操作。05 §15・06 §18・08 §11） --- */
.c-slideshow {
  position: relative;
}
.c-slideshow.is-enhanced {
  display: flex;
  flex-direction: column;
}
/* Showcase修飾子: 単独セクションに大きく配置する際の中央寄せ・余白（改訂 → 12§47。新規トークンなし） */
.c-slideshow--showcase {
  max-width: 900px;
  margin-inline: auto;
}
.c-slideshow.is-enhanced .c-slideshow__viewport {
  order: 1;
}
.c-slideshow.is-enhanced .c-slideshow__controls {
  order: 2;
}
.c-slideshow.is-enhanced .c-slideshow__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  background: var(--color-background);
}
.c-slideshow.is-enhanced .gallery {
  gap: 0;
  padding-bottom: 0;
  scrollbar-width: none;
  /* mandatory はプログラム的smoothスクロールを引き戻すため、強化時は proximity にする
     （手動スワイプ時のスナップは維持しつつ、自動送りのアニメーションを両立） */
  scroll-snap-type: x proximity;
}
.c-slideshow.is-enhanced .gallery::-webkit-scrollbar {
  display: none;
}
.c-slideshow.is-enhanced .gallery__item {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;
}
.c-slideshow.is-enhanced .gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}
.c-slideshow__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-background);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0.92;
  transition: opacity var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  z-index: 1;
}
.c-slideshow__nav:hover {
  opacity: 1;
  background: var(--color-primary-light);
}
.c-slideshow__nav--prev {
  left: var(--space-16);
}
.c-slideshow__nav--next {
  right: var(--space-16);
}
.c-slideshow__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-16);
  margin-top: var(--space-16);
}
.c-slideshow__play {
  min-height: 32px;
  padding: 6px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-background);
  color: var(--color-action);
  font-size: var(--text-small);
  font-weight: 700;
  font-family: var(--font-sans);
  transition: background var(--dur-fast) var(--ease-out);
}
.c-slideshow__play:hover {
  background: var(--color-primary-light);
}
.c-slideshow__dots {
  display: flex;
  gap: var(--space-4);
}
.c-slideshow__dot {
  position: relative;
  width: 24px;
  height: 24px;
  background: transparent;
  border-radius: var(--radius-full);
}
.c-slideshow__dot::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  transition: background var(--dur-fast) var(--ease-out);
}
.c-slideshow__dot.is-active::before {
  background: var(--color-action);
}

/* --- ScrollTopButton (06 §19) --- */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out);
  z-index: var(--z-header);
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Badge / Pill (06 §20) --- */
.badge-info {
  display: inline-flex;
  align-items: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: var(--text-label);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

/* --- VideoEmbed facade (06 §15) --- */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
.video-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-embed__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Scroll reveal (03 §7) --- */
.js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   4. UTILITIES
   ========================================================= */
.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.u-text-center { text-align: center; }
.u-text-right { text-align: right; }
.u-mt-32 { margin-top: var(--space-32); }
.u-mt-48 { margin-top: var(--space-48); }
.u-flex-wrap { display: flex; gap: var(--space-16); flex-wrap: wrap; }
.u-rotate-180 { transform: rotate(180deg); }
