/* ────────────────────────────────────────────────────
 * Furutori Corporate Site
 * 参考: https://chiba-dojo.jp/ （墨×紙×明朝・スタンプ紋章・長尺スクロール）
 * 方向性: 「隹」を判子として使い、和紙色 × 墨 × 辰砂 の 3 色体制。
 *         明朝見出し × ゴシック本文、角丸は 0 を基本、罫線はヘアライン。
 * ──────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  /* ── 配色（紙・墨・辰砂） ── */
  --paper:          #F5F1E8;   /* 和紙、生成り */
  --paper-white:    #FBF8F1;   /* ヘッダーなどで一段明るく */
  --paper-alt:      #ECE5D4;   /* セクション交互の影 */
  --paper-deep:     #DED5BF;   /* 罫用の濃い紙色 */

  --ink:            #1A1613;   /* 墨（本文・見出し） */
  --ink-soft:       #453F37;   /* 薄墨（補助） */
  --ink-mute:       #7A7166;   /* 鼠（caption） */
  --ink-faint:      #A59B8D;   /* 極薄 */

  --hair:           rgba(26, 22, 19, 0.12);
  --hair-strong:    rgba(26, 22, 19, 0.22);

  --accent:         #2481C4;   /* Furutori ブランドブルー（CTAと判子） */
  --accent-deep:    #1B66A0;   /* hover */
  --accent-tint:    rgba(36, 129, 196, 0.08);
  --accent-light:   #5FC0E0;   /* ロゴ下部のシアン寄り */

  --color-fg1: var(--ink);
  --color-fg2: var(--ink-soft);
  --color-fg3: var(--ink-mute);
  --color-accent: var(--accent);

  /* ── 書体 ── */
  --font-sans:    "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-serif:   "Shippori Mincho", "Noto Serif JP", "Yu Mincho", serif;
  --font-latin:   "Playfair Display", "Shippori Mincho", serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* ── レイアウト ── */
  --max-w:         1120px;
  --max-w-narrow:  760px;
  --max-w-wide:    1280px;
  --nav-h:         64px;

  /* ── モーション ── */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.95;
  letter-spacing: 0.03em;
  /* 和文を「日本語の単語単位」で保持し、句読点以外で途中改行しない */
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ─── フォーカスリング統一（ブランドアクセント） ─── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── スキップリンク（Tab で最初に到達） ─── */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper-white);
  font-size: 13px;
  letter-spacing: 0.06em;
  transform: translateY(-200%);
  transition: transform 180ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--paper-white); }

/* スクロールバー（Webkit） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--paper-deep); }
::-webkit-scrollbar-track { background: transparent; }

/* ─── 共通レイアウト ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 24px; }

.section { padding: 112px 0; position: relative; }
.section-alt { background: var(--paper-alt); }
.section-ink { background: var(--ink); color: var(--paper-white); }
@media (min-width: 768px) { .section { padding: 160px 0; } }

.page-view {
  animation: pageFade 600ms var(--ease-out) both;
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── タイポ ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  font-weight: 400;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-mute);
}

.display {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: var(--ink);
}

h1 { font-family: var(--font-serif); font-weight: 600; letter-spacing: 0.06em; line-height: 1.5; margin: 0; }
h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: 0.06em; line-height: 1.55; margin: 0; }
h3 { font-family: var(--font-serif); font-weight: 600; letter-spacing: 0.06em; line-height: 1.6; margin: 0; }
h4, h5 { font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.06em; margin: 0; }
p { margin: 0; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.45;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.section-lead {
  font-size: 15px;
  line-height: 2.1;
  color: var(--ink-soft);
  max-width: 58ch;
}
.section-head { margin-bottom: 64px; }

/* ─── Seal / 判子（隹）─── */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0;
  transform: rotate(-3deg);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.seal-sm {
  width: 28px; height: 28px; font-size: 15px;
  border-width: 1px;
  transform: rotate(-4deg);
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 0;
}
.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  width: 80px;
  background: var(--hair-strong);
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: transparent;
  transition: background 300ms var(--ease-out), border-color 300ms;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom-color: var(--hair);
}
.site-header.nav-hidden { transform: translateY(-100%); transition: transform 240ms var(--ease-out); }
.site-header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.brand-sub {
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 0;
  transition: color 200ms;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 300ms var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--paper-white);
  transition: background 200ms, transform 200ms;
}
.nav-cta:hover { background: var(--accent-deep); }
.nav-cta::after {
  content: "→";
  transition: transform 220ms var(--ease-out);
}
.nav-cta:hover::after { transform: translateX(4px); }

.nav-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 820px) {
  .site-nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--ink);
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 24px 28px;
    background: var(--paper-white);
    border-bottom: 1px solid var(--hair);
    animation: pageFade 250ms var(--ease-out) both;
  }
  .mobile-menu a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--hair);
    font-size: 15px;
    letter-spacing: 0.06em;
  }
  .mobile-menu a.active { color: var(--accent); }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-figure {
  position: absolute;
  inset: 0;
  /* site.css は assets/ 内にあるので brand/ は相対でそのまま */
  background: url('brand/hero-footprint.jpg') center/cover no-repeat;
  z-index: 0;
}
.hero-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 45%, var(--paper) 110%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 72px) 24px 120px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
  min-height: 86vh;
}
.hero-text-col {
  grid-column: 2;
  max-width: 580px;
  justify-self: end;
}
@media (max-width: 820px) {
  .hero-figure { position: relative; aspect-ratio: 16 / 9; }
  .hero-figure::after { background: linear-gradient(180deg, transparent 60%, var(--paper) 100%); }
  .hero-inner {
    display: block;
    padding: 24px 24px 80px;
    min-height: 0;
  }
  .hero-text-col { grid-column: auto; max-width: none; justify-self: stretch; }
}
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 5.4vw, 78px);
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--ink);
  /* 日本語の途中改行を抑制（欧文・句読点は許容） */
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hero-h1-line {
  display: block;
  white-space: nowrap;
}
/* 余白が足りない場合だけ中途改行を許すフォールバック */
@media (max-width: 380px) {
  .hero-h1-line { white-space: normal; }
}
.hero-h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-h1 em::after {
  /* 朱の下線 */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: heroUnderline 900ms var(--ease-out) 1200ms forwards;
}
@keyframes heroUnderline { to { transform: scaleX(1); } }

.hero-lead {
  margin-top: 40px;
  max-width: 42ch;
  font-size: clamp(13px, 3.5vw, 16px);
  line-height: 2;
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .hero-lead { margin-top: 28px; line-height: 1.95; }
}
/* ─── Hero Creed（3 つの約束）───
 * 引用調の左罫線 + 明朝の短い宣言文。
 * キーの「1」をブランドブルーで浮かび上がらせる。
 */
.hero-creed {
  margin: 56px 0 0;
  padding: 4px 0 4px 22px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--hair-strong);
  position: relative;
}
.hero-creed::before {
  /* 罫線の頭に小さな朱点（判子を受ける） */
  content: "";
  position: absolute;
  left: -3px;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.hero-creed li {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.9;
}
.hero-creed .num {
  color: var(--accent);
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: 18px;
  padding: 0 3px;
  font-style: normal;
  line-height: 1;
}
@media (max-width: 820px) {
  .hero-creed { margin-top: 40px; }
  .hero-creed li { font-size: 14.5px; }
}

.hero-cta {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 文字単位の reveal */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.char.in { opacity: 1; transform: translateY(0); }

/* Hero 画像は hero-footprint.jpg 自体に朱印が含まれるため、合成スタンプは不要 */

/* ─── Ticker（信条を流す帯）───
 * 明朝 × ダッシュ区切りで、静かに流れる余韻を作る。
 * hover で一時停止、reduced-motion でも静止表示。
 */
.ticker {
  border-block: 1px solid var(--hair);
  padding: 22px 0;
  overflow: hidden;
  background: var(--paper-white);
  position: relative;
}
/* 両端の紙色フェード（読み途中で消える余韻） */
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper-white), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(-90deg, var(--paper-white), transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 56px;
  animation: tickerMove 56s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.08em;
  line-height: 1.5;
}
.ticker-item::before {
  content: "──";
  color: var(--accent);
  letter-spacing: -0.02em;
  font-weight: 400;
}
.ticker-item:first-child::before { content: none; }
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
@media (max-width: 600px) {
  .ticker { padding: 16px 0; }
  .ticker-item { font-size: 13.5px; gap: 20px; }
  .ticker::before, .ticker::after { width: 60px; }
  .ticker-track { animation-duration: 28s; }
}

/* ─── Initiatives（主催企画 = 江津バズコン）─── */
.initiative {
  background: var(--paper-white);
  border: 1px solid var(--hair);
  padding: 56px clamp(28px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}
.initiative::before {
  /* 朱の左帯 */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}
.initiative-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.initiative-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: var(--accent-tint);
}
.initiative-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.initiative-lead {
  font-size: 15px;
  line-height: 2.1;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 40px;
}
.initiative-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  margin: 0 0 40px;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.initiative-facts > div {
  display: grid;
  grid-template-columns: 108px 1fr;
  padding: 14px 16px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  gap: 12px;
  align-items: baseline;
}
.initiative-facts dt {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}
.initiative-facts dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.85;
}
.initiative-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 640px) {
  .initiative { padding: 40px 24px; }
  .initiative-title { font-size: clamp(24px, 6vw, 32px); }
  .initiative-facts > div { grid-template-columns: 88px 1fr; padding: 12px; }
}

/* ─── Motto（節目の大文字）───
 * 深い藍 × 琥珀色のトワイライト絵画を背景に敷き、
 * 中央にだけ暗部を落として文字の可読性を確保する。
 * 句読点は灯りの琥珀色（#F0B070）で、絵画の明滅と呼応。
 */
.motto {
  padding: 180px 0;
  text-align: center;
  position: relative;
  isolation: isolate;
  background: #0B1A2E;
  color: var(--paper-white);
  overflow: hidden;
}
.motto::before {
  /* 油彩の背景 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('brand/motto-twilight.jpg') center/cover no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05);
}
.motto::after {
  /* 中央やや暗、上下はうっすら。灯りは残す。 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 72% 62% at 50% 50%,
      rgba(6, 14, 28, 0.68) 0%,
      rgba(6, 14, 28, 0.40) 45%,
      rgba(6, 14, 28, 0.22) 75%,
      rgba(6, 14, 28, 0.12) 100%),
    linear-gradient(180deg,
      rgba(6, 14, 28, 0.35) 0%,
      rgba(6, 14, 28, 0.08) 40%,
      rgba(6, 14, 28, 0.42) 100%);
}
.motto-body {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 52px);
  line-height: 1.9;
  letter-spacing: 0.12em;
  color: var(--paper-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 40px rgba(0, 0, 0, 0.25);
}
.motto-body span {
  display: inline-block;
  position: relative;
  padding: 0 0.24em;
}
.motto-body span:not(:last-child)::after {
  content: "、";
  color: #F0B070;
  text-shadow: 0 0 18px rgba(240, 176, 112, 0.55);
}
.motto-body span:last-child::after {
  content: "。";
  color: #F0B070;
  text-shadow: 0 0 18px rgba(240, 176, 112, 0.55);
}
/* 上下の境界を馴染ませる帯 */
.motto::before,
.motto::after { pointer-events: none; }
@media (max-width: 640px) {
  .motto { padding: 120px 0; }
  .motto-body { font-size: clamp(22px, 5.2vw, 32px); letter-spacing: 0.08em; }
}

/* ─── Numbered list（何屋・誰のため） ─── */
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--hair);
}
.numbered-item {
  padding: 40px 32px;
  border-bottom: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  position: relative;
}
.numbered-item:nth-child(3n) { border-right: none; }
@media (max-width: 820px) {
  .numbered-item { border-right: none; }
}
.numbered-num {
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 400;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
  display: inline-block;
}
.numbered-item h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.numbered-item p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}

/* ─── Service cards ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair-strong);
  border: 1px solid var(--hair-strong);
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--paper);
  padding: 44px 36px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 260ms var(--ease-out);
  min-height: 340px;
}
.service-card::after {
  /* 下端の朱ライン（ホバーで伸びる） */
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 32px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0.08);
  transform-origin: left center;
  transition: transform 500ms var(--ease-out);
}
.service-card:hover { background: var(--paper-white); }
.service-card:hover::after { transform: scaleX(1); }

.service-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--hair);
}
.service-card-ord {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.service-card-num {
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
}
.service-card-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: 0.06em;
  line-height: 1.55;
  margin: 0 0 24px;
  color: var(--ink);
}
.service-card-desc {
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--ink-soft);
  margin: 0 0 32px;
  flex: 1;
}
.service-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-top: auto;
}
.service-more::after {
  content: "→";
  transition: transform 220ms var(--ease-out);
}
.service-card:hover .service-more::after { transform: translateX(6px); }

@media (max-width: 900px) {
  .service-card { min-height: auto; padding: 36px 28px 32px; }
  .service-card::after { left: 28px; right: 28px; bottom: 26px; }
}

/* ─── Voices ─── */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .voices-grid { grid-template-columns: 1fr; } }
.voice-card {
  background: var(--paper-white);
  padding: 36px 32px;
  border: 1px solid var(--hair);
  position: relative;
  transition: transform 300ms var(--ease-out), box-shadow 300ms;
}
.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px -12px rgba(26, 22, 19, 0.16);
}
.voice-quote-mark {
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: 64px;
  color: var(--accent);
  line-height: 0.6;
  height: 32px;
  margin-bottom: 20px;
  opacity: 0.6;
}
.voice-text {
  font-size: 14px;
  line-height: 2;
  color: var(--ink);
  min-height: 112px;
  margin-bottom: 28px;
}
.voice-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}
.voice-avatar {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper-white);
  font-family: var(--font-serif);
  font-weight: 600;
}
.voice-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.voice-role {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}

/* ─── Voices — 準備中プレースホルダー ─── */
.voices-empty {
  text-align: center;
  padding: 64px 24px;
  border: 1px solid var(--hair);
  background: var(--paper-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.voices-empty-seal {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  transform: rotate(-4deg);
  background: var(--accent-tint);
}
.voices-empty-text {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.08em;
  line-height: 2;
  color: var(--ink);
}
.voices-empty-note {
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  line-height: 1.9;
}

/* ─── Team — 募集中カード ─── */
.team-card-vacant {
  border-style: dashed;
  background: transparent;
}
.team-card-vacant .team-card-name,
.team-card-vacant .team-card-role,
.team-card-vacant .team-card-quote {
  color: var(--ink-mute);
}
.team-avatar-vacant {
  background: transparent;
  color: var(--ink-mute);
  border: 1px dashed var(--hair-strong);
  font-size: 18px;
  font-family: var(--font-sans);
  font-weight: 400;
}

/* ─── Reason / Portrait ─── */
.reason {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .reason { grid-template-columns: 1fr; gap: 40px; }
}
.reason-portrait {
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, var(--paper-deep), var(--paper-alt));
  position: relative;
  overflow: hidden;
}
.reason-portrait::before {
  /* 和紙テクスチャ */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(26,22,19,0.04) 0 1px, transparent 1px 6px),
    radial-gradient(ellipse at 30% 40%, rgba(26,22,19,0.08), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.reason-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
  pointer-events: none;
}
.reason-portrait-label {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 3;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
}
.reason-opener {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 28px !important;
}
.reason-text p {
  font-size: 15.5px;
  line-height: 2.2;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 38em;
}
.reason-text em {
  font-style: normal;
  background: linear-gradient(transparent 70%, var(--accent-tint) 70%);
  padding: 0 2px;
}
.reason-sign {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.08em;
}
.reason-sign small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  margin-top: 6px;
}
.reason-sign-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  font-family: var(--font-latin);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent-tint);
  transition: background 180ms, border-color 180ms;
}
.reason-sign-social:hover {
  background: var(--accent-tint);
  border-color: var(--accent);
}

/* About page — profile social */
.about-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}
.about-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border: 1px solid var(--hair-strong);
  transition: color 180ms, border-color 180ms, background 180ms;
}
.about-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-tint);
}

/* ─── Access ─── */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 900px) { .access-grid { grid-template-columns: 1fr; gap: 32px; } }
.access-info dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px 24px;
  margin: 0;
}
.access-info dt {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.access-info dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink);
}
.access-map {
  aspect-ratio: 4 / 3;
  background: var(--paper-alt);
  border: 1px solid var(--hair);
  position: relative;
  overflow: hidden;
}
.access-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.92) contrast(0.98);
}
.access-map-cta {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--paper-white);
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px solid var(--ink);
  transition: background 180ms;
}
.access-map-cta:hover { background: var(--accent); border-color: var(--accent); }

/* ─── CTA block ─── */
.cta-block {
  text-align: center;
  padding: 72px 24px;
  background: var(--ink);
  color: var(--paper-white);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "隹";
  position: absolute;
  right: -40px; bottom: -60px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 320px;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
}
.cta-block h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: 0.06em;
  line-height: 1.55;
  margin-bottom: 20px;
  color: var(--paper-white);
}
.cta-block .eyebrow {
  color: rgba(251, 248, 241, 0.6);
  justify-content: center;
  display: flex;
  margin: 0 auto 18px;
}
.cta-block .eyebrow::before { background: rgba(251, 248, 241, 0.4); }
.cta-block p {
  font-size: 14.5px;
  line-height: 2;
  max-width: 48ch;
  margin: 0 auto 36px;
  color: rgba(251, 248, 241, 0.75);
}
.cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: background 220ms, color 220ms, transform 220ms var(--ease-out);
  border: 1px solid transparent;
  line-height: 1;
}
.btn svg { transition: transform 220ms var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: var(--accent);
  color: var(--paper-white);
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary {
  background: var(--paper-white);
  color: var(--ink);
  border-color: var(--hair-strong);
}
.btn-secondary:hover { background: var(--paper); }
.btn-ghost {
  color: var(--ink);
  padding: 16px 6px;
  letter-spacing: 0.08em;
}
.btn-ghost:hover { color: var(--accent); }
.btn-tel, .btn-line {
  background: transparent;
  color: var(--paper-white);
  border-color: rgba(251, 248, 241, 0.25);
}
.btn-tel:hover, .btn-line:hover {
  background: rgba(251, 248, 241, 0.08);
  border-color: rgba(251, 248, 241, 0.5);
}
.btn-line { color: #06C755; border-color: #06C755; }
.btn-line:hover { background: rgba(6, 199, 85, 0.1); }

.link-accent {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

/* ─── Sticky CTA bottom ─── */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper-white);
  max-width: calc(100% - 32px);
  animation: stickyIn 600ms var(--ease-out) 1200ms both;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5);
}
@keyframes stickyIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.sticky-cta-label {
  padding: 0 12px 0 8px;
  display: none;
}
.sticky-cta-label span:first-child {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
}
.sticky-cta-label span:last-child {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 11px;
  color: rgba(251, 248, 241, 0.6);
}
.sticky-cta .btn {
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
@media (min-width: 768px) {
  .sticky-cta-label { display: block; }
}

/* ─── Footer ─── */
.site-footer {
  background: var(--ink);
  color: rgba(251, 248, 241, 0.75);
  padding: 96px 0 40px;
  position: relative;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(251, 248, 241, 0.1);
}
@media (max-width: 900px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer-grid { grid-template-columns: 1fr; }
}
.site-footer .brand-name { color: var(--paper-white); }
.site-footer .brand-sub { color: rgba(251, 248, 241, 0.5); }
.site-footer address {
  font-style: normal;
  font-size: 13px;
  line-height: 2;
  margin-top: 20px;
  color: rgba(251, 248, 241, 0.65);
}
.site-footer address a { color: inherit; border-bottom: 1px solid rgba(251,248,241,0.2); }
.site-footer-col h5 {
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--paper-white);
  margin-bottom: 20px;
}
.site-footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: rgba(251, 248, 241, 0.65);
  transition: color 180ms, transform 200ms var(--ease-out);
  cursor: pointer;
}
.site-footer-col a:hover {
  color: var(--paper-white);
  transform: translateX(4px);
}
.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(251, 248, 241, 0.08);
}
.site-footer-social-label {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(251, 248, 241, 0.5);
  padding-right: 6px;
}
.site-footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  font-size: 12.5px;
  color: rgba(251, 248, 241, 0.7);
  border: 1px solid rgba(251, 248, 241, 0.12);
  letter-spacing: 0.06em;
  transition: color 180ms, border-color 180ms, background 180ms;
}
.site-footer-social a:hover {
  color: var(--paper-white);
  border-color: rgba(251, 248, 241, 0.35);
  background: rgba(251, 248, 241, 0.04);
}
.site-footer-base {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: rgba(251, 248, 241, 0.5);
  font-family: var(--font-latin);
  letter-spacing: 0.08em;
}
.site-footer-base a {
  color: inherit;
  margin-left: 20px;
  cursor: pointer;
}
.site-footer-base a:first-child { margin-left: 0; }

/* ─── intro-stripe (what / whom / how) は numbered-grid で代替 ─── */

/* ─── Service detail page ─── */
.service-detail {
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  gap: 40px;
  padding: 64px 0;
  border-top: 1px solid var(--hair);
  align-items: flex-start;
}
.service-detail:first-child { border-top: none; padding-top: 0; }
@media (max-width: 1000px) {
  .service-detail { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
}
.service-detail-head {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
@media (max-width: 1000px) { .service-detail-head { position: static; } }
.service-detail-num {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.service-detail-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 0.06em;
}
.service-detail-en {
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.service-detail-body h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  margin: 28px 0 12px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-detail-body h4::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
}
.service-detail-body p {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 0;
}
.service-detail-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-detail-body li {
  padding: 8px 0 8px 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
  position: relative;
}
.service-detail-body li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: 4px;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}
.beforeafter {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
@media (max-width: 620px) {
  .beforeafter { grid-template-columns: 1fr; }
  .beforeafter-arrow { transform: rotate(90deg); text-align: center; }
}
.beforeafter-box {
  padding: 20px;
  background: var(--paper-white);
  border: 1px solid var(--hair);
}
.beforeafter-box.after {
  background: var(--ink);
  color: var(--paper-white);
  border-color: var(--ink);
}
.beforeafter-box .label {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.beforeafter-box.after .label { color: var(--accent); }
.beforeafter-box .text {
  font-size: 13px;
  line-height: 1.8;
}
.beforeafter-arrow {
  font-family: var(--font-latin);
  color: var(--accent);
  font-size: 20px;
}

/* ─── Case Study（MEO 等の実データ向け詳細ボックス）─── */
.case-study {
  background: var(--paper-white);
  border: 1px solid var(--hair);
  margin-top: 8px;
}
.case-study-header {
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
}
.case-study-site {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.case-study-metric-label {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.case-study-row {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.case-study-row.is-after {
  background: var(--ink);
  color: var(--paper-white);
}
.case-study-row-label {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.case-study-row.is-after .case-study-row-label { color: var(--accent-light); }
.case-study-row-period {
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.case-study-row.is-after .case-study-row-period { color: rgba(251, 248, 241, 0.6); }
.case-study-row-metric {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.06em;
  line-height: 1.1;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.case-study-row-metric small {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mute);
}
.case-study-row.is-after .case-study-row-metric small { color: rgba(251, 248, 241, 0.55); }
.case-study-delta {
  display: inline-block;
  margin-left: 12px;
  padding: 3px 10px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  border: 1px solid var(--accent-light);
  font-weight: 500;
  white-space: nowrap;
}
.case-study-arrow {
  padding: 6px 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--accent);
  background: var(--paper);
  border-block: 1px solid var(--hair);
  letter-spacing: 0.06em;
}
.case-study-highlights {
  list-style: none;
  padding: 22px 24px 26px;
  margin: 0;
}
.case-study-highlights li {
  padding: 6px 0 6px 20px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-soft);
  position: relative;
}
.case-study-highlights li::before {
  content: "─";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0;
}
@media (max-width: 640px) {
  .case-study-row {
    grid-template-columns: 60px 1fr;
    grid-template-areas:
      "label period"
      ".     metric";
    gap: 6px 16px;
  }
  .case-study-row-label { grid-area: label; }
  .case-study-row-period { grid-area: period; }
  .case-study-row-metric { grid-area: metric; font-size: 26px; }
  .case-study-delta { margin-left: 10px; }
  .case-study-header { padding: 14px 20px; }
  .case-study-row, .case-study-highlights { padding-inline: 20px; }
}
.service-detail-price {
  background: var(--paper-white);
  border: 1px solid var(--hair);
  padding: 28px 24px;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
@media (max-width: 1000px) { .service-detail-price { position: static; } }
.service-detail-price .label {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
}
.service-detail-price .amount {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  margin: 10px 0 6px;
  letter-spacing: 0.06em;
}
.service-detail-price .note {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.8;
}

/* ─── About / Profile ─── */
.about-profile {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  margin-bottom: 96px;
  align-items: flex-start;
}
@media (max-width: 900px) { .about-profile { grid-template-columns: 1fr; gap: 40px; } }
.about-img {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--paper-deep), var(--paper-alt));
  position: relative;
  overflow: hidden;
}
.about-img::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(26,22,19,0.04) 0 1px, transparent 1px 6px);
  z-index: 1;
  pointer-events: none;
}
.about-img-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
  pointer-events: none;
}
.about-img-label { z-index: 3; }
.about-img-label {
  position: absolute;
  bottom: 20px; left: 20px;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
}
.about-text h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 32px;
}
.about-text p {
  font-size: 15px;
  line-height: 2.2;
  margin-bottom: 20px;
  color: var(--ink);
  max-width: 38em;
}
.about-text .lead { font-size: 16px; font-weight: 500; }

.name-origin {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  padding: 48px;
  background: var(--paper-alt);
  align-items: center;
}
@media (max-width: 700px) {
  .name-origin { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
}
.name-origin-char {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 120px;
  line-height: 1;
  color: var(--accent);
  text-align: center;
}
.name-origin-char small {
  display: block;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  margin-top: 12px;
}
.name-origin-body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.name-origin-body p {
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink-soft);
  max-width: 52em;
}

.company-info {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.company-info th,
.company-info td {
  padding: 20px 4px;
  text-align: left;
  border-top: 1px solid var(--hair);
  vertical-align: top;
  line-height: 1.9;
}
.company-info tr:last-child th,
.company-info tr:last-child td {
  border-bottom: 1px solid var(--hair);
}
.company-info th {
  width: 180px;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
  font-size: 13px;
}
.company-info td { color: var(--ink-soft); }
@media (max-width: 640px) {
  .company-info th, .company-info td { display: block; padding: 12px 4px; }
  .company-info th { border-bottom: none; padding-bottom: 4px; width: auto; font-size: 12px; color: var(--ink-mute); }
  .company-info td { padding-top: 0; border-top: none; }
}

/* ─── Contact（再設計）─── */

/* 3 つのチャネルを同じ重みで並べる */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  margin-bottom: 64px;
}
@media (max-width: 820px) { .contact-channels { grid-template-columns: 1fr; } }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--paper-white);
  color: var(--ink);
  transition: background 200ms, color 200ms;
  min-height: 76px;
}
.contact-channel:hover { background: var(--paper); color: var(--accent); }
.contact-channel-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hair-strong);
  color: var(--accent);
}
.contact-channel-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.contact-channel-val {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.contact-channel:hover .contact-channel-val { color: var(--accent); }
.contact-channel-line .contact-channel-icon { color: #06C755; border-color: rgba(6,199,85,0.3); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-form {
  background: var(--paper-white);
  border: 1px solid var(--hair);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (max-width: 640px) { .contact-form { padding: 28px 20px; } }
.contact-form-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 6px;
}
.contact-form-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.contact-form-sub {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field > label,
.field > legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.field .req {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent);
  color: var(--paper-white);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.field .opt {
  display: inline-block;
  padding: 2px 8px;
  background: var(--paper);
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 500;
  border: 1px solid var(--hair-strong);
}
.field .char-count {
  margin-left: auto;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--hair-strong);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  transition: border-color 180ms, background 180ms, box-shadow 180ms;
  outline: none;
  width: 100%;
  font-family: inherit;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--paper-white);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field textarea { min-height: 180px; resize: vertical; }
.field.is-error input,
.field.is-error textarea {
  border-color: #C74B3C;
  background: #FDF6F4;
}
.field-error {
  font-size: 12px;
  color: #C74B3C;
  line-height: 1.7;
}
.field-radio legend { margin-bottom: 4px; padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--hair-strong);
  background: #fff;
  cursor: pointer;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  transition: border-color 160ms, background 160ms, color 160ms;
  user-select: none;
}
.radio-chip input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chip:hover { border-color: var(--ink-mute); }
.radio-chip.is-on {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 500;
}

.field-check .check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
  cursor: pointer;
}
.field-check input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.field-check.is-error .check-row { color: #C74B3C; }

/* Honeypot（画面上は見えないがスクリーンリーダは無視できる） */
.hp-field {
  position: absolute;
  left: -10000px;
  top: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.btn-submit {
  align-self: flex-start;
  padding: 18px 44px;
  font-size: 14.5px;
  min-height: 52px;
  margin-top: 8px;
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--paper-white);
  border-radius: 50%;
  animation: spin 720ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* フォーム内のアラート（送信エラー時） */
.form-alert {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  border-left: 3px solid;
}
.form-alert strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.form-alert a { color: inherit; border-bottom: 1px solid currentColor; }
.form-alert-error {
  background: #FDF6F4;
  border-left-color: #C74B3C;
  color: #8A2F24;
}
.contact-form-note {
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-mute);
  margin-top: -4px;
}
.contact-form-note a { color: var(--accent); border-bottom: 1px solid currentColor; }

.contact-thanks {
  padding: 56px 40px;
  background: var(--paper-white);
  border: 1px solid var(--hair);
  text-align: center;
}
.contact-thanks .big {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.contact-thanks p {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.contact-thanks-addr {
  padding: 16px 0;
}
.contact-thanks-addr a {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--accent);
}
.contact-thanks a { color: var(--accent); border-bottom: 1px solid currentColor; }

.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-side-card {
  padding: 28px 24px;
  background: var(--paper-white);
  border: 1px solid var(--hair);
}
.contact-side-card h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
}
.contact-side-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.95;
  margin: 0;
}
.flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flow-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
}
.flow-list li span {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.faq-list li {
  padding: 8px 0 8px 16px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft);
  position: relative;
}
.faq-list li::before {
  content: "―";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--accent);
}

/* ─── Careers ─── */
.careers-hero {
  padding-bottom: 72px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 80px;
}
.careers-hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin: 16px 0 28px;
}
.careers-hero p {
  font-size: 15px;
  line-height: 2.2;
  max-width: 46ch;
  color: var(--ink-soft);
}
.team-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 72px;
}
@media (max-width: 900px) { .team-mini { grid-template-columns: 1fr; } }
.team-card {
  padding: 32px 28px;
  background: var(--paper-white);
  border: 1px solid var(--hair);
}
.team-avatar {
  width: 48px; height: 48px;
  background: var(--ink);
  color: var(--paper-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 20px;
}
.team-card-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.team-card-role {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.team-card-quote {
  font-size: 13px;
  line-height: 2;
  color: var(--ink-soft);
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}
.careers-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
}
@media (max-width: 900px) { .careers-values { grid-template-columns: 1fr; } }
.value-card {
  padding: 40px 28px;
  border-bottom: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
}
.value-card:nth-child(3n) { border-right: none; }
@media (max-width: 900px) { .value-card { border-right: none; } }
.value-card .num {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.value-card h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  line-height: 1.6;
}
.value-card p {
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-soft);
}

/* ─── Scroll-reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1000ms var(--ease-out);
}
.reveal-clip.in { clip-path: inset(0 0 0 0); }

/* ─── Legal pages（Privacy / 特商法）─── */
.legal-page .legal-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.legal-body section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-body h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
}
.legal-body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  margin-top: 12px;
  color: var(--ink);
}
.legal-body p, .legal-body ul, .legal-body ol, .legal-body address {
  font-size: 14px;
  line-height: 2;
  color: var(--ink);
  max-width: 68ch;
  margin: 0;
}
.legal-body ul, .legal-body ol {
  padding-left: 24px;
}
.legal-body li { padding: 2px 0; }
.legal-body a { color: var(--accent); border-bottom: 1px solid currentColor; }
.legal-body address { font-style: normal; line-height: 1.95; }
.legal-updated {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  margin-top: 48px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}
.legal-table th,
.legal-table td {
  padding: 20px 4px;
  text-align: left;
  border-top: 1px solid var(--hair);
  vertical-align: top;
  line-height: 1.95;
}
.legal-table tr:last-child th,
.legal-table tr:last-child td { border-bottom: 1px solid var(--hair); }
.legal-table th {
  width: 200px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.legal-table td { color: var(--ink-soft); }
.legal-table td small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-mute); }
@media (max-width: 640px) {
  .legal-table th, .legal-table td { display: block; padding: 12px 4px; }
  .legal-table th { border-bottom: none; padding-bottom: 4px; width: auto; font-size: 12px; color: var(--ink-mute); letter-spacing: 0.1em; }
  .legal-table td { padding-top: 0; border-top: none; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .char { opacity: 1 !important; transform: none !important; }
  .reveal-clip { clip-path: none !important; }
}

/* ========================================================
   レスポンシブ補強 — タブレット／スマホの穴埋め
   既存 @media のブレークポイントに小さな穴があったり、
   長文・nowrap・固定ピクセル指定が narrow viewport で破綻する
   ケースを吸収する。後から読み込むことで上書きされる。
======================================================== */

/* ── タブレット（〜960px）: 上下パディングと本文スケールを適正化 ── */
@media (max-width: 960px) {
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 56px; }
  h1, h2, h3 { overflow-wrap: anywhere; }
}

/* ── スマホ（〜640px）: 基本スケールを縮める ── */
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .container, .container-narrow, .container-wide { padding: 0 20px; }
  .section-title { font-size: clamp(28px, 7vw, 42px) !important; }

  /* 長い見出し・リード文の安全網 */
  h1, h2, h3, p, li, dd, .hero-lead, .section-lead {
    overflow-wrap: anywhere;
    word-break: normal;
  }
  /* 見出しの `word-break: keep-all` を一部緩和し、
     narrow では日本語途中改行を許容してはみ出し防止 */
  .hero-h1 { word-break: normal; overflow-wrap: break-word; }
}

/* ── 極小スマホ（〜420px） ── */
@media (max-width: 420px) {
  .section { padding: 56px 0; }
  .container, .container-narrow, .container-wide { padding: 0 16px; }
  .hero-h1-line { white-space: normal; }
  .eyebrow { font-size: 11px; letter-spacing: 0.16em; }
}

/* ── Sticky CTA: モバイルで横幅を実画面に合わせ、ボタンが箱からはみ出さない ── */
@media (max-width: 720px) {
  .sticky-cta {
    width: calc(100% - 16px);       /* 箱を横幅いっぱいに広げる */
    max-width: calc(100% - 16px);
    bottom: 12px;
    padding: 8px 10px;
    gap: 6px;
    justify-content: space-between;  /* 3 ボタンを均等配置 */
  }
  .sticky-cta .btn {
    padding: 9px 8px;
    font-size: 12px;
    letter-spacing: 0.04em;
    gap: 6px;
    white-space: nowrap;
    flex: 1 1 0;                     /* 均等な幅でスペースを埋める */
    justify-content: center;
    min-width: 0;                    /* 内部テキストで縮まなくなるのを防止 */
  }
  .sticky-cta .btn svg { width: 12px; height: 12px; flex-shrink: 0; }
}
@media (max-width: 380px) {
  .sticky-cta { padding: 6px 8px; gap: 4px; }
  .sticky-cta .btn { padding: 8px 6px; font-size: 11.5px; gap: 4px; }
}

/* ── Initiative lead の nowrap 固定 span は極小幅で折返し許可 ── */
@media (max-width: 380px) {
  .initiative-lead span[style*="nowrap"] { white-space: normal !important; }
}

/* ── Contact フォーム: 320px での最終調整 ── */
@media (max-width: 380px) {
  .contact-form { padding: 20px 14px; }
  .contact-form input,
  .contact-form textarea,
  .contact-form select { font-size: 16px; } /* iOS 自動ズーム防止 */
}

/* ── Numbered grid / auto-fit 系のブレークポイント補強 ── */
@media (max-width: 480px) {
  .numbered-grid,
  .initiative-facts,
  .team-mini,
  .careers-values {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

/* ── 画像・SVG の全体上限（万が一の width 指定漏れ対策）── */
img, svg { max-width: 100%; height: auto; }

/* ── 表の横スクロール化（タブレット以下で table が確実に収まる）── */
@media (max-width: 640px) {
  .legal-body table,
  .company-info {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── フォーカス表示をレスポンシブで保つ（a11y）── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── HTML 全体で横スクロール完全防止 ── */
html, body { overflow-x: clip; }

/* ========================================================
   モバイル（640px以下）での固定フォントサイズ・セクション別
   大見出し群を徹底的に縮小／安全ラップ化
======================================================== */

@media (max-width: 640px) {
  /* サービス詳細ページ */
  .service-detail-title { font-size: clamp(22px, 6.2vw, 28px); letter-spacing: 0.04em; }
  .service-detail-body p,
  .service-detail-body li { font-size: 13.5px; line-height: 1.85; }
  .service-detail-body h4 { font-size: 15px; margin: 20px 0 8px; }
  .service-detail-body h4::before { width: 12px; }

  /* Price カード */
  .service-detail-price .amount { font-size: clamp(20px, 5.8vw, 24px); }

  /* Case study（数字の桁が長いとき overflow 対策）*/
  .case-study-row-metric { font-size: clamp(20px, 6.2vw, 26px) !important; white-space: normal; flex-wrap: wrap; }
  .case-study-row-period { font-size: 12px; }

  /* Contact フォーム送信後のサンクス */
  .contact-thanks .big { font-size: clamp(18px, 5vw, 22px); }

  /* Voices セクションなどの斜めデコ数字も縮小 */
  [style*="rotate"] { font-size: inherit; }

  /* 汎用テキスト安全網 — どんなに長いテキストでも折返す */
  p, li, dd, span, a, h1, h2, h3, h4, h5 {
    overflow-wrap: anywhere;
  }

  /* 記号・括弧・句読点で始まる行の防止（禁則処理）*/
  p, li, dd {
    line-break: strict;
  }
}

@media (max-width: 420px) {
  .service-detail-title { font-size: clamp(20px, 6vw, 24px); }
  .service-detail-body p,
  .service-detail-body li { font-size: 13px; line-height: 1.8; padding-left: 14px; }
  .service-detail-body h4 { font-size: 14px; }
  .case-study-row-metric { font-size: 19px !important; }
  .service-detail-price .amount { font-size: 20px; }
}
