/* あとログ v2 — ユエの夜 + DotGothic16 (タイポグラフィとログの台帳構成) */
@font-face {
  font-family: 'DotGothic16';
  src: url('font.woff2?v=2') format('woff2');
  font-display: swap;
}

:root {
  --bg: #07080f;
  --hero-bg: #0d1122;
  --surface: #101527;
  --ink: #d8d5e4;
  --ink-hi: #eceaf4;
  --ink-soft: rgba(216, 213, 228, 0.62);
  --rule: rgba(216, 213, 228, 0.16);
  --dot: rgba(216, 213, 228, 0.14);
  --accent: #9fb6d9;
  --sticker-ink: #0b0e1a;
  --night: #05060c;
  --night-ink: #d8d5e4;
  --night-hi: #eceaf4;
  --night-dim: rgba(216, 213, 228, 0.62);
  --night-rule: rgba(216, 213, 228, 0.16);

  --font-sans: 'Hiragino Kaku Gothic ProN', -apple-system, sans-serif;
  --font-dot: 'DotGothic16', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-dot);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

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

/* 1. 細ヘッダー (家具: 共通) */
.site-head {
  background-color: var(--bg);
  padding: 18px 28px;
}

.site-head-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-dot);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink-hi);
}

.site-brand:hover {
  color: var(--ink-hi);
}

.site-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  color: var(--ink-soft);
}

.site-nav a {
  white-space: nowrap;
}

/* 2. ヒーロー (タイポグラフィ主役型: 左にスクショ1枚、右に見出し+数字の帯+ボタン) */
.hero {
  background:
    radial-gradient(circle, var(--dot) 1px, transparent 1.3px) 0 0 / 12px 12px,
    var(--hero-bg);
  padding: 56px 28px 64px;
}

.hero-stage {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.hero-visual {
  height: 520px;
  aspect-ratio: 800 / 1734;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
  flex: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.hero-title {
  order: 1;
  font-family: var(--font-dot);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.22;
  letter-spacing: 0.03em;
  color: var(--ink-hi);
}

.hero-title .line-break {
  display: block;
}

.hero-stats {
  order: 2;
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 0;
  border-top: 1px dotted var(--rule);
  border-bottom: 1px dotted var(--rule);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.hero-stat-value {
  font-family: var(--font-dot);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.1;
  color: var(--ink-hi);
  letter-spacing: 0.02em;
}

.hero-stat-unit {
  font-size: 16px;
  color: var(--ink-soft);
  margin-left: 3px;
}

.hero-cta {
  order: 3;
}

/* 角なしボタン (家具: 夜に白地黒文字で浮かせる) */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--ink-hi);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 0;
  border: 1px solid var(--ink-hi);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-store:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--sticker-ink);
}

.btn-store .store-mark {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-store .btn-label {
  display: block;
  text-align: left;
}

.btn-store .small {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  opacity: 0.78;
}

.btn-store .big {
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.btn-store--light {
  background-color: var(--ink-hi);
  color: var(--night);
  border-color: var(--ink-hi);
}

.btn-store--light:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--sticker-ink);
}

/* 3. ステートメント (中央寄せの狭いカラムで1段落、上下にドット罫) */
.statement {
  padding: 84px 28px;
}

.statement-inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 36px 0;
  border-top: 1px dotted var(--rule);
  border-bottom: 1px dotted var(--rule);
  text-align: center;
}

.statement-lead {
  font-family: var(--font-dot);
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--ink-hi);
}

/* 4. 特徴 = 台帳 (レジャー) 型 */
.ledger {
  padding: 20px 28px 96px;
}

.ledger-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) 320px;
  align-items: center;
  gap: 36px;
  padding: 40px 0;
  border-bottom: 1px dotted var(--rule);
}

.ledger-row:first-child {
  border-top: 1px dotted var(--rule);
}

.ledger-word {
  font-family: var(--font-dot);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--ink-hi);
}

.ledger-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 34em;
}

.ledger-visual {
  justify-self: end;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--surface);
}

.ledger-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ledger-visual--ui {
  width: 280px;
}

.ledger-visual--pick {
  width: 320px;
  aspect-ratio: 16 / 6;
}

.ledger-visual--pick img {
  object-position: 50% 94%;
}

.ledger-visual--browser {
  width: 176px;
  aspect-ratio: 3 / 4;
}

.ledger-visual--browser img {
  object-position: 50% 35%;
}

/* 再現UI (v1部品流用: 登録ステータスカード) */
.ui-card {
  height: 100%;
  background-color: #f7f7fa;
  color: #23232b;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.ui-list {
  justify-content: center;
}

.ui-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid #e6e6ec;
}

.ui-row:last-child {
  border-bottom: none;
}

.ui-tag {
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  color: #6a5ae0;
  background-color: #eceafd;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: auto;
}

.ui-label {
  font-weight: 700;
}

.ui-value {
  margin-left: auto;
  color: #8a8a96;
}

/* 5. こだわり = 設定リスト型 */
.philosophy {
  padding: 20px 28px 96px;
}

.philosophy-inner {
  max-width: 820px;
  margin: 0 auto;
}

.philosophy-title {
  font-family: var(--font-dot);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--ink-hi);
  margin-bottom: 24px;
}

.settings-list {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 8px 24px;
}

.settings-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px dotted var(--rule);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-key {
  font-size: 14px;
  color: var(--ink-soft);
}

.settings-val {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-main {
  font-size: 16px;
  color: var(--ink-hi);
}

.settings-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* 6. 画面 = デュエット型 (detail.jpg を大きく中央、home.jpg を小さく横に高さをずらす) */
.duet {
  padding: 20px 28px 112px;
}

.duet-inner {
  max-width: 960px;
  margin: 0 auto;
}

.duet-title {
  font-family: var(--font-dot);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--ink-hi);
  margin-bottom: 36px;
  text-align: center;
}

.duet-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

.duet-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.duet-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.duet-fig--main img {
  height: 500px;
  width: auto;
  aspect-ratio: 800 / 1734;
}

.duet-fig--side {
  margin-top: 84px;
}

.duet-fig--side img {
  height: 360px;
  width: auto;
  aspect-ratio: 800 / 1734;
}

.duet-cap {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

/* 7. 入手 + 8. フッターの黒帯 (家具: 共通) */
.night-band {
  background-color: var(--night);
  color: var(--night-ink);
  margin-top: auto;
}

.night-dl {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 28px 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.night-dl-id {
  display: flex;
  align-items: center;
  gap: 20px;
}

.night-dl-icon {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  flex: none;
}

.night-dl-name {
  font-family: var(--font-dot);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--night-hi);
}

.night-dl-note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--night-dim);
}

.night-foot {
  border-top: 1px solid var(--night-rule);
}

.night-foot-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 28px 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  font-size: 12.5px;
  color: var(--night-dim);
}

.night-foot a {
  color: var(--night-dim);
}

.night-foot a:hover {
  color: var(--accent);
}

.night-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--night-hi);
}

.night-brand img {
  width: 16px;
  height: 16px;
}

.house-name {
  font-family: var(--font-dot);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--night-hi);
}

.night-spacer {
  flex: 1;
}

.night-copy {
  font-size: 12px;
  color: var(--night-dim);
}

/* 法務ページ (privacy.html 維持用) */
.legal-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}

.legal h1 {
  font-family: var(--font-dot);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: var(--ink-hi);
  margin-bottom: 8px;
}

.legal .updated {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.legal .lang-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}

.legal .lang-btn {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
}

.legal .lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.legal section {
  margin-bottom: 30px;
}

.legal h2 {
  font-family: var(--font-dot);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  color: var(--ink-hi);
}

.legal h3 {
  font-family: var(--font-dot);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 16px 0 6px;
  color: var(--ink-hi);
}

.legal p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.legal ul {
  padding-left: 1.4em;
  margin-bottom: 10px;
}

.legal li {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.legal a {
  color: var(--ink-hi);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--accent);
}

/* レスポンシブ */
@media (max-width: 900px) {
  .site-head {
    padding: 14px 20px;
  }

  .hero {
    padding: 24px 20px 36px;
  }

  .hero-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .hero-body {
    order: 1;
    gap: 18px;
  }

  .hero-title {
    order: 1;
    font-size: clamp(30px, 8.2vw, 42px);
  }

  .hero-cta {
    order: 2;
  }

  .hero-stats {
    order: 3;
    max-width: none;
    padding: 16px 0;
  }

  .hero-stat-value {
    font-size: 30px;
  }

  .hero-visual {
    order: 2;
    width: 78%;
    height: auto;
    margin: 0 auto;
  }

  .statement {
    padding: 56px 20px;
  }

  .ledger {
    padding: 12px 20px 64px;
  }

  .ledger-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
  }

  .ledger-visual {
    justify-self: start;
  }

  .ledger-visual--ui {
    width: 100%;
    max-width: 300px;
  }

  .ledger-visual--pick {
    width: 100%;
    max-width: 340px;
  }

  .ledger-visual--browser {
    width: 160px;
  }

  .philosophy {
    padding: 12px 20px 64px;
  }

  .settings-list {
    padding: 4px 18px;
  }

  .settings-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .duet {
    padding: 12px 20px 76px;
  }

  .duet-stage {
    gap: 16px;
  }

  .duet-fig--main {
    width: 56%;
  }

  .duet-fig--main img {
    height: auto;
    width: 100%;
  }

  .duet-fig--side {
    width: 38%;
    margin-top: 44px;
  }

  .duet-fig--side img {
    height: auto;
    width: 100%;
  }

  .night-dl {
    padding: 48px 20px 40px;
  }

  .night-foot-inner {
    padding: 22px 20px 32px;
  }
}

@media (max-width: 600px) {
  .site-nav {
    gap: 14px;
    font-size: 11px;
  }
}

/* 出現ギミック (文章だけ・要所のみ。画像は最初から置く) */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease var(--d, 0s), transform 0.8s ease var(--d, 0s);
}

.rv.on {
  opacity: 1;
  transform: none;
}

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

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 消化シミュレーション: 数字が変わる瞬間の控えめな明滅 */
.hero-stat-value.tick {
  animation: statTick 0.9s ease;
}

@keyframes statTick {
  0% { color: var(--accent); }
  100% { color: var(--ink-hi); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stat-value.tick { animation: none; }
}
