@charset "UTF-8";


:root {
  --black:      #000000;
  --sumi:       #1F1B17;
  --sumi-light: #2E2823;
  --dawn-end:   #3C2D23;
  --paper:      #EDE8DF;
  --akatsuki:   #C99775;
  --fallback:   #12100E;

  --gutter:   clamp(20px, 5vw, 72px);
  --nav-pad:  clamp(22px, 3.4vw, 44px);

  --font-ja: "Zen Old Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;
  --track:   0.3em;

  --ease-door: cubic-bezier(0.55, 0, 0.25, 1);
}


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

html {
  background-color: var(--black);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: transparent;
  color: var(--paper);
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: var(--track);
  -webkit-font-smoothing: antialiased;
}

@supports (animation-timeline: scroll()) {
  @keyframes dawn {
    from { background-color: var(--black); }
    to   { background-color: var(--dawn-end); }
  }
  html {
    animation: dawn linear both;
    animation-timeline: scroll(root block);
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

picture { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

main { display: block; }

figure { margin: 0; }

.concept__line,
.interlude__line,
.koshi__cap,
.flow__title {
  writing-mode: vertical-rl;
  white-space: nowrap;
}


.nav {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: flex;
  gap: 1.8em;
  padding: var(--nav-pad) var(--gutter);
  font-family: var(--font-ja);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.12em;
}

.nav a {
  opacity: 0.8;
  transition: opacity 0.6s ease;
}

.nav a:hover,
.nav a:focus-visible { opacity: 1; }

.nav a[aria-current="page"] {
  position: relative;
  opacity: 1;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.12em;
  bottom: -0.45em;
  height: 1px;
  background-color: var(--akatsuki);
}


.fv {
  position: relative;
  overflow-x: clip;
}

.fv__head {
  display: flex;
  justify-content: center;
  padding: clamp(120px, 18vh, 200px) var(--gutter) clamp(72px, 10vh, 120px);
}

.fv__logo {
  width: 160px;
  margin: 0;
  line-height: 0;
}

.fv__logo img { width: 100%; height: auto; }

.fv__cut {
  position: relative;
  overflow-x: clip;
}

.fv__photo {
  margin: 0;
  overflow: hidden;
  background-color: var(--sumi-light);
}

.fv__photo img { width: 100%; }

.fv__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  opacity: 0;
  pointer-events: none;
}

.fv__edge--left {
  left: 0;
  border-right: 1px solid var(--akatsuki);
}

.fv__edge--right {
  left: 50%;
  border-left: 1px solid var(--akatsuki);
}


.concept {
  display: flex;
  justify-content: center;
  padding: clamp(120px, 18svh, 220px) var(--gutter);
}

.concept__line {
  text-orientation: upright;
  margin: 0;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.35em;
}


.cut--bare {
  padding: 0 0 clamp(64px, 10svh, 120px);
}

.cut__figure {
  width: min(420px, calc(100vw - var(--gutter) * 2));
  margin-inline: auto;
  background-color: var(--sumi-light);
}

.cut__figure img { width: 100%; }

.more__link {
  margin: 0;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.32em;
}

.more__link a {
  display: inline-flex;
  align-items: center;
  gap: 1.6em;
  opacity: 0.8;
  transition: opacity 0.8s ease;
}

.more__arrow {
  position: relative;
  width: 40px;
  height: 1px;
  background-color: var(--akatsuki);
  opacity: 0.6;
  transition: width 0.8s ease, opacity 0.8s ease;
}

.more__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--akatsuki);
  border-right: 1px solid var(--akatsuki);
  transform: rotate(45deg);
}

.more__link a:hover,
.more__link a:focus-visible { opacity: 1; }

.more__link a:hover .more__arrow,
.more__link a:focus-visible .more__arrow { width: 56px; opacity: 1; }

.more__link a:focus-visible {
  outline: 1px solid var(--akatsuki);
  outline-offset: 6px;
}

.cut__more {
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
}


.interlude {
  display: flex;
  justify-content: center;
  padding: clamp(140px, 26svh, 280px) var(--gutter);
}

.interlude__line {
  position: relative;
  margin: 0;
  padding-top: calc(56px + 1.6em);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.34em;
}

.interlude__line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 56px;
  margin-left: -0.5px;
  background-color: var(--akatsuki);
}


.koshi {
  position: relative;
  overflow-x: clip;
}

.koshi__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 64px var(--gutter);
}

.koshi__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 20px);
  width: min(1120px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.koshi__bar {
  position: relative;
}

.koshi__link {
  display: block;
  color: inherit;
}

.koshi__link picture { transition: opacity 0.7s ease; }

@media (hover: hover) {
  .koshi__link:hover picture { opacity: 0.78; }
}

.koshi__link:focus-visible {
  outline: 1px solid var(--akatsuki);
  outline-offset: 8px;
}

.koshi__slit {
  position: relative;
  height: min(68svh, 680px);
  overflow: hidden;
  background-color: var(--sumi-light);
}

.koshi__slit picture { height: 100%; }

.koshi__slit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.koshi__bar--1 img { object-position: 50% 50%; }
.koshi__bar--2 img { object-position: 42% 50%; }
.koshi__bar--3 img { object-position: 30% 50%; }
.koshi__bar--4 img { object-position: 62% 50%; }

.koshi__bar::before,
.koshi__bar::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: min(68svh, 680px);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.koshi__bar::before {
  left: 0;
  border-right: 1px solid var(--akatsuki);
}

.koshi__bar::after {
  left: 50%;
  border-left: 1px solid var(--akatsuki);
}

.koshi__cap {
  margin: 22px auto 0;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.4em;
  opacity: 0.85;
}


.flow {
  padding: clamp(120px, 20svh, 220px) var(--gutter) clamp(120px, 18svh, 200px);
}

.flow__title {
  margin: 0 auto clamp(48px, 8svh, 80px);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.34em;
}

.flow__list {
  position: relative;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.flow__list::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  background-color: var(--akatsuki);
  transform-origin: 50% 0;
}

.flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 7vw, 72px);
  align-items: start;
  padding-bottom: clamp(72px, 13svh, 128px);
}

.flow__step:last-child { padding-bottom: 32px; }

.flow__step::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.9em;
  width: 14px;
  height: 1px;
  margin-left: -7px;
  background-color: var(--akatsuki);
}

.flow__num {
  justify-self: end;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--akatsuki);
  padding-top: 0.34em;
}

.flow__label {
  justify-self: start;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: var(--track);
}

.flow__phrase {
  display: inline-block;
}

@media (min-width: 768px) {
  .flow__step  { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .flow__label { white-space: nowrap; }
}

.flow__label small {
  display: block;
  margin-top: 0.3em;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.flow__notes {
  margin: 3em auto 0;
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.12em;
  text-align: center;
}

.flow__note {
  margin: 0;
  color: rgba(237, 232, 223, 0.8);
  line-break: strict;
  word-break: auto-phrase;
}

.flow__note + .flow__note { margin-top: 0.8em; }

.flow__sentence {
  display: inline-block;
}

.flow__nobr {
  white-space: nowrap;
}


.finale {
  position: relative;
  overflow-x: clip;
}

.finale__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finale__photo {
  --ph: min(100svh, 66.667vw);
  width: 100%;
  height: var(--ph);
  overflow: hidden;
}

.finale__photo picture { height: 100%; }

.finale__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.finale__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  opacity: 0;
  pointer-events: none;
}

.finale__edge--left {
  left: 0;
  border-right: 1px solid var(--akatsuki);
}

.finale__edge--right {
  left: 50%;
  border-left: 1px solid var(--akatsuki);
}


.footer {
  margin-top: clamp(64px, 10svh, 120px);
  padding: 0 var(--gutter) clamp(56px, 10svh, 110px);
  text-align: center;
  background-color: var(--black);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.95)),
    image-set(url("../img/photo/wood-1000.webp") type("image/webp"),
              url("../img/photo/wood-1000.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 50% 50%;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.2em;
}

.home-page .footer { margin-top: 0; }

.footer__rule {
  display: block;
  height: 1px;
  margin: 0 calc(var(--gutter) * -1) clamp(56px, 10svh, 96px);
  background-color: var(--akatsuki);
  transform-origin: 50% 50%;
}

.footer p { margin: 0; }

.footer__logo {
  width: 72px;
  margin: 0 auto 20px !important;
}

.footer__logo img { width: 100%; }

.footer .footer__ig {
  margin: 0 0 10px;
  line-height: 0;
}

.footer__ig a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.footer__ig img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition: opacity 0.6s ease;
}

.footer__ig a:hover img,
.footer__ig a:focus-visible img { opacity: 1; }

.footer__ig a:focus-visible {
  outline: 1px solid var(--akatsuki);
  outline-offset: 2px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: clamp(18px, 4vw, 40px);
  margin: clamp(28px, 5svh, 48px) 0 22px;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  opacity: 0.8;
  transition: opacity 0.6s ease;
}

.footer__nav a:hover,
.footer__nav a:focus-visible { opacity: 1; }

.footer__nav a:focus-visible {
  outline: 1px solid var(--akatsuki);
  outline-offset: 2px;
}

.footer__nav a[aria-current="page"] {
  position: relative;
  opacity: 1;
}

.footer__nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 4px;
  right: calc(4px + 0.2em);
  bottom: 8px;
  height: 1px;
  background-color: var(--akatsuki);
}

.footer__copy {
  opacity: 0.8;
}

@media (min-width: 768px) {
  .footer {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.95)),
      image-set(url("../img/photo/wood-1600.webp") type("image/webp"),
                url("../img/photo/wood-1600.jpg") type("image/jpeg"));
  }
}


.totop {
  position: fixed;
  right: calc(var(--gutter) - 12px + env(safe-area-inset-right, 0px));
  bottom: calc(clamp(18px, 3.2svh, 36px) + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.12em;
}

.nav:focus { outline: none; }

.totop__line {
  display: block;
  width: 1px;
  height: 28px;
  background-color: var(--paper);
  opacity: 0.36;
  transition: opacity 0.6s ease;
}

.totop__label {
  display: block;
  margin-right: -0.12em;
  opacity: 0.8;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 0.7), 0 0 12px rgba(0, 0, 0, 0.6);
  transition: opacity 0.6s ease;
}

.totop:hover .totop__label,
.totop:focus-visible .totop__label { opacity: 1; }

.totop:hover .totop__line,
.totop:focus-visible .totop__line { opacity: 0.6; }

.totop:focus-visible {
  outline: 1px solid var(--akatsuki);
  outline-offset: 2px;
}

.totop-watch .totop:not(.is-shown) {
  opacity: 0;
  visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .totop { transition: opacity 0.8s ease, visibility 0s linear 0s; }
  .totop-watch .totop:not(.is-shown) { transition: opacity 0.8s ease, visibility 0s linear 0.8s; }
}


@media (max-width: 767px) {
  body { font-size: 14px; }

  .fv__logo { width: 120px; }

  .cut__figure { width: 74vw; }

  .interlude__line { font-size: 15px; }

  .koshi__stage { padding: 48px 20px; }
  .koshi__list { gap: 10px; }
  .koshi__slit,
  .koshi__bar::before,
  .koshi__bar::after { height: 54svh; }
  .koshi__cap { font-size: 13px; letter-spacing: 0.34em; margin-top: 16px; }

  .flow__step { column-gap: 28px; }
  .flow__label { font-size: 15px; }
  .flow__num { font-size: 17px; }
}


@media (prefers-reduced-motion: no-preference) {
  @keyframes fv-seam-draw {
    from { scale: 1 0; }
    to   { scale: 1 1; }
  }
  @keyframes fv-seam-left {
    from { translate: 0 0; }
    to   { translate: -100% 0; }
  }
  @keyframes fv-seam-right {
    from { translate: 0 0; }
    to   { translate: 100% 0; }
  }
  @keyframes fv-seam-show {
    0%, 80% { opacity: 1; }
    100%    { opacity: 0; }
  }
  @keyframes fv-slit {
    from { clip-path: inset(0 50% 0 50%); }
    to   { clip-path: inset(0 0 0 0); }
  }
  @keyframes fv-settle {
    from { scale: 1.14; }
    to   { scale: 1; }
  }

  .js .fv__photo {
    animation: fv-slit 0.7s var(--ease-door) 0.55s both;
  }
  .js .fv__photo img {
    animation: fv-settle 0.7s var(--ease-door) 0.55s both;
  }

  .js .fv__edge {
    transform-origin: 50% 0;
    animation:
      fv-seam-show 1.25s linear 0s both,
      fv-seam-draw 0.35s cubic-bezier(0.65, 0, 0.2, 1) 0.2s both,
      fv-seam-left 0.7s var(--ease-door) 0.55s both;
  }
  .js .fv__edge--right {
    animation-name: fv-seam-show, fv-seam-draw, fv-seam-right;
  }
}


@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    @keyframes draw-x {
      from { scale: 0 1; }
      to   { scale: 1 1; }
    }
    @keyframes draw-y {
      from { scale: 1 0; }
      to   { scale: 1 1; }
    }
    @keyframes show {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
    @keyframes hide {
      from { opacity: 1; }
      to   { opacity: 0; }
    }
    @keyframes rise {
      from { opacity: 0; translate: 0 14px; }
      to   { opacity: 1; translate: 0 0; }
    }
    @keyframes open-y {
      from { clip-path: inset(50% 0 50% 0); }
      to   { clip-path: inset(0 0 0 0); }
    }
    @keyframes open-x {
      from { clip-path: inset(0 50% 0 50%); }
      to   { clip-path: inset(0 0 0 0); }
    }
    @keyframes settle {
      from { scale: 1.14; }
      to   { scale: 1; }
    }

    .concept__line,
    .cut__figure,
    .cut__more {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 100%;
    }

    .interlude__line {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 45%;
    }


    .door .koshi__slit     { clip-path: inset(0 50% 0 50%); }
    .door .koshi__slit img { scale: 1.14; }
    .door .koshi__cap      { opacity: 0; translate: 0 14px; }

    .door .koshi__bar::before,
    .door .koshi__bar::after {
      opacity: 1;
      transform-origin: 50% 0;
      scale: 1 0;
    }

    .koshi__list   { --draw: 0.35s; }
    .koshi__bar--1 { --d: 0.04s; --t: 0.75s; }
    .koshi__bar--2 { --d: 0.15s; --t: 0.9s; }
    .koshi__bar--3 { --d: 0s;    --t: 0.55s; }
    .koshi__bar--4 { --d: 0.25s; --t: 0.7s; }

    .door .koshi.is-open .koshi__bar::before,
    .door .koshi.is-open .koshi__bar::after {
      scale: 1 1;
      translate: -100% 0;
      opacity: 0;
      transition:
        scale var(--draw) cubic-bezier(0.65, 0, 0.2, 1) var(--d),
        translate var(--t) var(--ease-door) calc(var(--d) + var(--draw)),
        opacity 0.25s linear calc(var(--d) + var(--draw) + var(--t) - 0.25s);
    }
    .door .koshi.is-open .koshi__bar::after { translate: 100% 0; }

    .door .koshi.is-open .koshi__slit {
      clip-path: inset(0 0 0 0);
      transition: clip-path var(--t) var(--ease-door) calc(var(--d) + var(--draw));
    }
    .door .koshi.is-open .koshi__slit img {
      scale: 1;
      transition: scale var(--t) var(--ease-door) calc(var(--d) + var(--draw));
    }
    .door .koshi.is-open .koshi__cap {
      opacity: 0.85;
      translate: 0 0;
      transition:
        opacity 0.5s ease calc(var(--d) + var(--draw) + var(--t)),
        translate 0.5s ease calc(var(--d) + var(--draw) + var(--t));
    }

    .flow__title {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 40%;
    }

    .flow__list::before {
      animation: draw-y linear both;
      animation-timeline: view();
      animation-range: cover 40svh cover calc(100% - 60svh);
    }

    @keyframes light {
      from { opacity: 0.16; }
      to   { opacity: 1; }
    }

    .flow__num,
    .flow__label {
      animation: light linear both;
      animation-timeline: --step;
      animation-range: cover 38svh cover 46svh;
    }

    .flow__step {
      view-timeline: --step block;
    }

    .flow__note {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 100%;
    }

    .flow__step::before {
      animation: draw-x linear both;
      animation-timeline: --step;
      animation-range: cover 39svh cover 43svh;
    }

    .door .finale__photo     { clip-path: inset(0 50% 0 50%); }
    .door .finale__photo img { scale: 1.14; }

    .door .finale__edge {
      opacity: 1;
      transform-origin: 50% 0;
      scale: 1 0;
    }

    .door .finale.is-open .finale__photo {
      clip-path: inset(0 0 0 0);
      transition: clip-path 0.75s var(--ease-door) 0.35s;
    }
    .door .finale.is-open .finale__photo img {
      scale: 1;
      transition: scale 0.75s var(--ease-door) 0.35s;
    }
    .door .finale.is-open .finale__edge {
      scale: 1 1;
      translate: -100% 0;
      opacity: 0;
      transition:
        scale 0.35s cubic-bezier(0.65, 0, 0.2, 1),
        translate 0.75s var(--ease-door) 0.35s,
        opacity 0.25s linear 0.85s;
    }
    .door .finale.is-open .finale__edge--right { translate: 100% 0; }

    .footer__rule {
      animation: draw-x linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
  }
}


@media (prefers-reduced-motion: reduce) {
  html { animation: none; background-color: var(--fallback); }
}
