:root {
  --bg:      #F7F4EF;
  --bg2:     #EDEAE3;
  --bg3:     #1C1917;
  --text:    #1C1917;
  --sub:     #6B6560;
  --muted:   #AAA49E;
  --accent:  #8B2635;
  --gold:    #BFA06A;
  --line:    rgba(28,25,23,0.1);
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--accent); color: #fff; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Serif JP', serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }

.js-fade {
  opacity: 1; transform: none;
}
.js-fade.is-visible { opacity: 1; transform: none; }
.js-fade-d1 { transition-delay: 0.1s; }
.js-fade-d2 { transition-delay: 0.2s; }
.js-fade-d3 { transition-delay: 0.3s; }

header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem); height: 64px;
  background: rgba(247,244,239,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.header-nav { display: flex; align-items: center; gap: 2.5rem; }
.header-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.12em;
  color: var(--sub); text-transform: uppercase;
  transition: color 0.25s;
}
.header-nav a:hover { color: var(--accent); }

.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed; top: 64px; left: 0; width: 100%; z-index: 190;
  background: rgba(247,244,239,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  transform: translateY(-10px); opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  pointer-events: none;
}
.mobile-nav.is-open {
  transform: translateY(0); opacity: 1;
  pointer-events: auto;
}
.mobile-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sub); padding: 1.2rem clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, background 0.25s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--accent); background: rgba(139,38,53,0.04); }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger  { display: flex; }
  .mobile-nav { display: flex; }
}

.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 64px clamp(1.5rem, 5vw, 4rem) 10vh;
  position: relative; overflow: hidden;
  background: var(--bg3);
}

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

.hero-bg-word {
  position: absolute;
  bottom: -0.15em; left: -0.05em;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(12rem, 28vw, 36rem);
  font-weight: 300; line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.04);
  user-select: none; pointer-events: none;
  white-space: nowrap; z-index: 0;
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1100px; width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: flex-end;
  gap: 5vw;
}

.hero-left {}

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem; font-weight: 400; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem;
}
.hero-tag span {
  display: inline-block; width: 24px; height: 1px; background: var(--gold);
}

.hero-title {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 300; line-height: 1.2; letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
  margin-bottom: 0.5rem;
}
.hero-title .line {
  display: block; overflow: hidden;
}
.hero-title .line span {
  display: inline-block;
  transform: none;
}
.hero-title .line:nth-child(1) span { }
.hero-title .line:nth-child(2) span { }

.hero-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.15em;
  margin-bottom: 3.5rem;
}

.hero-btns {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
}

.hero-right {
  padding-bottom: 0.5rem;
}
.hero-right-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem; font-weight: 400; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.hero-right-label::after {
  content: ''; flex: 1; height: 1px; background: rgba(191,160,106,0.3);
}
.hero-right-desc {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.88rem; font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 2.5; letter-spacing: 0.06em;
}

.btn-fill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bg3); background: #fff;
  padding: 0.95rem 2rem; min-width: 160px;
  position: relative; overflow: hidden;
  transition: color 0.45s var(--ease);
}
.btn-fill::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease); z-index: 0;
}
.btn-fill:hover::before { transform: scaleX(1); }
.btn-fill:hover { color: #fff; }
.btn-fill span { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; border: 1px solid rgba(255,255,255,0.3);
  padding: 0.95rem 2rem; min-width: 160px;
  position: relative; overflow: hidden;
  transition: color 0.45s var(--ease), border-color 0.45s;
}
.btn-outline::before {
  content: ''; position: absolute; inset: 0;
  background: #fff;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease); z-index: 0;
}
.btn-outline:hover::before { transform: scaleX(1); }
.btn-outline:hover { color: var(--bg3); border-color: #fff; }
.btn-outline span { position: relative; z-index: 1; }

.sec-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 3rem;
}
.sec-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem; font-weight: 400; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 300;
  letter-spacing: 0.05em; line-height: 1.3;
  white-space: nowrap;
}

.sp-only { display: none; }
@media (max-width: 640px) {
  .sec-title { white-space: normal; }
  .sp-only   { display: block; }
}
.sec-count {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem; font-weight: 300;
  color: var(--muted); letter-spacing: 0.15em;
  align-self: flex-end; padding-bottom: 0.3rem;
}

.sec-bg-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 12vw, 14rem);
  font-weight: 300; line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(28,25,23,0.05);
  user-select: none; pointer-events: none;
  white-space: nowrap;
  position: absolute; left: 0;
  overflow: hidden;
  max-width: 100%;
}

.features {
  padding: 10vh 0;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.features .sec-bg-text { top: 0; }
.features .container { position: relative; z-index: 1; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.feat-item {
  padding: 3.5rem 3rem;
  border-right: 1px solid var(--line);
  position: relative;
}
.feat-item:last-child { border-right: none; }

.feat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 300;
  color: rgba(28,25,23,0.18);
  line-height: 1; margin-bottom: 2rem;
  letter-spacing: -0.03em;
}
.feat-icon {
  width: 40px; height: 40px; margin-bottom: 1.8rem;
  display: flex; align-items: center; justify-content: center;
}
.feat-icon svg { width: 36px; height: 36px; stroke: var(--accent); fill: none; stroke-width: 1.2; }
.feat-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem; font-weight: 400; line-height: 1.6;
  margin-bottom: 1.2rem; color: var(--text);
}
.feat-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.82rem; font-weight: 300;
  color: var(--sub); line-height: 2.4; letter-spacing: 0.05em;
}
.feat-accent-bar {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: var(--accent);
}
.feat-item.is-visible .feat-accent-bar { width: 100%; }

.stats {
  background: var(--bg3);
  padding: 8vh 0;
  overflow: hidden; position: relative;
}
.stats .sec-bg-text { color: rgba(255,255,255,0.03); bottom: -0.1em; top: auto; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,0.08);
}
.stat-item {
  padding: 3.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.8rem, 4.5vw, 5rem); font-weight: 300;
  color: #fff; line-height: 1; margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  display: flex; align-items: flex-end; justify-content: center; gap: 0.15em;
}
.stat-unit {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem; font-weight: 300;
  color: var(--gold); letter-spacing: 0.1em;
  line-height: 1; padding-bottom: 0.1em;
}
.stat-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.75rem; font-weight: 300;
  color: rgba(255,255,255,0.4); letter-spacing: 0.12em;
}

.howitworks {
  padding: 10vh 0;
  background: var(--bg2);
  position: relative; overflow: hidden;
}
.howitworks .sec-bg-text { top: 0; }
.howitworks .container { position: relative; z-index: 1; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.step-item {
  background: var(--bg);
  padding: 2.8rem 2.2rem;
  position: relative;
}
.step-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.3em; color: var(--accent);
  margin-bottom: 1.5rem;
}
.step-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem; font-weight: 400; line-height: 1.6;
  margin-bottom: 1rem; color: var(--text);
}
.step-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.78rem; font-weight: 300;
  color: var(--sub); line-height: 2.3;
}

.domain {
  padding: 10vh 0;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.domain .sec-bg-text { top: 0; }
.domain .container { position: relative; z-index: 1; }

.domain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw; align-items: center;
}
.domain-left .domain-url-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  font-weight: 300; line-height: 1.8;
  color: var(--sub); letter-spacing: 0.05em;
  margin-bottom: 3rem;
}
.domain-left .domain-url-display strong {
  color: var(--text); font-weight: 400;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.domain-left .domain-url-display strong::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.domain-note {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem; font-weight: 300;
  color: var(--sub); line-height: 2.5; letter-spacing: 0.08em;
}

.domain-right {}
.domain-card {
  background: var(--bg3);
  padding: 3rem;
}
.domain-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem; font-weight: 400; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem;
}
.domain-card-urls {
  display: flex; flex-direction: column; gap: 0;
}
.domain-card-url-item {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.domain-card-url-item:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.domain-card-url-item:hover { color: rgba(255,255,255,0.85); }
.domain-card-url-item strong { color: #fff; font-weight: 400; }
.domain-card-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

.cta-section {
  background: var(--bg3);
  padding: 12vh 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section .sec-bg-text {
  color: rgba(255,255,255,0.03);
  bottom: -0.1em; top: auto; left: 50%;
  transform: translateX(-50%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem; font-weight: 400; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem; display: block;
}
.cta-title {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300;
  color: #fff; line-height: 1.4; letter-spacing: 0.03em;
  white-space: nowrap;
  margin-bottom: 3.5rem;
}
.cta-title em { font-style: italic; color: var(--gold); }
.cta-btns {
  display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap;
}

footer {
  background: #111;
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 400;
  letter-spacing: 0.2em; color: rgba(255,255,255,0.5);
}
.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem; font-weight: 300;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.3);
}
@media (max-width: 640px) {
  footer { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

@media (max-width: 960px) {
  .hero-inner       { grid-template-columns: 1fr; }
  .hero-right       { display: none; }
  .features-grid    { grid-template-columns: 1fr; }
  .feat-item        { border-right: none; border-bottom: 1px solid var(--line); }
  .feat-item:last-child { border-bottom: none; }
  .feat-item-top    { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1rem; }
  .feat-icon        { margin-bottom: 0; flex-shrink: 0; }
  .feat-title       { margin-bottom: 0; white-space: nowrap; }
  .domain-grid      { grid-template-columns: 1fr; }
  .sec-head         { flex-direction: column; gap: 1rem; }
}
@media (max-width: 480px) {
  .feat-title       { white-space: normal; }
  .stats-grid       { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(3) { border-right: none; }
  .steps            { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .step-item::after { display: none; }
}
@media (max-width: 640px) {
  .hero             { padding: 64px clamp(1.5rem, 5vw, 4rem) 8vh; }
  .steps            { grid-template-columns: 1fr; }
  .stats-grid       { grid-template-columns: 1fr; }
  .stat-item        { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:last-child { border-bottom: none; }
  .stat-item:nth-child(3) { border-right: none; }

  .hero-texts {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 1.6rem;
    margin-bottom: 2.5rem;
    position: relative;
  }

  .hero-tag {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.3em;
    font-size: 0.65rem;
    margin-bottom: 0;
    white-space: nowrap;
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--gold);
    padding-top: 0.5rem;
  }

  .hero-tag span {
    display: block;
    width: 1px;
    height: 36px;
    background: var(--gold);
  }

  .hero-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.06em;
    margin-bottom: 0;
    font-size: clamp(2.8rem, 10vw, 3.6rem);
    order: 2;
  }
  .hero-title .line {
    display: block;
    overflow: visible;
    padding: 0; margin: 0;
  }
  .hero-title .line span {
    display: block;
    transform: none;
    animation: none;
    opacity: 1;
  }

  .hero-title-en {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.25);
    font-style: italic;
    white-space: nowrap;
    order: 1;
    margin-bottom: 0;
    animation: none;
    opacity: 1;
    transform: none;
    padding-top: 0.5rem;
  }

  .hero-btns {
    flex-direction: row;
    flex-wrap: wrap;
    animation: none;
    opacity: 1;
    transform: none;
    justify-content: flex-end;
  }
}
