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

@font-face {
  font-family: 'HachiPIKO';
  src: url('./fonts/HachiPIKOfont.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Nyagaji';
  src: url('./fonts/NYAGAJI.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Usorei';
  src: url('./fonts/usorei.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'HaruTegaki';
  src: url('./fonts/HaruTegakiFont12.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'DohetaNeo';
  src: url('./fonts/doheta_neo010.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg:            #F6F2EA;          /* ivory */
  --text:          #2A2520;
  --text-sub:      #ADA197;          /* light warm gray */
  --accent-digital:#3E7B7D;          /* muted teal */
  --accent-analog: #D4622A;          /* warm burnt orange */
  --header-border: rgba(42, 37, 32, 0.08);

  --font: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Helvetica Neue', sans-serif;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 100; /* Hiragino Sans W1 */
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
  font-size: 1.5rem;
  font-weight: 300; /* W3 — readable at small size */
  letter-spacing: 0.03em;
  color: var(--text);
  user-select: none;
}

.logo-en {
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.logo-jp {
  position: relative;
  top: 3px;
  font-size: 0.72em;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.06em;
  opacity: 0.58;
  font-family: 'Tsukushi A Round Gothic', '筑紫A丸ゴシック', 'Hiragino Maru Gothic ProN', 'ヒラギノ丸ゴ ProN', sans-serif;
}

html[lang="en"] .logo-jp {
  display: none;
}

/* Language toggle */
.lang-btn {
  background: none;
  border: 1px solid var(--header-border);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.lang-btn:hover {
  border-color: rgba(42, 37, 32, 0.25);
  color: var(--text);
}

.lang-sep {
  opacity: 0.35;
}

.lang-opt {
  transition: color 0.2s, font-weight 0.2s;
}

.lang-opt.active {
  color: var(--text);
  font-weight: 700;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px; /* header offset */
}

.hero-inner {
  text-align: center;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
}

/* ── Tagline ── */
.tagline {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.tagline .ja {
  font-family: 'Toppan Bunkyu Mincho', '凸版文久明朝', serif;
}

.tagline .en {
  font-family: 'Big Caslon', 'BigCaslon-Medium', serif;
}

.tagline em {
  font-style: normal;
}

.tagline .ja .accent-digital {
  position: relative;
  top: -3px;
  font-family: 'HachiPIKO', var(--font);
  font-size: calc(0.88em + 5px);
  letter-spacing: 0.06em;
}

.tagline .ja .accent-analog {
  display: inline-block;
  min-width: 4.6em;
  font-size: calc(1em + 1px);
  line-height: 1;
  vertical-align: baseline;
  white-space: nowrap;
}

.tagline .en .accent-analog {
  display: inline-block;
  min-width: 4.9em;
  line-height: 1;
  vertical-align: baseline;
  white-space: nowrap;
}

.tagline .accent-analog .analog-char {
  display: inline-block;
  text-align: center;
}

.tagline .ja .accent-analog .analog-char {
  width: 1.15em;
}

.tagline .en .accent-analog .analog-char {
  width: 0.83em;
}

.tagline .ja .accent-analog.analog-font-1,
.tagline .en .accent-analog.analog-font-1,
.tagline .accent-analog .analog-char.analog-font-1 {
  font-family: 'Nyagaji', var(--font);
}

.tagline .ja .accent-analog.analog-font-2,
.tagline .en .accent-analog.analog-font-2,
.tagline .accent-analog .analog-char.analog-font-2 {
  font-family: 'Usorei', var(--font);
}

.tagline .ja .accent-analog.analog-font-3,
.tagline .en .accent-analog.analog-font-3,
.tagline .accent-analog .analog-char.analog-font-3 {
  font-family: 'HaruTegaki', var(--font);
}

.tagline .ja .accent-analog.analog-font-4,
.tagline .en .accent-analog.analog-font-4,
.tagline .accent-analog .analog-char.analog-font-4 {
  font-family: 'DohetaNeo', var(--font);
}

.accent-digital { color: var(--accent-digital); }
.accent-analog  { color: var(--accent-analog);  }

/* ── Feature block ── */
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text);
}

.feature-sub {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--text-sub);
}

.footer {
  padding: 0 24px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--header-border);
  display: flex;
  justify-content: center;
  gap: 18px;
}

.footer-inner a {
  color: rgba(42, 37, 32, 0.76);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.footer-inner a:hover {
  color: var(--text);
}

.legal-page {
  min-height: 100vh;
  padding: 108px 24px 56px;
}

.legal-shell {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text);
  font-weight: 400;
}

.legal-title {
  font-family: 'Toppan Bunkyu Mincho', '凸版文久明朝', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.legal-updated {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 0.9rem;
}

.legal-block {
  margin-top: 34px;
}

.legal-block h2 {
  font-size: 1.04rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.legal-block p,
.legal-block li {
  font-size: 0.96rem;
  line-height: 1.92;
  color: var(--text);
  font-weight: 400;
}

.legal-block ul,
.legal-block ol {
  padding-left: 1.35rem;
}

.legal-block ul {
  list-style: disc;
}

.legal-block ol {
  list-style: decimal;
}

.legal-nav {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-nav a {
  color: rgba(42, 37, 32, 0.76);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
}

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

/* ── Responsive ── */
@media (max-width: 600px) {
  .header-inner {
    padding: 0 20px;
  }

  .hero-inner {
    padding: 60px 24px;
    gap: 40px;
  }

  .tagline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .footer-inner {
    gap: 14px;
  }
}
