/* ============================================
   Excel・スプシ自動化サービスLP（HiroBuilds）
   Theme: Linear型（欧文モダン系・ツール/SaaS向け）
   ★設定値の出所＝D:/work/ops/design-rules-lp.md（Hiroが「良い」と判定した実物4本の実測）
     - 地 #08090A / 文字 #F7F8F8（Linear 実測）
     - 見出しはサンセリフの中太（Linear は weight 510）。★900は使わん
     - セクション上下 padding 128px（Linear 実測）
     - ★製品UIを実寸でデカく置く＝Linear は大きい画像6枚だけで画像被覆率 20.5%
     - 動きは CSS transition ＋ IntersectionObserver（video は参照4本とも0本）
   ⚠️和文の品系（明朝＋字間を広げる）とは混ぜたら崩れる。ここは欧文モダン系に振り切る。
     ただし★字間は詰めん＝Linear の -1.408px は Inter（欧文）の値で、
     和文で詰めると読みにくくなる。日本語では 0 付近に置く。
   ============================================ */

:root {
  --bg:      #08090a;   /* 地（Linear 実測） */
  --bg-2:    #0d0e11;
  --bg-3:    #131418;
  --line:        rgba(247, 248, 248, 0.09);
  --line-strong: rgba(247, 248, 248, 0.18);
  --text:    #f7f8f8;   /* Linear 実測 */
  --text-dim:#8a8f98;
  --accent:  #8b7cff;   /* ★アクセントはこの1色だけ */

  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --pad-sec: clamp(80px, 9vw, 128px);
  --measure: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
/* 11/12 その4 日本語を文節で折る＝「作ってい／ます。」の「ます。」だけ次の行に落ちるのを止める
   （text-wrap: pretty だけでは止まらんかった＝別目 回 181127。auto-phrase は Chrome 119+ で lang="ja" の時だけ効く・他のブラウザは今まで通り。pretty は lang に関係なく効く）
   文節だけやと長い文節が丸ごと落ちて「全公／開。」のような割れ方が出る＝pretty と組で使う（360 幅で 7 か所 → 0 か所を測った） */
p, li, summary, h1, h2, h3 { word-break: auto-phrase; text-wrap: pretty; }
.nb { white-space: nowrap; }   /* 文節の折りでも割れた所・助詞が行の頭に来る所だけ包む（別目 回 192427 乙1・乙2／回 193011 乙1〜3・丙1／355 幅の「開発」／回 203325 乙4） */
.sp-only { display: inline; }
@media (min-width: 720px) { .sp-only { display: none; } }

.inner { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }
section > .inner { padding-top: 0; }

/* ---------- 見出し（★サンセリフ中太・字間は詰めん） ---------- */
.title {
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: 0;           /* ★和文なので詰めん（Linearの-1.4pxはInterの値） */
  line-height: 1.45;
  margin-bottom: 28px;
}
.lead { color: var(--text-dim); font-size: 1rem; line-height: 1.9; }
.lead em { font-style: normal; color: var(--text); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  text-decoration: none; text-align: center;
  font-weight: 500; font-size: 0.9rem; line-height: 1.5;
  padding: 13px 26px; border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
/* ★白地に黒文字＝Linearのプライマリと同型。コントラスト比が最大で AA に余裕 */
.btn-light { background: var(--text); color: #08090a; }
.btn-light:hover { background: #ffffff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); background: rgba(247,248,248,0.05); }
.btn-large { padding: 15px 32px; font-size: 0.96rem; }
.btn-header { padding: 9px 18px; font-size: 0.82rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(8, 9, 10, 0.92); }
.header-inner {
  max-width: var(--measure); margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; text-decoration: none; }
.global-nav { display: none; }
@media (min-width: 900px) { .global-nav { display: block; } }
.global-nav a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.84rem; margin: 0 14px;
  transition: color 0.25s var(--ease);
}
.global-nav a:hover { color: var(--text); }

/* ---------- 製品UIのブラウザ枠（★実物のスクショを加工せずに濃色地へ載せる） ---------- */
.frame {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(139, 124, 255, 0.07);
}
.frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(247,248,248,0.16); }
.frame-bar em {
  font-style: normal; margin-left: 10px;
  font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.02em;
}
.frame img { width: 100%; display: block; }

/* ---------- 1. FV ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(72px, 9vw, 116px); }
.hero-glow {
  position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(139, 124, 255, 0.18), transparent 62%);
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; padding: 0 24px; text-align: center; }
.hero-eyebrow {
  display: inline-block;
  color: var(--text-dim); font-size: 0.78rem; letter-spacing: 0.06em;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px;
  margin-bottom: 30px;
}
.hero-catch {
  font-weight: 600;
  font-size: clamp(2.1rem, 5.6vw, 3.85rem);
  letter-spacing: 0;            /* ★和文は詰めん */
  line-height: 1.35;
  margin-bottom: 26px;
}
.hero-catch .accent {
  color: var(--accent);         /* 単色＝グラデ文字は機械の関所の未達（11/12） */
}
.hero-sub {
  color: var(--text-dim); font-size: 1rem; line-height: 1.9;
  max-width: 40em; margin: 0 auto 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 18px; }
.hero-note { color: var(--text-dim); font-size: 0.8rem; }
/* ★製品UIをドカンと置く＝下端を画面外に流して「続きがある」感を出す（Linear同型） */
.hero-shot {
  position: relative;
  max-width: 1240px; margin: clamp(48px, 6vw, 80px) auto 0;
  padding: 0 24px;
}
.hero-shot .frame { max-height: 620px; }
.hero-shot .frame img { object-fit: cover; object-position: top center; }

/* ---------- 実績の帯（箱にせん） ---------- */
.stats {
  list-style: none;
  max-width: var(--measure); margin: clamp(64px, 8vw, 104px) auto 0;
  padding: 0 24px;
  display: grid; grid-template-columns: 1fr;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats li {
  padding: 24px 6px; text-align: center;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .stats li { border-top: none; border-left: 1px solid var(--line); }
  .stats li:first-child { border-left: none; }
}
.stats strong { display: block; font-weight: 600; font-size: 1.4rem; letter-spacing: 0.01em; }
.stats span { display: block; color: var(--text-dim); font-size: 0.78rem; margin-top: 4px; }

/* ---------- 2. 実物の壁＝1本ずつ大きく ---------- */
.works { padding: var(--pad-sec) 0; }
.works > .inner { margin-bottom: clamp(48px, 6vw, 76px); }
.work {
  max-width: var(--measure); margin: 0 auto clamp(56px, 7vw, 96px);
  padding: 0 24px;
  display: grid; gap: clamp(24px, 3.5vw, 48px); align-items: center;
}
@media (min-width: 900px) {
  .work { grid-template-columns: 1.35fr 1fr; }
  .work.is-reverse .work-shot { order: 2; }
}
.work-shot a { display: block; text-decoration: none; }
.work-shot .frame { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.work-shot a:hover .frame { transform: translateY(-4px); box-shadow: 0 36px 90px rgba(0,0,0,0.7), 0 0 0 1px rgba(139,124,255,0.22); }
.work-body .num {
  display: block; color: var(--accent);
  font-weight: 500; font-size: 0.8rem; letter-spacing: 0.16em; margin-bottom: 14px;
}
.work-body h3 { font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.55; margin-bottom: 14px; }
.work-body p { color: var(--text-dim); font-size: 1rem; line-height: 1.9; margin-bottom: 18px; }
.work-link {
  color: var(--accent); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  transition: opacity 0.25s var(--ease);
}
.work-link:hover { opacity: 0.75; }
.note { color: var(--text-dim); font-size: 0.82rem; text-align: center; }
.note a { color: var(--accent); }

/* ---------- 3. 課題共感（2分割） ---------- */
.pain { padding: var(--pad-sec) 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split {
  max-width: var(--measure); margin: 0 auto; padding: 0 24px;
  display: grid; gap: clamp(36px, 5vw, 64px); align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.1fr; } }
.rule-list { list-style: none; margin-bottom: 28px; }
.rule-list li {
  padding: 16px 0 16px 26px;
  border-top: 1px solid var(--line);
  color: var(--text-dim); font-size: 1rem; line-height: 1.85;
  position: relative;
}
.rule-list li:last-child { border-bottom: 1px solid var(--line); }
.rule-list li::before {
  content: ""; position: absolute; left: 0; top: 28px;
  width: 11px; height: 1px; background: var(--accent);
}
.split-body .lead { margin-bottom: 28px; }

/* ---------- 4. できること＋流れ ---------- */
.service { padding: var(--pad-sec) 0; }
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards article { background: var(--bg); padding: clamp(26px, 3vw, 36px); }
.cards h3 { font-weight: 600; font-size: 1.02rem; margin-bottom: 12px; }
.cards p { color: var(--text-dim); font-size: 1rem; line-height: 1.9; }

.band { max-width: 1240px; margin: clamp(56px, 7vw, 92px) auto; padding: 0 24px; }
.band .frame { max-height: 560px; }
.band .frame img { object-fit: cover; object-position: top center; }

.flow { list-style: none; display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { background: var(--bg); padding: 28px 22px; }
.flow .num {
  display: inline-block; color: var(--accent);
  font-weight: 600; font-size: 0.86rem; letter-spacing: 0.1em; margin-bottom: 12px;
}
.flow h3 { font-weight: 600; font-size: 0.98rem; margin-bottom: 10px; }
.flow p { color: var(--text-dim); font-size: 1rem; line-height: 1.85; }

/* ---------- 5. 制作者＋正直ゾーン ---------- */
.about { padding: var(--pad-sec) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.about-grid { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.about-text p { color: var(--text-dim); font-size: 1rem; line-height: 2.0; margin-bottom: 18px; }
.about-text strong { color: var(--text); font-weight: 600; }
.honest { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (min-width: 620px) { .honest { grid-template-columns: 1fr 1fr; } }
.honest-col { background: var(--bg); padding: 26px 24px; }
.honest-col h3 { font-weight: 600; font-size: 0.92rem; margin-bottom: 16px; }
.honest-col.ok h3 { color: var(--accent); }
.honest-col.ng h3 { color: var(--text-dim); }
.honest-col ul { list-style: none; }
.honest-col li {
  color: var(--text-dim); font-size: 1rem; line-height: 1.8;
  padding: 9px 0 9px 20px; position: relative;
}
.honest-col li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 9px; height: 1px; background: currentColor; opacity: 0.5;
}
.honest-col.ok li::before { background: var(--accent); opacity: 0.8; }

/* ---------- 6. FAQ＋クロージング ---------- */
.faq { padding: var(--pad-sec) 0 0; }
.faq-inner {
  max-width: var(--measure); margin: 0 auto; padding: 0 24px;
  display: grid; gap: clamp(36px, 5vw, 64px); align-items: start;
}
@media (min-width: 900px) { .faq-inner { grid-template-columns: 0.9fr 1.1fr; } }
@media (min-width: 900px) { .faq-side { position: sticky; top: 110px; } }
.faq-side figure { margin-top: 26px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  padding: 20px 34px 20px 0; position: relative;
  font-size: 0.94rem; font-weight: 500; line-height: 1.7;
  transition: color 0.25s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 11px; height: 1px; background: var(--accent);
}
.faq-list summary::before {
  content: ""; position: absolute; right: 9px; top: 50%; margin-top: -5px;
  width: 1px; height: 11px; background: var(--accent);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
.faq-list details[open] summary::before { opacity: 0; transform: rotate(90deg); }
.faq-list details p { color: var(--text-dim); font-size: 1rem; line-height: 1.95; padding: 0 34px 22px 0; }

.closing {
  max-width: var(--measure); margin: clamp(72px, 9vw, 120px) auto 0;
  padding: clamp(64px, 8vw, 104px) 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.closing-catch { font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.5; margin-bottom: 18px; }
.closing p { color: var(--text-dim); font-size: 1rem; margin-bottom: 30px; }
.closing .cta-note { font-size: 0.8rem; margin: 18px 0 0; }   /* 11/12 別目 乙1＝.closing p（1rem）に負けて注記が本文の大きさになっとった＝強さを揃える */

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.site-footer .inner { padding: clamp(48px, 6vw, 76px) 24px; text-align: center; }
.foot-brand { font-weight: 600; font-size: 0.98rem; margin-bottom: 16px; }
.site-footer nav a { color: var(--text-dim); text-decoration: none; font-size: 0.82rem; margin: 0 12px; }
.site-footer nav a:hover { color: var(--accent); }
.copyright { color: var(--text-dim); font-size: 0.74rem; margin-top: 18px; }

/* ---------- スクロール連動の出現 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* JS が無い/落ちた時は最初から見えとる（本文が消えん） */
html:not(.js) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .frame, .work-shot .frame { transition: none !important; }
}
