/* ==========================================================================
   暮地 桃 — Mountain Photographer Portfolio（サンプルサイト）

   1. Tokens
   2. Base
   3. Utilities & shared parts
   4. Header / Notice
   5. Hero
   6. Section heading
   7. Works
   8. Numbers
   9. About
   10. Service
   11. Join
   12. Contact
   13. Footer
   14. Menu (dialog)
   15. Lightbox (dialog)
   16. Motion
   ========================================================================== */


/* 1. Tokens
   ========================================================================== */

:root {
  /* 朝霧の紙色と、夜の山の墨色。アクセントは名前にちなんだ桃色（モルゲンロート） */
  --paper: #f4f1ec;
  --paper-2: #ebe6df;
  --ink: #1d2220;
  --ink-2: #4b524e;
  --muted: #5d635f;
  --line: rgb(29 34 32 / 0.14);
  --peach: #e5a08b;
  --peach-soft: #efbcab;
  --peach-deep: #a8573f;
  --night: #141917;
  --on-night: #ece8e1;
  --on-night-muted: #a3a8a4;
  --line-night: rgb(236 232 225 / 0.16);

  --ff-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --ff-gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --ff-latin: "Cormorant Garamond", "Garamond", "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1440px;
  --header-h: 64px;
  --notice-h: 60px; /* JS で実測値に更新される */
  --section-space: clamp(96px, 14vw, 184px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 640px) {
  :root { --notice-h: 42px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; }
}


/* 2. Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

html.is-locked {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-gothic);
  font-size: 0.9375rem;
  line-height: 1.95;
  letter-spacing: 0.04em;
  font-kerning: normal;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body { font-size: 1rem; }
}

h1, h2, h3, p, figure, dl, dd {
  margin: 0;
}

h1, h2, h3 {
  font-weight: inherit;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--peach-deep);
  outline-offset: 4px;
  border-radius: 2px;
}

/* 暗い背景の上では、フォーカス枠を明るい桃色に */
.join :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible,
.site-header.is-dark :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--peach);
}

[tabindex="-1"]:focus {
  outline: none;
}

::selection {
  background: var(--peach-soft);
  color: var(--ink);
}


/* 3. Utilities & shared parts
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}

/* 日本語の見出しを文節で折り返すための塊 */
.phrase {
  display: inline-block;
}

.section {
  padding-block: var(--section-space);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.logo {
  font-family: var(--ff-latin);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 359.98px) {
  .logo { letter-spacing: 0.14em; }
}

.badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 3px 9px 2px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--ff-gothic);
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* 注意書き（作品セクション・フッター共通） */
.sample-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.5);
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.75;
}

.sample-note .badge {
  margin-top: 2px;
  color: var(--peach-deep);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  transition: background-color 0.35s, border-color 0.35s, color 0.35s;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--ease-out);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

.btn--light {
  background: var(--on-night);
  color: var(--night);
}

.btn--light:hover {
  background: var(--peach-soft);
}

.btn--peach {
  background: var(--peach);
  color: var(--night);
}

.btn--peach:hover {
  background: var(--peach-soft);
}

.btn--ghost {
  border-color: var(--line-night);
  color: var(--on-night);
}

.btn--ghost:hover {
  border-color: var(--on-night);
}


/* 4. Header / Notice
   ========================================================================== */

/* 注意書き（1）ページ上部 */
.notice {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px var(--gutter);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.notice .badge {
  color: var(--peach);
}

/* 注意書き内の「Visraに戻る」リンク（上部・フッター共通） */
.sample-back {
  display: inline-block;
  color: var(--peach);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.sample-back:hover {
  opacity: 0.75;
}

/* 「Visraに戻る」の手前のすき間（文とリンクのあいだの空白1文字を、字間で広げて 0.75em にしている）。
   空白は行の終わりでは消えるので、リンクが次の行に送られても左端が上下の文とそろう */
.note-text {
  letter-spacing: 0.47em;
}

/* 中の文とリンクの字間は、もとのまま（上部の注意書きは 0.06em、フッターは本文と同じ 0.04em） */
.note-text > * {
  letter-spacing: 0.06em;
}

.sample-note .note-text > * {
  letter-spacing: 0.0375rem;
}

@media (min-width: 768px) {
  .sample-note .note-text > * {
    letter-spacing: 0.04rem;
  }
}

.site-header {
  --header-fg: var(--ink);
  --header-bg: rgb(244 241 236 / 0.86);
  --header-line: var(--line);

  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--header-fg);
  transition: transform 0.5s var(--ease-out), color 0.4s;
}

/* 暗いセクションの上では、ヘッダーも夜の色に */
.site-header.is-dark {
  --header-fg: var(--on-night);
  --header-bg: rgb(20 25 23 / 0.8);
  --header-line: var(--line-night);
}

/* スクロール後にだけ現れる、すりガラスの背景 */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--header-line);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  opacity: 0;
  transition: opacity 0.4s, background-color 0.4s, border-color 0.4s;
}

.site-header.is-solid::before {
  opacity: 1;
}

.site-header.is-hidden:not(:focus-within) {
  transform: translateY(-100%);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - var(--gutter) * 2, var(--maxw));
  height: 100%;
  margin-inline: auto;
}

.gnav {
  display: none;
}

.gnav__list {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.8vw, 44px);
}

.gnav a {
  position: relative;
  display: inline-block;
  padding-block: 8px;
  font-family: var(--ff-latin);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.gnav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.gnav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.gnav .gnav__cta {
  padding: 9px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  /* 継承色のトランジションが二重にかからないよう、色は変数から直接受け取る */
  color: var(--header-fg);
  transition: background-color 0.3s, color 0.3s;
}

.gnav .gnav__cta::after {
  content: none;
}

.gnav .gnav__cta:hover {
  background: var(--header-fg);
  color: var(--paper);
}

.site-header.is-dark .gnav__cta:hover {
  color: var(--night);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-right: -6px;
  padding-inline: 6px;
  font-family: var(--ff-latin);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.js .menu-btn {
  display: inline-flex;
}

.menu-btn__icon {
  position: relative;
  width: 26px;
  height: 9px;
}

.menu-btn__icon::before,
.menu-btn__icon::after {
  content: "";
  position: absolute;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), width 0.4s var(--ease-out);
}

.menu-btn__icon::before {
  top: 0;
  width: 100%;
}

.menu-btn__icon::after {
  bottom: 0;
  width: 62%;
}

.menu-btn:hover .menu-btn__icon::after {
  width: 100%;
}

.menu-btn--close .menu-btn__icon {
  width: 20px;
  height: 20px;
}

.menu-btn--close .menu-btn__icon::before,
.menu-btn--close .menu-btn__icon::after {
  top: 50%;
  bottom: auto;
  width: 100%;
}

.menu-btn--close .menu-btn__icon::before {
  transform: rotate(45deg);
}

.menu-btn--close .menu-btn__icon::after {
  transform: rotate(-45deg);
}

@media (min-width: 1024px) {
  .gnav { display: block; }
  .js .menu-btn { display: none; }
}


/* 5. Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  height: calc(100vh - var(--notice-h));
  height: calc(100svh - var(--notice-h));
  min-height: 560px;
  margin-top: calc(var(--header-h) * -1);
  overflow: hidden;
  /* 読み込み中は写真と同じ「朝焼け→山の青→霧」の色で待たせる */
  background: linear-gradient(#e8d6ca, #a9b9c7 55%, var(--paper));
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
  animation: hero-zoom 3.6s var(--ease-out) both;
}

/* 下端を紙色の霧へ溶かし、次のセクションへつなげる */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 48%;
  background: linear-gradient(
    to top,
    var(--paper) 0%,
    rgb(244 241 236 / 0.82) 22%,
    rgb(244 241 236 / 0.35) 58%,
    rgb(244 241 236 / 0) 100%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - var(--gutter) * 2, var(--maxw));
  height: 100%;
  margin-inline: auto;
}

/* キャッチコピーは縦書きで */
.hero__catch {
  position: absolute;
  top: calc(var(--header-h) + clamp(20px, 5vh, 64px));
  right: 0;
  font-family: var(--ff-mincho);
  font-weight: 500;
  writing-mode: vertical-rl;
  /* 画面が低く文字が山に重なるときも読めるよう、朝霧のような淡いにじみを敷く */
  text-shadow: 0 0 14px rgb(244 241 236 / 0.75), 0 0 2px rgb(244 241 236 / 0.5);
  animation: rise-down 1.8s var(--ease-out) 0.5s both;
}

.hero__catch-main {
  display: block;
  font-size: clamp(1.75rem, 3.4vw + 0.9rem, 3.25rem);
  line-height: 1.55;
  letter-spacing: 0.2em;
}

.hero__catch-sub {
  display: block;
  margin-block-start: clamp(10px, 1.6vw, 22px);
  margin-inline-start: 5.5em;
  color: var(--ink-2);
  font-size: clamp(0.875rem, 0.4vw + 0.8rem, 1.125rem);
  line-height: 1.8;
  letter-spacing: 0.32em;
}

.hero__intro {
  position: absolute;
  bottom: clamp(36px, 8vh, 88px);
  left: 0;
  animation: rise-up 1.6s var(--ease-out) 0.9s both;
}

.hero__role {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-2);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero__role::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero__name {
  margin-top: 12px;
  font-family: var(--ff-mincho);
  font-size: clamp(2.75rem, 6vw + 1rem, 6rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.14em;
}

.hero__name rt {
  ruby-align: center;
  font-family: var(--ff-gothic);
  font-size: max(10px, 0.17em);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ink-2);
}

.hero__name-en {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-family: var(--ff-latin);
  font-size: clamp(1.125rem, 0.8vw + 0.9rem, 1.5rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.hero__scroll {
  position: absolute;
  right: 0;
  bottom: clamp(36px, 8vh, 88px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px;
  margin-right: -6px;
  color: var(--ink-2);
  font-family: var(--ff-latin);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  animation: fade-in 1.2s ease 1.6s both;
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 64px;
  overflow: hidden;
  background: rgb(29 34 32 / 0.18);
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: scroll-line 2.6s var(--ease-in-out) infinite;
}

@media (min-width: 1024px) {
  .hero__media img { object-position: 50% 50%; }
  .hero__catch { top: calc(var(--header-h) + clamp(32px, 8vh, 96px)); }
}


/* 6. Section heading
   ========================================================================== */

.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head__label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--peach-deep);
  font-family: var(--ff-latin);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.section-head__label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.section-head__title {
  margin-top: 14px;
  font-family: var(--ff-mincho);
  font-size: clamp(1.625rem, 2vw + 1.1rem, 2.5rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
  font-feature-settings: "palt";
  word-break: auto-phrase;
  text-wrap: balance;
}

.section-head__lead {
  margin-top: 16px;
  color: var(--ink-2);
}

/* 短い文は文節で折り返し、最後の行に1〜2文字だけ残らないように */
.section-head__lead,
.sample-note,
.notice,
.work__title,
.svc__desc,
.service__note,
.numbers__note,
.about__facts,
.join__lead {
  word-break: auto-phrase;
  text-wrap: pretty;
}


/* 7. Works
   ========================================================================== */

.works .section-head {
  margin-bottom: 28px;
}

.works .sample-note {
  margin-bottom: clamp(48px, 7vw, 88px);
}

.works__list {
  display: grid;
  row-gap: clamp(56px, 9vw, 96px);
}

.work__link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ph, var(--paper-2));
  cursor: zoom-in;
}

.work__img {
  width: 100%;
  transition: opacity 0.9s ease, transform 1.4s var(--ease-out);
}

.work__caption {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 14px;
  margin-top: 14px;
  padding-inline: var(--gutter);
}

.work__no {
  grid-row: span 2;
  color: var(--peach-deep);
  font-family: var(--ff-latin);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: lining-nums;
}

.work__title {
  font-family: var(--ff-mincho);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.work__meta {
  color: var(--muted);
  font-family: var(--ff-latin);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

/* スマホ・タブレット：横長は全幅、縦長は少し内側に置いてリズムをつくる */
.work--tall-left .work__figure,
.work--tall-right .work__figure {
  width: min(84%, 72vh * var(--ratio, 0.75));
  width: min(84%, 72svh * var(--ratio, 0.75));
}

.work--tall-right .work__figure {
  margin-left: auto;
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .work--tall-left .work__figure,
  .work--tall-right .work__figure {
    width: min(72%, 72vh * var(--ratio, 0.75));
    width: min(72%, 72svh * var(--ratio, 0.75));
  }
}

/* PC：12カラムの編集的なレイアウト */
@media (min-width: 1024px) {
  .works__list {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    column-gap: clamp(20px, 2vw, 32px);
    row-gap: clamp(120px, 11vw, 176px);
    width: min(100% - var(--gutter) * 2, var(--maxw));
    margin-inline: auto;
  }

  .work__caption {
    padding-inline: 0;
  }

  .work--tall-left .work__figure,
  .work--tall-right .work__figure {
    width: auto;
  }

  .work--full { grid-column: 1 / -1; }
  .work--tall-left { grid-column: 1 / span 5; }
  .work--pair-right { grid-column: 7 / span 6; align-self: end; }
  .work--wide { grid-column: 2 / span 10; }
  .work--pair-left { grid-column: 1 / span 7; }
  .work--tall-right { grid-column: 9 / span 4; margin-top: clamp(120px, 14vw, 240px); }
  .work--center { grid-column: 3 / span 8; }

  /* 全幅の作品はシネマ比率に */
  .work--full .work__link {
    aspect-ratio: 16 / 9;
  }

  .work--full .work__img {
    height: 100%;
    object-fit: cover;
  }
}

@media (hover: hover) {
  .work__link:hover .work__img {
    transform: scale(1.035);
  }

  /* 拡大できることを示す小さな丸 */
  .work__link::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2220' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
      center / 18px no-repeat,
      rgb(244 241 236 / 0.92);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s, transform 0.5s var(--ease-out);
  }

  .work__link:hover::after,
  .work__link:focus-visible::after {
    opacity: 1;
    transform: none;
  }
}

.work__link:focus-visible {
  outline-offset: 6px;
}


/* 8. Numbers
   ========================================================================== */

.numbers {
  background: var(--paper-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px 4px 26px 0;
  border-bottom: 1px solid var(--line);
}

.stat:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat__num {
  display: inline-block;
  font-family: var(--ff-latin);
  font-size: clamp(3.25rem, 5vw + 1.5rem, 6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: lining-nums tabular-nums;
}

.stat__unit {
  font-family: var(--ff-mincho);
  font-size: clamp(0.9375rem, 0.4vw + 0.85rem, 1.125rem);
  font-weight: 500;
}

.stat__label {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

.numbers__note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat,
  .stat:nth-child(even) {
    padding: 36px 12px 34px clamp(20px, 2.4vw, 36px);
  }

  .stat + .stat {
    border-left: 1px solid var(--line);
  }

  .stat:first-child {
    padding-left: 0;
  }
}


/* 9. About
   ========================================================================== */

.about__photo {
  overflow: hidden;
  background: var(--ph, var(--paper-2));
}

.about__img {
  width: 100%;
  transition: opacity 0.9s ease;
}

.about__body {
  width: min(100% - var(--gutter) * 2, 34rem);
  margin: clamp(48px, 9vw, 72px) auto 0;
}

.about__text p + p {
  margin-top: 1.2em;
}

.about__text {
  line-height: 2.1;
}

.about__profile {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about__sign {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  font-family: var(--ff-mincho);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.about__sign span {
  color: var(--muted);
  font-family: var(--ff-latin);
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.about__facts {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.8;
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .about__photo {
    width: min(100% - var(--gutter) * 2, 34rem);
    margin-inline: auto;
  }
}

@media (min-width: 1024px) {
  .about__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    column-gap: clamp(20px, 2vw, 32px);
    width: min(100% - var(--gutter) * 2, var(--maxw));
    margin-inline: auto;
  }

  .about__photo {
    grid-column: 1 / span 6;
  }

  .about__body {
    grid-column: 8 / span 5;
    width: auto;
    margin: 0;
  }
}


/* 10. Service
   ========================================================================== */

.service__list {
  border-top: 1px solid var(--line);
  counter-reset: svc;
}

.svc {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  grid-template-areas:
    "no    title"
    ".     desc"
    ".     price";
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
  counter-increment: svc;
}

.svc::before {
  content: counter(svc, decimal-leading-zero);
  grid-area: no;
  color: var(--peach-deep);
  font-family: var(--ff-latin);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.06em;
  font-variant-numeric: lining-nums;
}

.svc__title {
  grid-area: title;
  font-family: var(--ff-mincho);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.svc__desc {
  grid-area: desc;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.85;
}

.svc__price {
  grid-area: price;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}

.svc__amount {
  font-family: var(--ff-latin);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums;
}

.svc__from {
  margin-left: 0.15em;
  font-family: var(--ff-gothic);
  font-size: 0.5em;
  font-weight: 400;
}

.svc__unit {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

.service__note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .svc {
    grid-template-columns: 4.5rem 1fr auto;
    grid-template-areas:
      "no title price"
      ".  desc  price";
    column-gap: 24px;
    padding-block: 36px;
  }

  .svc__price {
    align-self: center;
    justify-self: end;
    margin-top: 0;
  }

  .svc__amount {
    font-size: 2.125rem;
  }
}


/* 11. Join
   ========================================================================== */

.join {
  position: relative;
  isolation: isolate;
  background: var(--night);
  color: var(--on-night);
}

/* 読み込み中の仮の色は写真の色味に寄せ、下端は夜色にして継ぎ目を出さない */
.join__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(#cdb59c, #6b5544 55%, var(--night));
}

.join__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  transition: opacity 0.9s ease;
}

.join__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 下端は少し手前で夜色に塗りきり、写真との継ぎ目を見せない */
  background: linear-gradient(to bottom, rgb(20 25 23 / 0) 45%, rgb(20 25 23 / 0.7) 75%, var(--night) 97%);
}

.join__inner {
  position: relative;
  z-index: 1;
  margin-top: clamp(-180px, -30vw, -96px);
  padding-bottom: clamp(48px, 10vw, 80px);
}

.join .section-head__label {
  color: var(--peach);
}

.join__title {
  margin-top: 14px;
  font-family: var(--ff-mincho);
  font-size: clamp(1.75rem, 2.4vw + 1rem, 3rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
  font-feature-settings: "palt";
}

.join__lead {
  max-width: 26em;
  margin-top: 18px;
  color: var(--on-night-muted);
  font-size: 0.875rem;
}

.join .btn {
  margin-top: 32px;
}

@media (max-width: 639.98px) {
  .join .btn {
    width: 100%;
  }
}

/* タブレット縦：写真は横長にして、二人とも画面に収める */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .join__media {
    aspect-ratio: 16 / 10;
  }
}

/* PC：写真の上に文字を重ねる */
@media (min-width: 1024px) {
  .join {
    display: grid;
    align-items: end;
    min-height: min(92svh, 920px);
  }

  .join__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  /* 文字が乗る右下だけを暗くして、空の色はなるべく残す */
  .join__media::after {
    background:
      radial-gradient(ellipse 55% 65% at 80% 75%, rgb(20 25 23 / 0.72) 0%, rgb(20 25 23 / 0) 100%),
      linear-gradient(to top, var(--night) 0%, rgb(20 25 23 / 0.5) 28%, rgb(20 25 23 / 0) 60%);
  }

  .join__inner {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
    padding-block: clamp(96px, 12vw, 144px) clamp(64px, 8vw, 112px);
  }

  .join__content {
    max-width: 36rem;
  }
}


/* 12. Contact
   ========================================================================== */

.contact {
  background: var(--night);
  color: var(--on-night);
}

.contact .section-head__label {
  color: var(--peach);
}

.contact .section-head__lead {
  color: var(--on-night-muted);
}

.contact__grid {
  border-top: 1px solid var(--line-night);
  padding-top: clamp(64px, 9vw, 120px);
}

.contact.section {
  padding-top: 0;
}

.contact__mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.contact__address {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-night);
  font-family: var(--ff-latin);
  font-size: clamp(1.375rem, 2.6vw + 0.8rem, 2.625rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
  transition: color 0.3s, border-color 0.3s;
}

.contact__address:hover {
  border-color: var(--peach);
  color: var(--peach);
}

.copy-btn {
  display: none;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-night);
  border-radius: 999px;
  color: var(--on-night-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: color 0.3s, border-color 0.3s;
}

.js .copy-btn {
  display: inline-flex;
  align-items: center;
}

.copy-btn:hover,
.copy-btn.is-done {
  border-color: var(--on-night);
  color: var(--on-night);
}

.contact__actions {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.contact__info {
  margin-top: 56px;
  border-top: 1px solid var(--line-night);
}

.contact__info div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line-night);
}

.contact__info dt {
  color: var(--on-night-muted);
  font-size: 0.8125rem;
}

.contact__info dd {
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .contact__actions {
    grid-auto-flow: column;
    justify-content: start;
  }
}

@media (min-width: 1024px) {
  .contact__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(20px, 2vw, 32px);
  }

  .contact__grid .section-head {
    grid-column: 1 / span 5;
    margin-bottom: 0;
  }

  .contact__body {
    grid-column: 6 / span 7;
    padding-top: 40px;
  }
}


/* 13. Footer
   ========================================================================== */

.site-footer {
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  background: var(--night);
  color: var(--on-night-muted);
}

.site-footer .container {
  padding-top: 40px;
  border-top: 1px solid var(--line-night);
}

/* 注意書き（3）フッター */
.sample-note--footer {
  border-color: var(--line-night);
  background: rgb(255 255 255 / 0.04);
  color: var(--on-night);
}

.sample-note--footer .badge {
  color: var(--peach);
}

.credits {
  margin-top: 28px;
  font-size: 0.8125rem;
}

.credits summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}

.credits summary::-webkit-details-marker {
  display: none;
}

.credits summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-night);
  border-radius: 50%;
  font-family: var(--ff-latin);
  font-size: 0.9375rem;
  line-height: 1;
}

.credits[open] summary::before {
  content: "−";
}

.credits summary:hover {
  color: var(--on-night);
}

.credits__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 6px 32px;
  margin-top: 12px;
  font-size: 0.75rem;
}

.credits__list li {
  display: flex;
  gap: 12px;
}

.credits__list li > span {
  min-width: 5.5em;
}

.credits__list a {
  color: var(--on-night);
  text-decoration: underline;
  text-decoration-color: var(--line-night);
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: text-decoration-color 0.3s;
}

.credits__list a:hover {
  text-decoration-color: currentColor;
}

/* 別のタブで開く印（クレジットの文字になじむ、小さな線のアイコン） */
.credits__ext {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.35em;
  vertical-align: -0.08em;
  fill: none;
  stroke: var(--on-night-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 48px;
}

.site-footer__bottom .logo {
  color: var(--on-night);
}

.site-footer__copy {
  font-size: 0.75rem;
}

.site-footer__copy small {
  font-size: inherit;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--on-night);
  font-family: var(--ff-latin);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--ease-out);
}

.to-top:hover svg {
  transform: translateY(-3px);
}

@media (max-width: 639.98px) {
  .site-footer__copy {
    order: 3;
    width: 100%;
  }
}


/* 14. Menu (dialog)
   ========================================================================== */

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}

.menu::backdrop {
  background: transparent;
}

.menu[open] {
  animation: fade-in 0.45s var(--ease-out) both;
}

.menu.is-closing {
  animation: fade-out 0.3s ease both;
}

.menu__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom));
}

.menu__top {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.menu__list {
  margin-block: 20px 40px;
  border-top: 1px solid var(--line);
}

.menu__list li {
  border-bottom: 1px solid var(--line);
}

.menu[open] .menu__list li {
  animation: rise-up 0.8s var(--ease-out) both;
  animation-delay: calc(var(--i) * 50ms + 100ms);
}

.menu__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

.menu__en {
  font-family: var(--ff-latin);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.menu__ja {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
}

.menu__invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-mincho);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.menu[open] .menu__invite {
  animation: rise-up 0.8s var(--ease-out) 0.45s both;
}


/* 15. Lightbox (dialog)
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0d100f;
  color: var(--on-night);
  overscroll-behavior: contain;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  animation: fade-in 0.4s ease both;
}

.lightbox.is-closing {
  animation: fade-out 0.28s ease both;
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 64px 12px 8px;
  touch-action: pan-y pinch-zoom;
}

.lightbox__img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.35s ease, transform 0.6s var(--ease-out);
}

.lightbox__img:not([src]) {
  visibility: hidden;
}

.lightbox__img.is-leaving {
  opacity: 0;
  transform: translateX(calc(var(--dir, 0) * -20px));
  transition-duration: 0.2s, 0.3s;
}

.lightbox__img.is-entering {
  opacity: 0;
  transform: translateX(calc(var(--dir, 0) * 28px));
  transition: none;
}

/* 読み込みに時間がかかるときだけ見える、細いスピナー */
.lightbox__stage::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid var(--line-night);
  border-top-color: var(--on-night);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.lightbox__stage.is-loading::after {
  opacity: 1;
  transition-delay: 0.3s;
  animation: spin 0.9s linear infinite;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom));
}

.lightbox__caption {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 14px;
  min-width: 0;
}

.lightbox__count {
  grid-row: span 2;
  color: var(--peach);
  font-family: var(--ff-latin);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}

.lightbox__title {
  font-family: var(--ff-mincho);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.lightbox__meta {
  color: var(--on-night-muted);
  font-family: var(--ff-latin);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.5;
}

.lightbox__nav {
  display: flex;
  flex: none;
  gap: 8px;
}

.lightbox__btn,
.lightbox__close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background-color 0.3s, border-color 0.3s;
}

.lightbox__btn {
  border: 1px solid var(--line-night);
}

.lightbox__btn:hover {
  border-color: var(--on-night);
}

.lightbox__close {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  right: 8px;
}

.lightbox__close:hover {
  background: rgb(255 255 255 / 0.08);
}

.lightbox svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 1024px) {
  .lightbox__stage {
    padding: 72px 112px 8px;
  }

  .lightbox__bar {
    justify-content: center;
    padding-bottom: 28px;
    text-align: center;
  }

  .lightbox__caption {
    grid-template-columns: auto auto auto;
    column-gap: 18px;
  }

  .lightbox__count {
    grid-row: auto;
  }

  .lightbox__nav {
    display: contents;
  }

  .lightbox__btn {
    position: fixed;
    top: 50%;
    width: 56px;
    height: 56px;
    margin-top: -48px;
  }

  .lightbox__btn--prev { left: 32px; }
  .lightbox__btn--next { right: 32px; }

  .lightbox__close {
    top: 20px;
    right: 24px;
  }
}


/* 16. Motion
   ========================================================================== */

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes rise-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes rise-down {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* スクロールに合わせてふわりと現れる（JS が有効なときだけ） */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s var(--ease-out) var(--delay, 0s),
    transform 1.3s var(--ease-out) var(--delay, 0s);
}

.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* 画像は読み込みが終わってからフェードイン */
img.is-loading {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

@media print {
  .site-header,
  .hero__scroll,
  .menu,
  .lightbox {
    display: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
