@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+JP:wght@300;400;500;700;900&family=Noto+Serif+JP:wght@500;700;900&display=swap');

:root {
  --paper: #f4f2ed;
  --paper-deep: #ebe7de;
  --ink: #585d61;
  --ink-strong: #40464a;
  --muted: rgba(88, 93, 97, 0.62);
  --quiet: rgba(88, 93, 97, 0.38);
  --line: rgba(88, 93, 97, 0.14);
  --orange: #eb8b52;
  --orange-deep: #d6763f;
  --orange-soft: rgba(235, 139, 82, 0.18);
  --white: rgba(255, 255, 255, 0.46);
  --shadow: rgba(55, 53, 49, 0.10);
  --move: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Noto Sans JP', 'Inter', system-ui, sans-serif;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -20;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(255,255,255,0.82), rgba(238,235,227,0.90)),
    radial-gradient(circle at 84% 12%, rgba(235,139,82,0.10), transparent 32%),
    var(--paper);
}

.paper-disc {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.disc-a {
  width: 74vw;
  height: 74vw;
  left: -34vw;
  top: -10vw;
  background:
    radial-gradient(circle, rgba(255,255,255,0.24), transparent 54%),
    radial-gradient(circle, rgba(88,93,97,0.10), transparent 68%);
  transform: translateY(calc(var(--move) * -0.025));
}

.disc-b {
  width: 34vw;
  height: 34vw;
  right: -15vw;
  bottom: 6vh;
  background: radial-gradient(circle, rgba(235,139,82,0.11), transparent 66%);
  transform: translateY(calc(var(--move) * -0.055));
}

.grain {
  position: absolute;
  inset: -18%;
  opacity: 0.26;
  background-image:
    radial-gradient(circle, rgba(88,93,97,0.20) 0 0.75px, transparent 1px),
    radial-gradient(circle, rgba(235,139,82,0.17) 0 0.65px, transparent 1px);
  background-size: 5px 5px, 8px 8px;
  background-position: 0 0, 4px 2px;
  mask-image:
    radial-gradient(circle at 7% 35%, black 0%, black 33%, transparent 58%),
    linear-gradient(to bottom, black, rgba(0,0,0,0.54));
  transform: translateY(calc(var(--move) * -0.020));
}

.halftone {
  position: absolute;
  width: 280px;
  height: 280px;
  right: 8vw;
  top: 32vh;
  opacity: 0.30;
  background-image: radial-gradient(circle, var(--ink) 0 1.45px, transparent 1.7px);
  background-size: 9px 9px;
  mask-image: radial-gradient(circle, black 0 52%, transparent 70%);
  transform: rotate(15deg) translateY(calc(var(--move) * -0.04));
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 44px;
  background: linear-gradient(to bottom, rgba(244,242,237,0.88), rgba(244,242,237,0.12));
  backdrop-filter: blur(14px);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.identity-mark {
  width: 45px;
  height: 30px;
  position: relative;
  display: inline-block;
}

.identity-mark::before,
.identity-mark::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  border-radius: 10px 10px 12px 12px;
  transform: skewX(-10deg);
}

.identity-mark::before {
  left: 0;
  background: var(--ink);
}

.identity-mark::after {
  left: 18px;
  background: linear-gradient(180deg, #74797d, var(--ink));
  box-shadow: inset 10px 0 0 rgba(255,255,255,0.08);
}

.identity-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink-strong);
}

.side-index {
  position: fixed;
  right: 38px;
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  display: grid;
  gap: 13px;
  justify-items: end;
  color: var(--quiet);
  font-size: 0.70rem;
  letter-spacing: 0.13em;
}

.index-line {
  width: 132px;
  height: 2px;
  background: rgba(88,93,97,0.14);
}

.index-line span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(235,139,82,0.22);
  transition: width 0.08s linear;
}

/* Layout */
.section {
  position: relative;
  min-height: 112vh;
  padding: 16vh 10vw;
  display: flex;
  align-items: center;
}

.section + .section {
  border-top: 1px solid rgba(88,93,97,0.055);
}

.section-head {
  position: absolute;
  top: 12vh;
  left: 10vw;
  display: flex;
  gap: 15px;
  align-items: baseline;
  color: var(--quiet);
}

.section-number,
.section-title,
.kicker,
.term-reading,
.enter-link,
.gate-form label,
.gate-message,
.site-footer,
.practice-en {
  font-family: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
}

.section-number {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.section-title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 22px;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.jp-term,
.practice-jp,
blockquote,
.ghost-kanji,
.hero-phrase,
.map-node strong,
.map-center span {
  font-family: 'Noto Serif JP', serif;
  margin: 0;
  color: var(--ink);
}

h1 {
  display: grid;
  gap: 0.05em;
  font-size: clamp(4.1rem, 10.5vw, 10.6rem);
  line-height: 0.90;
  letter-spacing: -0.09em;
  font-weight: 900;
}

h1 span:nth-child(2) {
  padding-left: 0.38em;
}

h1 span:nth-child(3) {
  padding-left: 0.16em;
  color: transparent;
  -webkit-text-stroke: 1.45px var(--ink);
  text-stroke: 1.45px var(--ink);
}

h2 {
  font-size: clamp(2.35rem, 4.9vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
  font-weight: 700;
}

h3 {
  font-size: clamp(1.18rem, 1.95vw, 1.82rem);
  line-height: 1.28;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--ink-strong);
}

p {
  color: var(--muted);
  line-height: 1.92;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(340px, 1fr);
  gap: 7vw;
  align-items: center;
}

.hero-symbol {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.ghost-kanji {
  font-size: clamp(12rem, 25vw, 26rem);
  line-height: 1;
  font-weight: 900;
  color: var(--ink);
  text-shadow:
    18px -18px 0 rgba(235, 139, 82, 0.60),
    30px -8px 0 rgba(235, 139, 82, 0.16);
  transform: rotate(-1.4deg);
}

.hero-phrase {
  position: absolute;
  top: 29%;
  left: 47%;
  white-space: nowrap;
  font-size: clamp(3rem, 7vw, 7.8rem);
  line-height: 1;
  letter-spacing: -0.16em;
  font-weight: 700;
  transform: rotate(4deg);
}

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

.lead {
  max-width: 660px;
  margin: 34px 0 0;
  color: rgba(88,93,97,0.72);
  font-size: clamp(1.04rem, 1.46vw, 1.28rem);
  line-height: 1.95;
}

.enter-link {
  position: absolute;
  left: 10vw;
  bottom: 8vh;
  color: var(--ink-strong);
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(88,93,97,0.24);
}

/* Words */
.words {
  display: block;
  padding-top: 22vh;
}

.words-intro {
  width: min(980px, 100%);
  margin: 0 0 12vh auto;
}

.words-intro p {
  max-width: 620px;
  margin-top: 28px;
}

.word-list {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.word-list article {
  display: grid;
  grid-template-columns: minmax(230px, 0.45fr) minmax(320px, 1fr);
  gap: 7vw;
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.jp-term {
  font-size: clamp(4.8rem, 9vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.14em;
  font-weight: 900;
}

.jp-term.accent {
  color: var(--orange);
}

.jp-term.outline {
  color: transparent;
  -webkit-text-stroke: 1.35px var(--ink);
  text-stroke: 1.35px var(--ink);
}

.term-reading {
  margin: 0 0 28px;
  color: var(--quiet);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Circle */
.circle-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(380px, 1.05fr);
  gap: 8vw;
  align-items: center;
}

.circle-copy p:not(.kicker) {
  max-width: 650px;
  margin-top: 28px;
  font-size: 1.02rem;
}

.circle-map {
  position: relative;
  width: min(66vw, 520px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.map-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(88,93,97,0.17);
}

.ring-outer {
  inset: 3%;
  animation: rotateSlow 44s linear infinite;
}

.ring-mid {
  inset: 15%;
  transform: scaleX(0.72) rotate(20deg);
  animation: rotateReverse 36s linear infinite;
}

.ring-inner {
  inset: 30%;
  transform: scaleY(0.72) rotate(-18deg);
  border-color: rgba(235,139,82,0.42);
  animation: rotateSlow 28s linear infinite;
}

@keyframes rotateSlow {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes rotateReverse {
  from { rotate: 360deg; }
  to { rotate: 0deg; }
}

.map-node {
  position: absolute;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: rgba(244,242,237,0.76);
  border: 1px solid rgba(88,93,97,0.14);
  box-shadow: 0 18px 54px rgba(55,53,49,0.08);
}

.map-node strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.12em;
}

.map-node span {
  margin-top: 8px;
  color: rgba(88,93,97,0.48);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.node-feeling {
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
}

.node-accounting {
  right: 7%;
  bottom: 16%;
}

.node-organization {
  left: 7%;
  bottom: 16%;
}

.map-center {
  position: absolute;
  inset: 34%;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border-radius: 50%;
  background: rgba(235,139,82,0.12);
}

.map-center span {
  color: var(--orange-deep);
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.16em;
}

.map-center small {
  max-width: 126px;
  color: rgba(88,93,97,0.58);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  line-height: 1.35;
}

/* Practice */
.practice {
  display: block;
  padding-top: 21vh;
}

.practice-intro {
  width: min(1050px, 100%);
  margin: 0 auto 10vh;
}

.practice-intro p {
  max-width: 700px;
  margin-top: 30px;
}

.practice-pair {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.practice-card {
  min-height: 620px;
  padding: 44px;
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(88,93,97,0.13);
  box-shadow: 0 28px 84px var(--shadow);
}

.practice-jp {
  color: var(--ink);
  font-size: clamp(3rem, 5.4vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.11em;
  font-weight: 900;
}

.practice-card:nth-child(2) .practice-jp {
  color: var(--orange);
}

.practice-en {
  margin: 18px 0 68px;
  color: var(--quiet);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.practice-card ul {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}

.practice-card li {
  position: relative;
  padding-left: 25px;
  color: rgba(88,93,97,0.67);
  line-height: 1.82;
}

.practice-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 8px;
  background: var(--orange);
  transform: rotate(45deg);
}

/* Gate */
.gate {
  min-height: 102vh;
  justify-content: center;
}

.gate-panel {
  width: min(900px, 100%);
  padding: 52px;
  border: 1px solid rgba(88,93,97,0.15);
  background: rgba(255,255,255,0.34);
  box-shadow: 0 32px 100px var(--shadow);
}

.gate-panel h2 {
  font-size: clamp(2.3rem, 4.8vw, 5.1rem);
}

.gate-panel > p {
  max-width: 700px;
  margin-top: 26px;
}

.gate-form {
  margin-top: 42px;
}

.gate-form label {
  display: block;
  margin-bottom: 11px;
  color: rgba(88,93,97,0.74);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.input-row {
  display: flex;
  gap: 12px;
}

.input-row input {
  flex: 1;
  min-width: 0;
  height: 60px;
  padding: 0 18px;
  border: 1px solid rgba(88,93,97,0.22);
  background: rgba(244,242,237,0.76);
  outline: none;
  color: var(--ink-strong);
  font: inherit;
}

.input-row input:focus {
  border-color: rgba(235,139,82,0.74);
  box-shadow: 0 0 0 4px rgba(235,139,82,0.12);
}

.input-row button {
  height: 60px;
  padding: 0 30px;
  border: none;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.input-row button:hover {
  background: var(--orange-deep);
}

.gate-message {
  min-height: 24px;
  margin-top: 18px;
  color: rgba(88,93,97,0.55);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.gate-message.active {
  color: var(--orange-deep);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  padding: 30px 44px 36px;
  border-top: 1px solid rgba(88,93,97,0.10);
  color: rgba(88,93,97,0.54);
  font-size: 0.70rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer span:last-child {
  justify-self: end;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.82s ease, transform 0.82s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  .practice-pair {
    grid-template-columns: 1fr;
  }

  .practice-card {
    min-height: auto;
  }
}

@media (max-width: 920px) {
  .site-nav,
  .side-index {
    display: none;
  }

  .section {
    padding: 14vh 7vw;
  }

  .section-head {
    left: 7vw;
  }

  .hero,
  .circle-layout {
    grid-template-columns: 1fr;
  }

  .hero-symbol {
    min-height: 390px;
  }

  .words-intro {
    margin-left: 0;
  }

  .word-list article {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .circle-layout {
    gap: 70px;
  }

  .circle-map {
    width: min(88vw, 480px);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 18px 20px;
  }

  .identity-name {
    font-size: 1.7rem;
  }

  .section {
    min-height: auto;
    padding: 120px 22px;
  }

  .section-head {
    top: 86px;
    left: 22px;
  }

  .hero-symbol {
    min-height: 300px;
  }

  .ghost-kanji {
    font-size: clamp(9rem, 43vw, 15rem);
  }

  .hero-phrase {
    top: 35%;
    left: 34%;
    font-size: clamp(2.6rem, 15vw, 5.4rem);
  }

  h1 {
    font-size: clamp(4rem, 18vw, 6.2rem);
  }

  .halftone-a {
    display: none;
  }

  .map-node {
    width: 88px;
    height: 88px;
  }

  .map-node strong {
    font-size: 1.55rem;
  }

  .practice-card,
  .gate-panel {
    padding: 30px;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 24px 22px 30px;
  }

  .site-footer span:last-child {
    justify-self: start;
  }
}
