/* ============================================
   ANGER PAUSE — style.css
   HEAT → HOLD → AIR
   ============================================ */

/* --- Google Fonts --- */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@700;900&family=Zen+Kaku+Gothic+New:wght@300;400;500&family=Zen+Old+Mincho:wght@500;700&display=swap");

/* --- Variables --- */
:root {
  /* Color: HEAT */
  --color-ink: #171518;
  --color-heat: #4a1f2b;
  --color-heat-soft: #713342;
  --color-accent: #c85b52;

  /* Color: NEUTRAL */
  --color-smoke: #35363a;
  --color-stone: #717277;

  /* Color: AIR */
  --color-mist: #d9d9d5;
  --color-air: #b8c4c8;
  --color-air-deep: #53656b;
  --color-paper: #f4f2ed;

  /* Typography */
  --font-en: "Roboto Condensed", sans-serif;
  --font-ja: "Zen Old Mincho", serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;

  /* Layout */
  --inner-width: 760px;
  --section-pad: clamp(64px, 10vw, 120px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--color-ink);
  color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

textarea {
  font-family: var(--font-body);
  resize: vertical;
}

/* --- Layout --- */
.inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
}

/* ============================================
   SECTION — 全セクション100vh
   ============================================ */
section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--section-pad) 0;
}

section .inner {
  width: 100%;
}

/* --- Section backgrounds: HEAT → HOLD → AIR --- */
.s-hero {
  background: linear-gradient(
    160deg,
    var(--color-ink) 55%,
    var(--color-heat) 100%
  );
}
.s-write {
  background: var(--color-smoke);
}
.s-choices {
  background: var(--color-mist);
}
.s-breath {
  background: var(--color-air);
}
.s-decide {
  background: var(--color-paper);
}
.s-end {
  background: var(--color-paper);
}

/* --- Section number label --- */
.section-label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-stone);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 32px;
}

.section-label span {
  display: block;
}

/* --- Buttons --- */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition:
    opacity 0.2s,
    background 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  justify-content: center;
}

.btn-primary {
  background: var(--color-paper);
  color: var(--color-ink);
  border: none;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-ghost {
  background: transparent;
  color: var(--color-mist);
  border: 0.5px solid var(--color-stone);
}

.btn-ghost:hover {
  border-color: var(--color-mist);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-ink);
  border: none;
}

.btn-accent:hover {
  opacity: 0.88;
}

.btn-dark {
  background: var(--color-ink);
  color: var(--color-paper);
  border: none;
}

.btn-dark:hover {
  opacity: 0.82;
}

/* --- Footer --- */
footer {
  background: var(--color-ink);
  padding: 40px 0;
  border-top: 0.5px solid var(--color-smoke);
}

.footer-inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--color-stone);
}

.footer-copy {
  font-size: 12px;
  color: var(--color-stone);
  line-height: 1.7;
  text-align: right;
}

/* --- Utility --- */
.hidden {
  display: none;
}

/* ============================================
   S1 HERO
   ============================================ */
.s-hero {
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
}

.hero-title {
  font-family: var(--font-en);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: clamp(80px, 15vw, 140px);
}

.hero-title .word-anger {
  display: block;
  color: var(--color-accent);
}

.hero-title .word-pause {
  display: block;
  color: var(--color-paper);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-lead {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--color-mist);
  line-height: 1.85;
  letter-spacing: 0.03em;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-stone);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--color-stone);
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 0.5px;
  height: 40px;
  background: var(--color-stone);
  opacity: 0.5;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px clamp(24px, 5vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--color-stone);
}

.nav-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid var(--color-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-stone);
  cursor: pointer;
  background: transparent;
  display: none;
}

/* ============================================
   S2 WRITE
   ============================================ */
.s-write {
  color: var(--color-paper);
  overflow: hidden;
  position: relative;
}

.s-write .inner {
  position: relative;
  z-index: 2;
}

.write-head {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--color-paper);
  margin-bottom: 16px;
  line-height: 1.5;
}

.write-desc {
  font-size: 14px;
  color: var(--color-mist);
  line-height: 1.9;
  margin-bottom: 32px;
}

.write-desc p + p {
  margin-top: 4px;
}

.anger-textarea {
  width: 100%;
  min-height: 200px;
  background: var(--color-ink);
  border: 0.5px solid var(--color-stone);
  border-radius: 8px;
  padding: 20px;
  font-size: 15px;
  color: var(--color-paper);
  line-height: 1.8;
  letter-spacing: 0.02em;
  transition: border-color 0.2s;
  display: block;
}

.anger-textarea::placeholder {
  color: var(--color-stone);
}

.anger-textarea:focus {
  outline: none;
  border-color: var(--color-heat-soft);
}

.anger-textarea.is-dissolving {
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.97);
  transition:
    opacity 0.8s ease-out,
    filter 0.8s ease-out,
    transform 0.8s ease-out;
}

.write-counter {
  font-size: 12px;
  color: var(--color-stone);
  text-align: right;
  margin-top: 8px;
}

.write-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.write-note {
  font-size: 12px;
  color: var(--color-stone);
  line-height: 1.7;
}

/* --- 燃焼後メッセージオーバーレイ --- */
.burn-message {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease-in-out;
}

.burn-message.is-visible {
  opacity: 1;
  pointer-events: none;
}

.burn-msg-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: 0.04em;
  color: var(--color-paper);
  text-align: center;
}

.burn-msg-ja {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: clamp(13px, 2vw, 16px);
  color: var(--color-stone);
  letter-spacing: 0.06em;
  text-align: center;
}

/* ============================================
   S3 CHOICES
   ============================================ */
.s-choices {
  color: var(--color-ink);
}

.choices-head {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: clamp(20px, 2.8vw, 26px);
  color: var(--color-ink);
  margin-bottom: 8px;
}

.choices-sub {
  font-size: 14px;
  color: var(--color-air-deep);
  margin-bottom: 32px;
}

.choices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.choice-btn {
  background: var(--color-paper);
  border: 0.5px solid var(--color-air);
  border-radius: 8px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-ink);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
  text-align: center;
  line-height: 1.4;
}

.choice-btn:hover {
  background: var(--color-air);
  border-color: var(--color-air-deep);
}

.choice-btn.is-selected {
  background: var(--color-air-deep);
  color: var(--color-paper);
  border-color: var(--color-air-deep);
}

.choice-btn.is-selected .choice-icon {
  color: var(--color-paper);
  opacity: 0.8;
}

/* Font Awesome アイコン */
.choice-icon {
  font-size: 20px;
  line-height: 1;
  color: var(--color-air-deep);
  opacity: 0.75;
  transition: opacity 0.2s;
}

.choice-btn:hover .choice-icon {
  opacity: 1;
}

/* --- 呼吸以外メッセージ --- */
.choice-result-wrap {
  margin-top: 40px;
  text-align: center;
}

.choice-result {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: clamp(18px, 3vw, 26px);
  color: var(--color-ink);
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.choice-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}

.choice-scroll-line {
  display: block;
  width: 0.5px;
  height: 40px;
  background: var(--color-air-deep);
  opacity: 0.5;
}

.choice-scroll-text {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--color-air-deep);
  opacity: 0.6;
}

.choices-hint {
  font-size: 12px;
  color: var(--color-stone);
  margin-top: 20px;
  text-align: center;
}

/* ============================================
   S4 BREATH
   ============================================ */
.s-breath {
  color: var(--color-ink);
}

.breath-head {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: clamp(20px, 2.8vw, 26px);
  color: var(--color-ink);
  margin-bottom: 8px;
}

.breath-sub {
  font-size: 14px;
  color: var(--color-air-deep);
  margin-bottom: 48px;
  line-height: 1.7;
}

.breath-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.breath-circle-wrap {
  display: flex;
  justify-content: center;
}

.breath-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid var(--color-air-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  transition: transform 1s ease-in-out;
}

.breath-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.breath-sets {
  font-size: 13px;
  color: var(--color-air-deep);
  margin-bottom: 8px;
}

.breath-dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

.breath-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-air-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--color-air-deep);
  transition: background 0.3s;
}

.breath-dot.done {
  background: var(--color-air-deep);
  color: var(--color-paper);
}

.breath-dot-sep {
  font-size: 12px;
  color: var(--color-air-deep);
}

.breath-finish {
  font-family: var(--font-ja);
  font-size: 14px;
  color: var(--color-air-deep);
  line-height: 1.7;
}

/* ============================================
   S5 DECIDE
   ============================================ */
.s-decide {
  color: var(--color-ink);
}

.decide-head {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--color-ink);
  margin-bottom: 20px;
}

.decide-options {
  font-size: 15px;
  color: var(--color-smoke);
  line-height: 2.2;
  margin-bottom: 32px;
}

.decide-body {
  font-size: 15px;
  color: var(--color-smoke);
  line-height: 1.9;
  margin-bottom: 40px;
}

.decide-body p + p {
  margin-top: 16px;
}

.decide-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   S6 END
   ============================================ */
.s-end {
  color: var(--color-ink);
  text-align: center;
  position: relative;
  justify-content: center;
}

.end-head {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--color-ink);
  margin-bottom: 24px;
}

.end-body {
  font-size: 15px;
  color: var(--color-smoke);
  line-height: 1.9;
  margin-bottom: 16px;
}

.end-close {
  font-family: var(--font-ja);
  font-size: 15px;
  color: var(--color-air-deep);
  margin-bottom: 40px;
}

/* ============================================
   BURN CANVAS
   ============================================ */
.write-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 12px;
  z-index: 3;
}

/* ============================================
   SECTION BG TYPO
   ============================================ */
.section-bg-en {
  position: absolute;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: clamp(100px, 18vw, 180px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  bottom: clamp(16px, 4vw, 40px);
  right: clamp(16px, 4vw, 40px);
  z-index: 0;
}

.s-write .section-bg-en {
  color: var(--color-ink);
  opacity: 0.35;
}
.s-choices .section-bg-en {
  color: var(--color-air-deep);
  opacity: 0.12;
}
.s-breath .section-bg-en {
  color: var(--color-air-deep);
  opacity: 0.14;
}
.s-decide .section-bg-en {
  color: var(--color-stone);
  opacity: 0.1;
}
.s-end .section-bg-en {
  color: var(--color-stone);
  opacity: 0.1;
}

.s-choices,
.s-breath,
.s-decide,
.s-end {
  position: relative;
  overflow: hidden;
}

.s-choices .inner,
.s-breath .inner,
.s-decide .inner,
.s-end .inner {
  position: relative;
  z-index: 1;
}

/* ============================================
   BREATH — 数字を大きく
   ============================================ */
.breath-phase-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-air-deep);
  letter-spacing: 0.08em;
}

.breath-num {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 88px);
  line-height: 1;
  color: var(--color-air-deep);
  letter-spacing: -0.02em;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 680px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-title {
    font-size: clamp(72px, 20vw, 100px);
  }

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

  .breath-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
