:root {
  --bg:     #06080F;
  --bg2:    #0B0F1C;
  --bg3:    #111624;
  --teal:   #00D4C8;
  --teal2:  #00A89E;
  --rose:   #FF6B8A;
  --gold:   #FFD4A8;
  --text:   #EEF2FF;
  --sub:    rgba(238,242,255,0.55);
  --muted:  rgba(238,242,255,0.28);
  --line:   rgba(0,212,200,0.12);
  --surface:rgba(0,212,200,0.04);
  --ease:   cubic-bezier(0.16,1,0.3,1);
  --font-display: 'Kaisei Decol', 'Noto Serif JP', serif;
  --font-latin:   'Outfit', sans-serif;
  --font-body:    'Noto Serif JP', serif;
  --font-ui:      'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--teal); color: #06080F; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-break: break-word;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.star {
  position: absolute; border-radius: 50%; background: #fff;
  animation: twinkle var(--dur,3s) ease-in-out infinite var(--delay,0s); opacity: 0;
}
@keyframes twinkle { 0%,100%{opacity:0} 50%{opacity:var(--op,0.5)} }

.container {
  max-width: 1100px; width: 100%; margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 4rem);
}
.sp-only { display: none; }
@media (max-width: 640px) { .sp-only { display: inline; } }

.grad-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--rose) 55%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem,5vw,4rem); height: 60px;
  background: rgba(6,8,15,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}
.logo {
  font-family: var(--font-latin); font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.04em; display: flex; align-items: center; gap: 0.55rem;
  flex-shrink: 0; white-space: nowrap;
}
.logo-mark {
  width: 16px; height: 16px; flex-shrink: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark::before {
  content: ''; position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 6px var(--teal);
}
.logo-mark::after {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(0,212,200,0.35);
  animation: pulse-ring 2.5s ease-out infinite;
}
@keyframes pulse-ring { 0%{transform:scale(0.8);opacity:0.6} 100%{transform:scale(1.6);opacity:0} }

.header-nav { display: flex; align-items: center; gap: 2.5rem; }
.header-nav a {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sub); transition: color 0.2s; white-space: nowrap;
}
.header-nav a:hover { color: var(--teal); }
.header-cta {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg); background: var(--teal);
  padding: 0.5rem 1.3rem; white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.header-cta:hover { background: var(--rose); color: #fff; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none; outline: none;
  flex-shrink: 0;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#mobileNav {
  display: none; position: fixed; top: 60px; left: 0; width: 100%; z-index: 299;
  background: rgba(6,8,15,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  flex-direction: column; padding: 1.5rem clamp(1rem,5vw,4rem) 2rem;
}
#mobileNav.open { display: flex; }
#mobileNav a {
  font-family: var(--font-ui); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sub); padding: 0.85rem 0; border-bottom: 1px solid var(--line); transition: color 0.2s;
}
#mobileNav a:hover { color: var(--teal); }

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

.hero {
  min-height: 100svh; display: flex; align-items: flex-end;
  padding: 80px 0 8vh; position: relative; overflow: hidden;
}
.hero-grid-lines { position: absolute; inset: 0; pointer-events: none; }
.hero-grid-lines::before, .hero-grid-lines::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--teal) 40%, var(--rose) 70%, transparent);
  opacity: 0.07;
}
.hero-grid-lines::before { left: 33.33%; }
.hero-grid-lines::after  { left: 66.66%; }
.hero-holo-line {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--rose), var(--gold), transparent);
  opacity: 0.12;
}
.hero-holo-line:first-of-type { top: 32%; }
.hero-holo-line:last-of-type  { bottom: 22%; }
.hero-shell {
  width: 100%; max-width: 1100px; margin: 0 auto;
  padding: 0 clamp(1rem,5vw,4rem); position: relative; z-index: 2;
}
.hero-inner { display: grid; grid-template-columns: 1fr; align-items: center; gap: 4rem; }

.hero-eyebrow {
  font-family: var(--font-ui); font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--teal); flex-shrink: 0; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 7.5vw, 5.2rem);
  font-weight: 700; line-height: 1.18; letter-spacing: 0.02em;
  margin-bottom: 0.9rem; white-space: normal;
}
.hero-title-en {
  font-family: var(--font-latin);
  font-size: clamp(0.68rem, 2vw, 0.85rem);
  font-weight: 300; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 2.5rem;
}
.hero-desc {
  font-family: var(--font-body); font-size: clamp(0.8rem, 2.5vw, 0.88rem); font-weight: 300;
  color: var(--sub); line-height: 2.1; letter-spacing: 0.04em; margin-bottom: 3rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-btns .btn-fill,
.hero-btns .btn-ghost {
  flex: 1 1 auto;
  min-width: 140px;
}

.btn-fill {
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg); background: var(--teal);
  padding: 0.9rem 2rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.btn-fill:hover { background: var(--rose); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); border: 1px solid rgba(0,212,200,0.3);
  padding: 0.9rem 2rem; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, color 0.25s;
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }

.section { padding: 10vh 0; }
.section-tag {
  font-family: var(--font-ui); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.section-tag::before { content: ''; width: 20px; height: 1px; background: var(--teal); flex-shrink: 0; }

.section-title {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 3rem);
  font-weight: 700; line-height: 1.25; letter-spacing: 0.01em; margin-bottom: 1rem;
  white-space: normal;
}
.section-title-wrap { display: table; max-width: 100%; }
.section-divider {
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--rose));
  margin-top: 0.6rem; margin-bottom: 2.5rem; display: block;
}

.about { padding: 10vh 0; background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.about-text {
  font-family: var(--font-body); font-size: clamp(0.82rem, 2vw, 0.9rem); font-weight: 300;
  color: var(--sub); line-height: 2.1; letter-spacing: 0.04em;
}

.features { padding: 10vh 0; }
.features-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: end; margin-bottom: 3.5rem; }
.features-desc {
  font-family: var(--font-body); font-size: clamp(0.8rem, 2vw, 0.86rem); font-weight: 300;
  color: var(--sub); line-height: 2.1; align-self: end;
}
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); }
.feat-item {
  background: var(--bg); padding: 2.5rem 1.8rem;
  position: relative; overflow: hidden; transition: background 0.3s; min-width: 0;
}
.feat-item:hover { background: var(--bg2); }
.feat-item::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--rose), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.feat-item:hover::after { transform: scaleX(1); }
.feat-num {
  font-family: var(--font-latin); font-size: 0.6rem; letter-spacing: 0.2em;
  color: var(--teal); margin-bottom: 1.2rem; opacity: 0.5;
}
.feat-deco { width: 32px; height: 1px; background: linear-gradient(90deg, var(--teal), var(--rose)); margin-bottom: 1.2rem; }
.feat-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.8rem; }
.feat-text  { font-family: var(--font-body); font-size: 0.78rem; font-weight: 300; color: var(--sub); line-height: 2.2; }

.steps { padding: 10vh 0; background: var(--bg2); }
.steps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); }
.step-item {
  background: var(--bg2); padding: 2rem 1.8rem;
  display: flex; gap: 1.2rem; align-items: flex-start; transition: background 0.3s; min-width: 0;
}
.step-item:hover { background: var(--bg3); }
.step-num {
  font-family: var(--font-latin); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--teal);
  border: 1px solid rgba(0,212,200,0.25); width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.step-title { font-family: var(--font-display); font-size: 0.92rem; font-weight: 500; color: var(--text); margin-bottom: 0.4rem; }
.step-text  { font-family: var(--font-body); font-size: 0.76rem; font-weight: 300; color: var(--sub); line-height: 2.1; }

.domain { padding: 10vh 0; }
.domain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.domain .section-title {
  white-space: nowrap;
  font-size: clamp(1rem, 4vw, 3rem);
}
.domain-note {
  font-family: var(--font-body); font-size: clamp(0.8rem, 2vw, 0.86rem); font-weight: 300;
  color: var(--sub); line-height: 2.1; margin-bottom: 0;
}
.domain-panel {
  background: var(--bg2); border: 1px solid var(--line); padding: 1.5rem;
  position: relative; overflow: hidden;
}
.domain-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--rose), var(--gold)); opacity: 0.6;
}
.domain-panel-label {
  font-family: var(--font-ui); font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.5rem;
}
.domain-urls { display: flex; flex-direction: column; gap: 0.8rem; }
.domain-url-item {
  display: flex; align-items: center; padding: 0.75rem 0.75rem;
  background: var(--surface); border-left: 2px solid var(--teal); transition: background 0.2s;
  min-width: 0; overflow: hidden;
}
.domain-url-item:nth-child(2) { border-left-color: var(--rose); }
.domain-url-item:nth-child(3) { border-left-color: rgba(0,212,200,0.2); }
.domain-url-item:hover { background: rgba(0,212,200,0.06); }
.domain-url-text {
  font-family: var(--font-latin); font-size: clamp(0.78rem, 2.5vw, 0.92rem); font-weight: 500;
  color: var(--text); letter-spacing: 0.02em;
  white-space: normal; overflow-wrap: break-word; word-break: break-all; min-width: 0;
}
.domain-url-text strong { color: var(--teal); }
.domain-url-item:nth-child(2) .domain-url-text strong { color: var(--rose); }

.cta {
  padding: 14vh 0; background: var(--bg2);
  position: relative; overflow: hidden; text-align: center;
}
.cta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--rose), transparent); opacity: 0.4;
}
.cta::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose), var(--teal), transparent); opacity: 0.4;
}
.cta-tag {
  font-family: var(--font-ui); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
}
.cta-tag::before, .cta-tag::after { content: ''; width: 20px; height: 1px; background: var(--teal); flex-shrink: 0; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.25; letter-spacing: 0.01em; margin-bottom: 1.2rem;
  white-space: normal;
}

@media (min-width: 641px) {
  .cta-title {
    white-space: nowrap;
    font-size: clamp(1.2rem, 4vw, 4rem);
  }
}
.cta-sub {
  font-family: var(--font-body); font-size: clamp(0.8rem, 2vw, 0.86rem); font-weight: 300;
  color: var(--sub); line-height: 2.1; margin-bottom: 3rem;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

footer {
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1rem,5vw,4rem);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: var(--font-latin); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--sub); display: flex; align-items: center; gap: 0.5rem;
}
.footer-logo-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); opacity: 0.5; flex-shrink: 0; }
.footer-copy {
  font-family: var(--font-ui); font-size: 0.65rem; font-weight: 300;
  letter-spacing: 0.06em; color: var(--muted);
}

@media (max-width: 960px) {
  .hero-inner    { grid-template-columns: 1fr; }
  .about-grid    { grid-template-columns: 1fr; }
  .features-head { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid    { grid-template-columns: 1fr; }
  .domain-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-btns    { flex-direction: column; }
  .btn-fill,
  .btn-ghost    { width: 100%; }

  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn-fill,
  .cta-btns .btn-ghost { width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
  footer         { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .step-item     { padding: 1.5rem 1rem; }
  .feat-item     { padding: 2rem 1.25rem; }
  .domain-panel  { padding: 1.25rem; }
}

@media (max-width: 375px) {
  .hero          { padding-bottom: 6vh; }
  .hero-eyebrow::before { display: none; }
  .hero-eyebrow  { letter-spacing: 0.12em; }
  .section-tag::before  { display: none; }
  .step-num      { width: 28px; height: 28px; font-size: 0.55rem; }
  .domain-url-text { font-size: 0.74rem; }
}