/* 125 SIGNAL SNS運用室 — K05 ページ全体が横に進む。PC（JS あり）は縦スクロールが横の移動になる。スマホ・JSなしは普通の縦並び。
   色と書体は共通の13変数だけ（黒の面・青の面は同じ名前の変数を上書き）。--c-3 は「見出しの墨色」として使う */
:root {
  --c-bg: #f4f5f7;
  --c-bg-alt: #e6e8ee;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #0a0a0f;
  --c-accent: #1f3bff;
  --c-accent-text: #1f3bff;
  --c-on-accent: #ffffff;
  --c-2: #c5d0ff;
  --c-3: #0a0a0f;
  --font-ja: "Noto Sans JP", sans-serif;
  --font-head: "Murecho", "Noto Sans JP", sans-serif;
  --font-en: "Bricolage Grotesque", "Murecho", "Noto Sans JP", sans-serif;
  --header-h: 64px;
}
.is-dark { --c-bg: #0a0a0f; --c-bg-alt: #16161f; --c-text: #e9ebf0; --c-sub: #c1c5cf; --c-line: #f4f5f7; --c-accent-text: #c5d0ff; --c-3: #f4f5f7; --c-2: #1f3bff; }
.is-blue { --c-bg: #1f3bff; --c-bg-alt: #3550ff; --c-text: #ffffff; --c-sub: #e4e8ff; --c-line: #ffffff; --c-accent: #ffffff; --c-on-accent: #1f3bff; --c-accent-text: #ffffff; --c-3: #ffffff; --c-2: #0a0a0f; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-top: var(--header-h); background: var(--c-bg); color: var(--c-text); font-family: var(--font-ja); font-size: 16px; line-height: 1.8; overflow-x: hidden; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ===== ヘッダー ===== */
.header { position: fixed; inset: 0 0 auto 0; z-index: 40; background: var(--c-bg); color: var(--c-text); border-bottom: 2px solid var(--c-line); }
.header__inner { height: var(--header-h); padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.logo { min-height: 44px; display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; flex: none; }
.logo__mark { width: 22px; height: 22px; background: var(--c-accent); }
.logo__en { font-family: var(--font-en); font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--c-3); }
.gnav { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; background: var(--c-accent); color: var(--c-on-accent); font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; border: 2px solid var(--c-accent); }
.btn--lg { min-height: 54px; padding: 0 30px; }
.btn--line { background: transparent; color: var(--c-3); border-color: var(--c-line); }
.header__btn { display: none; }
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 24px; height: 3px; background: var(--c-3); position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -8px; } .spmenu__bar::after { top: 8px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; right: 0; top: 100%; width: min(100%, 360px); background: var(--c-bg); border: 2px solid var(--c-line); padding: 6px 24px 14px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; text-decoration: none; font-weight: 700; border-bottom: 2px solid var(--c-line); }
.hud { display: none; }

/* ===== 面（縦並び） ===== */
.pan { background: var(--c-bg); color: var(--c-text); padding: 72px 20px; }
.en { font-family: var(--font-en); font-weight: 800; font-size: 15px; letter-spacing: .16em; color: var(--c-accent-text); margin-bottom: 14px; }
.h1 { font-family: var(--font-head); font-weight: 900; font-size: clamp(38px, 11.5vw, 56px); line-height: 1.2; color: var(--c-3); }
.h2 { font-family: var(--font-head); font-weight: 900; font-size: clamp(32px, 9vw, 48px); line-height: 1.2; color: var(--c-3); margin-bottom: 28px; }
.lead { margin: 18px 0 26px; color: var(--c-sub); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.fiction { margin-top: 40px; font-size: 15px; color: var(--c-sub); }

/* OPENING（コラージュ） */
.open { padding: 0; display: flex; flex-direction: column; }
.copy { order: 1; padding: 44px 20px 36px; }
.collage { order: 2; position: relative; container-type: size; aspect-ratio: 1 / 1.1; overflow: hidden; background: var(--c-bg-alt); border-top: 2px solid var(--c-line); }
.layer { position: absolute; inset: 0; }
.big { position: absolute; left: 2cqw; bottom: 3cqh; font-family: var(--font-en); font-weight: 800; font-size: 26cqw; line-height: .8; letter-spacing: -.02em; color: var(--c-3); }
.blue { position: absolute; left: 48cqw; top: 8cqh; width: 46cqw; aspect-ratio: 1; background: var(--c-accent); }
.phone { position: absolute; left: 33cqw; top: 3cqh; height: 94cqh; width: auto; max-width: none; }
.post { position: absolute; width: 28cqw; border: 2px solid var(--c-line); background: var(--c-bg); padding: 1.2cqw; }
.post img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.p1 { left: 3cqw; top: 8cqh; rotate: -6deg; }
.p2 { left: 68cqw; top: 4cqh; rotate: 5deg; }
.p3 { left: 4cqw; top: 44cqh; rotate: 4deg; }
.p4 { left: 66cqw; top: 58cqh; rotate: -4deg; width: 26cqw; }

/* PROBLEM */
.trouble { display: grid; gap: 0; counter-reset: t; border-top: 2px solid var(--c-line); }
.trouble li { counter-increment: t; padding: 22px 0 22px 56px; border-bottom: 2px solid var(--c-line); position: relative; color: var(--c-text); }
.trouble li::before { content: "0" counter(t); position: absolute; left: 0; top: 18px; font-family: var(--font-en); font-weight: 800; font-size: 32px; color: var(--c-accent-text); }
.trouble b { display: block; font-family: var(--font-head); font-weight: 900; font-size: 24px; color: var(--c-3); margin-bottom: 4px; }

/* 12 MONTHS（スマホ：縦の年表） */
.months__lead { color: var(--c-sub); margin: -10px 0 28px; }
.line { position: relative; padding-left: 20px; border-left: 4px solid var(--c-line); display: grid; gap: 26px; }
.line li { position: relative; }
.line li::before { content: ""; position: absolute; left: -32px; top: 12px; width: 18px; height: 18px; background: var(--c-accent); border: 3px solid var(--c-bg); }
.mo { display: block; font-family: var(--font-en); font-weight: 800; font-size: 44px; line-height: 1; color: var(--c-accent-text); }
.mo small { font-size: 15px; letter-spacing: .12em; margin-left: 10px; color: var(--c-sub); }
.line h3 { font-family: var(--font-head); font-weight: 900; font-size: 24px; color: var(--c-3); margin-top: 4px; }
.line p { color: var(--c-sub); }
.line figure { margin-top: 12px; }
.line figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 2px solid var(--c-line); }

/* PLANS（B05：スマホ・JSなしは sticky で上に重なっていく） */
.cards { display: grid; gap: 20px; }
.plan { position: sticky; top: calc(var(--header-h) + 14px); background: var(--c-bg); border: 2px solid var(--c-line); padding: 24px 22px 26px; min-height: 270px; }
.plan:nth-child(2) { top: calc(var(--header-h) + 34px); background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent); }
.plan:nth-child(3) { top: calc(var(--header-h) + 54px); background: var(--c-3); color: var(--c-bg); }
.plan h3 { font-family: var(--font-en); font-weight: 800; font-size: 30px; }
.plan__price { margin: 6px 0 14px; }
.plan__price b { font-family: var(--font-en); font-size: 32px; font-weight: 800; }
.plan li { padding: 6px 0; border-top: 1px solid currentColor; }

/* NUMBERS */
.nums { display: grid; gap: 0; border-top: 2px solid var(--c-line); }
.nums div { padding: 22px 0; border-bottom: 2px solid var(--c-line); }
.nums dt { color: var(--c-sub); }
.nums b { font-family: var(--font-en); font-weight: 800; font-size: clamp(56px, 18vw, 96px); line-height: 1.1; color: var(--c-3); margin-right: 6px; }
.nums dd { font-family: var(--font-head); font-weight: 900; font-size: 22px; color: var(--c-3); }

/* ===== PC のコラージュ配置（幅1080px以上） ===== */
@media (min-width: 1080px) {
  .header__inner { padding: 0 40px; }
  .gnav { display: flex; gap: 30px; }
  .gnav a { display: flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--c-3); }
  .header__btn { display: inline-flex; }
  .spmenu { display: none; }
  .open { display: block; position: relative; min-height: calc(100svh - var(--header-h)); }
  .collage { position: absolute; inset: 0; aspect-ratio: auto; border-top: 0; order: 0; }
  .copy { position: relative; z-index: 3; width: 38vw; padding: 7vh 0 0 5vw; }
  .h1 { font-size: clamp(44px, 4.3vw, 70px); }
  .big { left: 3cqw; bottom: 2cqh; font-size: 22.5cqw; }
  .blue { left: 58cqw; top: 9cqh; width: 26cqw; }
  .phone { left: 56cqw; top: 4cqh; height: 90cqh; }
  .post { width: 13cqw; }
  .p1 { left: 41cqw; top: 14cqh; } .p2 { left: 80cqw; top: 9cqh; }
  .p3 { left: 85cqw; top: 52cqh; width: 11.5cqw; } .p4 { left: 45cqw; top: 58cqh; width: 11cqw; }
  .h2 { font-size: clamp(40px, 4vw, 64px); }
}

/* ===== PC・JSあり：ページ全体が横に進む ===== */
html.is-h body { padding-top: 0; overflow: hidden; }
html.is-h .hwrap { height: 100svh; overflow: hidden; }
html.is-h .htrack { display: flex; width: max-content; height: 100svh; }
html.is-h .pan { flex: none; width: var(--w, 100vw); height: 100svh; padding: calc(var(--header-h) + 5vh) 5vw 8vh; display: flex; flex-direction: column; justify-content: center; }
html.is-h .open { display: block; padding: 0; --w: 100vw; }
html.is-h .collage { top: 0; }
html.is-h .copy { padding-top: calc(var(--header-h) + 5vh); }
html.is-h .problem { --w: 100vw; }
html.is-h .months { --w: 330vw; flex-direction: row; align-items: center; gap: 4vw; padding-right: 8vw; }
html.is-h .plans { --w: 110vw; }
html.is-h .numbers { --w: 90vw; }
html.is-h .contact { --w: 100vw; }
html.is-h .h2 { font-size: clamp(40px, 4.4vw, 68px); }
html.is-h .problem .h2, html.is-h .plans .h2 { margin-bottom: 4vh; }
html.is-h .trouble { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 3vw; }
html.is-h .trouble li { border: 2px solid var(--c-line); padding: 70px 26px 28px; min-height: 30vh; }
html.is-h .trouble li::before { left: 26px; top: 16px; font-size: 44px; }
html.is-h .trouble b { font-size: clamp(24px, 2.2vw, 34px); }
html.is-h .months__head { flex: none; width: 32vw; }
html.is-h .line { flex: none; display: flex; padding: 0; border: 0; gap: 0; position: relative; align-items: stretch; height: 68vh; }
html.is-h .line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; background: var(--c-line); }
html.is-h .line li { width: 23vw; padding-right: 2vw; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: calc(34vh + 26px); }
html.is-h .line li:nth-child(even) { justify-content: flex-start; padding-bottom: 0; padding-top: calc(34vh + 26px); }
html.is-h .line li::before { left: 0; top: 50%; margin-top: -11px; width: 22px; height: 22px; z-index: 2; }
html.is-h .mo { font-size: clamp(44px, 4.4vw, 72px); }
html.is-h .line h3 { font-size: clamp(22px, 1.9vw, 30px); }
html.is-h .line figure img { aspect-ratio: 3 / 2; max-height: 13vh; }
html.is-h .cards { grid-template-columns: repeat(3, 1fr); gap: 2.5vw; }
html.is-h .plan { position: static; min-height: 46vh; }
html.is-h .nums { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 3vw; }
html.is-h .nums div { border: 2px solid var(--c-line); padding: 28px; }
html.is-h .contact .h2 { font-size: clamp(40px, 4.8vw, 76px); }
html.is-h .hud { display: flex; align-items: center; gap: 18px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0 40px; height: 52px; background: var(--c-3); color: var(--c-bg); font-family: var(--font-en); font-weight: 800; font-size: 16px; letter-spacing: .08em; mix-blend-mode: normal; }
.hud__bar { flex: 1; height: 6px; background: color-mix(in srgb, var(--c-bg) 25%, transparent); position: relative; }
.hud__bar b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--c-2); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.plan__price b.fz, .nums b .fz, .fz { font-family: var(--font-ja); font-weight: 700; }
html.is-h .nums b { font-size: clamp(40px, 4.2vw, 66px); white-space: nowrap; }
