@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("/ubusunagami/assets/fonts/MPLUSRounded1c-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --sumi: #171411;
  --sumi-2: #211b17;
  --sumi-3: #2f261d;
  --washi: #fbf4df;
  --washi-soft: rgba(251, 244, 223, 0.78);
  --washi-dim: rgba(251, 244, 223, 0.62);
  --gold: #d9b75f;
  --gold-2: #a77b2a;
  --akane: #b65b45;
  --mizu: #4e8b85;
  --line: rgba(251, 244, 223, 0.16);
  --paper: #f4ead0;
  --paper-ink: #322920;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--washi);
  background:
    linear-gradient(180deg, #120f0d 0%, var(--sumi) 40%, #0f0d0b 100%);
  font-family: "M PLUS Rounded 1c", system-ui, sans-serif;
  line-height: 1.75;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 15, 13, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--gold);
  font-weight: 900;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.4vw, 28px);
  color: var(--washi-soft);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a[aria-current="page"] {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  padding: 112px clamp(18px, 4vw, 54px) 42px;
  isolation: isolate;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.04);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 15, 13, 0.96) 0%, rgba(18, 15, 13, 0.9) 42%, rgba(18, 15, 13, 0.54) 100%),
    linear-gradient(0deg, var(--sumi) 0%, rgba(18, 15, 13, 0.2) 38%, rgba(18, 15, 13, 0.58) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 480px);
  align-items: center;
  gap: clamp(30px, 5vw, 74px);
  max-width: 1180px;
  min-height: calc(88svh - 154px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  color: #fff9e5;
  font-size: clamp(56px, 8.4vw, 112px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: #fff9e5;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: #fff9e5;
  font-size: 20px;
  line-height: 1.35;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--washi-soft);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
}

.primary-action,
.secondary-action,
.store-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.primary-action {
  padding: 0 22px;
  color: #1b1510;
  background: var(--gold);
}

.secondary-action {
  padding: 0 18px;
  color: var(--gold);
  border: 1px solid rgba(217, 183, 95, 0.42);
  background: rgba(251, 244, 223, 0.06);
}

.store-state {
  padding: 0 18px;
  color: var(--washi-soft);
  border: 1px solid var(--line);
  background: rgba(251, 244, 223, 0.07);
}

.hero-note {
  margin: 16px 0 0;
  color: var(--washi-dim);
  font-size: 13px;
}

.hero-product {
  position: relative;
  min-height: 520px;
}

.phone-mock {
  position: absolute;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1290 / 2796;
  border: 1px solid rgba(251, 244, 223, 0.22);
  border-radius: 30px;
  background: #060606;
  box-shadow: var(--shadow);
}

.phone-mock img,
.screen-card img,
.screen-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-primary {
  z-index: 2;
  left: 24px;
  top: 0;
  width: min(260px, 52vw);
}

.phone-secondary {
  z-index: 1;
  right: 8px;
  top: 86px;
  width: min(224px, 44vw);
  opacity: 0.9;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(251, 244, 223, 0.12);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-facts div {
  min-height: 118px;
  padding: 24px clamp(18px, 4vw, 42px);
  background: var(--paper);
  color: var(--paper-ink);
}

.quick-facts strong {
  display: block;
  color: var(--akane);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.quick-facts span {
  display: block;
  margin-top: 8px;
  color: rgba(50, 41, 32, 0.72);
  font-size: 13px;
}

.section,
.trial-section,
.app-tour-section,
.theory-summary-section,
.theory-section,
.theory-page-hero,
.deep-theory-section,
.logic-section,
.learn-section,
.privacy-section,
.faq-section,
.screens-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px clamp(18px, 4vw, 54px);
}

.section-copy {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-copy p:not(.eyebrow),
.logic-copy p,
.privacy-copy p {
  color: var(--washi-soft);
  font-size: 16px;
}

.trial-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 68px);
}

.trial-tool {
  border: 1px solid rgba(217, 183, 95, 0.3);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(78, 139, 133, 0.13), rgba(182, 91, 69, 0.13)),
    rgba(251, 244, 223, 0.06);
}

.trial-form {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.trial-form label {
  display: block;
  color: #fff9e5;
  font-weight: 900;
}

.trial-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 10px;
}

.trial-row input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  color: var(--paper-ink);
  border: 1px solid rgba(217, 183, 95, 0.42);
  border-radius: 8px;
  background: var(--paper);
}

.trial-row button {
  min-height: 48px;
  padding: 0 18px;
  color: #1b1510;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  font-weight: 900;
  cursor: pointer;
}

.form-help {
  margin: 10px 0 0;
  color: var(--washi-dim);
  font-size: 12px;
}

.trial-result {
  min-height: 300px;
  padding: 22px;
}

.result-placeholder {
  color: var(--washi-dim);
}

.result-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.result-god {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.result-god img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.result-god small {
  display: block;
  color: var(--gold);
  font-weight: 900;
}

.result-god strong {
  display: block;
  margin-top: 6px;
  color: #fff9e5;
  line-height: 1.35;
}

.result-detail {
  margin: 14px 0 0;
  color: var(--washi-soft);
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-item,
.god-card,
.article-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 244, 223, 0.06);
}

.feature-item {
  min-height: 350px;
  padding: 18px;
}

.feature-item img {
  width: 100%;
  height: 172px;
  object-fit: contain;
  object-position: center bottom;
}

.feature-item h3 {
  margin-top: 16px;
}

.feature-item p,
.god-card p,
.article-grid p,
.faq-list p {
  color: var(--washi-soft);
  font-size: 14px;
}

.app-tour-section {
  max-width: 1260px;
}

.tour-stack {
  display: grid;
  gap: 18px;
}

.tour-swipe-hint {
  display: none;
}

.tour-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 58px);
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(217, 183, 95, 0.07), rgba(78, 139, 133, 0.08)),
    rgba(251, 244, 223, 0.04);
}

.tour-panel.reverse {
  grid-template-columns: minmax(360px, 1.1fr) minmax(0, 0.9fr);
}

.tour-panel.reverse .tour-copy {
  order: 2;
}

.tour-panel.reverse .tour-media {
  order: 1;
}

.tour-copy p:not(.eyebrow) {
  color: var(--washi-soft);
}

.tour-copy h3 {
  font-size: clamp(24px, 3vw, 36px);
}

.feature-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.feature-points li {
  display: flex;
  gap: 10px;
  color: var(--washi-soft);
  font-size: 14px;
}

.feature-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.tour-media {
  min-width: 0;
}

.phone-pair,
.badge-media,
.widget-media,
.shrine-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 22px);
}

.shot-phone {
  overflow: hidden;
  width: min(250px, 47%);
  margin: 0;
  aspect-ratio: 1290 / 2796;
  border: 1px solid rgba(251, 244, 223, 0.22);
  border-radius: 28px;
  background: #050505;
  box-shadow: var(--shadow);
}

.shot-phone.offset {
  margin-top: 70px;
}

.shot-phone.compact {
  width: min(232px, 44%);
}

.shot-phone.mini {
  width: min(188px, 38%);
}

.shot-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-board {
  width: min(280px, 50%);
  padding: 18px;
  border: 1px solid rgba(217, 183, 95, 0.28);
  border-radius: 10px;
  background: rgba(17, 20, 42, 0.78);
}

.badge-board p,
.shrine-log-demo p {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 900;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.badge-grid span {
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 8px;
  color: #fff9e5;
  border: 1px solid rgba(217, 183, 95, 0.34);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 22%, rgba(217, 183, 95, 0.28), transparent 42%),
    rgba(251, 244, 223, 0.07);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.widget-phone {
  position: relative;
  overflow: hidden;
  width: min(260px, 52%);
  aspect-ratio: 9 / 16;
  padding: 28px 18px;
  border: 1px solid rgba(251, 244, 223, 0.22);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(18, 15, 13, 0.1), rgba(18, 15, 13, 0.92)),
    url("/ubusunagami/assets/generated-shrine-hero.webp") center / cover;
  box-shadow: var(--shadow);
}

.widget-card-demo {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(217, 183, 95, 0.34);
  border-radius: 22px;
  background: rgba(17, 20, 42, 0.86);
}

.widget-card-demo p {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.widget-card-demo img {
  width: 118px;
  height: 126px;
  object-fit: contain;
}

.widget-card-demo strong {
  color: #fff9e5;
  line-height: 1.2;
}

.widget-card-demo span {
  color: var(--washi-dim);
  font-size: 12px;
}

.home-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.home-icons span {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(251, 244, 223, 0.22);
}

.shrine-photo-frame {
  overflow: hidden;
  width: min(270px, 48%);
  margin: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(251, 244, 223, 0.22);
  border-radius: 28px;
  background: #050505;
  box-shadow: var(--shadow);
}

.shrine-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shrine-log-demo {
  width: min(300px, 52%);
  padding: 18px;
  border: 1px solid rgba(217, 183, 95, 0.28);
  border-radius: 10px;
  background: rgba(251, 244, 223, 0.07);
}

.shrine-log-demo div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.shrine-log-demo strong {
  color: #fff9e5;
  line-height: 1.35;
}

.shrine-log-demo span {
  grid-column: 1;
  color: var(--washi-dim);
  font-size: 12px;
}

.shrine-log-demo b {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--gold);
  font-size: 12px;
}

.theory-summary-section {
  max-width: 1180px;
}

.theory-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.theory-summary-grid .section-copy {
  margin-bottom: 0;
}

.theory-summary-card {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(217, 183, 95, 0.32);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(217, 183, 95, 0.12), rgba(78, 139, 133, 0.08)),
    rgba(251, 244, 223, 0.06);
}

.compact-list {
  margin-top: 14px;
}

.theory-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1260px;
  padding-top: 132px;
  padding-bottom: 46px;
}

.theory-page-hero .section-copy {
  margin-bottom: 0;
}

.theory-page-hero h1 {
  font-size: clamp(48px, 7vw, 92px);
}

.theory-page-hero p:not(.eyebrow) {
  color: var(--washi-soft);
  font-size: clamp(16px, 2vw, 19px);
}

.theory-hero-proof {
  display: grid;
  gap: 12px;
}

.theory-hero-proof div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(78, 139, 133, 0.14), rgba(182, 91, 69, 0.1)),
    rgba(251, 244, 223, 0.06);
}

.theory-hero-proof strong {
  display: block;
  color: var(--gold);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
}

.theory-hero-proof span {
  display: block;
  margin-top: 10px;
  color: var(--washi-soft);
  font-size: 13px;
}

.theory-section {
  max-width: 1260px;
}

.theory-page-main .theory-section {
  padding-top: 40px;
}

.theory-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 28px;
}

.theory-flow-panel,
.formula-panel,
.stem-map,
.source-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 244, 223, 0.06);
}

.theory-flow-panel {
  padding: clamp(20px, 3vw, 30px);
}

.theory-flow-panel h3,
.formula-panel h3,
.stem-map h3,
.source-panel h3 {
  font-size: clamp(22px, 3vw, 34px);
}

.theory-flow {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  counter-reset: theory-flow;
}

.theory-flow li {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px 14px 12px 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  counter-increment: theory-flow;
}

.theory-flow li::before {
  content: counter(theory-flow);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #1b1510;
  border-radius: 50%;
  background: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.theory-flow b {
  color: #fff9e5;
  line-height: 1.35;
}

.theory-flow span,
.formula-panel p,
.stem-map p,
.source-panel p {
  color: var(--washi-soft);
  font-size: 14px;
}

.theory-media {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.theory-phone {
  width: min(276px, 66vw);
}

.theory-proof {
  display: grid;
  gap: 4px;
  width: min(360px, 100%);
  padding: 15px 16px;
  border: 1px solid rgba(217, 183, 95, 0.36);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(217, 183, 95, 0.12), rgba(78, 139, 133, 0.1)),
    rgba(251, 244, 223, 0.06);
}

.theory-proof strong {
  color: var(--gold);
  line-height: 1.35;
}

.theory-proof span {
  color: var(--washi-soft);
  font-size: 13px;
}

.theory-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.theory-principles article {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 244, 223, 0.05);
}

.theory-principles span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 30px;
  margin-bottom: 16px;
  color: #1b1510;
  border-radius: 999px;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.theory-principles p {
  color: var(--washi-soft);
  font-size: 14px;
}

.formula-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 46px);
  margin-top: 20px;
  padding: clamp(20px, 3vw, 30px);
}

.formula-panel pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  color: #fff9e5;
  border: 1px solid rgba(217, 183, 95, 0.34);
  border-radius: 10px;
  background: #0f0d0b;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.stem-map {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  gap: clamp(22px, 4vw, 44px);
  margin-top: 20px;
  padding: clamp(20px, 3vw, 30px);
}

.stem-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.stem-table {
  width: 100%;
  min-width: 430px;
  border-collapse: collapse;
  color: var(--washi-soft);
  font-size: 13px;
}

.stem-table th,
.stem-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.stem-table th {
  color: var(--gold);
  background: rgba(0, 0, 0, 0.2);
  font-weight: 900;
}

.stem-table tr:last-child td {
  border-bottom: 0;
}

.source-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1fr);
  gap: clamp(22px, 4vw, 44px);
  margin-top: 20px;
  padding: clamp(20px, 3vw, 30px);
}

.source-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.source-tags li {
  padding: 8px 12px;
  color: var(--gold);
  border: 1px solid rgba(217, 183, 95, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 13px;
  font-weight: 900;
}

.deep-theory-section {
  max-width: 1260px;
}

.deep-chapter-list {
  display: grid;
  gap: 18px;
}

.deep-chapter {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(217, 183, 95, 0.06), rgba(78, 139, 133, 0.06)),
    rgba(251, 244, 223, 0.045);
}

.deep-chapter-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.deep-chapter-head span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 32px;
  color: #1b1510;
  border-radius: 999px;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.deep-chapter-head h2 {
  font-size: clamp(23px, 3vw, 34px);
}

.deep-blocks {
  display: grid;
  gap: 14px;
}

.deep-blocks p {
  margin: 0;
  color: var(--washi-soft);
  font-size: 15px;
}

.deep-blocks h3 {
  margin-top: 8px;
  color: var(--gold);
  font-size: 19px;
}

.deep-note {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: rgba(217, 183, 95, 0.1);
}

.deep-formula {
  min-width: 0;
  margin: 0;
}

.deep-formula figcaption {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.deep-formula pre {
  overflow-x: auto;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 16px;
  color: #fff9e5;
  border: 1px solid rgba(217, 183, 95, 0.28);
  border-radius: 10px;
  background: #0f0d0b;
  font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.deep-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.deep-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: var(--washi-soft);
  font-size: 13px;
}

.deep-table th,
.deep-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.deep-table th {
  color: var(--gold);
  background: rgba(0, 0, 0, 0.18);
  font-weight: 900;
}

.deep-table tr:last-child td {
  border-bottom: 0;
}

.theory-refs {
  margin-top: 20px;
}

.logic-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.logic-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.logic-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 244, 223, 0.05);
}

.logic-list span {
  color: var(--washi-soft);
}

.logic-list b {
  color: var(--gold);
  white-space: nowrap;
}

.logic-visual {
  position: relative;
  min-height: 520px;
}

.screen-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1290 / 2796;
  border: 1px solid rgba(251, 244, 223, 0.22);
  border-radius: 28px;
  background: #050505;
  box-shadow: var(--shadow);
}

.screen-card:not(.small) {
  right: 92px;
  top: 0;
  width: min(260px, 52vw);
}

.screen-card.small {
  right: 0;
  top: 140px;
  width: min(218px, 42vw);
  opacity: 0.92;
}

.zukan-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 0.66fr);
  align-items: start;
  gap: 18px clamp(24px, 4vw, 44px);
  max-width: 1260px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.zukan-section .section-copy {
  grid-column: 1;
  margin-bottom: 0;
}

.zukan-section .filter-row {
  grid-column: 1;
  margin-bottom: 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.filter-button {
  min-width: 54px;
  min-height: 40px;
  padding: 0 15px;
  color: var(--washi-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 244, 223, 0.05);
  cursor: pointer;
}

.filter-button.is-active {
  color: #1b1510;
  border-color: var(--gold);
  background: var(--gold);
  font-weight: 900;
}

.zukan-carousel {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(217, 183, 95, 0.06), rgba(78, 139, 133, 0.08)),
    rgba(251, 244, 223, 0.04);
}

.carousel-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.carousel-toolbar p {
  margin: 0;
  color: var(--washi-dim);
  font-size: 13px;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--gold);
  border: 1px solid rgba(217, 183, 95, 0.34);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.carousel-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.god-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(238px, 278px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 2px 16px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold) transparent;
}

.god-grid:focus {
  outline: 2px solid rgba(217, 183, 95, 0.48);
  outline-offset: 4px;
}

.god-grid > p {
  width: min(100%, 520px);
  margin: 0;
  color: var(--washi-soft);
}

.god-card {
  display: grid;
  grid-template-rows: 150px auto;
  overflow: hidden;
  height: 344px;
  scroll-snap-align: start;
}

.god-image {
  display: grid;
  place-items: end center;
  padding: 16px 16px 0;
  background:
    linear-gradient(180deg, rgba(217, 183, 95, 0.12), rgba(78, 139, 133, 0.08));
}

.god-image img {
  max-height: 146px;
  object-fit: contain;
}

.god-body {
  display: grid;
  align-content: start;
  min-height: 0;
  padding: 14px;
}

.god-body h3 {
  margin-top: 6px;
  overflow: hidden;
  font-size: 17px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.god-body p:not(.eyebrow) {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.god-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  overflow: hidden;
  max-height: 54px;
  margin-top: 12px;
}

.god-meta span {
  padding: 4px 8px;
  color: var(--gold);
  border: 1px solid rgba(217, 183, 95, 0.32);
  border-radius: 999px;
  font-size: 11px;
}

.screens-section {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.screens-section .section-copy {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(18px, 4vw, 54px);
}

.screen-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 294px);
  gap: 18px;
  overflow-x: auto;
  padding: 0 clamp(18px, 4vw, 54px) 18px;
  scrollbar-color: var(--gold) transparent;
}

.screen-strip figure {
  margin: 0;
}

.screen-strip img {
  aspect-ratio: 1290 / 2796;
  border: 1px solid rgba(251, 244, 223, 0.22);
  border-radius: 28px;
  background: #050505;
  box-shadow: var(--shadow);
}

.screen-strip figcaption {
  margin-top: 10px;
  color: var(--washi-soft);
  font-size: 13px;
  text-align: center;
}

.learn-section {
  max-width: 1260px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.article-grid article {
  padding: 22px;
}

.article-grid h3 {
  color: var(--gold);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.text-link::after {
  content: "→";
  margin-left: 8px;
}

.content-page-main {
  padding-top: 72px;
}

.content-hero,
.guide-index-section,
.related-section {
  max-width: 1260px;
  margin: 0 auto;
  padding: 86px clamp(18px, 4vw, 54px);
}

.content-hero {
  display: grid;
  align-items: end;
  min-height: 520px;
}

.content-hero h1 {
  max-width: 980px;
  font-size: clamp(40px, 6vw, 82px);
}

.content-hero p:not(.eyebrow) {
  max-width: 820px;
  color: var(--washi-soft);
  font-size: clamp(16px, 2vw, 20px);
}

.guide-card-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-card,
.related-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(217, 183, 95, 0.07), rgba(78, 139, 133, 0.07)),
    rgba(251, 244, 223, 0.05);
}

.guide-card span,
.related-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-card h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.guide-card p,
.related-card em {
  color: var(--washi-soft);
  font-size: 14px;
  font-style: normal;
}

.related-card {
  min-height: 190px;
}

.related-card strong {
  color: #fff9e5;
  font-size: 20px;
  line-height: 1.35;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 46px);
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 54px) 86px;
}

.content-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 244, 223, 0.05);
}

.content-toc a {
  color: var(--washi-soft);
  font-size: 13px;
}

.content-toc a:hover {
  color: var(--gold);
}

.content-body {
  display: grid;
  gap: 14px;
}

.content-body > section {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 244, 223, 0.05);
}

.content-body h2 {
  font-size: clamp(25px, 3vw, 38px);
}

.content-body p {
  color: var(--washi-soft);
  font-size: 15px;
}

.content-note-section {
  border-color: rgba(217, 183, 95, 0.32) !important;
  background:
    linear-gradient(135deg, rgba(217, 183, 95, 0.1), rgba(78, 139, 133, 0.07)),
    rgba(251, 244, 223, 0.05) !important;
}

.content-faq {
  display: grid;
  gap: 10px;
}

.content-faq details {
  padding: 16px 18px;
}

.guide-layout {
  padding-top: 0;
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 430px);
  gap: 28px;
  align-items: start;
  max-width: 1180px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 244, 223, 0.06);
}

.check-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  color: #fff9e5;
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 42px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: #0f0d0b;
}

.site-footer img {
  width: 106px;
  height: 106px;
  object-fit: contain;
}

.footer-title {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: var(--washi-soft);
}

.fineprint {
  max-width: 760px;
  margin-top: 10px !important;
  color: var(--washi-dim) !important;
  font-size: 12px;
}

@media (max-width: 1040px) {
  .hero-inner,
  .trial-section,
  .tour-panel,
  .tour-panel.reverse,
  .zukan-section,
  .theory-summary-grid,
  .theory-page-hero,
  .theory-intro-grid,
  .formula-panel,
  .stem-map,
  .source-panel,
  .logic-section,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .tour-panel.reverse .tour-copy,
  .tour-panel.reverse .tour-media {
    order: initial;
  }

  .zukan-section .section-copy,
  .zukan-section .filter-row,
  .zukan-carousel {
    grid-row: auto;
    grid-column: auto;
  }

  .hero-product,
  .logic-visual {
    min-height: 470px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .phone-primary,
  .screen-card:not(.small) {
    left: 7%;
    right: auto;
  }

  .phone-secondary,
  .screen-card.small {
    right: 6%;
  }

  .feature-grid,
  .theory-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .guide-card-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-toc {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 28px;
  }

  .hero-inner {
    min-height: 0;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-product,
  .logic-visual {
    min-height: 324px;
  }

  .phone-primary,
  .screen-card:not(.small) {
    width: 46vw;
  }

  .phone-secondary,
  .screen-card.small {
    top: 58px;
    width: 39vw;
  }

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

  .quick-facts div {
    min-height: 100px;
    padding: 18px;
  }

  .section,
  .trial-section,
  .app-tour-section,
  .theory-summary-section,
  .theory-section,
  .theory-page-hero,
  .deep-theory-section,
  .content-hero,
  .guide-index-section,
  .related-section,
  .logic-section,
  .learn-section,
  .privacy-section,
  .faq-section,
  .screens-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .content-page-main {
    padding-top: 64px;
  }

  .content-hero {
    min-height: auto;
  }

  .content-hero h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .guide-card-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .guide-card,
  .related-card {
    min-height: auto;
  }

  .content-layout {
    padding-bottom: 64px;
  }

  .app-tour-section {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .app-tour-section .section-copy,
  .tour-swipe-hint {
    padding-left: clamp(18px, 4vw, 54px);
    padding-right: clamp(18px, 4vw, 54px);
  }

  .tour-swipe-hint {
    display: block;
    margin: -6px 0 14px;
    color: var(--washi-dim);
    font-size: 13px;
  }

  .app-tour-section > .section-copy p:not(.eyebrow) {
    display: none;
  }

  .tour-stack {
    grid-auto-flow: column;
    grid-auto-columns: minmax(286px, 82vw);
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    padding: 0 clamp(18px, 4vw, 54px) 16px;
    scroll-padding-inline: clamp(18px, 4vw, 54px);
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--gold) transparent;
  }

  .tour-panel,
  .tour-panel.reverse {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 14px;
    min-height: 0;
    padding: 16px;
    scroll-snap-align: start;
  }

  .tour-panel.reverse .tour-copy,
  .tour-panel.reverse .tour-media {
    order: initial;
  }

  .tour-copy h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 18px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .tour-copy p:not(.eyebrow) {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .feature-points {
    display: none;
  }

  .trial-row,
  .result-pillars {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .theory-principles {
    grid-template-columns: 1fr;
  }

  .feature-item {
    min-height: auto;
  }

  .zukan-carousel {
    padding: 12px;
  }

  .zukan-section {
    gap: 16px;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .carousel-toolbar {
    align-items: flex-start;
  }

  .carousel-button {
    width: 38px;
    height: 38px;
  }

  .god-grid {
    grid-auto-columns: minmax(238px, 82vw);
    padding-bottom: 14px;
  }

  .god-card {
    grid-template-rows: 132px auto;
    height: 316px;
  }

  .god-image img {
    max-height: 128px;
  }

  .phone-pair,
  .badge-media,
  .widget-media,
  .shrine-media {
    order: -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 10px;
    max-height: 210px;
    overflow: hidden;
    padding-bottom: 6px;
  }

  .shot-phone {
    width: min(102px, 32vw);
    border-radius: 18px;
    box-shadow: none;
    flex: 0 0 auto;
  }

  .shot-phone.offset {
    margin-top: 0;
  }

  .shot-phone.compact,
  .shot-phone.mini,
  .widget-phone,
  .shrine-photo-frame {
    width: min(102px, 32vw);
    flex: 0 0 auto;
  }

  .badge-board,
  .shrine-log-demo {
    width: min(170px, 54vw);
    padding: 12px;
    flex: 0 0 auto;
  }

  .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .badge-grid span {
    min-height: 44px;
    font-size: 10px;
  }

  .widget-phone {
    padding: 16px 10px;
    border-radius: 22px;
    box-shadow: none;
  }

  .widget-card-demo {
    padding: 10px;
    border-radius: 16px;
  }

  .widget-card-demo img {
    width: 74px;
    height: 78px;
  }

  .home-icons {
    display: none;
  }

  .shrine-photo-frame {
    border-radius: 18px;
    box-shadow: none;
  }

  .shrine-log-demo div {
    padding: 8px 0;
  }

  .shrine-log-demo b {
    font-size: 10px;
  }

  .theory-flow li {
    padding-left: 50px;
  }

  .formula-panel pre {
    max-width: 100%;
    font-size: 12px;
  }

  .stem-table {
    min-width: 390px;
  }

  .source-panel {
    gap: 18px;
  }

  .screen-strip {
    grid-auto-columns: minmax(220px, 76vw);
  }

  .site-footer {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .phone-primary {
    animation: float-a 7s ease-in-out infinite;
  }

  .phone-secondary {
    animation: float-b 8s ease-in-out infinite;
  }

  @keyframes float-a {
    0%,
    100% {
      transform: translateY(0) rotate(-2deg);
    }
    50% {
      transform: translateY(-10px) rotate(-1deg);
    }
  }

  @keyframes float-b {
    0%,
    100% {
      transform: translateY(0) rotate(3deg);
    }
    50% {
      transform: translateY(8px) rotate(2deg);
    }
  }
}
