:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --bg-3: #1d1d21;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2efe9;
  --text-sub: #a7a39b;
  --gold: #c9a96a;
  --gold-soft: rgba(201, 169, 106, 0.14);
  --radius: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.85;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.serif { font-family: "Cormorant Garamond", "Noto Serif JP", serif; letter-spacing: 0.04em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 110px 0; position: relative; }
.eyebrow {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.h2 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.45; font-weight: 700; margin-bottom: 18px; }
.lead { color: var(--text-sub); max-width: 620px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.muted { color: var(--text-sub); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(11, 11, 12, 0.92); backdrop-filter: blur(10px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo strong { font-family: "Cormorant Garamond", serif; font-size: 22px; letter-spacing: 0.22em; }
.logo small { font-size: 10px; color: var(--gold); letter-spacing: 0.2em; margin-top: 4px; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { font-size: 13px; letter-spacing: 0.08em; color: var(--text-sub); transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav .btn-mini { color: var(--bg); background: var(--gold); padding: 9px 18px; border-radius: 999px; }
.nav .btn-mini:hover { color: var(--bg); opacity: 0.9; }
.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px;
  align-items: center; justify-content: center; color: var(--text);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; font-weight: 700; font-size: 14px; letter-spacing: 0.06em;
  border: 1px solid var(--gold); cursor: pointer; transition: transform 0.2s, background 0.2s, color 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { transform: translateY(-2px); background: #d8b97f; }
.btn-line { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.35); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }

/* Hero */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: 140px 0 90px; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; filter: grayscale(0.3) contrast(1.05); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,12,0.98) 18%, rgba(11,11,12,0.55) 70%, rgba(11,11,12,0.85) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero-tag {
  display: inline-flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: 0.1em;
  border: 1px solid rgba(201,169,106,0.45); color: var(--gold); padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}
.hero-tag svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.3; font-weight: 700; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 16px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 34px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-meta div { font-size: 12px; color: var(--text-sub); }
.hero-meta strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 30px; color: var(--text); font-weight: 600; }
.hero-card {
  position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5); aspect-ratio: 4 / 5;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card .badge {
  position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 18px 20px;
  background: rgba(11,11,12,0.78); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px;
}
.badge .k { font-size: 11px; color: var(--gold); letter-spacing: 0.15em; }
.badge .v { font-size: 15px; font-weight: 700; margin-top: 4px; }
.client-note {
  position: absolute; top: 18px; right: 18px; font-size: 11px; letter-spacing: 0.08em;
  background: var(--gold); color: var(--bg); padding: 6px 12px; border-radius: 999px; font-weight: 700;
}

/* Page hero (sub pages) */
.page-hero { padding: 170px 0 80px; background: radial-gradient(ellipse at top right, rgba(201,169,106,0.13), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; line-height: 1.35; margin-bottom: 14px; }
.crumb { font-size: 12px; color: var(--text-sub); margin-bottom: 18px; letter-spacing: 0.08em; }
.crumb a:hover { color: var(--gold); }

/* Problems */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(201,169,106,0.4); }
.icon-box {
  width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.icon-box svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.5; }
.card p { color: var(--text-sub); font-size: 14px; }

/* Strengths (split) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-img { border-radius: 22px; overflow: hidden; aspect-ratio: 5 / 6; border: 1px solid var(--line); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; margin-top: 28px; display: grid; gap: 16px; }
.checks li { display: flex; gap: 14px; color: var(--text-sub); }
.checks li b { color: var(--text); display: block; font-size: 15px; }
.checks svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--gold); margin-top: 4px; }

/* Works */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 48px 0 40px; }
.filter-btn {
  background: transparent; border: 1px solid var(--line); color: var(--text-sub); padding: 9px 20px;
  border-radius: 999px; cursor: pointer; font-size: 13px; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-2); cursor: pointer; display: flex; flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}
.work:hover { transform: translateY(-5px); border-color: rgba(201,169,106,0.45); }
.work.hide { display: none; }
.work-img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.work:hover .work-img img { transform: scale(1.06); }
.work-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,12,0.7), transparent 55%); }
.work-cat {
  position: absolute; left: 14px; top: 14px; z-index: 1; font-size: 11px; letter-spacing: 0.1em;
  background: rgba(11,11,12,0.7); color: var(--gold); padding: 5px 11px; border-radius: 999px;
}
.work-body { padding: 22px 24px 26px; }
.work-body h3 { font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
.work-body p { font-size: 13px; color: var(--text-sub); }
.work-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.work-tags span { font-size: 11px; color: var(--text-sub); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; }
.note { font-size: 12px; color: var(--text-sub); text-align: center; margin-top: 36px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.78); backdrop-filter: blur(4px); }
.modal-box {
  position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
  max-width: 820px; width: 100%; max-height: 90vh; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr;
}
.modal-box img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.modal-text { padding: 34px 30px; }
.modal-text h3 { font-size: 20px; margin-bottom: 12px; line-height: 1.5; }
.modal-text dl { margin-top: 20px; display: grid; gap: 14px; font-size: 13px; }
.modal-text dt { color: var(--gold); font-size: 12px; letter-spacing: 0.08em; }
.modal-text dd { color: var(--text-sub); }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(11,11,12,0.8); border: 1px solid var(--line); color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close svg { width: 18px; height: 18px; }

/* Flow */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 60px; position: relative; }
.flow::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.5; }
.step { text-align: center; padding: 0 12px; position: relative; }
.step-num {
  width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center; font-family: "Cormorant Garamond", serif; font-size: 20px; color: var(--gold); position: relative; z-index: 1;
}
.step h3 { font-size: 15px; margin-bottom: 8px; }
.step p { font-size: 12.5px; color: var(--text-sub); }
.step .when { font-size: 11px; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 6px; display: block; }

/* Tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 6px; cursor: pointer;
  color: var(--text-sub); font-size: 14px; margin-right: 22px;
}
.tab-btn.on { color: var(--gold); border-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.on { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; animation: fade 0.5s; }
.tab-panel img { border-radius: 18px; aspect-ratio: 4/3; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.tab-panel h3 { font-size: 22px; margin-bottom: 14px; line-height: 1.5; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; align-items: stretch; }
.plan { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 40px 32px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(201,169,106,0.1), var(--bg-2) 60%); position: relative; }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--bg); font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: 0.08em; white-space: nowrap; }
.plan h3 { font-size: 20px; margin-bottom: 6px; }
.plan .sub { font-size: 13px; color: var(--text-sub); margin-bottom: 22px; min-height: 44px; }
.plan .price { font-family: "Cormorant Garamond", serif; font-size: 20px; color: var(--gold); margin-bottom: 24px; letter-spacing: 0.02em; }
.plan ul { list-style: none; display: grid; gap: 12px; font-size: 14px; color: var(--text-sub); flex: 1; margin-bottom: 30px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 18px; margin-top: 4px; }
.plan .btn { justify-content: center; }

/* Cases band */
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.quote { padding: 32px; border-left: 2px solid var(--gold); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }
.quote p { font-size: 14px; color: var(--text-sub); margin-bottom: 18px; }
.quote .who { font-size: 12px; color: var(--text); }
.quote .who span { color: var(--gold); display: block; font-size: 11px; letter-spacing: 0.1em; margin-top: 4px; }

/* Story (about) */
.story-img-wide { border-radius: 22px; overflow: hidden; aspect-ratio: 21/9; border: 1px solid var(--line); margin-top: 56px; }
.story-img-wide img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.profile { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.profile-card { border-radius: 22px; overflow: hidden; aspect-ratio: 1/1; border: 1px solid var(--line); }
.profile-card img { width: 100%; height: 100%; object-fit: cover; }
.timeline { margin-top: 30px; border-left: 1px solid var(--line); padding-left: 26px; display: grid; gap: 22px; }
.timeline div { position: relative; font-size: 14px; color: var(--text-sub); }
.timeline div::before { content: ""; position: absolute; left: -31px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.timeline b { color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 15px; margin-right: 10px; }

/* FAQ */
.faq { max-width: 820px; margin: 56px auto 0; display: grid; gap: 12px; }
.faq-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer; padding: 22px 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; font-size: 15px;
}
.faq-q svg { width: 20px; height: 20px; color: var(--gold); transition: transform 0.3s; flex: 0 0 20px; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { padding: 0 26px 24px; color: var(--text-sub); font-size: 14px; }

/* CTA */
.cta { text-align: center; background: linear-gradient(180deg, var(--bg) 0%, #17140e 100%); }
.cta .h2 { font-size: clamp(26px, 4vw, 42px); }
.cta .btn { margin-top: 32px; }
.cta-note { font-size: 12px; color: var(--text-sub); margin-top: 18px; }

/* Contact form */
.contact-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.contact-info { display: grid; gap: 22px; margin-top: 36px; }
.contact-info div { display: flex; gap: 14px; align-items: flex-start; color: var(--text-sub); font-size: 14px; }
.contact-info svg { width: 20px; height: 20px; color: var(--gold); flex: 0 0 20px; margin-top: 3px; }
.contact-info b { color: var(--text); display: block; }
.contact-img { margin-top: 40px; border-radius: 18px; overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--line); }
.contact-img img { width: 100%; height: 100%; object-fit: cover; }
form.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 40px 36px; display: grid; gap: 22px; }
.field label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; font-weight: 700; }
.field label em { font-style: normal; font-size: 10px; color: var(--bg); background: var(--gold); padding: 2px 8px; border-radius: 4px; }
.field label em.opt { background: var(--line); color: var(--text-sub); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; outline: none; font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field select option { background: var(--bg-2); }
.field .err { display: none; color: #ff8a7a; font-size: 12px; margin-top: 6px; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff8a7a; }
.checks-row { display: flex; flex-wrap: wrap; gap: 10px; }
.checks-row label { position: relative; display: inline-block; font-weight: 400; margin: 0; }
.checks-row input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.checks-row span {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text-sub); cursor: pointer; transition: all 0.2s;
}
.checks-row input:checked + span { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.form-foot { font-size: 12px; color: var(--text-sub); }
.form-done { display: none; text-align: center; padding: 60px 20px; }
.form-done.show { display: block; }
.form-done svg { width: 56px; height: 56px; color: var(--gold); margin-bottom: 20px; }
.form-done h3 { font-size: 22px; margin-bottom: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 34px; background: #080809; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-size: 12px; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 16px; font-family: "Cormorant Garamond", serif; }
.foot-grid a, .foot-grid p { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 10px; }
.foot-grid a:hover { color: var(--text); }
.copy { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 11px; color: #6f6b64; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .flow::before { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .quote-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  section { padding: 84px 0; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--bg); flex-direction: column; gap: 0;
    padding: 10px 20px 26px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform 0.35s; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav .btn-mini { margin-top: 18px; text-align: center; border-bottom: 0; }
  .menu-toggle { display: flex; }
  .hero-inner, .split, .profile, .contact-wrap, .tab-panel.on { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { aspect-ratio: 16 / 11; }
  .problems { grid-template-columns: 1fr; }
  .tab-panel.on { gap: 24px; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-box img { min-height: 200px; max-height: 240px; }
  .foot-grid { grid-template-columns: 1fr; }
  .split-img { aspect-ratio: 4/3; }
  .story-img-wide { aspect-ratio: 16/10; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .works-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 22px; }
  .hero-meta strong { font-size: 24px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  form.form { padding: 28px 20px; }
  .card { padding: 28px 22px; }
  .tab-btn { margin-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
