/* ==========================================================================
   UML Studio — 公式サイト スタイルシート v3
   白×青のライトトーン / タイポグラフィ主体のエディトリアルデザイン
   （英字見出しを大きく・日本語サブタイトルを小さく太く / フラットな面と罫線）
   ========================================================================== */

:root {
  /* ---- Edit Bay パレット（編集室の暗色＋フラットな青＋プレイヘッドのシアン） ---- */
  --ink: #0C1626;          /* 編集室の暗色：テキスト・ダーク面 */
  --ink-2: #080F1C;        /* さらに深い面 */
  --paper: #FFFFFF;
  --mist: #F3F5F8;         /* 淡いクールグレーの面 */
  --line: #E4E7ED;         /* 極細罫 */
  --blue: #1D4ED8;         /* プライマリ（グラデにせずフラットに使う） */
  --blue-ink: #1A3FAE;     /* hover 用 */
  --playhead: #16C2D5;     /* シアン：プレイヘッド／タイムライン表現の時だけ */

  /* ---- 既存スタイル互換エイリアス（サイト全体の var(--color-*) をこの1箇所で更新） ---- */
  --color-navy: var(--ink);
  --color-navy-deep: var(--ink-2);
  --color-ink: var(--ink);
  --color-blue: var(--blue);
  --color-sky: var(--playhead);
  --color-light-blue: #A6B7D4;
  --color-pale: var(--mist);
  --color-pale-2: #F8FAFB;
  --color-text: #28313F;
  --color-text-muted: #667488;
  --color-border: var(--line);
  --color-white: #FFFFFF;

  /* ---- タイポグラフィ（3役に確定：日本語ゴシック／ラテン見出し／mono ラベル） ---- */
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-en: "Space Grotesk", "Zen Kaku Gothic New", sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  --font-serif: var(--font-body); /* 明朝は廃止しゴシックに統一 */

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --radius: 8px;
  --header-height: 68px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); background: var(--color-white); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: transparent; /* 固定背景（.float-bg）を透かすため */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* clip未対応ブラウザ用フォールバック */
  overflow-x: clip;   /* 横はみ出しを隠しつつスクロールコンテナ化を防ぐ */
  /* 対応ブラウザ（Chrome/Edge）では日本語を文節単位で折り返す。
     非対応（通常のSafari等）では通常の折り返しにフォールバック＝はみ出しは起きない */
  word-break: auto-phrase;
  line-break: strict;
}

/* ---- 固定背景：背景画像＋浮遊する幾何学モチーフ ---- */
.float-bg {
  position: fixed;
  inset: -4%; /* パンしても端が見えないよう一回り大きく */
  z-index: -1;
  pointer-events: none;
  background: url('/assets/images/bg-main.jpg') center / cover no-repeat;
  animation: bgPan 38s ease-in-out infinite alternate; /* 背景画像がゆっくり漂う */
  will-change: transform;
}
@keyframes bgPan {
  from { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-1.6%, 1.2%) scale(1.05); }
  to   { transform: translate(1.4%, -1%) scale(1.02); }
}
.float-bg::after {
  /* 本文の可読性を保つための薄い白ベール */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.42);
}
.fb { position: absolute; border-radius: 50%; will-change: transform; }
.fb--c1 { width: 190px; height: 190px; top: 6%; left: -60px; background: radial-gradient(circle at 35% 30%, rgba(96, 165, 250, 0.4), rgba(96, 165, 250, 0.12)); animation: fbA 8s ease-in-out infinite; }
.fb--c2 { width: 300px; height: 300px; top: 32%; right: -110px; background: radial-gradient(circle at 35% 30%, rgba(59, 130, 246, 0.32), rgba(59, 130, 246, 0.08)); animation: fbB 11s ease-in-out infinite; }
.fb--c3 { width: 110px; height: 110px; bottom: 24%; left: 7%; background: radial-gradient(circle at 35% 30%, rgba(147, 197, 253, 0.5), rgba(147, 197, 253, 0.15)); animation: fbC 7s ease-in-out infinite; }
.fb--c4 { width: 60px; height: 60px; top: 16%; right: 22%; background: radial-gradient(circle at 35% 30%, rgba(14, 165, 233, 0.35), rgba(14, 165, 233, 0.1)); animation: fbD 6.5s ease-in-out infinite; }
.fb--ring1 { width: 220px; height: 220px; bottom: -70px; right: 16%; border: 2px solid rgba(29, 78, 216, 0.16); animation: fbB 10s ease-in-out infinite; }
.fb--ring2 { width: 90px; height: 90px; top: 52%; left: 18%; border: 2px solid rgba(14, 165, 233, 0.22); animation: fbA 7.5s ease-in-out infinite; }
.fb--sq1 { width: 26px; height: 26px; border-radius: 5px; top: 66%; right: 8%; background: rgba(96, 165, 250, 0.3); animation: fbD 9s ease-in-out infinite; }
.fb--sq2 { width: 16px; height: 16px; border-radius: 4px; top: 8%; left: 34%; background: rgba(147, 197, 253, 0.45); animation: fbC 8.5s ease-in-out infinite; }
.fb--dots1 {
  width: 150px; height: 150px; border-radius: 0;
  top: 12%; right: 5%;
  background-image: radial-gradient(rgba(29, 78, 216, 0.22) 1.6px, transparent 1.7px);
  background-size: 14px 14px;
  animation: fbC 9.5s ease-in-out infinite;
}
.fb--dots2 {
  width: 120px; height: 120px; border-radius: 0;
  bottom: 8%; left: -20px;
  background-image: radial-gradient(rgba(14, 165, 233, 0.24) 1.6px, transparent 1.7px);
  background-size: 13px 13px;
  animation: fbA 11s ease-in-out infinite;
}
/* ランダムな方向に漂う多点軌道（4パターン・回転も含む） */
@keyframes fbA {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(26px, -20px) rotate(6deg); }
  50%  { transform: translate(-18px, -30px) rotate(-5deg); }
  75%  { transform: translate(-28px, 16px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes fbB {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(-24px, 18px) rotate(-7deg); }
  45%  { transform: translate(20px, 28px) rotate(5deg); }
  70%  { transform: translate(30px, -14px) rotate(8deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes fbC {
  0%   { transform: translate(0, 0) rotate(0deg); }
  30%  { transform: translate(22px, 22px) rotate(9deg); }
  55%  { transform: translate(-26px, 10px) rotate(-8deg); }
  80%  { transform: translate(12px, -24px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes fbD {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(-20px, -22px) rotate(-10deg); }
  50%  { transform: translate(28px, -8px) rotate(12deg); }
  75%  { transform: translate(16px, 26px) rotate(-6deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 文節をひとかたまりとして扱い、「、」「・」の区切りでのみ改行させる。
   画面幅に応じて折り返し位置が変わるので、PC・スマホどちらでも読みやすい */
.phrase { display: inline-block; }

/* ---- レイアウト共通 ---- */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; overflow: hidden; }
.section--pale { background: var(--mist); }
.section > .container,
.page-hero > .container,
.cta-section > .container { position: relative; z-index: 1; }

/* 見出し＝タイムライン・マーカー：細い罫（トラック）＋プレイヘッド＋monoラベル＋日本語大見出し */
.section-heading { position: relative; text-align: left; margin-bottom: 52px; padding-top: 26px; }
.section-heading::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--line);
}
.section-heading::after {
  content: "";
  position: absolute; top: -3.5px; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--playhead);
  box-shadow: 0 0 0 4px rgba(22, 194, 213, 0.16);
}
.section-heading .en {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-heading .ja {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(25px, 3.6vw, 35px);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1.4;
  color: var(--ink);
}
.section-heading .ja::before { content: none; }
/* ダーク面（.section--navy）用の反転 */
.section--navy .section-heading::before { background: rgba(255, 255, 255, 0.16); }
.section--navy .section-heading .en { color: var(--playhead); }
.section--navy .section-heading .ja { color: #FFFFFF; }
.section-lead { text-align: left; color: var(--color-text-muted); max-width: 640px; margin: -32px 0 48px; font-size: 14.5px; }

/* ---- ボタン（フラット単色＋丸矢印アイコン） ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 14px 22px 14px 30px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-align: center;
  border: 1px solid transparent;
  transition: background-color 0.45s var(--ease-out), border-color 0.45s var(--ease-out), color 0.45s var(--ease-out);
}
.btn::after {
  content: "→";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::after { transform: translateX(4px); }
.btn--primary { background: var(--color-blue); color: var(--color-white); }
.btn--primary::after { background: var(--color-white); color: var(--color-blue); }
.btn--primary:hover { background: var(--color-navy); }
.btn--ghost {
  background: var(--color-white);
  color: var(--color-ink);
  border-color: var(--color-border);
}
.btn--ghost::after { background: var(--color-pale); color: var(--color-ink); }
.btn--ghost:hover { border-color: var(--color-navy); }
.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--outline-white::after { background: rgba(255, 255, 255, 0.14); color: var(--color-white); }
.btn--outline-white:hover { border-color: var(--color-white); }
.btn--large { min-height: 62px; padding: 16px 24px 16px 36px; font-size: 15.5px; }

/* ---- ヘッダー ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
}
.header-logo { display: block; }
.header-logo img { width: 134px; height: auto; }
.header-logo .logo-light { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
}
.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.global-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 16px 32px rgba(16, 27, 48, 0.07);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out), visibility 0.35s;
}
.global-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.nav-list { padding: 12px 24px 22px; }
.nav-link {
  display: block;
  padding: 13px 8px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-pale);
}
.nav-link.is-current { color: var(--color-blue); }
.nav-link--cta {
  margin-top: 14px;
  border: 0;
  border-radius: var(--radius);
  text-align: center;
  background: var(--color-blue);
}
/* CTAボタンは現在地表示（.is-current）でも白文字を維持する */
.nav-link--cta,
.nav-link--cta.is-current { color: var(--color-white); }
.nav-link--cta.is-current { background: var(--color-navy); }

/* ==========================================================================
   ヒーロー（ライトトーン・タイポグラフィ主体）
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
}
.hero-inner { position: relative; z-index: 1; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-blue);
  margin-bottom: 26px;
}
.hero-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-blue);
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(31px, 7.4vw, 52px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--color-ink);
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--color-blue); }
.hero-lead {
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: 15px;
  max-width: 540px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* 起動時のリビール（順番にふわっと出す） */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1.1s var(--ease-out) forwards;
  animation-delay: var(--rd, 0s);
}
.reveal.d1 { --rd: 0.05s; }
.reveal.d2 { --rd: 0.16s; }
.reveal.d3 { --rd: 0.28s; }
.reveal.d4 { --rd: 0.4s; }
.reveal.d5 { --rd: 0.54s; }
.reveal.d6 { --rd: 0.7s; }
/* ローディング演出がある間はヒーローの出現を遅らせる（幕が上がるのに合わせる） */
html:not(.intro-skip) .reveal { animation-delay: calc(var(--rd, 0s) + 1.55s); }
@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }

/* ---- サイト起動時のローディング演出 ---- */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-white);
  display: grid;
  place-items: center;
  animation: loaderOut 0.85s var(--ease-out) 1.6s forwards;
  pointer-events: none;
}
.loader-inner { display: grid; justify-items: center; gap: 22px; }
.loader-inner img {
  width: clamp(160px, 40vw, 210px);
  height: auto;
  opacity: 0;
  transform: translateY(16px);
  animation: loaderLogoIn 0.8s var(--ease-out) 0.15s forwards;
}
.loader-bar {
  position: relative;
  width: 150px;
  height: 2px;
  background: var(--color-border);
  overflow: hidden;
  opacity: 0;
  animation: loaderLogoIn 0.5s ease 0.3s forwards;
}
.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-blue);
  transform: scaleX(0);
  transform-origin: left;
  animation: loaderFill 1.15s var(--ease-out) 0.35s forwards;
}
@keyframes loaderLogoIn { to { opacity: 1; transform: translateY(0); } }
@keyframes loaderFill { to { transform: scaleX(1); } }
@keyframes loaderOut {
  to { transform: translateY(-100%); visibility: hidden; }
}
/* 同一セッションで2回目以降は表示しない（headのインラインJSがクラスを付与） */
html.intro-skip .site-loader { display: none; }

/* ---- 編集ソフト風モックアップ（実物のアプリ画面のように） ---- */
.hero-visual { position: relative; margin-top: 52px; }
.editor-mock {
  position: relative;
  background: #0C1830;
  border: 1px solid #1B315C;
  border-radius: 10px;
  box-shadow: 0 28px 64px rgba(15, 46, 100, 0.22);
  overflow: hidden;
}
.editor-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.14);
  background: #0A1428;
}
.editor-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(147, 197, 253, 0.22); }
.editor-bar .dot:first-child { background: rgba(96, 165, 250, 0.55); }
.editor-bar-title {
  margin-left: 8px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(147, 197, 253, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* プレビューモニター */
.editor-preview {
  position: relative;
  aspect-ratio: 16 / 6.5;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(29, 78, 216, 0.25), transparent 70%), #081226;
  display: grid;
  place-items: center;
}
.editor-timecode {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #38BDF8;
}
.editor-preview .preview-badge {
  position: absolute;
  left: 14px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(147, 197, 253, 0.75);
}
.editor-preview .preview-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-sky);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* タイムライン（プレイヘッドをドラッグ／クリックでシーク可能） */
.editor-timeline {
  position: relative;
  padding: 16px 16px 18px;
  display: grid;
  gap: 9px;
  border-top: 1px solid rgba(147, 197, 253, 0.14);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.editor-timeline.is-scrubbing { cursor: grabbing; }
.tl-ruler {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-en);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(147, 197, 253, 0.45);
  padding-bottom: 2px;
}
.tl-track {
  position: relative;
  height: 22px;
  border-radius: 4px;
  background: rgba(147, 197, 253, 0.07);
  overflow: hidden;
}
.tl-clip {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 3px;
  background: #2E63E8;
}
.tl-clip--sky { background: #0996D4; }
.tl-clip--light { background: #5A8CF2; }
.tl-clip--trim { animation: clipTrim 7s ease-in-out infinite; }
.tl-clip--slide { animation: clipSlide 9s ease-in-out infinite; }
@keyframes clipTrim {
  0%, 18% { width: 24%; }
  38%, 58% { width: 37%; }
  78%, 100% { width: 24%; }
}
@keyframes clipSlide {
  0%, 15% { transform: translateX(0); }
  45%, 65% { transform: translateX(26%); }
  90%, 100% { transform: translateX(0); }
}

/* 音声トラック（波形） */
.tl-track--audio {
  display: flex;
  align-items: center;
  gap: 2.5px;
  padding: 0 6px;
  background: rgba(14, 165, 233, 0.08);
}
.tl-track--audio span {
  flex: 1;
  height: 30%;
  min-width: 2px;
  border-radius: 1px;
  background: #22A7DE;
  opacity: 0.9;
  animation: wavePulse 1.6s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
  transform-origin: center;
}
.tl-track--audio span:nth-child(3n)  { height: 62%; }
.tl-track--audio span:nth-child(4n)  { height: 44%; }
.tl-track--audio span:nth-child(5n)  { height: 78%; }
.tl-track--audio span:nth-child(7n)  { height: 52%; }
.tl-track--audio span:nth-child(11n) { height: 68%; }
@keyframes wavePulse { from { transform: scaleY(0.45); } to { transform: scaleY(1.1); } }

/* プレイヘッド（左→右へ流れ続ける） */
.tl-playhead {
  position: absolute;
  top: 6px;
  bottom: 8px;
  left: 16px;
  width: 2px;
  z-index: 2;
  background: #38BDF8;
  animation: playheadSweep 12s linear infinite;
  pointer-events: none;
}
.tl-playhead::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -5px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #38BDF8;
}
@keyframes playheadSweep {
  from { transform: translateX(0); }
  to { transform: translateX(min(86vw, 620px)); }
}

/* 浮遊チップ（編集項目のラベル） */
.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 13px;
  box-shadow: 0 10px 24px rgba(12, 22, 38, 0.12);
}
.float-chip::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--blue);
}
.float-chip--1 { top: -14px; right: 7%; }
.float-chip--2 { bottom: 34%; left: -10px; }
.float-chip--2::before { background: var(--playhead); }
.float-chip--3 { bottom: -14px; right: 12%; }
.float-chip--3::before { background: var(--color-light-blue); }

/* 数値実績（罫線で区切ったストリップ） */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 52px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}
.stat-card {
  padding: 22px 26px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.stat-card + .stat-card { border-top: 1px solid var(--color-border); }
.stat-number {
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stat-number small { font-size: 14px; font-weight: 700; color: var(--color-blue); margin-left: 2px; }
.stat-label { font-size: 12.5px; color: var(--color-text-muted); line-height: 1.6; }

/* スクロールインジケーター */
.hero-scroll {
  display: none;
  position: absolute;
  right: 30px;
  bottom: 0;
  z-index: 2;
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #8296B3;
  writing-mode: vertical-rl;
  padding-bottom: 78px;
}
.hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 64px;
  background: #C4D2E4;
}
.hero-scroll::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 64px;
  background: var(--color-blue);
  animation: scrollLine 2.4s var(--ease-out) infinite;
  z-index: 1;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

/* ---- お悩みセクション ---- */
.problems-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.problem-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 30px 26px;
}
.problem-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--color-ink);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.problem-card-title .tag {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-blue);
  border-radius: 3px;
  padding: 4px 10px;
  letter-spacing: 0.06em;
}
.problem-card-title .tag--sky { background: var(--color-sky); }
.problem-list li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 14px;
  color: var(--color-text);
}
.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 12px;
  height: 2px;
  background: var(--color-blue);
}
.problems-close {
  margin-top: 36px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-ink);
  font-size: 17.5px;
  letter-spacing: 0.05em;
}
.problems-close .highlight { color: var(--color-blue); }

/* ---- キャッチコピー（中央大配置） ---- */
.catch-section { padding: 96px 0; text-align: center; }
.catch-copy {
  font-family: var(--font-serif);
  font-size: clamp(21px, 4.4vw, 36px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--color-ink);
}
.catch-copy .highlight { color: var(--color-blue); }
.catch-br { display: none; }
@media (min-width: 768px) {
  .catch-section { padding: 130px 0; }
  .catch-br { display: inline; }
}

/* ---- サービスセクション（ホバーで写真が下からスライドイン） ---- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 40px 34px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.45s var(--ease-out), transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.service-card:hover,
.service-card.is-touch-active {
  border-color: var(--color-navy);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(15, 46, 100, 0.18);
}
/* 下からスライドインする写真レイヤー */
.service-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: translateY(101%);
  transition: transform 0.65s var(--ease-out);
}
.service-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 69, 0.3) 0%, rgba(11, 31, 69, 0.82) 100%);
}
.service-card:hover .service-photo,
.service-card.is-touch-active .service-photo { transform: translateY(0); }
/* 写真より前面に出す本文 */
.service-card > *:not(.service-photo) { position: relative; z-index: 1; }
/* アイコンバッジ（青地×白のソリッドアイコン、ホバー/タップで反転） */
.service-icon {
  --badge-bg: var(--color-blue);
  width: 66px;
  height: 66px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--badge-bg);
  color: var(--color-white);
  margin-bottom: 22px;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.45s var(--ease-out);
}
.service-card:hover .service-icon,
.service-card.is-touch-active .service-icon {
  --badge-bg: #FFFFFF;
  background: #FFFFFF;
  color: var(--color-blue);
  transform: scale(1.06);
}
.service-icon svg { width: 36px; height: 36px; }
.service-icon .glyph { fill: currentColor; }
.service-icon .detail { fill: var(--badge-bg); }
.service-name { font-size: 19px; font-weight: 700; color: var(--color-ink); margin-bottom: 12px; transition: color 0.4s ease; }
.service-desc { font-size: 14.5px; line-height: 1.9; color: var(--color-text-muted); transition: color 0.4s ease; }
/* サービスの箇条書きタグ（「・」区切りを見やすく） */
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 12px;
}
.svc-tags li {
  position: relative;
  padding-left: 15px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-blue);
  white-space: nowrap; /* 各項目は途中で改行しない */
  transition: color 0.4s ease;
}
.svc-tags li::before { content: "・"; position: absolute; left: 0; }
.service-card:hover .service-name,
.service-card.is-touch-active .service-name { color: var(--color-white); }
.service-card:hover .service-desc,
.service-card.is-touch-active .service-desc { color: rgba(238, 245, 252, 0.9); }
.service-card:hover .svc-tags li,
.service-card.is-touch-active .svc-tags li { color: #FFFFFF; }

.services-sub { margin-top: 52px; }
.services-sub-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.services-sub-title::before { content: ""; width: 8px; height: 8px; background: var(--color-sky); }
.services-sub-note { font-size: 13px; color: var(--color-text-muted); margin-top: 18px; }
.sub-services-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.sub-service-card {
  background: var(--color-pale-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: border-color 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.sub-service-card:hover { border-color: var(--color-navy); transform: translateY(-3px); }
.sub-service-name { font-size: 18px; font-weight: 700; color: var(--color-ink); }
.sub-service-desc { font-size: 14px; color: var(--color-text-muted); margin-top: 8px; }

/* ---- 強みセクション（写真＋テキストを左右交互に大きく） ---- */
.strengths-intro { display: grid; gap: 44px; }
.strength-block { display: grid; grid-template-columns: 1fr; gap: 20px; }
.strength-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 46, 100, 0.12);
}
.strength-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.strength-block:hover .strength-photo img { transform: scale(1.05); }
.strength-text { position: relative; }
.strength-no {
  display: block;
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-light-blue);
  margin-bottom: 12px;
}
.strength-heading {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--color-ink);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-blue);
}
.strength-body { font-size: 14px; line-height: 1.95; color: var(--color-text-muted); }

/* ---- 実績セクション ---- */
.works-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.work-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.work-card:hover { border-color: var(--color-navy); transform: translateY(-3px); }
.work-thumb {
  aspect-ratio: 16 / 9;
  background: var(--mist);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-thumb .thumb-mark { width: 52px; height: 52px; object-fit: contain; opacity: 0.45; }
.work-card:hover .work-thumb .thumb-mark { transform: scale(1.1); }
.work-body { padding: 18px 20px 22px; }
.work-genre {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-blue);
  border: 1px solid rgba(29, 78, 216, 0.35);
  border-radius: 3px;
  padding: 3px 9px;
  margin-bottom: 10px;
}
.work-name { font-size: 15px; font-weight: 700; color: var(--color-ink); }
.work-desc { font-size: 13px; color: var(--color-text-muted); margin-top: 6px; }
.works-note { font-size: 12.5px; color: var(--color-text-muted); margin-top: 26px; }

/* ---- 実績ログ（編集ソフトのプロジェクト情報パネル風・mono リードアウト） ---- */
.record-readout {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
}
.record-item { padding: 26px 28px; }
.record-item + .record-item { border-top: 1px solid var(--line); }
.record-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 10px;
}
.record-value {
  font-family: var(--font-mono);
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.record-value small {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 1px 0 3px;
  letter-spacing: 0.02em;
}
.record-note { margin-top: 20px; font-size: 13px; color: var(--muted); }
@media (min-width: 768px) {
  .record-readout { grid-template-columns: repeat(3, 1fr); }
  .record-item { padding: 34px 32px; }
  .record-item + .record-item { border-top: 0; border-left: 1px solid var(--line); }
}

/* ---- 流れセクション（大きな円のアイコンをつなぐ / モバイルは縦） ---- */
.flow-steps { display: flex; flex-direction: column; gap: 0; max-width: 440px; margin: 0 auto; }
.flow-node {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 34px;
}
.flow-node:last-child { padding-bottom: 0; }
/* モバイル：縦の接続線 */
.flow-node .flow-connector {
  position: absolute;
  left: 43px;
  top: 94px;
  bottom: 6px;
  width: 3px;
  background: var(--color-light-blue);
}
.flow-circle {
  position: relative;
  flex-shrink: 0;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.22);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.flow-node:hover .flow-circle {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.4);
}
/* 白アイコン（背景透過済み）を青円の中央へ */
.flow-circle img {
  width: 50%;
  height: 50%;
  object-fit: contain;
}
.flow-caption { flex: 1; padding-top: 6px; }
.flow-step-label {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-blue);
  margin-bottom: 4px;
}
.flow-step-label b { font-size: 18px; margin-left: 4px; }
.flow-name { font-size: 15.5px; font-weight: 700; color: var(--color-ink); line-height: 1.5; margin-bottom: 8px; }
.flow-desc { font-size: 13px; line-height: 1.85; color: var(--color-text-muted); }

/* ---- FAQ（罫線リスト・中央配置） ---- */
.faq-list { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); transition: background-color 0.45s var(--ease-out); }
.faq-item:hover { background: var(--color-pale-2); }
.faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 22px 4px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  line-height: 1.7;
}
.faq-question .q-mark {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--color-blue);
  font-size: 16px;
}
.faq-question .faq-icon {
  flex-shrink: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: border-color 0.3s ease;
}
.faq-item.is-open .faq-question .faq-icon { border-color: var(--color-blue); }
.faq-question .faq-icon::before,
.faq-question .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--color-blue);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}
.faq-question .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-question .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer {
  display: none;
  padding: 0 4px 22px 34px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.faq-item.is-open .faq-answer { display: block; }

/* ---- ページ下部CTA ---- */
.cta-section {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 76px 0;
}
.cta-label {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  color: var(--color-white);
}
.cta-message {
  margin-top: 22px;
  max-width: 640px;
  font-family: var(--font-body);
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--color-white);
}
.cta-subtext {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: rgba(230, 240, 250, 0.78);
}
.cta-right { display: grid; gap: 16px; margin-top: 36px; }
.cta-right .btn { width: 100%; }
.cta-section .btn--primary { background: var(--color-white); color: var(--color-navy); }
.cta-section .btn--primary::after { background: var(--color-blue); color: var(--color-white); }
.cta-section .btn--primary:hover { background: var(--color-pale); }
/* 電話でのお問い合わせ */
.cta-tel {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 20px 26px;
  text-align: center;
}
.cta-tel-label { font-size: 13px; font-weight: 700; color: var(--color-white); }
.cta-tel-number {
  display: block;
  margin: 8px 0 6px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-white);
}
.cta-tel-number span {
  font-size: 30px;
  font-weight: 700;
  margin-left: 6px;
  letter-spacing: 0.02em;
}
.cta-tel-number:hover { opacity: 0.85; }
.cta-tel-hours { font-size: 12px; color: rgba(230, 240, 250, 0.8); }

/* ---- 下層ページ共通 ---- */
.page-hero {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 60px;
  text-align: left;
}
.page-hero .en {
  position: relative;
  display: block;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.page-hero .en::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--line);
}
.page-hero .en::after {
  content: "";
  position: absolute; top: -3.5px; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--playhead);
  box-shadow: 0 0 0 4px rgba(22, 194, 213, 0.16);
}
.page-hero-title {
  font-family: var(--font-body);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1.35;
  color: var(--ink);
}
.page-hero-title::before { content: none; }
.page-hero-lead { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 640px; }

/* ---- 実績ページ ---- */
.works-stats { margin: 0 0 52px; }

/* ---- お問い合わせページ ---- */
.contact-info-card {
  max-width: 680px;
  margin: 0 auto 48px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px 26px;
}
.contact-info-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  margin-bottom: 16px;
}
.contact-info-list div {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-pale);
  font-size: 14px;
}
.contact-info-list div:last-child { border-bottom: 0; }
.contact-info-list dt { flex-shrink: 0; width: 88px; font-weight: 700; color: var(--color-text-muted); }
.contact-info-list dd { color: var(--color-ink); font-weight: 500; word-break: break-all; }

/* フォーム */
.contact-form { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 26px; }
.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
}
.required-badge, .optional-badge {
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 3px;
  padding: 2px 8px;
  line-height: 1.4;
}
.required-badge { color: var(--color-white); background: var(--color-blue); }
.optional-badge { color: var(--color-text-muted); background: var(--color-pale); }
.form-control {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px; /* iOSのズーム防止のため16px以上 */
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid #C7D3E2;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}
.form-control.is-error { border-color: #D6455F; }
textarea.form-control { min-height: 170px; resize: vertical; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23101B30' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-error { color: #C93753; font-size: 12.5px; margin-top: 6px; font-weight: 500; }
.form-errors-summary {
  background: #FCF1F3;
  border: 1px solid #EFC4CD;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: #B72844;
}
.form-agree { text-align: center; }
.form-agree label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.form-agree input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--color-blue); }
.form-submit { text-align: center; margin-top: 34px; }

/* honeypot（スパム対策：人間には見えない） */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 確認画面 */
.confirm-table { max-width: 680px; margin: 0 auto 8px; border-top: 1px solid var(--color-border); }
.confirm-table div {
  padding: 18px 4px;
  border-bottom: 1px solid var(--color-border);
}
.confirm-table dt { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: 4px; }
.confirm-table dd { font-size: 15px; color: var(--color-ink); font-weight: 500; white-space: pre-wrap; word-break: break-word; }
.confirm-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
  max-width: 680px;
  margin: 34px auto 0;
}
.confirm-actions .btn { width: 100%; }

/* 完了画面 */
.thanks-box { max-width: 640px; margin: 0 auto; text-align: center; }
.thanks-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-blue);
}
.thanks-icon svg { width: 32px; height: 32px; }
.thanks-title { font-family: var(--font-serif); font-size: 21px; font-weight: 700; letter-spacing: 0.05em; color: var(--color-ink); margin-bottom: 16px; }
.thanks-text { font-size: 14px; color: var(--color-text-muted); margin-bottom: 32px; }

/* ---- プライバシーポリシー ---- */
.privacy-body { max-width: 760px; }
.privacy-intro { font-size: 14px; color: var(--color-text-muted); margin-bottom: 36px; }
.privacy-section { margin-bottom: 36px; }
.privacy-section h2 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--color-ink);
  padding-left: 14px;
  border-left: 3px solid var(--color-blue);
  margin-bottom: 12px;
}
.privacy-section p, .privacy-section li { font-size: 14px; color: var(--color-text); }
.privacy-section ul { padding-left: 4px; }
.privacy-section li {
  position: relative;
  padding: 3px 0 3px 18px;
}
.privacy-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 10px;
  height: 2px;
  background: var(--color-blue);
}
.privacy-date { text-align: right; font-size: 12.5px; color: var(--color-text-muted); margin-top: 40px; }

/* ---- フッター ---- */
.site-footer {
  background: var(--color-navy-deep);
  color: rgba(235, 242, 250, 0.85);
  padding: 56px 0 28px;
}
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.footer-main { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-brand img { width: 210px; }
.footer-tagline { margin-top: 14px; font-size: 12.5px; letter-spacing: 0.06em; color: rgba(147, 197, 253, 0.75); }
.footer-contact div { display: flex; gap: 14px; padding: 5px 0; font-size: 13px; }
.footer-contact dt { flex-shrink: 0; width: 64px; color: rgba(147, 197, 253, 0.65); font-weight: 500; }
.footer-contact dd a { color: rgba(235, 242, 250, 0.9); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: rgba(235, 242, 250, 0.85); font-size: 13px; letter-spacing: 0.06em; }
.footer-copyright {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(147, 197, 253, 0.16);
  text-align: center;
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(147, 197, 253, 0.5);
}

/* ---- レーザーポインター風カーソル（水色） ---- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 10010;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-sky);
  box-shadow:
    0 0 10px 3px rgba(14, 165, 233, 0.6),
    0 0 28px 10px rgba(14, 165, 233, 0.25);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(14, 165, 233, 0.55);
  transition: opacity 0.25s ease, width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s ease, background-color 0.3s ease;
}
.cursor-dot.is-active,
.cursor-ring.is-active { opacity: 1; }
.cursor-ring.is-hover {
  width: 52px;
  height: 52px;
  border-color: rgba(14, 165, 233, 0.9);
  background: rgba(14, 165, 233, 0.08);
}

/* ---- スクロール時のフェードイン ---- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ---- reduced motion：アニメーションを止める ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .site-loader { display: none; }
  .tl-playhead,
  .tl-clip--trim,
  .tl-clip--slide,
  .tl-track--audio span,
  .float-chip,
  .fb,
  .float-bg,
  .hero-scroll::before,
  .editor-preview .preview-badge::before { animation: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   タブレット以上（768px〜）
   ========================================================================== */
@media (min-width: 768px) {
  body { font-size: 15.5px; }
  .section { padding: 110px 0; }
  .section-heading { margin-bottom: 56px; }

  /* ナビをPC表示へ */
  .nav-toggle { display: none; }
  .global-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-list { display: flex; align-items: center; gap: 6px; padding: 0; }
  .nav-link { border: 0; padding: 8px 16px; font-size: 13.5px; }
  .nav-link:not(.nav-link--cta):hover { color: var(--color-blue); }
  .nav-link--cta { margin: 0 0 0 10px; padding: 11px 24px; }
  .header-logo img { width: 148px; }

  .hero { padding: 96px 0 104px; }
  .hero-lead { font-size: 15.5px; }
  .hero-visual { max-width: 660px; margin-top: 60px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); margin-top: 64px; }
  .stat-card { flex-direction: column; gap: 8px; align-items: flex-start; padding: 26px 30px; }
  .stat-card + .stat-card { border-top: 0; border-left: 1px solid var(--color-border); }
  .stat-number { font-size: 40px; }

  .problems-grid { grid-template-columns: 1fr 1fr; }
  .problem-card { padding: 34px 32px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .sub-services-grid { grid-template-columns: repeat(3, 1fr); }

  .works-grid { grid-template-columns: repeat(2, 1fr); }

  /* 強み：写真＋テキストを左右交互に大きく配置 */
  .strength-block {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 48px;
  }
  .strength-block--reverse .strength-photo { order: 2; }
  .strength-photo { aspect-ratio: 16 / 10; }
  .strength-no { font-size: 60px; }
  .strength-heading { font-size: 25px; }
  .strength-body { font-size: 15px; }

  /* 流れ：円を横一列・アイコン上／説明下で統一 */
  .flow-steps { flex-direction: row; align-items: flex-start; justify-content: center; gap: 16px; max-width: none; padding: 40px 0; }
  .flow-node {
    flex: 1;
    max-width: 210px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding-bottom: 0;
  }
  /* 横方向の接続線（円の中心＝top 43pxを結ぶ） */
  .flow-node .flow-connector {
    left: 50%;
    right: auto;
    top: 43px;
    bottom: auto;
    width: calc(100% + 16px);
    height: 3px;
    background: var(--color-light-blue);
    z-index: 0;
  }
  .flow-circle { z-index: 1; }
  .flow-caption { flex: none; padding-top: 0; }

  .confirm-actions { flex-direction: row; justify-content: center; }
  .confirm-actions .btn { width: auto; min-width: 240px; }

  /* CTA：左テキスト・右にボタン＋電話ボックス */
  .cta-section { padding: 104px 0; }
  .cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px;
  }
  .cta-right { margin-top: 0; min-width: 360px; }

  .page-hero { padding: 72px 0 60px; }

  .footer-main { grid-template-columns: 1.2fr 1.4fr 0.8fr; gap: 40px; }
  .footer-nav ul { flex-direction: column; }
}

/* ==========================================================================
   デスクトップ（1024px〜）
   ========================================================================== */
@media (min-width: 1024px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .hero-scroll { display: block; }

  /* ヒーロー2カラム */
  .hero-main {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: 60px;
    align-items: center;
  }
  .hero-main .hero-title { font-size: clamp(34px, 3.4vw, 43px); }
  .hero-visual { max-width: none; margin-top: 0; }

  @keyframes playheadSweep {
    from { transform: translateX(0); }
    to { transform: translateX(440px); }
  }
}
