@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;600;800&family=DM+Mono:wght@300;400;500&family=Cormorant+Garamond:ital,wght@0,300;0,600;1,300&display=swap');

:root {
  --ink: #0f0e0c;
  --paper: #f5f0e8;
  --gold: #b8973a;
  --deep: #1a2744;
  --rust: #8b3a2a;
  --muted: #6b6459;
  --line: rgba(15,14,12,0.12);
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Shippori Mincho', serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(184,151,58,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(26,39,68,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  z-index: 1;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px;
  position: relative;
  z-index: 2;
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.lang-toggle button {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle button.active {
  background: var(--deep);
  color: var(--paper);
}

/* ===== HEADER ===== */
.header {
  border-top: 2px solid var(--ink);
  padding: 40px 0 40px;
  margin-bottom: 64px;
  position: relative;
}

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--deep);
  margin-bottom: 8px;
}

.title-en span {
  font-style: italic;
  color: var(--gold);
}

.title-sub {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
  margin-top: 20px;
}

.catchphrase {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  position: relative;
}

.catchphrase::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 2px;
  background: var(--rust);
}

/* ===== SECTION ===== */
.section {
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }
.section:nth-child(7) { animation-delay: 0.7s; }
.section:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label[data-lang] { display: none; }
.section-label[data-lang].visible { display: flex; }

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--deep);
  margin-bottom: 20px;
}

.body-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  opacity: 0.85;
}

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

/* ===== CORE BOX ===== */
.oneliner {
  background: var(--deep);
  color: var(--paper);
  padding: 40px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.oneliner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
}

.oneliner-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(19px, 2.5vw, 25px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.oneliner-ja {
  font-family: 'Shippori Mincho', serif;
  font-size: 14px;
  color: rgba(245,240,232,0.7);
  margin-top: 14px;
  font-style: normal;
  line-height: 1.8;
}

/* ===== ENDORSEMENT ===== */
.endorsement {
  margin: 20px 0;
  text-align: center;
}

.endorsement img {
  max-width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.endorsement-caption {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

/* ===== DISCOVERY LIST ===== */
.discovery-list {
  list-style: none;
  margin: 24px 0;
}

.discovery-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}

.discovery-list li:last-child { border-bottom: none; }

.discovery-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.discovery-content strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 8px;
  line-height: 1.4;
}

.discovery-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ===== CTA LIST ===== */
.cta-section {
  background: var(--deep);
  color: var(--paper);
  padding: 44px;
  margin-top: 8px;
}

.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 28px;
  opacity: 0.95;
}

.cta-list { list-style: none; }

.cta-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(245,240,232,0.12);
  font-size: 14px;
  display: flex;
  gap: 14px;
  line-height: 1.7;
  opacity: 0.9;
}

.cta-list li:last-child { border-bottom: none; }

.cta-arrow {
  color: var(--gold);
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
  padding-top: 1px;
}

/* ===== CLOSING QUOTE ===== */
.closing-quote {
  text-align: center;
  padding: 48px 0;
  margin-top: 20px;
}

.closing-quote .quote-ja {
  font-size: 18px;
  font-weight: 600;
  color: var(--deep);
  line-height: 1.8;
  margin-bottom: 16px;
}

.closing-quote .quote-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact-section {
  background: var(--rust);
  color: var(--paper);
  padding: 36px 44px;
  text-align: center;
}

.contact-section a {
  color: var(--paper);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(245,240,232,0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.contact-section a:hover {
  border-color: var(--paper);
}

/* ===== LINKS ===== */
.links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.links a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--deep);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--line);
  transition: all 0.2s;
}

.links a:hover {
  background: var(--deep);
  color: var(--paper);
  border-color: var(--deep);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-left {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  line-height: 1.9;
}

.footer-left a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

.footer-left a:hover {
  color: var(--deep);
}

.footer-right {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  font-style: italic;
  color: var(--deep);
  opacity: 0.15;
}

/* ===== GATE (PASSPHRASE) ===== */
.gate {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.gate-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 300;
  color: var(--deep);
  margin-bottom: 8px;
}

.gate-title span {
  font-style: italic;
  color: var(--gold);
}

.gate-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-top: 32px;
  line-height: 1.8;
}

.gate-form {
  margin-top: 40px;
  display: flex;
  gap: 0;
  max-width: 400px;
  width: 100%;
}

.gate-form input {
  flex: 1;
  font-family: 'Shippori Mincho', serif;
  font-size: 16px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-right: none;
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.gate-form input:focus {
  border-color: var(--gold);
}

.gate-form input::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.gate-form button {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  padding: 14px 24px;
  background: var(--deep);
  color: var(--paper);
  border: 1px solid var(--deep);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.gate-form button:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.gate-error {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--rust);
  margin-top: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gate-error.visible {
  opacity: 1;
}

/* ===== BILINGUAL ===== */
[data-lang] { display: none; }
[data-lang].visible { display: block; }
.links [data-lang] { display: none; }
.links [data-lang].visible { display: inline-block; }
span[data-lang] { display: none; }
span[data-lang].visible { display: inline; }
li[data-lang] { display: none; }
li[data-lang].visible { display: flex; }
div[data-lang].visible { display: block; }
div.section-label[data-lang].visible { display: flex; }
div.screen-label[data-lang].visible { display: flex; }
div.links-grid[data-lang].visible { display: grid; }
div.media-cards[data-lang].visible { display: grid; }
div.experience-cards[data-lang].visible { display: grid; }
a[data-lang] { display: none; }
a[data-lang].visible { display: inline-block; }
p[data-lang] { display: none; }
p[data-lang].visible { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .container { padding: 40px 20px; }
  .oneliner { padding: 28px; }
  .cta-section { padding: 28px; }
  .contact-section { padding: 28px; }
  .links { flex-direction: column; }
  .links a { text-align: center; }
  .gate-form { flex-direction: column; }
  .gate-form input { border-right: 1px solid var(--line); border-bottom: none; }
  .footer { flex-direction: column; gap: 20px; align-items: flex-start; }
}
