/* ==========================================================
   atelier séri — ネイルサロン 制作サンプル
   ハイキックデザイン / すべて架空の内容です
   ========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #F7F3EE;          /* 地：生成り */
  --bg-deep: #EFE8DF;     /* 地を少し沈めた面（Menu 節） */
  --ink: #3B3531;         /* 文字：焦げ茶 */
  --muted: #6E655E;       /* 補助の文字 */
  --accent: #B08D7A;      /* 差し色：くすんだローズベージュ */
  --accent-deep: #8A6A58; /* 差し色の文字用（コントラスト確保） */
  --dark: #2E2A27;        /* 濃い面 */
  --line: rgba(59, 53, 49, .22);

  --rail: 72px;
  --bar: 56px;
  --sec: clamp(96px, 12vw, 168px);

  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-left: var(--rail);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mincho);
  font-size: 15.5px;
  line-height: 2.1;
  letter-spacing: .05em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
section[id] { scroll-margin-top: 0; }

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

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: clamp(56px, 8vw, 136px);
}

.eyebrow {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .18em;
  line-height: 1.4;
  color: var(--accent-deep);
  margin-bottom: 28px;
}
.h2 {
  font-weight: 500;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: .2em;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* ---------- 3. 左端の縦帯ナビ（デスクトップ） ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 32px;
  background: var(--bg);
  border-right: 1px solid var(--line);
}
.rail__logo {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0;
}
.rail__nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}
.rail__nav a,
.rail__reserve {
  writing-mode: vertical-rl;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 16px;
  letter-spacing: .3em;
  line-height: 1;
  position: relative;
  padding: 2px 6px;
  transition: color .3s;
}
.rail__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity .3s;
}
.rail__nav a:hover,
.rail__nav a.is-active { color: var(--accent-deep); }
.rail__nav a.is-active::after { opacity: 1; }
.rail__reserve {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 8px;
}
.rail__reserve:hover { color: var(--ink); }

.topbar { display: none; }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  height: min(100svh, 960px);
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(46, 42, 39, .62) 0%, rgba(46, 42, 39, .28) 38%, rgba(46, 42, 39, 0) 68%),
    linear-gradient(to right, rgba(46, 42, 39, .22), rgba(46, 42, 39, 0) 60%);
}
.hero__copy {
  position: absolute;
  left: clamp(32px, 6vw, 112px);
  bottom: clamp(56px, 10vh, 112px);
  right: 120px;
}
.hero__en {
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 2vw, 28px);
  letter-spacing: .12em;
  line-height: 1.5;
  margin-bottom: 18px;
}
.hero__title {
  font-weight: 500;
  font-size: clamp(26px, 4.8vw, 72px);
  letter-spacing: .18em;
  line-height: 1.5;
  white-space: nowrap;
}
.hero__shop {
  margin-top: 28px;
  font-family: var(--serif-en);
  font-size: 15px;
  letter-spacing: .24em;
  line-height: 1.4;
  opacity: .9;
}
.hero__shop span { font-style: italic; }
.hero__scroll {
  position: absolute;
  right: clamp(24px, 3.5vw, 56px);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.hero__scroll-text {
  writing-mode: vertical-rl;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 15px;
  letter-spacing: .3em;
  line-height: 1;
}
.hero__scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 88px;
  background: rgba(255, 255, 255, .35);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 1px;
  height: 100%;
  background: #fff;
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { top: -100%; }
  60%  { top: 0; }
  100% { top: 100%; }
}

/* ---------- 5. 節の共通：縦書きの節ラベル ---------- */
.sec {
  position: relative;
  padding-block: var(--sec);
}
.sec-label {
  position: absolute;
  top: var(--sec);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  pointer-events: none;
}
.sec-label--left  { left: clamp(14px, 2.4vw, 36px); }
.sec-label--right { right: clamp(14px, 2.4vw, 36px); }
.sec-label__text {
  writing-mode: vertical-rl;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 15px;
  letter-spacing: .3em;
  line-height: 1;
}
.sec-label::after {
  content: "";
  display: block;
  width: 1px;
  height: clamp(64px, 9vw, 120px);
  background: var(--line);
}

/* ---------- 6. 01 Concept（写真が次の節へはみ出す） ---------- */
.concept {
  z-index: 2;              /* はみ出した写真を Menu の上に描く */
  padding-bottom: 0;
}
.concept__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  column-gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.concept__photo {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: -120px;   /* 下端が Menu の上へ 120px はみ出す */
  position: relative;
}
.concept__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.concept__text { grid-column: 2; grid-row: 1; max-width: 35em; padding-bottom: 40px; }
.concept__text p + p { margin-top: 1.7em; }
.concept__text .eyebrow + .h2 { margin-top: 0; }
.concept__link { margin-top: 3em; }

.ulink {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--accent);
  letter-spacing: .2em;
  transition: color .3s, border-color .3s;
}
.ulink:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------- 7. 02 Menu ---------- */
.menu {
  background: var(--bg-deep);
  padding-top: calc(120px + var(--sec) * .6);   /* 重なる写真の分 */
}
.menu__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.menu__intro { max-width: 30em; }
.price { border-top: 1px solid var(--ink); }
.price__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--line);
}
.price__name { display: flex; flex-direction: column; gap: 2px; }
.price__en {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 22px;
  letter-spacing: .1em;
  line-height: 1.3;
}
.price__ja {
  font-family: var(--gothic);
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--muted);
  line-height: 1.8;
}
.price__yen {
  font-family: var(--serif-en);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
}
.price__yen small { font-size: 15px; margin-left: 4px; color: var(--muted); }
.note {
  margin-top: 24px;
  font-family: var(--gothic);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}

/* ---------- 8. 03 Gallery（大きさと高さをずらす） ---------- */
.gallery__head { margin-bottom: clamp(48px, 7vw, 96px); }
.gallery__head .h2 { margin-bottom: 0; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 40px);
  align-items: start;
}
.g img { width: 100%; object-fit: cover; }
.g figcaption {
  margin-top: 14px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 16px;
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--muted);
}
.g1 { grid-column: 1 / 7;   grid-row: 1; }
.g1 img { aspect-ratio: 4 / 5; }
.g2 { grid-column: 8 / 12;  grid-row: 1; margin-top: clamp(80px, 14vw, 220px); }
.g2 img { aspect-ratio: 1 / 1; }
.g3 { grid-column: 2 / 6;   grid-row: 2; margin-top: clamp(32px, 4vw, 64px); }
.g3 img { aspect-ratio: 4 / 5; }
.g4 { grid-column: 7 / 13;  grid-row: 2; margin-top: clamp(80px, 11vw, 180px); }
.g4 img { aspect-ratio: 1 / 1; }

/* ---------- 9. 全幅の写真帯 ---------- */
.band {
  position: relative;
  height: 60vh;
  min-height: 340px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
}
.band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band__shade { position: absolute; inset: 0; background: rgba(46, 42, 39, .38); }
.band__text {
  position: relative;
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(34px, 5vw, 76px);
  letter-spacing: .12em;
  line-height: 1.3;
  text-align: center;
  padding-inline: 24px;
}

/* ---------- 10. 04 Flow ---------- */
.flow__head { max-width: 34em; margin-bottom: clamp(56px, 7vw, 96px); }
.flow__head .h2 { margin-bottom: 28px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}
.step {
  padding: 36px clamp(16px, 2vw, 32px) 8px;
  border-left: 1px solid var(--line);
}
.step:first-child { border-left: 0; padding-left: 0; }
.step__no {
  display: block;
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: clamp(64px, 7vw, 108px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--accent);
  margin-bottom: 24px;
}
.step__title {
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .16em;
  line-height: 1.6;
  margin-bottom: 14px;
}
.step__en {
  display: block;
  font-family: var(--serif-en);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .14em;
  color: var(--accent-deep);
}
.step p { font-size: 14.5px; line-height: 2; }

/* ---------- 11. 05 Access ---------- */
.access { padding-top: 0; }
.access__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  column-gap: clamp(40px, 7vw, 112px);
  align-items: center;
  padding-top: var(--sec);
  border-top: 0;
}
.access__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.access .sec-label { top: var(--sec); }
.access .h2 { margin-bottom: 36px; }
.info { border-top: 1px solid var(--line); margin-bottom: 44px; }
.info > div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.9;
  font-size: 14.5px;
}
.info dt {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 16px;
  letter-spacing: .14em;
  color: var(--accent-deep);
}
.info small { font-family: var(--gothic); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.btn {
  display: inline-block;
  padding: 18px 44px;
  background: var(--accent);
  color: var(--dark);
  font-size: 15px;
  letter-spacing: .24em;
  border-radius: 0;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--dark); color: #fff; }

/* ---------- 12. Footer ---------- */
.footer {
  margin-left: calc(var(--rail) * -1);
  padding: clamp(64px, 8vw, 104px) 0 56px calc(var(--rail) + clamp(56px, 8vw, 136px));
  padding-right: clamp(56px, 8vw, 136px);
  background: var(--dark);
  color: #E9E2DA;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px 64px;
  flex-wrap: wrap;
  max-width: 1360px;
  margin-inline: auto;
}
.footer__logo {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: .08em;
  line-height: 1.2;
  color: #fff;
}
.footer__tag { margin-top: 10px; font-size: 14px; letter-spacing: .2em; color: #CBBFB4; }
.footer__meta { max-width: 34em; }
.footer__notice { font-size: 12.5px; line-height: 1.9; letter-spacing: .08em; color: #CBBFB4; }
.footer__links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 13px;
  letter-spacing: .12em;
}
.footer__links a { border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.footer__links a:hover { color: #fff; }
.footer :focus-visible { outline-color: #E9D3C5; }

/* ---------- 13. ふわっと現れる動き ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 14. Tablet（〜1100px） ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 32px; }
}

/* ---------- 15. Mobile（〜860px）縦帯をやめ、上バー＋全画面メニュー ---------- */
@media (max-width: 860px) {
  :root { --sec: clamp(88px, 22vw, 120px); }
  body { padding-left: 0; padding-top: var(--bar); font-size: 15px; }
  section[id] { scroll-margin-top: var(--bar); }

  .topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 70;
    height: var(--bar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .topbar__brand {
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 22px;
    letter-spacing: .08em;
    line-height: 1;
  }
  .topbar__btn {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--accent);
    padding: 6px 2px;
    margin: 0;
    color: inherit;
    cursor: pointer;
    font-family: var(--serif-en);
    font-style: italic;
    font-size: 17px;
    letter-spacing: .2em;
    line-height: 1;
  }

  .rail {
    inset: 0;
    width: auto;
    z-index: 60;
    justify-content: center;
    gap: 40px;
    padding: var(--bar) 24px 0;
    border-right: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s ease, visibility 0s linear .35s;
  }
  .rail.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity .35s ease, visibility 0s;
  }
  .rail__logo { display: none; }
  .rail__nav ul { gap: 22px; }
  .rail__nav a,
  .rail__reserve {
    writing-mode: horizontal-tb;
    font-size: 30px;
    letter-spacing: .16em;
    padding: 6px 8px;
  }
  .rail__nav a::after { display: none; }
  .rail__reserve { font-size: 20px; padding-bottom: 8px; }

  .hero { height: calc(min(100svh, 960px) - var(--bar)); min-height: 520px; }
  .hero__copy { left: 24px; right: 56px; bottom: 56px; }
  .hero__scroll { right: 20px; }
  .hero__scroll-line { height: 64px; }

  .wrap { padding-inline: 20px 20px; padding-left: 52px; }
  .sec-label--left,
  .sec-label--right { left: 16px; right: auto; }

  .concept__grid { grid-template-columns: 1fr; row-gap: 56px; align-items: start; }
  .concept__text { grid-column: 1; grid-row: 1; padding-bottom: 0; }
  .concept__photo { grid-column: 1; grid-row: 2; margin-right: -4px; }

  .menu__grid { grid-template-columns: 1fr; row-gap: 56px; }
  .price__en { font-size: 20px; }
  .price__yen { font-size: 22px; }

  .gallery__grid { grid-template-columns: repeat(6, 1fr); column-gap: 14px; row-gap: 0; }
  .g1 { grid-column: 1 / 6; grid-row: auto; }
  .g2 { grid-column: 3 / 7; grid-row: auto; margin-top: 40px; }
  .g3 { grid-column: 1 / 5; grid-row: auto; margin-top: 40px; }
  .g4 { grid-column: 2 / 7; grid-row: auto; margin-top: 40px; }

  .band { height: 60vh; }

  .steps { grid-template-columns: 1fr; }
  .step,
  .step:nth-child(3),
  .step:nth-child(n+3) {
    border-left: 0;
    padding: 28px 0 32px;
    margin-top: 0;
    border-top: 1px solid var(--line);
  }
  .step:first-child { border-top: 0; }
  .step__no { font-size: 64px; margin-bottom: 14px; }

  .access__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .info > div { grid-template-columns: 5.5em 1fr; gap: 10px; }
  .btn { display: block; text-align: center; padding-inline: 20px; }

  .footer { margin-left: 0; padding: 72px 20px 48px; }
  .footer__inner { align-items: flex-start; padding-left: 32px; }
}

/* ---------- 16. 大きな画面（1600px〜） ---------- */
@media (min-width: 1600px) {
  body { font-size: 16px; }
  .hero { height: min(100svh, 960px); }
  .wrap { max-width: 1520px; }
  .footer__inner { max-width: 1520px; }
}

/* ---------- 17. 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line::after { animation: none; top: 0; }
  .rail, .rail.is-open { transition: none; }
}
