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

  :root {
    --amber: #e8b84b;
    --amber-dim: #c99a2e;
    --dark: #1a1208;
    --darker: #111008;
    --cream: #f5f0e6;
    --cream-dim: #e8e2d4;
    --before-bg: #ebebea;
    --text-dark: #1e1a10;
    --text-mid: #4a4440;
    --ff-serif: 'Noto Serif JP', serif;
    --ff-sans: 'Space Grotesk', sans-serif;
    --tl-left: 100px;
  }

  html { scroll-behavior: smooth; }
  body {
    font-family: var(--ff-sans);
    background: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: 52px;
    background: rgba(26,18,8,0.96);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; z-index: 100;
  }
  .nav-left { display: flex; align-items: center; gap: 12px; }
  .nav-logo { font-family: var(--ff-serif); font-size: 18px; color: var(--amber); letter-spacing: 0.08em; font-weight: 700; }
  .nav-badge { font-family: var(--ff-sans); font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dark); background: var(--amber); padding: 3px 8px; line-height: 1; }
  .nav-links { display: flex; gap: 28px; list-style: none; }
  .nav-links a { color: rgba(245,240,230,0.6); text-decoration: none; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
  .nav-links a:hover { color: var(--amber); }

  /* ── HERO ── */
  .hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; padding-top: 52px; position: relative; }
  .hero-divider { position: absolute; left: 50%; top: 52px; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent 0%, var(--amber) 20%, var(--amber) 80%, transparent 100%); transform: translateX(-50%); z-index: 10; }
  .hero-divider-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 12px; height: 12px; background: var(--amber); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); z-index: 11; }

  /* BEFORE panel */
  .hero-before { background: var(--before-bg); filter: grayscale(0.6); padding: 72px 20px 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; min-height: calc(100vh - 52px); gap: 36px; }
  .panel-tag { font-family: var(--ff-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 4px 10px; border: 1px solid currentColor; display: inline-block; text-decoration: none; transition: opacity 0.2s; }
  .panel-tag:hover { opacity: 0.7; }
  .hero-before .panel-tag { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #999; border-color: #ccc; font-size: 10px; letter-spacing: 0.12em; }
  .hero-before-headline { font-family: var(--ff-serif); font-weight: 300; font-size: clamp(28px, 4.8vh, 64px); color: #2a2520; line-height: 1.3; letter-spacing: 0.18em; writing-mode: vertical-rl; text-orientation: mixed; flex-shrink: 0; margin-top: 2em; }
  .faded-kana { opacity: 0.16; text-decoration: line-through; text-decoration-color: rgba(42,37,32,0.6); text-decoration-thickness: 1.5px; font-weight: 300; }
  .before-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; align-self: stretch; padding: 0 4px; }
  .before-bullets li { font-size: 12px; color: #666; display: flex; align-items: baseline; gap: 8px; line-height: 1.6; }
  .before-bullets li::before { content: '×'; color: #aaa; font-size: 13px; flex-shrink: 0; }

  /* AFTER panel */
  .hero-after { background: var(--dark); padding: 56px 56px 64px 64px; display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 52px); position: relative; overflow: hidden; }
  .hero-after .panel-tag { color: var(--amber); border-color: var(--amber-dim); margin-bottom: 36px; align-self: flex-start; }
  .hero-after-headline { font-family: var(--ff-serif); font-weight: 800; font-size: clamp(32px, 4.5vw, 66px); color: var(--cream); line-height: 1.55; margin-bottom: 40px; letter-spacing: 0.02em; word-break: keep-all; overflow-wrap: break-word; }
  .hero-after-headline em { color: var(--amber); font-style: normal; }
  .after-bullets { list-style: none; display: flex; flex-direction: column; gap: 14px; }
  .after-bullets li { font-size: 14px; color: rgba(245,240,230,0.7); display: flex; align-items: baseline; gap: 10px; line-height: 1.6; }
  .after-bullets li::before { content: '✓'; color: var(--amber); font-size: 15px; flex-shrink: 0; font-weight: 700; }

  /* Cursor glow */
  .after-glow { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(232,184,75,0.14) 0%, rgba(232,184,75,0.05) 40%, transparent 70%); pointer-events: none; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.55s ease; mix-blend-mode: screen; z-index: 1; will-change: left, top; }
  .after-glow.visible { opacity: 1; }

  /* ── SCROLL REVEAL ── */
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.72s ease, transform 0.72s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* ── SECTION LABEL ── */
  .section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-dim); margin-bottom: 48px; }
  .section-label span { color: var(--text-mid); }

  /* ── EMPATHY SECTION（v1.3: 縦1列） ── */
  .empathy-section { background: var(--cream); padding: 96px 64px; }
  .empathy-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 680px;
  }
  .empathy-block {
    background: #ede8dc;
    padding: 36px 40px;
    text-decoration: none;
    color: var(--text-dark);
    border-left: 3px solid transparent;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 32px;
  }
  .empathy-block:nth-child(even) { background: #e8e2d4; }
  .empathy-block:hover { border-left-color: var(--amber); }
  .emp-headline {
    font-family: var(--ff-serif);
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.65;
    letter-spacing: 0.03em;
    flex: 0 0 auto;
    min-width: 200px;
  }
  .emp-body {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.85;
    padding-top: 4px;
  }

  /* ── APPROACH SECTION（v1.3: 3カード横並び） ── */
  .approach-section { background: var(--darker); padding: 96px 64px; }
  .approach-section .section-label { color: rgba(232,184,75,0.7); }
  .approach-section .section-label span { color: rgba(245,240,230,0.45); }
  .approach-copy { max-width: 680px; margin-bottom: 64px; }
  .approach-copy p { font-family: var(--ff-serif); font-size: clamp(16px, 1.6vw, 22px); color: rgba(245,240,230,0.75); line-height: 2.0; letter-spacing: 0.04em; }
  .approach-copy p em { color: var(--amber); font-style: normal; }

  /* 3カードグリッド */
  .cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-width: 900px;
  }
  .cat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(232,184,75,0.1);
    padding: 44px 32px 40px;
    text-decoration: none;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: border-color 0.25s, background 0.25s;
  }
  .cat-card:hover { border-color: var(--amber); background: rgba(232,184,75,0.05); }
  .cat-icon { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--amber-dim); display: flex; align-items: center; justify-content: center; color: var(--amber); margin-bottom: 22px; font-family: var(--ff-serif); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; flex-shrink: 0; }
  .cat-name { font-family: var(--ff-serif); font-size: 16px; color: var(--cream); margin-bottom: 10px; line-height: 1.6; font-weight: 400; }
  .cat-sub { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(232,184,75,0.5); margin-bottom: 16px; }
  .cat-desc { font-size: 12px; color: rgba(245,240,230,0.45); line-height: 1.85; }

  /* ── TIMELINE ── */
  .timeline-section { background: var(--cream-dim); padding: 96px 64px; position: relative; }
  .tl-track { position: relative; max-width: 680px; padding: 20px 0; margin-top: 16px; }
  .tl-track::before { content: ''; position: absolute; left: var(--tl-left); top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, rgba(232,184,75,0.08) 0%, var(--amber) 12%, var(--amber) 88%, rgba(232,184,75,0.08) 100%); }
  .tl-entry { display: flex; align-items: flex-start; padding-left: calc(var(--tl-left) + 28px); margin-bottom: 52px; position: relative; opacity: 0; transform: translateX(-16px); transition: opacity 0.65s ease, transform 0.65s ease; }
  .tl-entry:last-child { margin-bottom: 0; }
  .tl-entry.visible { opacity: 1; transform: translateX(0); }
  .tl-dot { position: absolute; left: calc(var(--tl-left) - 7px); top: 6px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--amber); background: var(--cream-dim); z-index: 1; }
  .tl-entry.era-after .tl-dot { background: var(--amber); }
  .tl-entry.era-after .tl-dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(232,184,75,0.45); animation: tlpulse 2.4s ease-in-out infinite; }
  @keyframes tlpulse { 0%, 100% { opacity: 0; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
  .tl-year { position: absolute; left: 0; top: 4px; width: calc(var(--tl-left) - 20px); font-family: var(--ff-sans); font-size: 12px; font-weight: 700; color: var(--amber-dim); letter-spacing: 0.04em; text-align: right; }
  .tl-content { flex: 1; position: relative; overflow: visible; min-height: 64px; }

  /* v1.3: tl-tag を <a> リンクに */
  .tl-tag {
    display: inline-block;
    font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 2px 8px;
    border: 1px solid #ccc;
    color: var(--text-mid);
    margin-bottom: 10px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    cursor: pointer;
  }
  .tl-tag:hover { border-color: var(--amber-dim); color: var(--amber-dim); background: rgba(232,184,75,0.06); }
  .tl-entry.era-after .tl-tag { border-color: var(--amber-dim); color: var(--amber-dim); }
  .tl-entry.era-after .tl-tag:hover { border-color: var(--amber); color: var(--amber); background: rgba(232,184,75,0.1); }

  .tl-title { font-family: var(--ff-serif); font-size: 16px; font-weight: 400; color: var(--text-dark); line-height: 1.65; margin-bottom: 7px; }
  .tl-body { font-size: 12px; color: var(--text-mid); line-height: 1.8; }

  /* ── FLOATING NEGATIVE WORDS（v1.5 インラインゴースト版） ── */
  @keyframes fw-float-up {
    0%   { opacity: 0.82; transform: translateY(0); }
    40%  { opacity: 0.4;  transform: translateY(-24px); }
    100% { opacity: 0;    transform: translateY(-60px); }
  }
  /* インラインキーワード: 最初は通常の文字色 */
  .fw-key {
    color: inherit;
    transition: color 0.8s ease;
    display: inline;
  }
  /* アニメ終了後: 元の場所に薄くグレーで残る */
  .fw-key.done {
    color: rgba(80, 72, 64, 0.28);
  }
  /* ゴースト: viewport固定・本文と同じ位置から浮き上がる */
  .fw-ghost {
    position: fixed;
    pointer-events: none;
    user-select: none;
    z-index: 500;
    font-family: var(--ff-serif);
    font-weight: 400;
    color: rgba(80, 72, 64, 0.82);
    white-space: nowrap;
    animation: fw-float-up 1.8s ease-out forwards;
  }

  /* Timeline profile CTA */
  .tl-profile-cta { padding-top: 36px; padding-left: calc(var(--tl-left) + 28px); opacity: 0; transform: translateX(-16px); transition: opacity 0.65s ease 0.2s, transform 0.65s ease 0.2s; }
  .tl-profile-cta.visible { opacity: 1; transform: translateX(0); }
  .tl-profile-btn { display: inline-block; font-family: var(--ff-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--amber-dim); text-decoration: none; border: 1px solid var(--amber-dim); padding: 10px 24px; transition: color 0.2s, border-color 0.2s, background 0.2s; }
  .tl-profile-btn:hover { color: var(--amber); border-color: var(--amber); background: rgba(232,184,75,0.06); }

  /* ── AI CHAT ── */
  .chat-section { background: var(--darker); padding: 96px 64px; }
  .chat-heading { font-family: var(--ff-serif); font-size: 28px; font-weight: 300; color: var(--cream); margin-bottom: 48px; letter-spacing: 0.04em; }
  .chat-heading em { color: var(--amber); font-style: normal; font-weight: 700; }
  #chat-wrap { max-width: 640px; display: flex; flex-direction: column; gap: 16px; min-height: 320px; }
  .cb { display: flex; flex-direction: column; gap: 6px; }
  .cb-lbl { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,240,230,0.35); }
  .cb-you .cb-lbl { text-align: right; }
  .cb-bub { padding: 14px 18px; border-radius: 4px; font-size: 14px; line-height: 1.75; max-width: 88%; white-space: pre-wrap; }
  .cb-you { align-items: flex-end; }
  .cb-you .cb-bub { background: var(--cream); color: var(--text-dark); margin-left: auto; }
  .cb-ai .cb-bub { background: transparent; color: rgba(245,240,230,0.85); border-left: 3px solid var(--amber); padding-left: 16px; border-radius: 0; }
  /* タイプ中カーソル（一時的） */
  .cb-cur { animation: blink 1s step-end infinite; color: var(--amber); font-size: 13px; }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

  /* ── CHAT SEND BAR（v1.3: 入力欄カーソル） ── */
  .chat-input-bar { max-width: 640px; margin-top: 28px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(232,184,75,0.2); background: rgba(255,255,255,0.03); padding: 12px 12px 12px 18px; }
  .chat-input-fake { flex: 1; font-size: 13px; color: rgba(245,240,230,0.4); letter-spacing: 0.03em; user-select: none; display: flex; align-items: center; gap: 2px; }
  /* v1.3: 入力欄の点滅カーソル */
  .chat-input-cur {
    display: inline-block;
    width: 1.5px;
    height: 15px;
    background: rgba(232,184,75,0.75);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
    flex-shrink: 0;
  }
  .chat-send-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--amber); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; text-decoration: none; transition: opacity 0.2s, transform 0.15s; }
  .chat-send-btn:hover { opacity: 0.85; transform: translateY(-1px); }
  .chat-send-btn svg { display: block; color: var(--dark); }

  /* ── TOOLS SECTION（v1.3 復活） ── */
  .tools-section { background: var(--cream); padding: 96px 64px; }
  .tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 900px; margin-top: 48px; }
  .tool-card { background: var(--cream-dim); padding: 36px 32px; border-top: 3px solid transparent; transition: border-color 0.2s; text-decoration: none; display: block; }
  .tool-card:hover { border-top-color: var(--amber); }
  .tool-name { font-family: var(--ff-sans); font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; letter-spacing: 0.04em; }
  .tool-role { font-size: 11px; color: var(--amber-dim); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
  .tool-desc { font-size: 13px; color: var(--text-mid); line-height: 1.7; }

  /* ── CTA ── */
  .cta-section { background: var(--amber); padding: 96px 64px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .cta-headline { font-family: var(--ff-serif); font-size: clamp(28px, 4vw, 52px); font-weight: 700; color: var(--text-dark); letter-spacing: 0.04em; line-height: 1.4; }
  .cta-sub { font-size: 14px; color: rgba(30,26,16,0.65); max-width: 400px; line-height: 1.75; }
  .cta-btn { display: inline-block; background: var(--dark); color: var(--amber); font-family: var(--ff-sans); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 16px 40px; text-decoration: none; margin-top: 8px; transition: opacity 0.2s; }
  .cta-btn:hover { opacity: 0.85; }

  /* ── FOOTER ── */
  footer { background: var(--dark); padding: 32px 64px; display: flex; justify-content: space-between; align-items: center; }
  .footer-logo { font-family: var(--ff-serif); font-size: 16px; color: var(--amber); font-weight: 700; }
  .footer-copy { font-size: 11px; color: rgba(245,240,230,0.3); letter-spacing: 0.08em; }

  /* ── BACK TO TOP ── */
  .back-to-top { position: fixed; bottom: 80px; right: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--dark); border: 1px solid var(--amber-dim); color: var(--amber); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.2s; text-decoration: none; line-height: 1; }
  .back-to-top.visible { opacity: 0.88; pointer-events: auto; }
  .back-to-top:hover { transform: translateY(-3px); }

  /* ── DESIGN BADGE ── */
  .design-badge { position: fixed; bottom: 20px; right: 20px; background: var(--dark); color: var(--amber); font-family: var(--ff-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--amber-dim); z-index: 200; opacity: 0.85; }

  /* ── MOBILE ── */
  @media (max-width: 640px) {
    nav { padding: 0 16px; }
    .nav-links { display: none; }
    .hero { min-height: 100dvh; }
    .hero-before { min-height: calc(100dvh - 52px); padding: 52px 8px 16px; gap: 20px; }
    .hero-after { min-height: calc(100dvh - 52px); padding: 24px 14px 20px; }
    .hero-before .panel-tag { font-size: 7px; padding: 2px 5px; letter-spacing: 0.08em; top: 14px; }
    .hero-after .panel-tag { font-size: 9px; padding: 3px 7px; margin-bottom: 16px; letter-spacing: 0.12em; }
    .hero-before-headline { font-size: clamp(20px, 5.5vw, 30px); letter-spacing: 0.12em; }
    .hero-after-headline { font-size: clamp(20px, 5.5vw, 28px); line-height: 1.4; margin-bottom: 12px; }
    .before-bullets, .after-bullets { display: none; }
    .hero-divider-dot { display: none; }

    .empathy-section,
    .approach-section,
    .timeline-section,
    .chat-section,
    .tools-section,
    .cta-section { padding: 56px 20px; }

    /* 共感: モバイルも縦1列 */
    .empathy-block { flex-direction: column; gap: 8px; padding: 24px 20px; }
    .emp-headline { font-size: 16px; min-width: unset; }
    .emp-body { font-size: 12px; }

    /* カテゴリーカード: モバイルでも横並び3列 */
    .cat-grid { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
    .cat-card { padding: 20px 8px 16px; }
    .cat-icon { width: 36px; height: 36px; font-size: 11px; margin-bottom: 12px; }
    .cat-name { font-size: 12px; margin-bottom: 6px; }
    .cat-sub  { font-size: 9px; margin-bottom: 8px; }
    .cat-desc { font-size: 10px; line-height: 1.6; }

    /* Approach copy */
    .approach-copy p { font-size: 14px; line-height: 1.85; }

    /* Timeline */
    .tl-track::before { left: 60px; }
    .tl-entry { padding-left: 88px; }
    .tl-dot { left: 53px; }
    .tl-year { width: 46px; font-size: 10px; }
    .tl-title { font-size: 14px; }
    .tl-body { font-size: 11px; }
    .tl-profile-cta { padding-left: 88px; }

    /* Tools */
    .tools-grid { grid-template-columns: 1fr; gap: 2px; }

    /* Chat */
    .chat-input-bar { margin-top: 20px; }

    footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px; }
    .design-badge { font-size: 9px; padding: 6px 10px; }
    .back-to-top { bottom: 70px; right: 16px; width: 40px; height: 40px; font-size: 16px; }
  }
