@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500&display=swap');

:root {
  --bg:      #F4F3F1;
  --bg-2:    #EBEBEA;
  --bg-3:    #DDDCDA;
  --black:   #0C0C0C;
  --dark:    #1A1A1A;
  --accent:  #E63946;
  --text:    #1A1A1A;
  --muted:   rgba(26,26,26,0.45);
  --border:  rgba(26,26,26,0.1);
  --ff-en:   'Space Grotesk', sans-serif;
  --ff-jp:   'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--ff-jp); overflow-x: hidden; padding-top: 36px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── DEMO BAR ─── */
#demo-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; background: rgba(12,12,12,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(26,26,26,.5); padding: 7px 0; }
.demo-bar-inner { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .7rem; color: rgba(255,255,255,.35); }
.demo-badge { font-size: .54rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: rgba(230,57,70,.18); color: var(--accent); padding: 3px 10px; }
.demo-link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.demo-copy { color: rgba(255,255,255,.15); font-size: .62rem; margin-left: 4px; }
@media(max-width:640px){ .demo-copy { display: none; } }

/* ─── HEADER ─── */
.site-header { position: fixed; top: 36px; left: 0; right: 0; z-index: 500; padding: 0 5vw; height: 68px; display: flex; align-items: center; justify-content: space-between; background: rgba(244,243,241,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 2px 20px rgba(12,12,12,.06); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-family: var(--ff-en); font-size: 1.1rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--black); }
.logo-sub { display: block; font-size: .48rem; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.header-nav { display: flex; align-items: center; gap: 2rem; }
.header-nav a { font-family: var(--ff-en); font-size: .65rem; font-weight: 500; letter-spacing: .08em; color: var(--muted); transition: color .2s; }
.header-nav a:hover { color: var(--black); }
.btn-book { font-family: var(--ff-en); font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 9px 22px; background: var(--black); color: var(--bg); transition: background .25s; }
.btn-book:hover { background: var(--accent); }
.hamburger { display: none; flex-direction: column; gap: 5px; width: 38px; height: 38px; justify-content: center; cursor: pointer; background: none; border: none; padding: 0; z-index: 1100; position: relative; }
.hamburger span { display: block; height: 1.5px; background: var(--black); transition: transform .35s, opacity .25s, width .25s; }
.hamburger span:nth-child(1) { width: 24px; }
.hamburger span:nth-child(2) { width: 14px; }
.hamburger span:nth-child(3) { width: 24px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); width: 24px; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }

/* ─── MOBILE NAV ─── */
.mobile-nav { display: none; position: fixed; inset: 0; background: var(--black); z-index: 1000; flex-direction: column; align-items: center; justify-content: center; gap: 2.4rem; opacity: 0; pointer-events: none; transition: opacity .4s; }
.mobile-nav.nav-open { opacity: 1; pointer-events: all; }
.mobile-nav a { font-family: var(--ff-en); font-size: 1.5rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .4s, color .2s; }
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav.nav-open a { opacity: 1; transform: translateY(0); }
.mobile-nav.nav-open a:nth-child(1){transition-delay:.05s}
.mobile-nav.nav-open a:nth-child(2){transition-delay:.1s}
.mobile-nav.nav-open a:nth-child(3){transition-delay:.15s}
.mobile-nav.nav-open a:nth-child(4){transition-delay:.2s}
.mobile-nav.nav-open a:nth-child(5){transition-delay:.25s}
.mobile-nav.nav-open a:nth-child(6){transition-delay:.3s}
.site-header.menu-active { background: rgba(244,243,241,1) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* ─── HERO ─── */
.hero { position: relative; min-height: calc(100vh - 36px); display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.hero-left { display: flex; flex-direction: column; justify-content: center; padding: 80px 5vw 80px max(4vw,40px); position: relative; z-index: 2; }
.hero-index { font-family: var(--ff-en); font-size: .58rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; display: flex; align-items: center; gap: 12px; }
.hero-index::before { content: '01'; font-size: .9rem; font-weight: 700; color: var(--accent); }
.hero-title { font-family: var(--ff-en); font-size: clamp(3rem,5vw,4.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.0; color: var(--black); margin-bottom: 1.5rem; }
.hero-title span { color: var(--accent); }
.hero-title-jp { font-family: var(--ff-jp); font-size: .88rem; font-weight: 300; letter-spacing: .16em; color: var(--muted); margin-bottom: 2.4rem; }
.hero-desc { font-size: .88rem; line-height: 2; color: var(--muted); max-width: 440px; margin-bottom: 3rem; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary { display: inline-block; font-family: var(--ff-en); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 14px 36px; background: var(--black); color: var(--bg); transition: background .25s; }
.btn-primary:hover { background: var(--accent); }
.btn-outline { display: inline-block; font-family: var(--ff-en); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 13px 36px; border: 1.5px solid var(--black); color: var(--black); transition: background .25s, color .25s; }
.btn-outline:hover { background: var(--black); color: var(--bg); }
.hero-right { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg-2); }
.hero-grid-item { background: var(--bg-3); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: opacity .3s; }
.hero-grid-item:hover { opacity: .8; }
.hero-grid-item-placeholder { text-align: center; color: var(--muted); }
.hero-grid-item-placeholder svg { width: 32px; height: 32px; stroke: var(--border); margin-bottom: 6px; }
.hero-grid-item-placeholder p { font-family: var(--ff-en); font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; }

/* ─── WRAP / SECTION ─── */
.wrap { padding: 0 5vw; max-width: 1160px; margin: 0 auto; }
.section-tag { font-family: var(--ff-en); font-size: .56rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-title { font-family: var(--ff-en); font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 700; letter-spacing: -.02em; color: var(--black); margin-bottom: 6px; }
.section-title-jp { font-size: .78rem; letter-spacing: .18em; color: var(--muted); }

/* ─── WORKS ─── */
.works-s { padding: 100px 0; background: var(--bg); }
.works-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: auto; gap: 4px; margin-top: 50px; }
.work-item { background: var(--bg-2); overflow: hidden; position: relative; transition: transform .3s; cursor: pointer; }
.work-item:first-child { grid-column: span 2; aspect-ratio: 2/1; }
.work-item:not(:first-child) { aspect-ratio: 1; }
.work-item:hover { transform: scale(1.01); z-index: 2; }
.work-img { width: 100%; height: 100%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; }
.work-img svg { width: 50px; height: 50px; stroke: var(--border); fill: none; }
.work-overlay { position: absolute; inset: 0; background: rgba(12,12,12,.0); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; transition: background .3s; }
.work-item:hover .work-overlay { background: rgba(12,12,12,.5); }
.work-cat { font-family: var(--ff-en); font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,0); background: var(--accent); padding: 3px 10px; transition: color .3s; align-self: flex-start; margin-bottom: 6px; }
.work-item:hover .work-cat { color: #fff; }
.work-title { font-family: var(--ff-en); font-size: .9rem; font-weight: 600; color: rgba(255,255,255,0); transition: color .3s; }
.work-item:hover .work-title { color: #fff; }

/* ─── SERVICE ─── */
.service-s { padding: 100px 0; background: var(--bg-2); }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 60px; }
.service-card { background: var(--bg); padding: 44px 36px; border-bottom: 3px solid transparent; transition: border-color .3s; }
.service-card:hover { border-bottom-color: var(--accent); }
.service-num { font-family: var(--ff-en); font-size: .68rem; font-weight: 700; letter-spacing: .2em; color: var(--accent); margin-bottom: 20px; }
.service-icon { width: 46px; height: 46px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-icon svg { width: 22px; height: 22px; stroke: var(--black); fill: none; stroke-width: 1.5; }
.service-name { font-family: var(--ff-en); font-size: 1.1rem; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.service-name-jp { font-size: .72rem; color: var(--muted); margin-bottom: 16px; }
.service-desc { font-size: .84rem; line-height: 1.9; color: var(--muted); }

/* ─── PRICING ─── */
.pricing-s { padding: 100px 0; background: var(--bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 60px; }
.pricing-card { background: var(--bg-2); padding: 40px; }
.pricing-card.featured { background: var(--black); }
.pricing-label { font-family: var(--ff-en); font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.pricing-name { font-family: var(--ff-en); font-size: 1.2rem; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.pricing-card.featured .pricing-name { color: #fff; }
.pricing-name-jp { font-size: .72rem; color: var(--muted); margin-bottom: 28px; }
.pricing-card.featured .pricing-name-jp { color: rgba(255,255,255,.4); }
.pricing-price { font-family: var(--ff-en); font-size: 2.2rem; font-weight: 700; color: var(--black); line-height: 1; }
.pricing-card.featured .pricing-price { color: #fff; }
.pricing-price sub { font-size: .7rem; font-weight: 400; color: var(--muted); }
.pricing-card.featured .pricing-price sub { color: rgba(255,255,255,.4); }
.pricing-price-note { font-size: .68rem; color: var(--muted); margin: 8px 0 28px; }
.pricing-card.featured .pricing-price-note { color: rgba(255,255,255,.4); }
.pricing-list { list-style: none; }
.pricing-list li { font-size: .82rem; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.pricing-card.featured .pricing-list li { color: rgba(255,255,255,.5); border-bottom-color: rgba(255,255,255,.08); }
.pricing-list li::before { content: '✓'; color: var(--accent); flex-shrink: 0; font-size: .8rem; }

/* ─── FOOTER ─── */
.site-footer { background: var(--black); color: rgba(255,255,255,.4); padding: 70px 5vw 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { font-family: var(--ff-en); font-size: 1.2rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.footer-tagline { font-family: var(--ff-en); font-size: .56rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer-desc { font-size: .78rem; line-height: 1.9; }
.footer-nav-title { font-family: var(--ff-en); font-size: .54rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: .8rem; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.06); font-size: .72rem; }
.footer-copy { color: rgba(255,255,255,.2); }
.footer-link { color: rgba(255,255,255,.3); transition: color .2s; }
.footer-link:hover { color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media(max-width:1024px){
  .service-grid,.pricing-grid{grid-template-columns:1fr 1fr}
  .pricing-card:last-child{grid-column:span 2}
}
@media(max-width:768px){
  .header-nav,.btn-book{display:none}
  .hamburger{display:flex}
  .mobile-nav{display:flex}
  .hero{grid-template-columns:1fr;min-height:auto}
  .hero-right{grid-template-columns:1fr 1fr;aspect-ratio:auto}
  .hero-grid-item{aspect-ratio:1}
  .works-grid{grid-template-columns:1fr}
  .work-item:first-child{grid-column:1;aspect-ratio:1}
  .service-grid,.pricing-grid{grid-template-columns:1fr}
  .pricing-card:last-child{grid-column:1}
  .footer-grid{grid-template-columns:1fr}
}
