/* =============================================================
   generalist-hp — 人間向けトップページ
   tokens: deep #102E40 / navy #1B4F6F / teal #2BA89A /
           amber #E29A36 / base #FFFFFF（2026-07-20 白基調化・旧アイボリー廃止）
   type:   全体 Noto Sans JP / 英字・数値 JetBrains Mono
   signature: ヒーローの「札幌の夕景（空のグラデ＋山並みシルエット）」1点。他は静かに。
   ============================================================= */

:root {
  --deep: #102E40;
  --deeper: #0B2231;
  --navy: #1B4F6F;
  --teal: #2BA89A;
  --amber: #E29A36;
  --paper: #FFFFFF;   /* ベース背景=白（2026-07-20 白基調化。旧 #F6F4EE アイボリーは廃止） */
  --card: #FFFFFF;    /* カード面=白。面の区別は罫線(--line)で担保 */
  --ink: #22333F;
  --ink-soft: #3E5163; /* 高齢の読者でも読めるコントラスト */
  --teal-text: #1C7267;  /* 明色面のテキスト用アクセント（WCAG AA準拠）。#2BA89Aは背景・罫線・ダーク面上専用 */
  --amber-text: #946010; /* 同上。#E29A36は背景・罫線・ダーク面上専用 */
  --radius-btn: 4px;     /* 角丸トークン（styles.cssと共通） */
  --radius-card: 6px;
  --line: rgba(27, 79, 111, 0.16);
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 18px;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* フォーカスリング：明色面はAA準拠の--teal-text、ダーク面はtealに切替（styles.cssと同体系） */
:focus-visible {
  outline: 2px solid var(--teal-text);
  outline-offset: 3px;
  border-radius: 2px;
}
.topbar-band :focus-visible, .hero :focus-visible, .contact :focus-visible, footer :focus-visible { outline-color: var(--teal); }

/* ---------- 見出し・共通テキスト ---------- */

h1, h2, h3 { font-family: var(--sans); font-weight: 700; margin: 0; }

h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin: 0 0 14px;
  padding-left: 26px;
  position: relative;
}
/* ダーク面上ではアクセント原色を使う（--teal-textは明色面専用） */
.contact .eyebrow { color: var(--teal); }
/* 見出し左の短い水平線＝AIO版のハーネス線を受け継ぐ控えめなDNA */
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--teal);
}

.lead {
  max-width: 640px;
  font-size: 19px; /* styles.cssと共通トークン */
  color: var(--ink-soft);
  margin: 0 0 40px;
  text-wrap: pretty;
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--amber);
  color: var(--deeper);
  box-shadow: 0 6px 18px rgba(226, 154, 54, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(226, 154, 54, 0.4); }
.btn-ghost {
  color: #EAF1F4;
  border: 1px solid rgba(234, 241, 244, 0.45);
}
.btn-ghost:hover { background: rgba(234, 241, 244, 0.08); }

.txt-link { color: var(--teal-text); text-decoration: none; font-weight: 500; }
.txt-link:hover { text-decoration: underline; }

/* 明るい背景用のボタン＋セクション末尾の導線 */
.btn-outline {
  color: var(--navy);
  border: 2px solid var(--navy);
  background: transparent;
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}
.section-cta { margin-top: 24px; }

/* ---------- HERO ---------- */

/* 実写の札幌（大通公園）を背景に、コピー側を紺で締めて文字を保護 */
.hero {
  position: relative;
  background: var(--deeper);
  color: #EAF1F4;
  padding-bottom: 26px;
  overflow: hidden;
}
/* ファーストビュー＝見出し〜CTAで画面ちょうど。実績数値はこの下＝ワンスクロールで現れる */
.hero .hero-main {
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-photo { position: absolute; inset: 0; }
.hero-photo img,
.hero-photo .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}
.hero-photo .hero-video { position: absolute; inset: 0; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(8, 25, 37, 0.95) 0%,
      rgba(8, 25, 37, 0.86) 32%,
      rgba(10, 32, 47, 0.52) 62%,
      rgba(10, 32, 47, 0.45) 100%),
    linear-gradient(to bottom,
      rgba(8, 25, 37, 0.6) 0%,
      rgba(8, 25, 37, 0.1) 34%,
      rgba(8, 25, 37, 0.12) 62%,
      rgba(8, 25, 37, 0.88) 100%);
}

/* ヘッダー帯（sticky・2026-07-20）: .topbar は body 直下の .topbar-band 内へ移動（styles.cssと同体系）。
   フッターと同じ --deeper の面＋ヘアラインで、スクロール中も nav-cta（相談する）が常時視界に残る。 */
.topbar-band {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--deeper);
  border-bottom: 1px solid rgba(234, 241, 244, 0.08);
}
.topbar {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 13px 24px;
}
/* sticky帯の高さぶん、ページ内アンカーの着地位置を下げる */
:where([id]) { scroll-margin-top: 92px; }
.brand { font-weight: 700; font-size: 17px; letter-spacing: 0.06em; }
.brand a { text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-sep { color: var(--teal); }
.topnav { display: flex; gap: 26px; align-items: center; }
.topnav a {
  font-size: 15.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: rgba(234, 241, 244, 0.82);
}
.topnav a:hover { color: #fff; }
.topnav .nav-cta {
  color: var(--deeper);
  background: var(--amber);
  padding: 11px 18px; /* タッチターゲット44px以上を確保 */
  border-radius: 3px;
  font-weight: 700;
}
.topnav .nav-cta:hover { color: var(--deeper); }

.hero-main {
  padding: 88px 0 120px;
}
.hero-copy { max-width: 660px; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.3em;
  color: var(--teal);
  margin: 0 0 20px;
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}
.hero .accent { color: var(--amber); }

.hero-sub {
  color: rgba(234, 241, 244, 0.85);
  max-width: 600px;
  margin: 0 0 32px;
  font-size: 18px;
}

/* 指定の一文を折り返さず1行で見せる（入り切らない幅では通常の折り返しに戻る） */
.one-line { display: inline-block; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* 5項目に拡張（2026-07-20）。auto-fitで幅に応じて自動折り返し（PC=1行, タブレット=3+2, モバイル=2列） */
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); gap: 22px 26px; border-top: 1px solid rgba(234, 241, 244, 0.1); margin-top: 64px; padding-top: 26px; }
.hero-stats .stat b { display: block; font-size: 27px; font-weight: 700; color: #fff; line-height: 1.3; letter-spacing: .01em; }
.hero-stats .stat b small { font-size: 14px; font-weight: 500; margin-left: 2px; color: rgba(234, 241, 244, 0.85); }
.hero-stats .stat span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.6; color: rgba(234, 241, 244, 0.78); }

.hero-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(234, 241, 244, 0.1);
  padding: 22px 0 26px;
}
.hero-meta span {
  font-size: 15px;
  color: rgba(234, 241, 244, 0.88);
}
.hero-meta b {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 2px;
}

/* ---------- シグネチャ：ヒーロー実写（.hero-photo） ---------- */

/* ---------- セクション共通 ---------- */

.section { padding: 96px 0; }
.section.alt { background: #EFECE3; }

/* ---------- はじめに ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}
.intro-photo img {
  border-radius: 6px;
  box-shadow: 14px 14px 0 rgba(43, 168, 154, 0.16);
}
.answer h2 { margin-bottom: 20px; }
.answer p { margin: 0; color: var(--ink-soft); }

/* ---------- カード ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* hover浮上はリンクのカードだけ（偽アフォーダンス防止） */
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(16, 46, 64, 0.08);
}
.card h3 { font-size: 20px; line-height: 1.6; margin-bottom: 8px; }
.card p { margin: 0; font-size: 16.5px; color: var(--ink-soft); }
.c-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--teal-text);
  border: 1px solid rgba(43, 168, 154, 0.4);
  border-radius: 3px;
  padding: 2px 9px;
  margin-bottom: 12px;
}

.price-note { margin: 28px 0 0; font-size: 16.5px; color: var(--ink-soft); }
.price-note b { color: var(--ink); }

/* ---------- 選ばれる理由 ---------- */

.strength {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 48px; /* 行間8pxは詰まりすぎのため拡大 */
}
.strength .item { padding: 18px 0; border-top: 1px solid var(--line); }
.strength .item h3 { font-size: 20px; margin-bottom: 6px; }
.strength .item p { margin: 0; font-size: 16.5px; color: var(--ink-soft); }

.practice {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  margin: 56px 0 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
}
.practice img { border-radius: 4px; }
.practice figcaption { font-size: 16.5px; color: var(--ink-soft); }
.practice b { display: block; font-size: 19px; color: var(--ink); margin-bottom: 8px; }

/* ---------- 経歴 ---------- */

.timeline { max-width: 720px; }
.tl {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl .yr {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--teal-text);
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.tl h3 { font-size: 19px; margin-bottom: 4px; }
.tl p { margin: 0; font-size: 16px; color: var(--ink-soft); }

/* ---------- 発信 ---------- */

.channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ch {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ch:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 46, 64, 0.08); }
.ch-k {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--amber-text);
}
.ch h3 { font-size: 19px; margin: 10px 0 6px; }
.ch p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .mk {
  font-family: var(--mono);
  color: var(--teal-text);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq details[open] .mk { transform: rotate(45deg); }
.faq .ans {
  padding: 0 24px 22px;
  font-size: 16.5px;
  color: var(--ink-soft);
}

/* ---------- CTA ---------- */

.contact {
  background:
    radial-gradient(900px 420px at 12% 110%, rgba(43, 168, 154, 0.14), transparent 60%),
    linear-gradient(168deg, var(--deep) 0%, var(--deeper) 80%);
  color: #EAF1F4;
}
.contact .lead { color: rgba(234, 241, 244, 0.72); }
.contact h2 { color: #fff; }

/* ---------- フッター ---------- */

footer {
  background: var(--deeper);
  color: rgba(234, 241, 244, 0.72);
  padding: 44px 0 36px;
  font-size: 15px;
  border-top: 1px solid rgba(234, 241, 244, 0.08);
}
.corp b { display: block; color: #EAF1F4; font-size: 17px; margin-bottom: 6px; }
.corp span { display: block; }
.fnav { display: flex; gap: 22px; flex-wrap: wrap; margin: 24px 0 18px; }
.fnav a { text-decoration: none; color: rgba(234, 241, 244, 0.72); }
.fnav a:hover { color: #fff; }
.copy { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; margin: 0; }

/* ---------- リビール ---------- */

html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .ch, .btn { transition: none; }
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 900px) {
  .hero-main { padding-top: 48px; }
  .intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .intro-photo { max-width: 300px; }
  .channels { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .topnav { gap: 16px; }
  .topnav a:not(.nav-cta) { display: none; }
  .cards, .strength { grid-template-columns: 1fr; }
  .practice { grid-template-columns: 1fr; }
  .practice img { max-width: 220px; }
  .tl { grid-template-columns: 72px 1fr; gap: 16px; }
  .hero-meta { gap: 18px; }
}

/* contact帯のCTA直下に置く安心材料の1行（styles.cssと共通体系） */
.cta-note { margin: 14px 0 0; font-size: 15px; color: rgba(234, 241, 244, 0.78); line-height: 1.8; }

/* 日本語折り返しの保険（BudouX不達時） */
.lead, .hero-sub, .answer p, .card p, .card h3, .tl p,
.faq summary, .faq .ans, .ch p, .practice figcaption, .cta-note {
  text-wrap: pretty;
  overflow-wrap: anywhere; /* 長い固有名詞が箱を押し広げないための緊急弁 */
}

/* ===== ページ遷移の演出（View Transitions・2026-07-20） =====
   ページ移動時に内容がふわっと差し替わる。対応していないブラウザでは
   通常の遷移になるだけで、レイアウト・機能は一切変わらない。
   動きは控えめ（クロスフェード＋わずかな上下）＝ブランドの静かなトーンを守る。 */
@view-transition{ navigation: auto; }
::view-transition-old(root){ animation: vt-out .18s ease both; }
::view-transition-new(root){ animation: vt-in .26s ease both; }
@keyframes vt-out{ to{ opacity:0; transform:translateY(-6px); } }
@keyframes vt-in{ from{ opacity:0; transform:translateY(8px); } }
/* sticky ヘッダーは動かさず据え置き（遷移中にちらつかせない） */
.topbar-band{ view-transition-name: site-header; }
@media (prefers-reduced-motion: reduce){
  ::view-transition-old(root), ::view-transition-new(root){ animation: none; }
}
.hero-eyebrow .en{font-weight:700; letter-spacing:.42em; margin-right:.1em;}
.hero-eyebrow .sep-dot{display:inline-block; margin:0 .7em 0 .2em; opacity:.55;}

/* 画面が低い端末ではヒーローを詰めすぎない（見出しが切れるのを防ぐ） */
@media (max-height: 700px) {
  .hero .hero-main { min-height: auto; display: block; padding-top: 48px; }
}

/* 実績カードのイメージ画像（2026-07-20） */
.card-thumb{
  display:block; width:calc(100% + 56px); max-width:none;   /* カードの左右padding 28px×2 を打ち消す */
  margin:-26px -28px 18px; height:auto;
  border-radius:var(--radius-card) var(--radius-card) 0 0;
  border-bottom:1px solid var(--line);
}
@media (max-width:760px){
  .card-thumb{ width:calc(100% + 40px); margin:-20px -20px 14px; }
}
