/* ============================================================
   Chrome: header, logo, hero, footer
   ============================================================ */

/* ---------- header ---------- */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.hdr-solid {
  border-bottom-color: var(--border);
}
/* 背景のぼかしは ::before に退避。ヘッダー本体に backdrop-filter をかけると
   position:fixed の子要素（.hdr-mobile）の基準がヘッダーになり、
   スクロール時にモバイルメニューが切れるため。 */
.hdr-solid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* logo (inline SVG) */
.logo { display: inline-flex; align-items: center; }
.logo svg { height: 30px; width: auto; display: block; }
.logo .st1 { fill: var(--text); transition: fill 0.4s var(--ease); }
.logo .st0 { fill: var(--accent); transition: fill 0.4s var(--ease); }
.footer .logo svg { height: 34px; }

.hdr-nav { display: flex; gap: clamp(14px, 2vw, 30px); margin-inline: auto; }
.hdr-nav a { white-space: nowrap;
  font-size: 14px;
  color: var(--text-dim);
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s;
}
.hdr-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right 0.3s var(--ease);
}
.hdr-nav a:hover { color: var(--text); }
.hdr-nav a:hover::after { right: 0; }

.hdr-right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-1);
}
.lang-opt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--text-dim);
  transition: color 0.2s, background 0.3s var(--ease);
}
.lang-opt.on { background: var(--accent); color: var(--on-accent); }

.hdr-cta { padding: 11px 18px; font-size: 14px; }

.hdr-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; align-items: center; border-radius: 10px; transition: background 0.25s; }
.hdr-burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.2s var(--ease); transform-origin: center; }
.hdr-burger.is-open { background: var(--bg-2); }
.hdr-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.hdr-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- mobile menu (full-height overlay panel) ---- */
.hdr-mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 5vw, 36px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 32px);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-top: 1px solid var(--border);
  overflow-y: auto;
  animation: hdr-mobile-fade 0.4s var(--ease) both;
}
@keyframes hdr-mobile-fade { from { opacity: 0; } to { opacity: 1; } }

.hdr-mobile-nav { display: flex; flex-direction: column; }
.hdr-mobile-nav a {
  display: flex; align-items: center; gap: 16px;
  padding: clamp(15px, 3.4vw, 22px) 4px;
  font-size: clamp(22px, 6vw, 30px); font-weight: 600; letter-spacing: -0.02em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  animation: hdr-item-in 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 60ms + 80ms);
}
.hdr-mobile-idx { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: 0.06em; min-width: 26px; }
.hdr-mobile-label { flex: 1; }
.hdr-mobile-arrow { color: var(--text-faint); transition: transform 0.3s var(--ease), color 0.3s; }
.hdr-mobile-nav a:active .hdr-mobile-arrow,
.hdr-mobile-nav a:hover .hdr-mobile-arrow { transform: translateX(5px); color: var(--accent); }

.hdr-mobile-foot {
  display: flex; flex-direction: column; gap: 18px; align-items: stretch;
  padding-top: 26px;
  animation: hdr-item-in 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 60ms + 120ms);
}
.hdr-mobile-cta { justify-content: center; padding-block: 16px; font-size: 16px; }
.hdr-mobile-mail { text-align: center; font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); letter-spacing: 0.02em; }
.hdr-mobile-mail:hover { color: var(--accent); }
@keyframes hdr-item-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hdr-mobile, .hdr-mobile-nav a, .hdr-mobile-foot { animation: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(118px, 16vh, 184px);
  padding-bottom: var(--section-pad);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 75% 8%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 75% 8%, #000 20%, transparent 78%);
  z-index: 0;
}
.hero-wrap {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.hero-centered .hero-wrap {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  gap: 48px;
}

.hero-title {
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 26px 0 0;
}
.hero-line { display: block; }
.hero-centered .hero-title { max-width: 16ch; }

.hero-sub {
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--text-dim);
  margin-top: 28px;
  max-width: 46ch;
  text-wrap: pretty;
}
.hero-centered .hero-sub { margin-inline: auto; }

.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-centered .hero-actions { justify-content: center; }

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 52px);
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.hero-centered .hero-stats { justify-content: center; }
.hero-stat { display: flex; flex-direction: column; gap: 5px; }
.hero-stat-n {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-stat-l { font-size: 12.5px; color: var(--text-faint); max-width: 16ch; line-height: 1.35; }

/* showcase */
.hero-showcase { position: relative; aspect-ratio: 4 / 5; }
.hero-centered .hero-showcase { width: min(640px, 100%); aspect-ratio: 16 / 10; margin-top: 8px; }
.hero-render-main {
  position: absolute; inset: 0;
  box-shadow: 0 40px 90px -30px var(--shadow), 0 0 0 1px var(--border);
}
.hero-render-float {
  position: absolute;
  width: 44%;
  aspect-ratio: 1 / 1;
  right: -6%;
  bottom: -7%;
  box-shadow: 0 30px 60px -20px var(--shadow);
  animation: floaty 7s var(--ease) infinite;
}
.hero-centered .hero-render-float { width: 30%; bottom: -10%; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero-render-float { animation: none; } }

.hero-badge {
  position: absolute;
  top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 7px 13px;
  z-index: 2;
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{ opacity: 1; } 50%{ opacity: 0.35; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 56px 38px; background: var(--bg-1); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--border); }
.footer-nav { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px clamp(18px, 2.2vw, 32px); }
.footer-nav a { color: var(--text-dim); font-size: 14px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-tag { font-size: clamp(34px, 6vw, 68px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; max-width: 18ch; margin-top: clamp(40px, 6vw, 68px); text-wrap: balance; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 20px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-faint); }
.footer-legal-links { display: flex; gap: clamp(12px, 1.5vw, 20px); flex-wrap: wrap; }
.footer-legal-links a { color: var(--text-faint); font-size: 12.5px; transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--accent); }
.footer-insta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-faint); font-size: 12.5px; text-decoration: none;
  transition: color 0.2s;
}
.footer-insta:hover { color: var(--accent); }

/* ── Instagram band ── */
.footer-insta-band {
  display: flex; align-items: center; gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(20px, 2.5vw, 28px) clamp(24px, 3vw, 36px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  text-decoration: none; color: inherit;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  cursor: pointer;
}
.footer-insta-band:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 60%, var(--bg-2));
}
.footer-insta-band-ico {
  flex: none; color: var(--accent);
  display: flex; align-items: center;
}
.footer-insta-band-text {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.footer-insta-band-handle {
  font-size: clamp(16px, 1.6vw, 20px); font-weight: 700;
  letter-spacing: -0.01em; color: var(--text);
}
.footer-insta-band-sub {
  font-size: 13px; color: var(--text-dim);
}
.footer-insta-band-arrow {
  flex: none; color: var(--text-faint);
  transition: transform 0.25s var(--ease), color 0.25s;
}
.footer-insta-band:hover .footer-insta-band-arrow {
  transform: translateX(4px); color: var(--accent);
}
@media (max-width: 560px) {
  .footer-insta-band { flex-wrap: wrap; gap: 12px; }
  .footer-insta-band-arrow { display: none; }
}

/* ---------- responsive ---------- */
/* collapse the primary nav to a burger earlier — 7 items + CTA need room */
@media (max-width: 1040px) {
  .hdr-nav { display: none; }
  .hdr-cta { display: none; }
  .hdr-burger { display: flex; }
  .hdr-mobile { display: flex; }
}
@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-showcase { order: -1; aspect-ratio: 16 / 11; margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .hero-stats { flex-wrap: wrap; gap: 22px 30px; }
  .lang-switch { order: 2; }
}
