:root {
  --bg: #0a0908;
  --fg: #f4efe7;
  --muted: #a39b8f;
  --line: rgba(244, 239, 231, 0.18);
  --gold: #c9a46a;
  --serif-en: "Bodoni Moda", "Times New Roman", serif;
  --serif-ja: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans-ja: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --ease: cubic-bezier(0.2, 0.6, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; }
html.menu-open { overflow: hidden; }
section[id] { scroll-margin-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans-ja);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.sp { display: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
  transition: padding 0.3s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 9, 8, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.site-header.is-compact {
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header.is-compact::before { opacity: 1; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { width: auto; height: 60px; transform-origin: left center; transition: transform 0.3s var(--ease); }
.is-compact .logo-img { transform: scale(0.8); }
.nav { display: flex; gap: 32px; }
.nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; }

.hero {
  padding: 180px var(--gutter) 64px;
  text-align: center;
}
.hero-title {
  margin: 0;
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 148px);
  line-height: 1;
  letter-spacing: 0.04em;
}
.hero-title .line { display: inline-block; overflow: hidden; padding: 0 0.12em 0.08em; }
.hero-title .line > span {
  display: inline-block;
  transition: transform 1.2s var(--ease);
}
.js .hero-title .line > span { transform: translateY(110%); }
.hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { transition-delay: 0.24s; font-style: italic; }
.is-loaded .hero-title .line > span { transform: translateY(0); }
.hero-sub {
  margin: 28px 0 36px;
  font-family: var(--serif-ja);
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 0.24em;
  transition: opacity 1s var(--ease) 0.6s;
}
.hero .pill { transition: opacity 1s var(--ease) 0.8s, background 0.3s, color 0.3s; }
.js .hero-sub,
.js .hero .pill { opacity: 0; }
.is-loaded .hero-sub,
.is-loaded .hero .pill { opacity: 1; }

.pill {
  display: inline-block;
  padding: 10px 40px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.pill:hover { background: transparent; color: var(--fg); }

.slider {
  position: relative;
  margin: 0 var(--gutter);
  aspect-ratio: 16 / 9;
  max-height: 86vh;
  overflow: hidden;
  background: #1a1714;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s linear;
}
.slide.is-active { opacity: 1; }
.slide.is-active img { transform: scale(1); }
.slider-ctrl {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translateX(-50%);
}
html:not(.js) .slider-ctrl { display: none; }
.dots { display: flex; }
.dots button,
.slider-pause {
  position: relative;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dots button::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  transition: background 0.3s;
}
.dots button[aria-current="true"]::after { background: var(--fg); }
.slider-pause span,
.slider-pause span::after {
  position: absolute;
  top: 8px;
  left: 9px;
  width: 2px;
  height: 10px;
  background: var(--fg);
}
.slider-pause span::after { content: ""; top: 0; left: 6px; }
.slider-pause[aria-pressed="true"] span {
  left: 10px;
  width: 0;
  height: 0;
  background: none;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--fg);
}
.slider-pause[aria-pressed="true"] span::after { display: none; }
.dots button:focus-visible,
.slider-pause:focus-visible,
.pill:focus-visible,
.nav a:focus-visible,
.menu-btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--serif-en);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.2em;
}

.mission {
  max-width: 820px;
  margin: 0 auto;
  padding: 160px var(--gutter) 140px;
  text-align: center;
}
.mission-title {
  margin: 0 0 40px;
  font-family: var(--serif-ja);
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.6;
  letter-spacing: 0.18em;
}
.mission-text { margin: 0; color: #d8d1c6; }

.quote {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px var(--gutter) 160px;
}
.quote-img { overflow: hidden; }
.quote blockquote { margin: 0 0 36px; }
.quote blockquote p {
  margin: 0 0 16px;
  font-family: var(--serif-ja);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.75;
  letter-spacing: 0.1em;
}
.quote cite {
  display: block;
  color: var(--muted);
  font-family: var(--serif-en);
  font-style: normal;
  letter-spacing: 0.16em;
  text-align: right;
}
.quote-text { margin: 0; color: #cfc7bb; font-size: 14px; }

.section-head { text-align: center; margin-bottom: 96px; }
.section-title {
  margin: 0;
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.about .section-title { font-family: var(--serif-ja); font-size: clamp(28px, 3.6vw, 40px); letter-spacing: 0.2em; }

.service {
  padding: 140px var(--gutter);
  border-top: 1px solid var(--line);
}
.svc {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 140px;
}
.svc:last-child { margin-bottom: 0; }
.svc--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.svc--rev .svc-img { order: 2; }
.svc-img { overflow: hidden; aspect-ratio: 4 / 3; }
.svc--rev .svc-img { aspect-ratio: 3 / 4; max-width: 440px; justify-self: end; width: 100%; }
.svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.svc:hover .svc-img img { transform: scale(1.04); }
.svc-num {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--serif-en);
  font-style: italic;
  letter-spacing: 0.16em;
}
.svc-title {
  margin: 0 0 28px;
  font-family: var(--serif-ja);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.5;
  letter-spacing: 0.14em;
}
.svc-text { margin: 0 0 28px; color: #d8d1c6; font-size: 14px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.svc-tags li {
  padding: 2px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.about {
  padding: 140px var(--gutter);
  border-top: 1px solid var(--line);
}
.about-list { max-width: 720px; margin: 0 auto; }
.about-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.about-list div:first-child { border-top: 1px solid var(--line); }
.about-list dt { color: var(--muted); font-size: 13px; letter-spacing: 0.2em; }
.about-list dd { margin: 0; }
.about-list a { text-decoration: none; }

.cta {
  padding: 120px var(--gutter) 160px;
  text-align: center;
}
.cta-title {
  margin: 0 0 32px;
  font-family: var(--serif-ja);
  font-size: clamp(22px, 3.4vw, 38px);
  line-height: 1.7;
  letter-spacing: 0.14em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 40px;
  padding: 48px var(--gutter) 56px;
  border-top: 1px solid var(--line);
}
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.foot-nav a { font-size: 13px; text-underline-offset: 4px; }
.copy { margin: 0; color: var(--muted); font-size: 12px; }

.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .sp { display: inline; }
  .site-header { flex-wrap: wrap; gap: 8px 20px; }
  .nav { flex-wrap: wrap; gap: 4px 18px; }
  .js .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .js .nav a { font-family: var(--serif-en); font-size: 26px; }
  .js .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .js .menu-btn {
    position: relative;
    z-index: 60;
    display: block;
    width: 32px;
    height: 20px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--fg);
    transition: transform 0.4s var(--ease), top 0.4s var(--ease);
  }
  .menu-btn span:first-child { top: 5px; }
  .menu-btn span:last-child { top: 14px; }
  .menu-btn[aria-expanded="true"] span:first-child { top: 10px; transform: rotate(30deg); }
  .menu-btn[aria-expanded="true"] span:last-child { top: 10px; transform: rotate(-30deg); }
  .logo-img { height: 42px; }
  .is-compact .logo-img { transform: none; }

  .hero { padding-top: 140px; }
  .slider { margin: 0; aspect-ratio: 4 / 5; }
  .mission { padding: 110px var(--gutter) 90px; text-align: left; }
  .quote,
  .svc,
  .svc--rev { grid-template-columns: 1fr; }
  .quote { padding-bottom: 110px; }
  .svc--rev .svc-img { order: 0; justify-self: stretch; max-width: none; aspect-ratio: 4 / 3; }
  .svc { margin-bottom: 100px; }
  .service,
  .about { padding: 100px var(--gutter); }
  .section-head { margin-bottom: 64px; }
  .about-list div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; animation: none !important; }
  .js .reveal,
  .js .hero-sub,
  .js .hero .pill { opacity: 1; transform: none; }
  .js .hero-title .line > span { transform: none; }
}
