/* =============================================================
   agadaga.inc corporate site
   - build 不要の native CSS。Cloudflare Pages にそのまま置ける
   - 配色は「宍道湖の夕陽（accent）」＋「杜の深緑（ink 系）」の 1 アクセント固定
   - 角丸ルール: 操作要素 = pill / 面・画像 = 18px / 入力欄 = 10px
   ============================================================= */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  --bg:          #f4f7f2;
  --bg-alt:      #e9ede5;
  --surface:     #fbfcf9;
  --ink:         #1b2a22;
  --ink-muted:   #4b5a52;
  --ink-faint:   #5f6d65;
  --placeholder: #5f6d65;
  --line:        rgba(27, 42, 34, .13);
  --line-strong: rgba(27, 42, 34, .22);

  --accent:        #b55a23;
  --accent-strong: #96461a;
  --accent-soft:   rgba(181, 90, 35, .10);
  --on-accent:     #fffaf5;

  --scrim:       linear-gradient(185deg, rgba(14, 26, 21, .30) 0%, rgba(14, 26, 21, .68) 100%);
  --duotone:     linear-gradient(195deg, rgba(23, 53, 42, .10), rgba(23, 53, 42, .38));

  --r:      18px;
  --r-in:   10px;
  --r-pill: 999px;

  --shadow: 0 18px 44px -22px rgba(22, 42, 33, .40);

  /* 縦のリズム。この 2 つ以外の値を見出し回りに使わない */
  --gap-title: 1.25rem;                      /* 見出し → 直下の文 */
  --gap-block: clamp(2.6rem, 5vw, 3.6rem);   /* 見出しブロック → 中身（図・カード・一覧）*/

  --wrap: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-en: "Outfit", "Zen Kaku Gothic New", system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (max-width: 1023px) { html { scroll-padding-top: 80px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.95;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* clip はスクロールコンテナを作らないので、sticky の挙動を壊さない */
@supports (overflow-x: clip) { body { overflow-x: clip; } }

img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.32; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent-soft); color: var(--ink); }

:where(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--ink);
  padding: .7rem 1.1rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); font-size: .85rem;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
@media (max-width: 767px) { .wrap { width: calc(100% - 2.5rem); } }

.section { padding-block: clamp(6rem, 12vw, 11rem); }

.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.65rem);
  letter-spacing: -.03em;
  line-height: 1.36;
}

.eyebrow {
  font-family: var(--font-en);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

.link {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s var(--ease), color .25s var(--ease);
  padding-bottom: 2px;
}
.link:hover { color: var(--accent); background-size: 100% 2px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  white-space: nowrap;
  padding: .95rem 1.9rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: 500 .95rem/1 var(--font-jp);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn--primary:active { transform: scale(.985); }
.btn--ghost { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--ghost:active { transform: scale(.985); }
.btn--sm { padding: .62rem 1.25rem; font-size: .87rem; }
.btn--block { width: 100%; margin-top: .5rem; }
.btn[disabled] { opacity: .62; cursor: progress; transform: none; }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent; color: var(--ink);
  font: 500 .82rem/1 var(--font-jp);
  cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .2s var(--ease);
}
.iconbtn:hover { border-color: var(--line-strong); background: var(--accent-soft); }
.iconbtn:active { transform: scale(.94); }
.iconbtn i { font-size: 1.15rem; }

/* ---------- nav ---------- */
.nav-sentinel { position: absolute; top: 0; height: 1px; width: 100%; }

.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
/* backdrop-filter は使わない。position: sticky と body の overflow-x と組み合わさると
   ブラウザによってページ全体にフィルタが乗る合成バグを踏む */
.nav.is-stuck {
  background: var(--bg);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  height: 72px; display: flex; align-items: center; gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand--footer img { height: 28px; }
@media (max-width: 767px) { .brand img { height: 28px; } }

.nav__links { margin-left: auto; display: flex; align-items: center; gap: 1.9rem; }
.nav__links a {
  color: var(--ink-muted); text-decoration: none; font-size: .9rem; white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { color: var(--on-accent) !important; }
.nav__tools { display: flex; align-items: center; gap: .5rem; }
.nav__burger { display: none; }

@media (max-width: 1023px) {
  .nav__inner { height: 64px; gap: .75rem; }
  .nav__burger { display: inline-flex; }
  /* .nav__links が fixed に抜けるので、ツール側を右端へ押し出す */
  .nav__tools { margin-left: auto; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1.5rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: .95rem .25rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 1rem; border-bottom: 0 !important; justify-content: center; }
}

/* ---------- media treatment ---------- */
.media {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r); background: var(--bg);
}
.media > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.6) contrast(1.06);
}
.media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--duotone); pointer-events: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding-top: clamp(2.5rem, 6vh, 4.5rem); padding-bottom: clamp(3rem, 8vw, 6rem);
}
/* 自然×IT の背景エフェクト。漂う光の粒が近づくと細い線でつながる。
   広い画面の左余白専用。狭い画面と reduced-motion では出さない */
.hero__net {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
@media (max-width: 1023px) { .hero__net { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__net { display: none; } }
.hero__grid {
  /* 右カラムだけ画面端まで抜くため、左に寄せたパディングで版面を作る */
  padding-left: max(1.25rem, calc((100vw - var(--wrap)) / 2));
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: min(74svh, 640px);
}
.hero__copy { padding-block: clamp(1rem, 4vh, 3rem); }
.hero__title {
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  letter-spacing: -.045em;
  line-height: 1.22;
  margin-bottom: 1.6rem;
}
.hero__title .line { display: block; }
.hero__lead {
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  max-width: 30em;
  margin-bottom: 2.4rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__media { width: 100%; aspect-ratio: 11 / 13; max-height: 78svh; box-shadow: var(--shadow); }

@media (min-width: 1024px) {
  /* 右のビジュアルは画面端まで抜く（左テキストとの非対称を強める） */
  .hero__media { border-radius: var(--r) 0 0 var(--r); }
}
/* ---- 狭い画面: 写真を全面に敷き、その上に見出しを載せる ---- */
@media (max-width: 1023px) {
  /* 画像は .hero に対する絶対配置。grid の行高がどう決まっても隙間が出ない */
  .hero { padding: 0; position: relative; isolation: isolate; overflow: hidden; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    padding-inline: 0; gap: 0;
    min-height: 82svh;
    align-items: end;
  }

  /* height:100% は行が不定高だと解決できず、画像が箱より短くなって
     .media の背景色が帯状に露出する。stretch + 絶対配置で確実に埋める */
  .hero__media {
    position: absolute; inset: 0; z-index: 0;
    width: auto; height: auto;
    aspect-ratio: auto; max-height: none;
    border-radius: 0; box-shadow: none;
  }
  /* 白文字を確実に読ませるため、下half を強く落とす */
  .hero__media::after {
    background: linear-gradient(180deg,
      rgba(10, 20, 16, .22) 0%,
      rgba(10, 20, 16, .46) 46%,
      rgba(10, 20, 16, .82) 100%);
  }

  .hero__copy {
    position: relative; z-index: 1;
    /* シートが 2.75rem せり上がるので、その分を下に足してボタンとの衝突を防ぐ */
    padding: 0 1.25rem calc(clamp(2.5rem, 7vh, 4rem) + 2.75rem);
  }
  .hero__title { color: #fff; font-size: clamp(2.3rem, 9vw, 3.4rem); }
  .hero__lead { color: rgba(243, 247, 242, .92); max-width: 24em; }
  .hero .btn--ghost {
    color: #fff; border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .10);
  }
  .hero .btn--ghost:hover { border-color: #fff; }

  /* ヒーローに重なる分、ナビは常に不透明にする */
  .nav { background: var(--bg); border-bottom-color: var(--line); }
}

/* ---------- about ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-areas: "media title" "media intro" "media copy";
  gap: var(--gap-title) clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.about__media { grid-area: media; }
.about__title { grid-area: title; margin-bottom: 0; }
.about__intro { grid-area: intro; color: var(--ink-muted); max-width: 34em; margin: 0; }
.about__copy  { grid-area: copy; }
.about__media { aspect-ratio: 9 / 11; position: sticky; top: 110px; }
.about__copy { color: var(--ink-muted); max-width: 34em; }
.about__title { color: var(--ink); }
.about__copy p + p { margin-top: 0; }
.sig { margin-top: 2.5rem; display: flex; align-items: baseline; gap: .9rem; }
.sig__role { font-size: .78rem; letter-spacing: .16em; color: var(--ink-faint); }
.sig__name { font-size: 1.22rem; font-weight: 700; color: var(--ink); letter-spacing: .04em; }

@media (max-width: 1023px) {
  /* 狭い画面: 写真と写真が続かぬよう、見出しを間に置く */
  .about__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "intro" "media" "copy";
    gap: var(--gap-title);
  }
    /* デスクトップの sticky を解除する。ただし relative は保つこと。
     static にすると中の絶対配置画像がビューポート基準になり、ページ全面に広がる */
  .about__media { position: relative; top: auto; aspect-ratio: 16 / 10; max-width: 100%;
    margin-block: calc(var(--gap-block) - var(--gap-title)); }
}

/* ---------- services (bento) ---------- */
.services { background: var(--bg-alt); }
.services__title { margin-bottom: var(--gap-block); max-width: 20em; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 2.4vw, 2.3rem);
  display: flex; flex-direction: column; gap: .85rem;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.tile__icon { font-size: 1.7rem; color: var(--accent); }
.tile__title { font-size: 1.16rem; letter-spacing: -.01em; }
.tile__text { color: var(--ink-muted); font-size: .95rem; line-height: 1.95; margin: 0; }


.tile--photo { border: 0; padding: 0; isolation: isolate; }
.tile--photo .tile__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) contrast(1.02); z-index: -2;
  transition: transform .8s var(--ease);
}
.tile--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(10, 20, 16, .12) 0%,
    rgba(10, 20, 16, .48) 52%,
    rgba(10, 20, 16, .88) 100%);
}
.tile--photo:hover .tile__bg { transform: scale(1.05); }
.tile--photo .tile__body {
  padding: clamp(1.5rem, 2.4vw, 2.3rem);
  display: flex; flex-direction: column; gap: .85rem;
  margin-top: auto;
}
.tile--photo .tile__title,
.tile--photo .tile__text { color: #eef3ee; }
.tile--photo .tile__icon { color: #f0b184; }

.tile--a { grid-column: 1 / 8;  grid-row: 1 / 3; min-height: 340px; }
.tile--b { grid-column: 8 / 13; grid-row: 1 / 2; }
.tile--c { grid-column: 8 / 13; grid-row: 2 / 3; }
.tile--d { grid-column: 1 / 7;  grid-row: 3 / 4; min-height: 240px; }
.tile--e { grid-column: 7 / 13; grid-row: 3 / 4; }

@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--a { grid-column: 1 / 3; grid-row: auto; }
  .tile--b, .tile--c, .tile--d, .tile--e { grid-column: auto; grid-row: auto; }
  .tile--d { grid-column: 1 / 3; }
}
@media (max-width: 639px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--a, .tile--d { grid-column: 1 / 2; }
  .tile--a { min-height: 300px; }
}

/* ---------- approach（入口の図） ---------- */
.approach .h2 { margin-bottom: var(--gap-title); }
.approach__lead { color: var(--ink-muted); max-width: 34em; margin-bottom: var(--gap-block); }

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.flow__arrow { align-self: center; }
.flow__cap {
  font-size: .78rem; letter-spacing: .14em; color: var(--ink-faint);
  margin: 0 0 1.1rem;
}

/* 散らばった困りごと */
.notes { display: grid; gap: .7rem; }
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-in);
  padding: .8rem 1rem;
  font-size: .9rem; color: var(--ink-muted);
  box-shadow: 0 6px 16px -12px rgba(22, 42, 33, .5);
  transform-origin: left center;
}
.note:nth-child(1) { transform: rotate(-1.1deg); margin-right: 1.6rem; }
.note:nth-child(2) { transform: rotate(.9deg);  margin-left: 1.2rem; }
.note:nth-child(3) { transform: rotate(-.6deg); margin-right: .7rem; }
.note:nth-child(4) { transform: rotate(1.3deg); margin-left: 2rem; }
.note:nth-child(5) { transform: rotate(-1deg);  margin-right: 1.9rem; }

/* 中央の矢印 */
.flow__arrow {
  display: grid; justify-items: center; gap: .55rem;
  color: var(--accent); text-align: center;
}
.flow__glyph { width: 68px; height: 24px; }
.flow__verb { font-size: .95rem; font-weight: 700; letter-spacing: .02em; }
.flow__note { font-size: .8rem; color: var(--ink-faint); }

/* 整理して出すもの */
.outcome { display: grid; }
.outcome li {
  display: grid; gap: .3rem;
  padding: 1.1rem 0 1.1rem 1.4rem;
  position: relative;
}
.outcome li + li { border-top: 1px solid var(--line); }
.outcome li::before {
  content: ""; position: absolute; left: 0; top: 1.75rem;
  width: 16px; height: 2px; background: var(--accent);
}
.outcome strong { font-size: 1rem; font-weight: 700; }
.outcome span { font-size: .9rem; color: var(--ink-muted); line-height: 1.85; }

@media (max-width: 899px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .flow__arrow { grid-auto-flow: column; align-items: center; gap: .8rem; justify-content: center; }
  .flow__glyph { transform: rotate(90deg); width: 46px; }
  .note { margin-inline: 0 !important; }
}

/* ---------- process（4 枚のパネル・2 列） ---------- */
.process .h2 { margin-bottom: var(--gap-title); }
.process__lead { color: var(--ink-muted); max-width: 34em; margin-bottom: var(--gap-block); }

.plist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.5rem, 2.2vw, 2.1rem);
  display: grid; gap: .8rem;
  align-content: start;
}
.panel__no {
  position: absolute; top: 1.1rem; right: 1.4rem;
  font: 500 2.4rem/1 var(--font-en);
  color: var(--accent-soft);
  -webkit-text-stroke: 1.4px var(--accent);
  opacity: .5;
}
.panel__head { display: flex; align-items: center; gap: .7rem; }
.panel__icon { font-size: 1.6rem; color: var(--accent); }
.panel__title { font-size: 1.3rem; letter-spacing: .02em; }
.panel__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.chip {
  display: inline-block; padding: .28rem .75rem;
  border-radius: var(--r-pill); font-size: .8rem; line-height: 1.5;
  background: var(--bg-alt); color: var(--ink-muted);
}
.chip--free { background: var(--accent); color: var(--on-accent); font-weight: 500; }
.panel__text { color: var(--ink-muted); font-size: 1rem; line-height: 2; margin: 0; max-width: 30em; }
.panel__text strong { color: var(--ink); }

.process__note {
  display: flex; align-items: center; gap: .55rem;
  margin: 1.25rem 0 0;
  padding: .85rem 1.15rem;
  background: var(--accent-soft); border-radius: var(--r-in);
  color: var(--accent-strong); font-size: .95rem; font-weight: 500;
}
.process__note i { font-size: 1.15rem; }

@media (max-width: 767px) {
  .plist { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- band ---------- */
.band {
  position: relative; isolation: isolate;
  min-height: min(78svh, 620px);
  display: grid; align-items: end;
  padding-block: clamp(4rem, 12vw, 9rem);
  overflow: hidden;
}
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.6) contrast(1.05);
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* 縦の落としに加え、文字がのる左側を暗くして白文字の可読性を確保する */
  background:
    linear-gradient(95deg, rgba(12, 24, 19, .62) 0%, rgba(12, 24, 19, .34) 38%, rgba(12, 24, 19, .10) 62%, transparent 82%),
    var(--scrim);
}
.band__inner { color: #f1f5f0; }
.band__title { font-size: clamp(1.9rem, 4.6vw, 3.4rem); letter-spacing: -.04em; line-height: 1.28; margin-bottom: var(--gap-title); }
.band__text { max-width: 30em; color: rgba(241, 245, 240, .9); font-size: clamp(1rem, 1.2vw, 1.08rem); }

/* ---------- company ---------- */
.company__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  grid-template-areas: "media title" "media facts";
  gap: var(--gap-title) clamp(2rem, 6vw, 5rem);
  align-content: center;
}
.company__media { grid-area: media; aspect-ratio: 4 / 3; align-self: center; }
.company__title { grid-area: title; margin-bottom: 0; }
.company .facts  { grid-area: facts; }
@media (max-width: 899px) {
  /* 写真が続かぬよう、見出しを先頭に置く */
  .company__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "media" "facts";
  }
  .company__media { aspect-ratio: 16 / 10; margin-block: calc(var(--gap-block) - var(--gap-title)); }
}
.facts { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 48rem; }
.facts__row {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  padding-block: 1.25rem;
}
.facts__row + .facts__row { border-top: 1px solid var(--line); }
.facts dt { color: var(--ink-faint); font-size: .85rem; letter-spacing: .04em; }
.facts dd { margin: 0; font-size: 1rem; }
.facts__sub { display: block; font-family: var(--font-en); font-size: .8rem; color: var(--ink-faint); letter-spacing: .02em; }
.facts__br { display: block; height: 0; }
.facts dd .link { margin-left: .8rem; font-size: .86rem; }

@media (max-width: 767px) {
  .facts__row { grid-template-columns: 6rem 1fr; }
}

/* ---------- contact ---------- */
.contact { background: var(--bg-alt); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__note { color: var(--ink-muted); max-width: 30em; margin-top: var(--gap-title); }
.afterlist { margin-top: var(--gap-block); display: grid; max-width: 30em; }
.afterlist li { display: grid; gap: .25rem; padding: 1.05rem 0 1.05rem 1.4rem; position: relative; }
.afterlist li + li { border-top: 1px solid var(--line); }
.afterlist li::before {
  content: ""; position: absolute; left: 0; top: 1.7rem;
  width: 16px; height: 2px; background: var(--accent);
}
.afterlist strong { font-size: .95rem; }
.afterlist span { font-size: .9rem; color: var(--ink-muted); }

.formcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.formcard__lead { font-size: .98rem; color: var(--ink-muted); margin-bottom: 1.4rem; }
.formcard__items { display: grid; margin-bottom: 1.8rem; }
.formcard__items li {
  position: relative; padding: .8rem 0 .8rem 1.4rem;
  font-size: 1rem;
}
.formcard__items li + li { border-top: 1px solid var(--line); }
.formcard__items li::before {
  content: ""; position: absolute; left: 0; top: 1.45rem;
  width: 14px; height: 2px; background: var(--accent);
}

@media (max-width: 1023px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.footer { padding-block: 3.5rem; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-inline: auto; }
.footer__nav a { color: var(--ink-muted); text-decoration: none; font-size: .87rem; transition: color .25s var(--ease); }
.footer__nav a:hover { color: var(--accent); }
.footer__copy { margin: 0; color: var(--ink-faint); font-size: .82rem; font-family: var(--font-en); }
.footer__credit { flex-basis: 100%; margin: 0; font-size: .74rem; line-height: 2; color: var(--ink-faint); }
.footer__credit a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.footer__credit a:hover { color: var(--accent); border-bottom-color: currentColor; }
@media (max-width: 767px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__nav { margin-inline: 0; }
}

/* =============================================================
   MOTION  (MOTION_INTENSITY 6)
   すべて prefers-reduced-motion: no-preference の内側に置く
   ============================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* スクロール到達で本文を段階的に出す（情報の順序づけ） */
  .js .reveal { opacity: 0; transform: translateY(14px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
    transition-delay: calc(var(--d, 0) * 50ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  /* ヒーローの初回表示。読む順に立ち上げる */
  .js .hero__title .line,
  .js .hero__lead,
  .js .hero__cta { animation: rise .9s var(--ease) both; }
  .js .hero__title .line:nth-child(1) { animation-delay: .05s; }
  .js .hero__title .line:nth-child(2) { animation-delay: .15s; }
  .js .hero__lead { animation-delay: .28s; }
  .js .hero__cta  { animation-delay: .38s; }
  .js .hero__media { animation: unveil 1.2s var(--ease) both; animation-delay: .1s; }

  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes unveil { from { opacity: 0; clip-path: inset(0 0 14% 0); transform: scale(1.03); }
                      to   { opacity: 1; clip-path: inset(0 0 0 0);   transform: none; } }

  /* 背景写真をスクロールに連動させて奥行きを出す。対応ブラウザのみ */
  @supports (animation-timeline: view()) {
    .band__media img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: scale(1.14) translateY(-2%); } to { transform: scale(1.02) translateY(2%); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.formcard__note { margin-top: .9rem; font-size: .8rem; line-height: 1.9; color: var(--ink-faint); }
.formcard__opt {
  margin-left: .6rem; padding: .12rem .5rem; border-radius: var(--r-pill);
  background: var(--bg-alt); color: var(--ink-faint); font-size: .72rem; letter-spacing: .04em;
}
.formcard__hint { margin-left: .6rem; font-size: .8rem; color: var(--ink-faint); }

/* ---------- 文書ページ（プライバシーポリシー） ---------- */
.nav__links--doc { margin-left: auto; }
@media (max-width: 1023px) {
  .nav__links--doc {
    position: static; inset: auto; flex-direction: row; align-items: center;
    background: none; border: 0; padding: 0;
    transform: none; opacity: 1; pointer-events: auto;
  }
  .nav__links--doc a { padding: 0; border-bottom: 0; font-size: .9rem; }
}

.doc { padding-block: clamp(3.5rem, 8vw, 6rem); }
.doc__wrap { max-width: 46rem; }
.doc__title { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.03em; margin-bottom: 1.3rem; }
.doc__lead { color: var(--ink-muted); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.doc__sec { margin-bottom: 2.8rem; }
.doc__sec h2 { font-size: 1.12rem; letter-spacing: .01em; margin-bottom: .9rem; }
.doc__sec p { color: var(--ink-muted); font-size: .96rem; }
.doc__list { display: grid; margin: .9rem 0 1.1rem; }
.doc__list li {
  position: relative; padding: .4rem 0 .4rem 1.4rem;
  color: var(--ink-muted); font-size: .96rem;
}
.doc__list li::before {
  content: ""; position: absolute; left: 0; top: 1.35em;
  width: 13px; height: 2px; background: var(--accent);
}
.doc .facts { margin-top: 1.2rem; }
.doc__date { font-size: .84rem; color: var(--ink-faint); margin-top: 1.8rem; }

/* ---- 狭い画面: 版面の写真を画面端まで抜いて主役にする ---- */
@media (max-width: 767px) {
  /* セクション間をもう少し離す */
  .section { padding-block: 7.5rem; }

  /* transform は .reveal に上書きされるため margin で画面端まで抜く */
  .about__media,
  .company__media {
    width: 100vw; max-width: none;
    margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
    border-radius: 0;
    aspect-ratio: 4 / 3;
  }
  .band { min-height: 74svh; }
  .band__title { font-size: clamp(2.1rem, 8.5vw, 3rem); }
  .tile--photo { min-height: 340px; }
  .tile--a { min-height: 400px; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 62svh; display: grid; align-items: center; }
.notfound__code {
  font: 500 .9rem/1 var(--font-en); letter-spacing: .28em;
  color: var(--accent); margin-bottom: 1.4rem;
}
.notfound__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }

/* ---- 狭い画面: 全幅写真の直後の版面を、角丸のシートとしてせり上げる ----
   写真の下に生の白が広がるのを避け、切り替わりを意匠として見せる */
@media (max-width: 1023px) {
  .about, .company {
    position: relative;
    margin-top: -2.75rem;
    padding-top: 3.5rem;
    background: var(--bg);
    border-radius: 26px 26px 0 0;
  }
  /* 見出しの肩に、サイト共通のアクセント罫を置く */
  .about__title, .company__title {
    position: relative;
    padding-top: 1.7rem;
  }
  .about__title::before, .company__title::before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 34px; height: 2px; background: var(--accent);
  }
}
