@charset "UTF-8";
/* ==========================================================================
   PRESTAIL SYSTEM — Corporate site design system
   単一スタイルシート。フレームワーク非依存。
   1. Tokens  2. Reset  3. Typography  4. Layout  5. Components
   6. Sections  7. Forms  8. Utilities  9. Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand — ロゴのネイビーとオレンジに由来 */
  --brand-900: #081a3d;
  --brand-800: #0a2255;
  --brand-700: #0c2e7a;
  --brand:     #0c419a;
  --brand-600: #1657c4;
  --brand-100: #dce7fa;
  --brand-050: #eef3fc;

  --accent:     #f5820b;
  --accent-600: #d96d05;
  --accent-100: #ffe6c7;
  --accent-050: #fff5e9;

  /* Neutrals */
  --ink:      #101418;
  --ink-2:    #333d4b;
  --muted:    #5a6472;
  --line:     #e3e8ef;
  --line-2:   #f0f3f8;
  --bg:       #ffffff;
  --surface:  #f6f8fb;
  --surface-2:#eef2f8;

  /* On-dark (footer / CTA は常にダーク面) */
  --on-dark:      #ffffff;
  --on-dark-soft: rgba(255, 255, 255, .72);
  --on-dark-line: rgba(255, 255, 255, .16);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(8, 26, 61, .06), 0 1px 3px rgba(8, 26, 61, .04);
  --shadow-md: 0 4px 12px rgba(8, 26, 61, .07), 0 12px 28px rgba(8, 26, 61, .06);
  --shadow-lg: 0 12px 24px rgba(8, 26, 61, .09), 0 32px 64px rgba(8, 26, 61, .10);

  /* Shape */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Rhythm */
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --gutter:    clamp(1.25rem, .75rem + 2vw, 2rem);
  --header-h:  72px;

  /* Type */
  --font-sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont,
               "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI",
               Meiryo, sans-serif;
  --fs-hero:  clamp(2.125rem, 1.15rem + 4.1vw, 3.9rem);
  --fs-h1:    clamp(1.85rem, 1.25rem + 2.6vw, 3rem);
  --fs-h2:    clamp(1.6rem, 1.2rem + 1.9vw, 2.45rem);
  --fs-h3:    clamp(1.125rem, 1.02rem + .5vw, 1.375rem);
  --fs-lead:  clamp(1rem, .96rem + .28vw, 1.125rem);
  --fs-small: .875rem;

  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

/* ダークモード — トークンのみ差し替える */
@media (prefers-color-scheme: dark) {
  :root {
    --brand-100: #21376a;
    --brand-050: #16233d;

    --ink:       #e9edf4;
    --ink-2:     #c3cbd8;
    --muted:     #97a2b3;
    --line:      #26303f;
    --line-2:    #1d2634;
    --bg:        #0d131d;
    --surface:   #131b28;
    --surface-2: #18212f;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .38), 0 12px 28px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, .45), 0 32px 64px rgba(0, 0, 0, .38);

    color-scheme: dark;
  }
}

/* 2. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .02em;
  /* 和文の約物を詰めて欧文混植のリズムを整える */
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--brand-600); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--brand-100); color: var(--brand-900); }

/* 3. Typography ------------------------------------------------------------ */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
  text-wrap: balance;
  /* 対応ブラウザでは文節単位で改行し、和文の可読性を上げる */
  word-break: auto-phrase;
}
h1 { font-size: var(--fs-h1); line-height: 1.32; }
h2 { font-size: var(--fs-h2); line-height: 1.38; }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-2);
  line-height: 2;
}

/* セクション見出しのラベル（小さいラテン + オレンジの罫） */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  margin: 0 0 1rem;
  color: var(--brand);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); }
.section-head p { margin-top: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* 4. Layout ---------------------------------------------------------------- */
.container { width: min(100% - (var(--gutter) * 2), 1160px); margin-inline: auto; }
.container--narrow { width: min(100% - (var(--gutter) * 2), 800px); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--surface { background: var(--surface); }

main { display: block; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: .75rem 1.25rem;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* 5. Components ------------------------------------------------------------ */

/* 5.1 Header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: auto; height: 26px; }
.brand__dark { display: none; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, .1rem + 1.4vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  position: relative;
  display: block;
  padding: .5rem .25rem;
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--brand); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { margin-left: .5rem; }

/* ハンバーガー */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; display: block; width: 20px; height: 12px; margin: 0 auto; }
.nav-toggle__bars i {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 5px; }
.nav-toggle__bars i:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    margin: 0;
    padding: 1rem var(--gutter) 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line-2); }
  .nav__list li:last-child { border-bottom: 0; }
  .nav__link { padding: 1rem .25rem; font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* 5.2 Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.625rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1em; height: 1em; flex: 0 0 auto; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(12, 65, 154, .25);
}
.btn--primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 10px 24px rgba(12, 65, 154, .32); }

.btn--accent {
  background: var(--accent);
  color: #241300;
  box-shadow: 0 6px 16px rgba(245, 130, 11, .28);
}
.btn--accent:hover { background: var(--accent-600); color: #fff; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-050); }

.btn--on-dark {
  background: rgba(255, 255, 255, .1);
  border-color: var(--on-dark-line);
  color: #fff;
}
.btn--on-dark:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.btn--sm { padding: .625rem 1.125rem; font-size: .875rem; }
.btn--lg { padding: 1.0625rem 2rem; font-size: 1rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }

/* テキストリンク（矢印つき） */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}
.arrow-link .icon { width: 1.05em; height: 1.05em; transition: transform .22s var(--ease); }
.arrow-link:hover .icon { transform: translateX(4px); }

/* 5.3 Cards ---------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }

.card__num {
  position: absolute;
  left: 1rem; top: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  background: rgba(8, 26, 61, .72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1;
}

.card__body { flex: 1 1 auto; display: flex; flex-direction: column; padding: clamp(1.4rem, 1rem + 1vw, 1.9rem); }
.card__body h3 { margin-bottom: .875rem; }
.card__body .arrow-link { margin-top: auto; padding-top: 1.25rem; }

/* 箇条書き（チェックマーク） */
.ticks { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.ticks li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: .4rem;
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.8;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .68em;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 2px;
  background: var(--accent);
}
.ticks li:last-child { margin-bottom: 0; }

/* 5.4 Tables --------------------------------------------------------------- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}
.spec-table th {
  width: 11rem;
  padding-right: 1.5rem;
  color: var(--brand);
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line); }

@media (max-width: 620px) {
  .spec-table th, .spec-table td { display: block; width: auto; }
  .spec-table th { padding-bottom: .1rem; border-bottom: 0; }
  .spec-table td { padding-top: .2rem; }
  .spec-table tr:first-child td { border-top: 0; }
}

/* 6. Sections -------------------------------------------------------------- */

/* 6.1 Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}
/* 背景：ネイビーとオレンジの淡い光 + 微細なグリッド */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: -2;
  background:
    radial-gradient(58% 55% at 78% 12%, color-mix(in srgb, var(--brand) 16%, transparent) 0%, transparent 62%),
    radial-gradient(45% 45% at 8% 88%, color-mix(in srgb, var(--accent) 13%, transparent) 0%, transparent 66%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.hero__title {
  margin-bottom: 1.5rem;
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: .005em;
}
.hero__title .accent {
  background: linear-gradient(transparent 68%, color-mix(in srgb, var(--accent) 42%, transparent) 68%);
}
.hero__lead { max-width: 32rem; margin-bottom: 2.25rem; }
.hero__actions { margin-bottom: 0; }

/* ヒーロー画像 */
.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__glow {
  position: absolute;
  inset: 8% -8% -12% 6%;
  z-index: -1;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  filter: blur(46px);
  opacity: .32;
}
/* 画像に重ねる小さなバッジ */
.hero__badge {
  position: absolute;
  right: clamp(-.5rem, -1rem + 1vw, 1rem);
  bottom: -1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.hero__badge strong { display: block; font-size: 1.4rem; line-height: 1.2; color: var(--brand); }
.hero__badge span { font-size: .75rem; color: var(--muted); letter-spacing: .06em; line-height: 1.5; }
.hero__badge .icon { width: 26px; height: 26px; color: var(--accent); }
@media (max-width: 900px) { .hero__badge { display: none; } }

/* 6.2 Stats ---------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: clamp(3rem, 2rem + 4vw, 5rem) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}
/* dt(ラベル) → dd(数値) の順で書き、表示だけ数値を上にする */
.stats__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: clamp(1.35rem, 1rem + 1.2vw, 2rem);
  background: var(--bg);
  text-align: center;
}
.stats__value {
  display: block;
  margin: 0;
  color: var(--brand);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.stats__value small { font-size: .5em; font-weight: 600; margin-left: .15em; }
.stats__label { display: block; margin-top: .35rem; color: var(--muted); font-size: .8125rem; letter-spacing: .08em; }
@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr; }
}

/* 6.3 汎用グリッド --------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, .75rem + 1.6vw, 2rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* メディア + テキストの交互配置 */
.feature { align-items: center; }
.feature__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
@media (min-width: 761px) {
  .feature--reverse .feature__media { order: 2; }
}

/* 6.4 強み（アイコン付きリスト） -------------------------------------------- */
.pillar { padding: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); height: 100%; }
.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 1.15rem;
  border-radius: 12px;
  background: var(--brand-050);
  color: var(--brand);
}
.pillar__icon .icon { width: 24px; height: 24px; }
.pillar h3 { margin-bottom: .7rem; }
.pillar p { color: var(--muted); font-size: .9375rem; }

/* 6.5 CTA ------------------------------------------------------------------ */
.cta {
  position: relative;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 60%, var(--brand) 100%);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  right: -8%; top: -60%;
  width: 46rem; height: 46rem;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 130, 11, .35) 0%, transparent 62%);
}
.cta h2 { color: #fff; margin-bottom: 1rem; }
.cta p { color: var(--on-dark-soft); margin-bottom: 2rem; }
.cta .eyebrow { color: var(--accent-100); }
.cta__inner { max-width: 40rem; }

/* 6.6 ページヘッダー（下層ページ） ------------------------------------------ */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 3vw, 5rem));
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -5% -60% 40%;
  height: 120%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--brand) 14%, transparent) 0%, transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero p { max-width: 40rem; margin-top: 1rem; }

/* パンくず */
.breadcrumb { margin-bottom: 1.25rem; font-size: .8125rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

/* 6.7 Footer --------------------------------------------------------------- */
.site-footer {
  padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  background: var(--brand-900);
  color: var(--on-dark-soft);
  font-size: .9375rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

.site-footer__brand img { height: 28px; width: auto; margin-bottom: 1.25rem; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer h2 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--on-dark-line);
  font-size: .8125rem;
  letter-spacing: .02em;
}
.site-footer__bottom p { margin: 0; }

/* 7. Forms ----------------------------------------------------------------- */
.form-card {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: .5rem; }
.field__label { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; font-weight: 600; }
.field__req {
  padding: .1rem .45rem;
  border-radius: 4px;
  background: var(--accent-050);
  color: var(--accent-600);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.field__opt {
  padding: .1rem .45rem;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 600;
}

.input, .textarea, select.input {
  width: 100%;
  padding: .875rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.input:hover, .textarea:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.textarea { resize: vertical; min-height: 11rem; }

.field.is-invalid .input, .field.is-invalid .textarea { border-color: #d23b3b; }
.field.is-invalid .input:focus, .field.is-invalid .textarea:focus { box-shadow: 0 0 0 3px rgba(210, 59, 59, .18); }

.field__error {
  display: none;
  align-items: center;
  gap: .4rem;
  color: #c62828;
  font-size: .8125rem;
  line-height: 1.6;
}
.field.is-invalid .field__error { display: flex; }
@media (prefers-color-scheme: dark) {
  .field__error { color: #ff8f8f; }
  .field.is-invalid .input, .field.is-invalid .textarea { border-color: #ff8f8f; }
}

/* ボットよけ（画面外に隠す。表示させない） */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form__note { font-size: .8125rem; color: var(--muted); line-height: 1.8; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .5rem; }

/* 送信ステータス */
.form-status { display: none; padding: 1.15rem 1.35rem; border-radius: var(--r); font-size: .9375rem; line-height: 1.8; }
.form-status.is-visible { display: block; }
.form-status--success { background: var(--brand-050); border: 1px solid var(--brand-100); color: var(--brand-700); }
.form-status--error { background: #fdf1f1; border: 1px solid #f6d5d5; color: #a52222; }
@media (prefers-color-scheme: dark) {
  .form-status--success { color: var(--ink); }
  .form-status--error { background: #2a1616; border-color: #5a2a2a; color: #ffb3b3; }
}

/* 送信完了の大きめメッセージ */
.form-done { text-align: center; padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0; }
.form-done__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand);
}
.form-done__icon .icon { width: 32px; height: 32px; }

/* スピナー */
.spinner {
  width: 1em; height: 1em;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 8. Utilities ------------------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.text-sm { font-size: .875rem; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* 見出しのすぐ下に置くリード文 */
h1 + .lead, h2 + .lead { margin-top: 1.25rem; }

.btn-row--center { justify-content: center; }
.grid--top { align-items: start; }

/* 区切り線 */
.rule { margin: 3rem 0; border: 0; border-top: 1px solid var(--line); }

/* 全幅の帯写真 */
.banner { width: 100%; height: clamp(220px, 32vw, 420px); object-fit: cover; }

/* 写真を並べる（EC事業の補足カット等） */
.gallery { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); align-items: stretch; }
.gallery figure { margin: 0; }

/* 404 のように見出しから始まるページ */
.section--error { padding-top: calc(var(--header-h) + 5rem); }

.map-embed {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 本文中心のページ（プライバシーポリシー等） */
.prose h2 { margin: 2.75rem 0 1rem; font-size: 1.3rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose dl { margin: 0; }
.prose dt { font-weight: 600; margin-top: 1.25rem; }
.prose dd { margin: .25rem 0 0; color: var(--ink-2); }

/* 大きなエラーコード（404） */
.error-code {
  font-size: clamp(4rem, 2rem + 12vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 9. Motion ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* 子要素を順番に出す */
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* JSが無い環境では常に表示する */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* 10. ダークモードの個別調整 ------------------------------------------------ */
@media (prefers-color-scheme: dark) {
  .brand__light { display: none; }
  .brand__dark { display: block; }
  .hero__frame img, .feature__media img, .card__media img { filter: brightness(.92); }
  .btn--ghost:hover { background: var(--surface-2); }
  .site-footer { background: #070d16; border-top: 1px solid var(--line); }
  .stats { background: var(--line); }
  .card__num { background: rgba(0, 0, 0, .6); }
}

/* 印刷 */
@media print {
  .site-header, .site-footer, .cta, .nav-toggle, .skip-link { display: none !important; }
  body { color: #000; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
