:root {
  --bg: #fff;
  --paper: #fff;
  --ink: #222;
  --muted: #5b5b5b;
  --line: #eee;
  --gold: #8d7349;
  --gold-soft: #c4b089;
  --danger: #8c2f24;
  --fill: #8d7349;
  --max: 1180px;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}
::selection {
  background: #eee6d6;
  color: var(--ink);
}

a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: var(--paper);
  padding: 8px 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px dashed var(--line);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color 0.35s ease;
}
.brand.has-logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.brand-mark.has-logo {
  width: auto;
  height: auto;
  border: 0;
}
.brand-logo {
  display: block;
  height: 20px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand.has-logo .brand-en { display: none; }
.brand-en {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: 0.32em;
  font-size: 15px;
  font-weight: 500;
  padding-right: 0.32em;
}
.brand-jp {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.16em;
  margin-top: 4px;
}
.brand.has-logo .brand-jp { margin-top: 0; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}
.nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav a:hover,
.nav a.is-on { color: var(--ink); }
.nav a:hover:after,
.nav a.is-on:after { transform: scaleX(1); }

.lang {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.lang button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  transition: color 0.3s ease;
}
.lang button:hover,
.lang button.is-on { color: var(--ink); }

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px 0;
  cursor: pointer;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.hero-bleed {
  width: 100%;
  height: 78vh;
  min-height: 420px;
  background: #111;
  position: relative;
  overflow: hidden;
}
.hero-bleed img {
  display: block;
  width: 100%;
  height: 140%;
  object-fit: cover;
  will-change: transform;
}
.hero-bleed .slot-tag { left: 20px; bottom: 20px; }
.hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: end;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 22px;
}
.hero h1,
.section h2,
.section h3,
.page-head h2 {
  font-family: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", serif;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.35;
  margin: 0;
  max-width: 12em;
  letter-spacing: 0.02em;
}
html[lang="en"] .hero h1,
html[lang="en"] .section h2,
html[lang="en"] .section h3,
html[lang="en"] .page-head h2 {
  font-family: "Cormorant Garamond", "Shippori Mincho", serif;
}
html[lang="en"] .hero h1 {
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.2;
  max-width: 14em;
}
.lead {
  max-width: 38em;
  color: var(--muted);
  margin: 0 0 36px;
}
.hero-art { display: none; }
.photo-frame {
  position: relative;
  overflow: hidden;
  height: 260px;
  background: var(--paper);
}
.photo.wide .photo-frame { height: 380px; }
.photo img,
.card img,
.photo-frame img {
  display: block;
  width: 100%;
  height: 136%;
  object-fit: cover;
  will-change: transform;
}
.slot-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 4px 8px;
}
.caption {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
  letter-spacing: 0.04em;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 14px 28px;
  min-width: 12em;
  font-size: 11px;
  letter-spacing: 0.16em;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, letter-spacing 0.35s ease;
}
.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  letter-spacing: 0.2em;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  letter-spacing: 0.2em;
}

.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.section.reveal.is-in {
  opacity: 1;
  transform: none;
}
.section-band {
  background: var(--paper);
}
.section h2,
.page-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 14px;
  letter-spacing: 0.03em;
}
.section h3 {
  font-size: 20px;
  margin: 0 0 12px;
}
.kicker {
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 42em;
}
.page-head {
  margin-bottom: 48px;
  max-width: 42em;
}

.grid-3, .grid-2 {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.4s ease;
}
.card:hover { border-color: var(--gold); }
.card-body { padding: 28px 26px 30px; }
.card p { margin: 0; color: var(--muted); }
.card .num {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.rule-card {
  background: transparent;
  border-top: 1px solid var(--ink);
  padding: 22px 0 8px;
}
.rule-card h3 { margin-top: 0; }
.rule-card p { margin: 0; color: var(--muted); }

.note, .callout {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 28px 30px;
}
.callout.alert { border-color: var(--gold-soft); }
.refine h2 { margin-bottom: 16px; }
.refine p { margin: 0; max-width: 46em; color: var(--muted); }

.fill {
  display: inline;
  border-bottom: 1px dashed var(--fill);
  color: var(--fill);
  font-weight: 500;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 14px;
}
table.data th, table.data td {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}
table.data th {
  background: transparent;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  font-size: 12px;
}
.table-scroll { overflow-x: auto; }

.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  position: relative;
}
.steps:before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--gold-soft);
}
.step {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 22px 8px 22px 72px;
  position: relative;
}
.step:last-child { border-bottom: 0; }
.step:before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: "Cormorant Garamond", serif;
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 0.06em;
  background: var(--bg);
  padding-bottom: 8px;
}
.step p { margin: 0; color: var(--muted); }

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.plain-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.split-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.split-lists h2 { margin-bottom: 20px; }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field span {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  width: 100%;
  border-radius: 0;
  transition: border-color 0.3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field textarea { min-height: 140px; resize: vertical; }
.checks { display: grid; gap: 8px; }
.checks label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.form { position: relative; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-msg { font-size: 14px; }
.form-msg.ok { color: #2d5a3d; }
.form-msg.err { color: var(--danger); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}
.contact-aside .kicker { margin-bottom: 24px; }
.contact-meta {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 64px;
  color: var(--muted);
  font-size: 13px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-logo {
  display: block;
  height: 16px;
  width: auto;
  margin-bottom: 16px;
}
.footer-brand .brand-en {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
}
.site-footer a:hover { color: var(--ink); }
.fine { margin-top: 28px; font-size: 12px; letter-spacing: 0.02em; }

.photo-slot {
  min-height: 180px;
  border: 1px dashed var(--gold-soft);
  background: var(--paper);
  display: grid;
  place-items: center;
  color: var(--fill);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.fx-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 90;
  pointer-events: none;
  display: none;
}
html.fx-progress .fx-progress-bar { display: block; }

.fx-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 1px solid var(--gold);
  pointer-events: none;
  z-index: 95;
  display: none;
}
html.fx-goldCursor .fx-cursor { display: block; }

html.fx-grain body:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  opacity: 0.05;
  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");
}

html.fx-logoSheen .brand-mark.has-logo {
  position: relative;
  overflow: hidden;
}
html.fx-logoSheen .brand-mark.has-logo:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: fx-sheen 5.5s ease-in-out infinite;
}
@keyframes fx-sheen {
  0% { transform: translateX(0); }
  55%, 100% { transform: translateX(420%); }
}

html.fx-titleFade .hero h1 {
  animation: fx-title 1.1s ease both;
}
@keyframes fx-title {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

html.fx-photoZoom .photo-frame {
  transition: transform 0.8s ease;
}
html.fx-photoZoom .card:hover .photo-frame,
html.fx-photoZoom .photo:hover .photo-frame {
  transform: scale(1.04);
}

#app { opacity: 1; }

html:not(.fx-smoothScroll) { scroll-behavior: auto; }
html:not(.fx-navLine) .nav a:after { display: none; }
html:not(.fx-btnHover) .btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  letter-spacing: 0.16em;
}
html:not(.fx-btnHover) .btn.ghost:hover {
  background: transparent;
  color: var(--ink);
}
html:not(.fx-cardHover) .card:hover { border-color: var(--line); }
html:not(.fx-headerBlur) .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--bg);
  border-bottom-color: var(--line);
}
html:not(.fx-reveal) .section.reveal {
  opacity: 1;
  transform: none;
}

html.is-fx-page,
html.is-fx-page body {
  background: #fff;
  color: #333;
}
html.is-fx-page .site-header,
html.is-fx-page .site-header.is-scrolled {
  background: #fff;
  border-bottom: 1px solid #eee;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.is-fx-page .nav {
  background: #fff;
}
html.is-fx-page .site-footer {
  background: #fff;
  border-top-color: #eee;
}
html.is-fx-page .fx-list { border-top-color: #222; }
html.is-fx-page .fx-item { border-bottom-color: #eee; }
html.is-fx-page .kicker,
html.is-fx-page .caption,
html.is-fx-page .brand-jp,
html.is-fx-page .site-footer {
  color: #5b5b5b;
}
html.is-fx-page .btn.ghost {
  background: #fff;
}

.fx-studio .fx-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.fx-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.fx-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.fx-item input {
  margin-top: 5px;
  accent-color: var(--gold);
}
.fx-item-text { display: grid; gap: 6px; }
.fx-item-text strong {
  font-family: "Shippori Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 20px;
}
.fx-item-text em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-left: 10px;
}
.fx-item-text small {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .nav.open { display: flex; }
  .lang {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    padding-top: 8px;
  }
  .grid-3, .grid-2, .hero-grid, .split-lists, .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero { padding: 56px 0 48px; }
  .hero-bleed { height: 56vh; min-height: 280px; }
  .section { padding: 56px 0; }
  .photo.wide .photo-frame { height: 240px; }
  .steps:before { display: none; }
  .btn { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-bleed img,
  .photo-frame img {
    transform: none !important;
    will-change: auto;
  }
  .btn, .nav a, .nav a:after { transition: none; }
}
