:root {
  color-scheme: dark;
  --ink: #f6f1e7;
  --muted: #bfc5bd;
  --forest: #111a18;
  --forest-2: #192420;
  --charcoal: #0d1211;
  --leather: #b96f3d;
  --amber: #e5ad62;
  --green: #6d8b75;
  --line: rgba(246, 241, 231, 0.14);
}

* { box-sizing: border-box; }

html { background: var(--charcoal); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--charcoal);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }

.app-shell {
  width: min(100%, 760px);
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: var(--forest);
}

.view { display: none; min-height: calc(100dvh - 80px); }
.view.is-active { display: block; animation: view-in 260ms ease-out both; }

@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  min-height: min(72dvh, 700px);
  display: flex;
  align-items: flex-end;
  padding: max(48px, env(safe-area-inset-top)) 24px 40px;
  background: linear-gradient(to bottom, rgba(5, 11, 11, 0.1), rgba(5, 11, 11, 0.2) 42%, rgba(5, 11, 11, 0.92) 100%),
    url("assets/compass-scene.png") center / cover no-repeat;
}

.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.eyebrow, .section-label, .rank, .topic-no {
  margin: 0;
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, p { overflow-wrap: anywhere; }

.hero h1 {
  margin: 10px 0 16px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(38px, 12vw, 66px);
  line-height: 1.12;
  font-weight: 600;
}

.hero-statement {
  margin: 0;
  color: #f9f3e9;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(17px, 4.8vw, 22px);
  line-height: 1.9;
}

.content-band { padding: 34px 20px 42px; }
.essence-band { background: var(--forest); }
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 20px; background: var(--line); }
.pillar { min-height: 168px; padding: 22px 18px; background: var(--forest); }
.pillar span { color: var(--green); font-size: 11px; font-weight: 800; }
.pillar h2 { margin: 22px 0 8px; font-family: "Yu Mincho", serif; font-size: 24px; font-weight: 600; }
.pillar p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.question-band { padding-top: 44px; padding-bottom: 58px; background: #d8c5a5; color: #16201d; }
.question-band .section-label { color: #755134; }
blockquote {
  margin: 20px 0 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(25px, 8vw, 38px);
  font-weight: 600;
  line-height: 1.65;
}

.wallpaper-link {
  display: inline-block;
  margin-top: 30px;
  padding: 13px 0 8px;
  border-bottom: 1px solid #755134;
  color: #2c2923;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.page-head { padding: max(64px, calc(env(safe-area-inset-top) + 34px)) 22px 34px; background: #192420; }
.page-head h1 { margin: 10px 0 12px; font-family: "Yu Mincho", serif; font-size: clamp(34px, 10vw, 50px); line-height: 1.2; }
.page-head > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.accent-head { background: #22312b; }
.business-head { background: #33251d; }

.list-section { padding: 4px 20px 38px; background: var(--forest); }
.topic { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.topic h2 { margin: -4px 0 10px; font-family: "Yu Mincho", serif; font-size: 21px; }
.topic div p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }

.strength-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 1px 0 0; background: var(--line); }
.strength-grid article { min-height: 230px; padding: 26px 20px; background: var(--forest); }
.strength-grid span { color: var(--amber); font-size: 10px; font-weight: 800; }
.strength-grid h2 { margin: 38px 0 12px; font-family: "Yu Mincho", serif; font-size: 21px; line-height: 1.45; }
.strength-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.business-list { padding: 20px; background: #121817; }
.business-item { padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.business-item.primary { padding: 26px 22px 30px; border: 1px solid rgba(229, 173, 98, 0.55); background: #1d2622; }
.business-item h2 { margin: 12px 0 10px; font-family: "Yu Mincho", serif; font-size: 23px; }
.business-item > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.direction-line { padding: 42px 22px 56px; background: #d8c5a5; color: #17201e; }
.direction-line p { margin: 0 0 16px; color: #755134; font-size: 11px; font-weight: 800; }
.direction-line strong { display: block; font-family: "Yu Mincho", serif; font-size: 23px; font-weight: 600; line-height: 1.75; }

.tab-bar {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 0;
  width: min(100%, 760px);
  height: calc(66px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 8px env(safe-area-inset-bottom);
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(10, 15, 14, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.tab {
  position: relative;
  border: 0;
  color: #8f9892;
  background: transparent;
  cursor: pointer;
}
.tab span { display: inline-block; padding-top: 5px; font-size: 12px; font-weight: 700; }
.tab.is-active { color: var(--ink); }
.tab.is-active::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 2px; transform: translateX(-50%); background: var(--amber); }

@media (min-width: 761px) {
  body { background: #090d0c; }
  .app-shell { box-shadow: 0 0 70px rgba(0,0,0,0.45); }
  .hero { min-height: 680px; padding-left: 48px; padding-right: 48px; }
  .content-band, .page-head, .list-section, .business-list, .direction-line { padding-left: 48px; padding-right: 48px; }
}

@media (max-width: 360px) {
  .pillar-grid, .strength-grid { grid-template-columns: 1fr; }
  .pillar, .strength-grid article { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; }
}
