

:root {
  --paper: #fbf7ef;
  --stone: #f1ebdd;
  --ink: #1a1714;
  --ink-2: rgba(26, 23, 20, 0.62);
  --line: rgba(26, 23, 20, 0.16);
  --gold: #b08a3e;
  --gold-soft: #c9a968;

  --gold-text: #9d7a33;
  --gold-dark: #8a6b2d;
  --maxw: 1060px;
  --narrow: 760px;
  --gutter: 22px;
  --serif: "Instrument Serif", "Shippori Mincho", serif;
  --jserif: "Shippori Mincho", "Instrument Serif", serif;
  --body: "Manrope", "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.narrow { max-width: var(--narrow); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.nav {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 22px;
}
.nav__brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--gold-dark);
}
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink);
  opacity: 0.5;
  transition: opacity 0.25s;
}
.nav__links a:hover { opacity: 1; }
.nav__pill {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  padding: 5px 15px;
  cursor: pointer;
  transition: all 0.3s;
}
.nav__pill:hover { background: var(--ink); color: var(--paper); }
.nav__burger { display: none; }

@media (max-width: 700px) {
  .nav__burger {
    display: grid; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px;
    justify-self: end;
  }
  .nav__burger span { width: 20px; height: 1.5px; background: var(--ink); }
  .nav__links {
    display: none;
    grid-column: 1 / -1;

    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 0 4px;
    border-top: 1px solid var(--line);
  }
  .nav__links.open { display: flex; }
  .nav__links a { display: block; padding: 14px 4px; }

  .nav__links .nav__pill { align-self: flex-start; margin: 8px 0 4px 4px; }
}

.hero { padding: 72px 0 48px; }

.hero__inner { position: relative; display: flex; align-items: stretch; gap: 44px; }
.hero__photo {
  position: absolute;

  top: 0; left: var(--gutter);
  width: 190px;
  height: 100%;
  object-fit: cover;

  object-position: 30% 25%;
  flex: 0 0 auto;
}
.hero__text { margin-left: 234px; }
.hero__tagline {
  font-family: var(--jserif);
  font-weight: 400;
  font-size: clamp(27px, 4.4vw, 42px);
  line-height: 1.55;
  margin-bottom: 20px;

  word-break: keep-all;
  overflow-wrap: anywhere;
  color: var(--gold-text);
}

html[lang="en"] .hero__tagline {
  font-size: clamp(24px, 3.6vw, 34px);

  line-height: 1.9;
}
.hero__sub { color: var(--ink-2); font-size: 15px; max-width: 30em; }
@media (max-width: 640px) {
  .hero { padding: 48px 0 36px; }
  .hero__inner { flex-direction: column-reverse; align-items: flex-start; }
  .hero__photo { position: static; width: 150px; height: 180px; }
  .hero__text { margin-left: 0; }
}

.doors {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding-top: 28px; padding-bottom: 16px;
}
.door {
  border: 1px solid rgba(26, 23, 20, 0.25);
  padding: 38px 32px;
  text-decoration: none;
  transition: all 0.3s;
}
.door:hover { border-color: var(--ink); background: var(--stone); }
.door__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--gold-text);
}
.door__desc { color: var(--ink-2); font-size: 13px; }
@media (max-width: 560px) { .doors { grid-template-columns: 1fr; } }

.section__label {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.45;
  font-weight: 500;
  margin: 0 0 26px;
}
.section__label::after { content: ""; height: 1px; flex: 1; background: var(--ink); opacity: 0.35; }
main section { padding: 44px 0; }

.vhero, .whero { background: var(--stone); padding: 64px 0; }
.vhero__line, .whero__line {
  font-family: var(--jserif);
  font-weight: 400;
  font-size: clamp(19px, 2.7vw, 26px);
  line-height: 2;
}

.demo { margin-bottom: 30px; }
.demo__title { font-size: 13px; letter-spacing: 0.04em; margin-bottom: 10px; }
.demos__dry { font-size: 13px; color: var(--ink-2); margin-top: 22px; }
.player {
  display: flex; align-items: center; gap: 14px;
  position: relative;
  contain: inline-size;
  padding: 2px 0;
}
.player__btn {
  background: none; border: 0; cursor: pointer; color: var(--ink);
  display: grid; place-items: center; flex: 0 0 auto;
  transition: all 0.3s;
}
.player__play {
  width: 42px; height: 42px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.player__play:hover { background: var(--ink); color: var(--paper); }
.player__vol, .player__more { width: 30px; height: 30px; opacity: 0.55; }
.player__vol:hover, .player__more:hover { opacity: 1; }
.player__btn svg { width: 17px; height: 17px; }
.player__time { font-size: 12px; color: var(--ink-2); white-space: nowrap; flex: 0 0 auto; }
.player__track { flex: 1; height: 2px; background: rgba(26, 23, 20, 0.18); cursor: pointer; min-width: 40px; }
.player__fill { height: 100%; width: 0; background: var(--gold); }
.player__menu {
  position: absolute; right: 4px; top: calc(100% + 6px); z-index: 5;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(26, 23, 20, 0.1);
}
.player__menu-item { display: block; padding: 10px 20px; font-size: 13px; text-decoration: none; white-space: nowrap; }
.player__menu-item:hover { background: var(--stone); }

.credits__list, .studio__list, .capability__list, .creds__list {
  list-style: none; display: grid; gap: 16px;
}
.credits__list li, .studio__list li, .capability__list li, .creds__list li {
  font-size: 14px;
  padding-left: 26px;
  position: relative;
}
.credits__list li::before, .studio__list li::before,
.capability__list li::before, .creds__list li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--gold);
}
.credits__list a, .capability__list a { color: var(--gold); text-underline-offset: 3px; }
.credits__list a:hover, .capability__list a:hover { color: var(--ink); }

.gv__text { font-size: 14px; margin-bottom: 10px; }
.gv__links { font-size: 14px; }
.gv__links + .gv__links { margin-top: 6px; }
.gv__links a { color: var(--gold); text-underline-offset: 3px; }
.gv__links a:hover { color: var(--ink); }

.gv__note { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

.offer__header {
  font-family: var(--jserif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.offer__body, .feature__body { font-size: 14px; color: var(--ink-2); }
.case { margin-bottom: 34px; padding-left: 26px; border-left: 1px solid var(--gold-soft); }
.case__title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.case__body { font-size: 14px; color: var(--ink-2); }
.case__facts { list-style: none; margin-top: 12px; font-size: 14px; display: grid; gap: 5px; }
.case__facts li { display: flex; gap: 12px; align-items: baseline; }
.case__facts-label {
  flex: 0 0 7.5em;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.case__facts-text { color: var(--ink-2); }
.case__link { font-size: 14px; margin-top: 8px; }
.case__link a { color: var(--gold); text-underline-offset: 3px; }
.case__link a:hover { color: var(--ink); }
.feature__body a { color: var(--gold); text-underline-offset: 3px; }
.feature__body a:hover { color: var(--ink); }

.contact { background: var(--stone); }
.contact__lead, .contact__ease { font-size: 14px; margin-bottom: 8px; }
.contact__ease { color: var(--ink-2); }
.form { display: grid; gap: 22px; margin-top: 26px; max-width: 560px; }
.form__botcheck { position: absolute; left: -9999px; }
.form__row { display: grid; gap: 4px; font-size: 12px; letter-spacing: 0.08em; }
.form__row span { opacity: 0.55; }
.form__row input, .form__row textarea {
  font-family: var(--body);
  font-size: 14px;
  border: 0;
  border-bottom: 1px solid rgba(26, 23, 20, 0.35);
  padding: 8px 2px;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
}
.form__row input:focus, .form__row textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.form__row input::placeholder, .form__row textarea::placeholder {
  color: rgba(26, 23, 20, 0.3);
  opacity: 1;
}
.form__status { font-size: 13px; color: var(--gold); }

.form__privacy {

  max-width: 560px; margin: 22px 0 0;
  font-size: 11px; line-height: 1.85; color: var(--ink-2);
}
.form__submit {
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.15em;
  background: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 40px;
  cursor: pointer;
  justify-self: start;
  transition: all 0.3s;
}
.form__submit:hover { background: var(--ink); color: var(--paper); }
.form__submit:disabled { opacity: 0.4; cursor: default; }

.footer {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 30px 22px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2);
}

@keyframes ink-rise {
  from { opacity: 0; transform: translateY(18px); }
}
.hero__photo, .hero__tagline, .hero__sub,
.vhero__line, .whero__line {
  animation: ink-rise 1.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero__photo   { animation-delay: 0.15s; }
.hero__tagline { animation-delay: 0.6s; }
.hero__sub     { animation-delay: 1.2s; }

.vhero__line, .whero__line {
  animation-duration: 4s;
  animation-delay: 0.5s;
  animation-timing-function: cubic-bezier(0.35, 0, 0.45, 1);
}

.reveal { opacity: 0; transform: translateY(24px); }
.reveal--in {
  opacity: 1;
  transform: none;
  transition: opacity 1.7s cubic-bezier(0.35, 0, 0.45, 1),
              transform 1.7s cubic-bezier(0.35, 0, 0.45, 1);
}

.reveal .section__label::after { opacity: 0; }
.reveal--in .section__label::after {
  opacity: 0.35;
  transition: opacity 1.25s cubic-bezier(0.35, 0, 0.45, 1) 1.7s;
}
@keyframes underline-fade {
  from { border-bottom-color: transparent; }
}
.reveal:not(.reveal--in) .form__row input,
.reveal:not(.reveal--in) .form__row textarea { border-bottom-color: transparent; }
.reveal--in .form__row input, .reveal--in .form__row textarea {
  animation: underline-fade 1.25s cubic-bezier(0.35, 0, 0.45, 1) 1.7s backwards;
}

@keyframes lang-fade { from { opacity: 0; transform: translateY(24px); } }
.langfade { animation: lang-fade 1.7s cubic-bezier(0.35, 0, 0.45, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo, .hero__tagline, .hero__sub,
  .vhero__line, .whero__line { animation: none; }

  .langfade { animation: none; }
  .reveal, .reveal--in { opacity: 1; transform: none; transition: none; }

  .reveal .section__label::after, .reveal--in .section__label::after { opacity: 0.35; transition: none; }
  .reveal:not(.reveal--in) .form__row input, .reveal:not(.reveal--in) .form__row textarea,
  .reveal--in .form__row input, .reveal--in .form__row textarea {
    border-bottom-color: rgba(26, 23, 20, 0.35);
    animation: none;
  }
}

.err__main { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 16px; padding: 40px 22px; }
.err__code { font-family: var(--serif); font-weight: 400; font-size: 72px; color: var(--gold); }
.err__msg { color: var(--ink-2); }
.err__home { color: var(--ink); text-underline-offset: 3px; }
