:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-alt: #f3f1ec;
  --ink: #161512;
  --ink-soft: #5c5a54;
  --ink-faint: #918e85;
  --line: #e5e2da;
  --accent: #ad8438;
  --accent-soft: #f5ead2;
  --dark-bg: #121110;
  --dark-surface: #1c1a17;
  --dark-line: #35322c;
  --dark-ink: #f3f1ec;
  --dark-ink-soft: #b6b2a8;
  --font-head: 'Zen Kaku Gothic New', 'Inter', sans-serif;
  --font-body: 'Noto Sans JP', 'Inter', sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: 88px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent); z-index: 999; transition: width .08s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(251, 250, 248, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.brand-mark { display: inline-flex; color: var(--ink); }
.brand-word {
  font-family: var(--font-head); font-weight: 700; font-size: 21px;
  letter-spacing: 0.03em;
}
.nav-desktop { display: flex; gap: 36px; }
.nav-desktop a {
  position: relative; font-family: 'Inter', sans-serif; font-size: 12.5px; letter-spacing: 0.08em; font-weight: 600;
  color: var(--ink-soft); padding: 4px 0;
}
.nav-desktop a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: center;
  transition: transform .35s var(--ease);
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-body); font-weight: 500; font-size: 14.5px;
  padding: 13px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); box-shadow: 0 10px 28px rgba(173,132,56,.35); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: 10px 22px; font-size: 13px; }
.btn-large { padding: 17px 38px; font-size: 15.5px; }
.header-cta { display: inline-flex; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0;
}
.hamburger span { display: block; height: 1.5px; width: 22px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); margin: 0 auto; }
.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); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 80; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transform: translateY(-100%); transition: transform .45s var(--ease);
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile a { font-family: var(--font-head); font-size: 22px; font-weight: 500; letter-spacing: .06em; color: var(--ink); }
.nav-mobile-cta { margin-top: 12px; padding: 12px 30px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; overflow: hidden; padding: 140px 24px 120px;
  background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-glow {
  position: absolute; top: 50%; left: 50%; width: 900px; height: 900px;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%);
  opacity: .8;
}
.hero-dial {
  position: absolute; top: 50%; left: 50%; width: min(78vw, 760px); height: min(78vw, 760px);
  transform: translate(-50%,-50%);
}
.dial-ring { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .14; }
.dial-ring-inner { opacity: .08; }
.dial-ticks line { stroke: var(--ink); stroke-width: 2; opacity: .16; }
.dial-marker { animation: dialSpin 48s linear infinite; transform-origin: 400px 400px; }
.dial-trail { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .35; stroke-linecap: round; }
.dial-dot { fill: var(--accent); }
@keyframes dialSpin { to { transform: rotate(360deg); } }
.grain { position: absolute; inset: 0; opacity: .025; mix-blend-mode: multiply;
  background-image: radial-gradient(circle, #000 1px, transparent 1px); background-size: 3px 3px; }

.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 780px; }
.hero-kicker {
  font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: .1em; font-weight: 600;
  color: var(--ink); margin-bottom: 30px;
}
.hero-title {
  font-size: clamp(38px, 7vw, 72px); font-weight: 900; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--ink); text-wrap: balance;
}
.hero-accent { color: var(--accent); }
.hero-sub {
  margin-top: 32px; font-size: 16.5px; color: var(--ink-soft); line-height: 2;
}
.hero-actions { margin-top: 44px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-fade { opacity: 0; transform: translateY(16px); animation: heroFadeUp .8s var(--ease) forwards; animation-delay: calc(var(--d) * .09s + .05s); display: inline-block; }
h1 .hero-fade { display: block; }
@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .hero-dial { width: 92vw; height: 92vw; }
}

.scroll-cue {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
  font-size: 11px; letter-spacing: .2em; color: var(--ink-faint);
}
.scroll-line { width: 1px; height: 34px; background: linear-gradient(var(--ink-faint), transparent); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--accent); animation: scrollDown 2.2s ease-in-out infinite; }
@keyframes scrollDown { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

@media (max-width: 720px) {
  .br-pc { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 130px 0; position: relative; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--dark-bg); color: var(--dark-ink); }

.kicker {
  font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: .08em; font-weight: 700;
  color: var(--accent); margin: 0 0 18px;
}
.kicker-dark { color: var(--accent); }
.section-title {
  font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; line-height: 1.45; letter-spacing: -0.005em;
  text-wrap: balance;
}
.title-light { color: var(--dark-ink); }
.title-rule {
  width: 56px; height: 2px; background: var(--accent); margin: 26px 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.reveal.in .title-rule { transform: scaleX(1); }
.section-lead { margin-top: 26px; max-width: 620px; font-size: 15.5px; color: var(--ink-soft); }
.lead-light { color: var(--dark-ink-soft); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(4px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ---------- Vision ---------- */
.vision-grid { margin-top: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.vision-copy p { font-size: 18px; color: var(--ink); margin-bottom: 26px; max-width: 480px; }
.vision-copy p:last-child { margin-bottom: 0; }
.name-story {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 36px;
}
.name-story-label { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: .1em; color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.name-story-body { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px; }
.name-story-body:last-child { margin-bottom: 0; }
.name-story-body strong { color: var(--ink); font-weight: 700; }

@media (max-width: 860px) {
  .vision-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Service ---------- */
.service-grid { margin-top: 64px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; }
.service-card {
  background: var(--dark-surface); border: 1px solid var(--dark-line); border-radius: 20px; padding: 40px 34px;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.service-tag { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .06em; }
.service-icon { display: block; margin: 18px 0 20px; font-size: 30px; color: var(--accent); }
.service-card h3 { font-size: 20px; color: var(--dark-ink); margin-bottom: 14px; }
.service-card p { font-size: 14.5px; color: var(--dark-ink-soft); }
.service-loop { display: flex; align-items: center; justify-content: center; color: var(--accent); animation: spin 6s linear infinite; }
.service-loop .material-symbols-outlined { font-size: 26px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-loop { transform: rotate(90deg); margin: -4px auto; }
}

/* ---------- Bento ---------- */
.bento { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(200px, auto); gap: 22px; }
.bento-lg { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 3; }
.bento-item {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px;
  display: flex; flex-direction: column; justify-content: flex-start;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.bento-item:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(20,18,15,.06); }
.bento-icon { font-size: 28px; color: var(--accent); margin-bottom: 20px; }
.bento-item h3 { font-size: 17px; margin-bottom: 12px; line-height: 1.5; }
.bento-item p { font-size: 14px; color: var(--ink-soft); }
.bento-lg h3 { font-size: 24px; max-width: 380px; }
.bento-lg p { max-width: 380px; font-size: 15px; }
.bento-lg::after {
  content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  top: -90px; right: -90px; opacity: .8;
}
.bento-lg .bento-icon { font-size: 34px; }
.bento-lg-list { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.bento-lg-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.bento-lg-list .material-symbols-outlined { font-size: 18px; color: var(--accent); }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .bento-lg, .bento-wide { grid-column: span 1; grid-row: span 1; }
}

/* ---------- Flow ---------- */
.flow-list { margin-top: 64px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: none; }
.flow-item { position: relative; padding: 0 20px 0 0; border-left: 1px solid var(--line); padding-left: 24px; }
.flow-item:first-child { border-left: none; padding-left: 0; }
.flow-num { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.flow-item h3 { font-size: 16.5px; margin: 16px 0 12px; }
.flow-item p { font-size: 13.5px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .flow-list { grid-template-columns: 1fr; gap: 30px; }
  .flow-item { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .flow-item:first-child { border-top: none; padding-top: 0; }
}

/* ---------- Pricing ---------- */
.price-highlight {
  margin-top: 60px; text-align: center; background: var(--surface); border: 1.5px solid var(--accent);
  border-radius: 22px; padding: 52px 24px;
}
.price-highlight-label { font-size: 14px; color: var(--ink-soft); letter-spacing: .05em; margin-bottom: 14px; }
.price-highlight-amount { font-family: var(--font-head); font-size: clamp(40px, 7vw, 64px); font-weight: 900; color: var(--ink); }
.price-highlight-amount span { font-size: 18px; font-weight: 500; color: var(--ink-soft); margin-left: 8px; }
.price-highlight-note { margin-top: 12px; font-size: 13.5px; color: var(--ink-faint); }

.plans { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 34px 28px;
  position: relative; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.plan-card:hover { transform: translateY(-6px); }
.plan-featured { border-color: var(--accent); box-shadow: 0 22px 44px rgba(173,132,56,.14); transform: translateY(-8px); }
.plan-featured:hover { transform: translateY(-12px); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11.5px; padding: 5px 16px; border-radius: 999px; font-weight: 600;
}
.plan-name { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.plan-desc { font-size: 13.5px; color: var(--ink-soft); }
.plan-price { margin-top: auto; padding-top: 20px; font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--ink); }
.plan-price span { font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-left: 4px; }
.pricing-note { margin-top: 30px; font-size: 12.5px; color: var(--ink-faint); }

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-6px); }
}

/* ---------- News ---------- */
.news-placeholder {
  margin-top: 56px; border: 1px dashed var(--line); border-radius: 18px; padding: 60px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--ink-faint);
}
.news-placeholder .material-symbols-outlined { font-size: 30px; }
.news-placeholder p { font-size: 14.5px; }

/* ---------- Company ---------- */
.company-table { margin-top: 56px; border-top: 1px solid var(--line); }
.company-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.company-row dt { font-size: 13px; color: var(--ink-faint); letter-spacing: .06em; }
.company-row dd { font-size: 15px; margin: 0; }
.company-row a { color: var(--accent); }
.company-row a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .company-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Contact ---------- */
.contact-container { text-align: center; }
.contact-cta { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact-note { font-size: 13px; color: var(--dark-ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-bg); color: var(--dark-ink-soft); padding: 56px 0 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--dark-ink); }
.footer-brand .brand-word { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.footer-nav a { font-size: 11.5px; letter-spacing: .1em; color: var(--dark-ink-soft); }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--ink-faint); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive header ---------- */
@media (max-width: 900px) {
  .nav-desktop, .header-cta { display: none; }
  .hamburger { display: flex; }
}
