@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500&display=swap");

:root {
  --ivory: #f4efe6;
  --paper: #fbf8f2;
  --cream: #ebe2d3;
  --sand: #ddd1be;
  --line: #d3c4ad;
  --ink: #1b1815;
  --ink-soft: #4a433c;
  --muted: #746c62;
  --sage: #5a7263;
  --sage-deep: #3a4f42;
  --gold: #9e754c;
  --gold-soft: #c4a57d;
  --blush: #e5d0bc;
  --white: #fffdf9;
  --focus: #3a4f42;
  --radius: 1.35rem;
  --radius-sm: 0.85rem;
  --shadow: 0 24px 60px rgba(27, 24, 21, 0.08);
  --shadow-sm: 0 10px 28px rgba(27, 24, 21, 0.06);
  --font-display: "Fraunces", "Noto Serif JP", Georgia, serif;
  --font-body: "Outfit", "Noto Sans JP", system-ui, sans-serif;
  --header: 4.4rem;
  --banner: 2.6rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: auto; }

html[lang="ja"] {
  --font-display: "Noto Serif JP", "Fraunces", serif;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.offer-banner,
.site-header,
#main,
.sticky-cta,
.site-footer {
  position: relative;
  z-index: 1;
}

img, svg, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.03em; line-height: 1.12; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
}
.skip:focus { top: 0.75rem; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.wrap-wide {
  width: min(86rem, calc(100% - 2rem));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--sage-deep);
  font-size: 0.72rem;
  font-weight: 580;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: var(--gold);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 6.6vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.lede {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.62;
}

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* Banner */
.offer-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  align-items: center;
  min-height: var(--banner);
  padding: 0.35rem 1rem;
  background: var(--sage-deep);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 470;
  letter-spacing: 0.04em;
}
.offer-banner a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Header */
.site-header {
  position: sticky;
  top: var(--banner);
  z-index: 45;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--ivory) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}
.logo strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 560;
}
.logo span {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-desktop { display: none; }
.nav-desktop a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 470;
  color: var(--ink-soft);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
  flex-shrink: 0;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 580;
}
.seg button[aria-pressed="true"] {
  background: var(--sage-deep);
  color: var(--paper);
}
.icon-btn {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nav-drawer {
  display: none;
  padding: 0.5rem 1rem 1.4rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav-drawer.open { display: grid; gap: 0.35rem; }
.nav-drawer a {
  text-decoration: none;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--cream);
}

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sage-deep); color: var(--paper); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #8a633e; }

/* Hero / cinematic */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header) - var(--banner));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 80% 10%, #f3e7d6, transparent 55%),
              linear-gradient(180deg, var(--ivory), var(--cream));
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  padding: 3.5rem 0 3rem;
}
.hero-copy { max-width: 40rem; }
.hero-copy .display { margin: 0.85rem 0 1.1rem; }
.hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 0.4rem);
  overflow: hidden;
  min-height: 18rem;
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--gold) 22%, transparent);
}
.hero-visual img,
.hero-visual .media-plane,
.hero-visual .media-plane img,
.hero-visual .media-plane video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 18rem;
}
@keyframes ken {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}

.slot-badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  color: var(--paper);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.slot-badge b { font-weight: 580; letter-spacing: 0.02em; text-transform: none; font-size: 0.78rem; }

@keyframes ken {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.8%, -1.2%, 0); }
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
  perspective: 980px;
}
.media-plane {
  height: 100%;
  transform: translate3d(0, var(--py, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.28s var(--ease);
  will-change: transform;
}
.media-plane img,
.media-plane video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 12rem;
  animation: ken var(--ken, 26s) ease-in-out infinite alternate;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(27, 24, 21, 0.06) 0%, transparent 28%, rgba(27, 24, 21, 0.34) 100%);
}
.slot-badge { z-index: 2; }

.studio-still-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
.studio-still {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}
.studio-still .media-frame { min-height: 14rem; }
.studio-still.is-featured .media-frame { min-height: 18rem; }
.still-copy {
  display: grid;
  gap: 0.18rem;
  padding: 0 0.15rem;
}
.still-copy strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.still-copy span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.studio-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483646;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(-80px, -80px, 0);
  transition: none !important;
}
.studio-cursor-arrow {
  display: block;
  width: 36px;
  height: 36px;
  transform-origin: 2px 1px;
  filter: drop-shadow(1.5px 2.5px 1.6px rgba(27, 24, 21, 0.42));
  transition: none;
}
.studio-cursor.is-hot .studio-cursor-arrow {
  filter: drop-shadow(1px 2px 1.4px rgba(27, 24, 21, 0.38)) brightness(1.07);
}
.studio-cursor.is-down .studio-cursor-arrow {
  filter: drop-shadow(0.5px 1px 0.8px rgba(27, 24, 21, 0.32)) brightness(0.96);
}
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor .card { cursor: none; }
body.has-cursor input,
body.has-cursor textarea,
body.has-cursor select { cursor: text; }

.hero {
  background:
    radial-gradient(1000px 480px at calc(78% + var(--mx, 0px)) calc(8% + var(--my, 0px)), #f3e7d6, transparent 55%),
    linear-gradient(180deg, var(--ivory), var(--cream));
}

/* Sections */
.section { padding: 5.8rem 0; }
.section-tight { padding: 3rem 0; }
.section-ink {
  background: var(--ink);
  color: var(--paper);
}
.section-ink .muted,
.section-ink .lede { color: #cfc6ba; }
.section-sage { background: var(--sage-deep); color: var(--paper); }
.section-paper { background: var(--paper); }
.section-head {
  display: grid;
  gap: 0.95rem;
  margin-bottom: 2.4rem;
  max-width: 42rem;
}
.section-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  letter-spacing: -0.035em;
}

.chapter {
  display: grid;
  gap: 1.5rem;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}
.chapter-index {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
}

/* Cards */
.grid-2, .grid-3, .grid-4, .cards { display: grid; gap: 1.15rem; }
.card {
  background: linear-gradient(180deg, #fffefb, var(--white));
  border: 1px solid color-mix(in srgb, var(--line) 72%, white);
  border-radius: var(--radius);
  padding: 1.55rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: grid;
  gap: 0.62rem;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.32rem; letter-spacing: -0.03em; }
.price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sage-deep);
}
.badge {
  display: inline-flex;
  width: max-content;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 18%, var(--paper));
  color: var(--sage-deep);
  font-size: 0.68rem;
  font-weight: 580;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.3rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.rail > * {
  flex: 0 0 min(78vw, 20rem);
  scroll-snap-align: start;
}

.stars { color: var(--gold); letter-spacing: 0.08em; }
.quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--cream); vertical-align: top; }
th { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 580; }
tr:last-child td { border-bottom: 0; }

/* Makeover stepper */
.stepper { display: grid; gap: 0; }
.makeover-steps {
  max-width: 46rem;
}
.makeover-steps .step {
  border-left: 0;
  margin-left: 0;
  padding: 1.05rem 0;
  padding-left: 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 3.2rem 1fr;
  align-items: start;
}
.makeover-steps .step-num {
  position: static;
  left: auto;
}
.makeover-steps .step:last-child { border-bottom: 0; }
.makeover-after {
  margin-top: 2.35rem;
  max-width: 42rem;
}
.makeover-ctas { margin-top: 1.35rem; }
.step {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-left: 1px solid var(--line);
  margin-left: 1.1rem;
  padding-left: 1.4rem;
  position: relative;
}
.step-num {
  position: absolute;
  left: -1.15rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 580;
}
.step a { text-decoration: none; }

/* Forms */
.form {
  display: grid;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}
label { display: grid; gap: 0.35rem; font-size: 0.86rem; font-weight: 500; }
input, select, textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
}
textarea { min-height: 7rem; resize: vertical; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 0.3rem; }

.map-embed {
  border: 0;
  width: 100%;
  min-height: 16rem;
  border-radius: var(--radius);
  background: var(--cream);
}

.video-slot {
  min-height: 14rem;
  border-radius: var(--radius);
  border: 1px dashed var(--gold-soft);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cream) 70%, white), var(--paper));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--ink-soft);
}
.video-slot iframe { width: 100%; min-height: 16rem; border: 0; border-radius: var(--radius); }

/* Sticky CTA */
.sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.65rem 0.8rem calc(0.65rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { min-height: 2.5rem; padding-inline: 0.9rem; font-size: 0.88rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d8cfc4;
  padding: 3rem 0 6.5rem;
}
.site-footer a { color: var(--gold-soft); }
.foot-grid { display: grid; gap: 1.5rem; }
.site-footer h2 { color: var(--paper); font-size: 1.5rem; margin-bottom: 0.4rem; }
.tiny { font-size: 0.78rem; color: #a89f93; margin-top: 2rem; }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal { opacity: 0; transform: translateY(10px); }
  .js-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity var(--reveal, 640ms) var(--ease), transform var(--reveal, 640ms) var(--ease);
  }
}

.detail-grid { display: grid; gap: 1rem; }
.detail-grid article {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  border: 1px solid var(--cream);
}

.filter-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.2rem; }

.team-card { display: grid; gap: 0.8rem; }
.team-card img { aspect-ratio: 4/5; object-fit: cover; border-radius: 1rem; }

.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}
.gallery-grid .media-frame { min-height: 10rem; }

.split { display: grid; gap: 1.5rem; }

@media (min-width: 760px) {
  .nav-desktop {
    display: flex;
    gap: 0.58rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .menu-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding: 5rem 0 4rem; }
  .hero-visual,
  .hero-visual img,
  .hero-visual .media-plane,
  .hero-visual .media-plane img,
  .hero-visual video { min-height: 32rem; height: 100%; }
  .studio-still-grid {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: auto auto;
    align-items: stretch;
  }
  .studio-still.is-featured { grid-row: span 2; }
  .studio-still.is-featured .media-frame,
  .studio-still.is-featured .media-plane,
  .studio-still.is-featured img { height: 100%; min-height: 28rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .cards.treat { grid-template-columns: repeat(2, 1fr); }
  .rail > * { flex-basis: 22rem; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid .span-2 { grid-column: span 2; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 3rem; }
}

@media (min-width: 1080px) {
  .cards.treat { grid-template-columns: repeat(4, 1fr); }
  .chapter {
    grid-template-columns: 8rem 1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-visual img, .media-plane img, .media-plane video { transform: none; animation: none !important; }
  .js-reveal, .js-reveal.is-in { opacity: 1; transform: none; }
  .studio-cursor { display: none; }
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .card { cursor: auto; }
}

@media (hover: none), (pointer: coarse) {
  .studio-cursor { display: none !important; }
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button,
  body.has-cursor .card { cursor: auto; }
}

@media (max-width: 759px) {
  .nav-desktop { display: none; }
}
