/* 067 atelier CILS ― 色はここだけ触れば差し替わる（アクセントの色は持たない。白黒の濃淡と細い線だけ） */
:root {
  --c-white: #ffffff;
  --c-mist: #efefec;
  --c-gray: #cfcfcb;
  --c-stone: #5c5c58;
  --c-black: #141414;
  --c-ink: #1a1a1a;
  --c-accent-text: #55554f;
  --c-on-dark: #ecece9;
  --c-text: #374151;
  --c-sub: #4b5563;
  --font: "Noto Sans JP", sans-serif;
  --font-ja: "Hina Mincho", serif;
  --font-en: "Poiret One", "Hina Mincho", serif;
  --head: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 2.1; letter-spacing: .04em; color: var(--c-text); background: var(--c-white); }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, dd { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; font-size: 15px; letter-spacing: .2em; text-decoration: none; white-space: nowrap; flex: none; transition: background-color .6s, color .6s; }
.btn--line { border: 1px solid var(--c-ink); color: var(--c-ink); }
.btn--line:hover, .btn--line:focus-visible { background: var(--c-ink); color: #fff; }
.btn--white { background: var(--c-on-dark); color: var(--c-black); }
.btn--white:hover, .btn--white:focus-visible { background: transparent; color: var(--c-on-dark); outline: 1px solid var(--c-on-dark); }
.btn--lg { min-height: 60px; padding: 0 44px; }

/* ===== A06：読み込み（JSがあるときだけ。1.5秒以内に、CSS だけで必ず消える） ===== */
.loader { display: none; }
.is-loading .loader { display: grid; place-content: center; justify-items: center; gap: 16px; position: fixed; inset: 0; z-index: 200; background: var(--c-white); animation: loaderOut .35s 1.15s forwards; }
.loader__eye { width: 120px; height: 60px; fill: none; stroke: var(--c-ink); stroke-width: 1.4; stroke-linecap: round; }
.loader__open, .loader__iris { opacity: 0; }
.is-loading .loader__lash { animation: lashHide .15s .95s forwards; }
.is-loading .loader__open, .is-loading .loader__iris { animation: eyeOpen .2s .95s forwards; }
.loader__num { font-family: var(--font-en); font-size: 40px; letter-spacing: .1em; color: var(--c-ink); line-height: 1; }
@keyframes eyeOpen { to { opacity: 1; } }
@keyframes lashHide { to { opacity: 0; } }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--c-gray); }
.header__inner { display: flex; align-items: center; gap: 16px; height: var(--head); padding: 0 20px; }
.logo { display: flex; align-items: center; min-height: 48px; font-family: var(--font-en); font-size: 24px; letter-spacing: .14em; color: var(--c-ink); text-decoration: none; white-space: nowrap; flex: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 20px; }
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 26px; height: 1px; background: var(--c-ink); position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; right: 0; top: 100%; width: min(100%, 360px); background: var(--c-white); border: 1px solid var(--c-gray); border-top: 0; padding: 8px 28px 24px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; gap: 16px; min-height: 54px; font-family: var(--font-ja); font-size: 18px; color: var(--c-ink); text-decoration: none; border-bottom: 1px solid var(--c-mist); }
.spmenu__nav span { font-family: var(--font-en); font-size: 15px; color: var(--c-accent-text); }
@media (min-width: 1080px) { .header__inner { padding: 0 48px; } }

/* ===== パネル（スマホと JSなし：縦並び。地の色が 白→灰→黒 と段々に変わる） ===== */
.panel { position: relative; background: var(--bg); color: var(--body); padding: 104px 20px 96px; }
.panel > * { min-width: 0; }
.panel--1 { --bg: var(--c-white); --fg: var(--c-ink); --body: var(--c-text); --sub: var(--c-accent-text); --ln: var(--c-ink); padding-top: calc(var(--head) + 40px); }
.panel--2 { --bg: var(--c-mist); --fg: var(--c-ink); --body: var(--c-text); --sub: var(--c-accent-text); --ln: var(--c-ink); }
.panel--3 { --bg: var(--c-gray); --fg: var(--c-ink); --body: var(--c-text); --sub: #3a3a36; --ln: var(--c-ink); }
.panel--4 { --bg: var(--c-stone); --fg: #fff; --body: var(--c-on-dark); --sub: var(--c-on-dark); --ln: var(--c-on-dark); }
.panel--5 { --bg: var(--c-black); --fg: #fff; --body: #d6d6d2; --sub: #c8c8c4; --ln: var(--c-on-dark); }
.panel--6 { --bg: var(--c-black); --fg: #fff; --body: #d6d6d2; --sub: #c8c8c4; --ln: var(--c-on-dark); border-left: 1px solid #333; }
.panel p + p { margin-top: 14px; }
.no { font-family: var(--font-en); font-size: 22px; letter-spacing: .2em; color: var(--sub); }
.en { font-family: var(--font-en); font-size: 17px; letter-spacing: .18em; color: var(--sub); }
.h2 { font-family: var(--font-ja); font-size: clamp(30px, 4vw, 52px); line-height: 1.6; letter-spacing: .12em; color: var(--fg); margin: 8px 0 24px; }

/* 01 メインビジュアル（線のイラスト） */
.hero { display: grid; gap: 24px; align-items: center; }
.hero__eye { width: min(100%, 640px); margin: 0 auto; fill: none; stroke: var(--ln); stroke-width: 1.2; stroke-linecap: round; overflow: visible; }
.ln--frame { stroke-width: .8; opacity: .5; }
.ln--lid { stroke-width: 1.6; }
.ln--dot { fill: var(--ln); }
.hero__title { font-family: var(--font-ja); font-size: clamp(40px, 6vw, 84px); line-height: 1.5; letter-spacing: .16em; color: var(--c-ink); margin: 10px 0 18px; }
.hero__hint { display: none; }
/* 動く版：線が一本ずつ描かれる（読み込みのあと） */
.is-motion .hero__eye .ln, .is-motion .hero__eye .ln--lash path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.6s cubic-bezier(.5, 0, .2, 1) forwards; }
.is-motion .ln--frame { animation-delay: 1.3s !important; }
.is-motion .ln--brow { animation-delay: 1.6s !important; }
.is-motion .ln--lid, .is-motion .ln--lid2 { animation-delay: 1.8s !important; }
.is-motion .ln--lash path { animation-duration: 1.6s !important; animation-delay: 2.2s !important; }
.is-motion .ln--lash { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* F04：アーチ・丸の写真（白黒寄り） */
.arch { overflow: hidden; border-radius: 999px 999px 0 0; background: var(--c-gray); }
.arch img { width: 100%; height: 100%; aspect-ratio: 2 / 3; object-fit: cover; filter: grayscale(.85) contrast(1.02); }
.arch--round { border-radius: 50%; }
.arch--round img { aspect-ratio: 1; }

/* 02 想い */
.split { display: grid; gap: 40px; }
.split .arch { width: min(80%, 360px); }

/* 03 デザイン */
.design__lead { color: var(--sub); }
.design__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 20px -20px 0; padding: 0 20px 16px; scroll-padding: 0 20px; scrollbar-color: var(--c-ink) transparent; }
.dcard { flex: 0 0 72%; max-width: 280px; scroll-snap-align: start; background: rgba(255, 255, 255, .55); border: 1px solid var(--c-ink); padding: 24px 22px; }
.dcard svg { width: 100%; height: 90px; fill: none; stroke: var(--c-ink); stroke-width: 1.2; stroke-linecap: round; }
.dcard .lid { stroke-width: 1.8; }
.dcard h3 { font-family: var(--font-ja); font-size: 22px; letter-spacing: .1em; color: var(--c-ink); margin: 12px 0 4px; }
.dcard p { color: #2d2d2a; }
.design__btns { display: none; gap: 10px; margin-top: 12px; }
.is-js .design__btns { display: flex; }
.arrow { width: 52px; height: 52px; border: 1px solid var(--c-ink); background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color .5s; }
.arrow:hover, .arrow:focus-visible { background: var(--c-white); }
.arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--c-ink); stroke-width: 1.3; }

/* 04 サロン */
.salon { display: grid; gap: 32px; }
.salon .arch--tall { width: min(78%, 340px); }
.salon .arch--round { width: min(56%, 240px); margin-left: auto; margin-top: -80px; position: relative; border: 6px solid var(--c-stone); }

/* 05 流れ */
.flow__list { display: grid; gap: 0; border-top: 1px solid rgba(236, 236, 233, .3); }
.flow__list li { display: grid; grid-template-columns: 2.4em 1fr; gap: 0 12px; padding: 18px 0; border-bottom: 1px solid rgba(236, 236, 233, .3); }
.flow__list span { grid-row: span 2; font-family: var(--font-en); font-size: 22px; color: var(--sub); }
.flow__list h3 { font-family: var(--font-ja); font-size: 20px; letter-spacing: .1em; color: #fff; }
.flow__photo { width: min(50%, 220px); margin: 36px 0 0 auto; }

/* 06 ご予約 */
.price { margin: 0 0 32px; border-top: 1px solid rgba(236, 236, 233, .3); }
.price div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(236, 236, 233, .3); }
.price dt { color: #fff; }
.price dd { white-space: nowrap; }
.reserve__info { margin-top: 28px; font-size: 15px; }
.reserve__items { width: 120px; margin-top: 32px; border-radius: 50%; overflow: hidden; }
.reserve__items img { aspect-ratio: 1; object-fit: cover; filter: grayscale(.9); }
.reserve__fiction { display: none; }

/* C03 の進み具合 */
.progress { display: none; }

.footer { background: var(--c-black); color: #d6d6d2; text-align: center; padding: 48px 20px 40px; font-size: 15px; border-top: 1px solid #333; }
.footer__logo { font-family: var(--font-en); font-size: 28px; letter-spacing: .14em; color: #fff; }

/* ===== PC（1080px〜）の段組み。縦並びのときも使う ===== */
@media (min-width: 1080px) {
  .panel { padding: 140px 8vw 120px; }
  .panel--1 { padding-top: 140px; }
  .hero { grid-template-columns: 1.1fr 1fr; gap: 6vw; }
  .split { grid-template-columns: auto minmax(0, 520px); gap: 7vw; align-items: center; }
  .split .arch { width: 30vw; max-width: 400px; }
  .salon { grid-template-columns: minmax(0, 440px) auto auto; align-items: end; gap: 4vw; }
  .salon .arch--tall { width: 24vw; max-width: 360px; }
  .salon .arch--round { width: 16vw; margin: 0 0 40px; }
  .flow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 5vw; align-items: end; }
  .flow > .no, .flow > .h2 { grid-column: 1; }
  .flow__list { grid-column: 1; grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .flow__photo { grid-column: 2; grid-row: 1 / span 3; width: 20vw; margin: 0; }
  .reserve { max-width: 640px; }
}

/* ===== PCで横に動く（JSが .is-hz を付けたときだけ） ===== */
.is-hz .hz { height: 100vh; overflow: hidden; }
.is-hz .hz__track { display: flex; width: max-content; height: 100vh; }
.is-hz .panel { flex: none; width: 100vw; height: 100vh; padding-top: calc(var(--head) + 48px); padding-bottom: 96px; display: flex; flex-direction: column; justify-content: safe center; overflow: hidden; }
.is-hz .panel--3 { width: 90vw; }
.is-hz .panel--5 { width: 90vw; }
.is-hz .panel--6 { width: 70vw; padding-top: calc(var(--head) + 24px); padding-bottom: 72px; }
.is-hz .reserve__items { display: none; }
.is-hz .hero, .is-hz .split, .is-hz .salon, .is-hz .flow, .is-hz .design, .is-hz .reserve { width: 100%; }
.is-hz .hero__hint { display: flex; align-items: center; gap: 12px; margin-top: 32px; font-family: var(--font-en); font-size: 16px; letter-spacing: .3em; color: var(--c-accent-text); }
.is-hz .hero__hint span { display: block; width: 64px; height: 1px; background: currentColor; }
.is-hz .design__track { margin: 20px 0 0; padding: 0 0 16px; }
.is-hz .dcard { flex-basis: 260px; }
.is-hz .progress { display: flex; align-items: center; gap: 16px; position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; color: #fff; mix-blend-mode: difference; font-family: var(--font-en); font-size: 18px; letter-spacing: .2em; }
.is-hz .progress { transition: opacity .3s, visibility .3s; }
.is-hz .progress.is-off { opacity: 0; visibility: hidden; }
.is-hz .progress__bar { position: relative; width: 220px; height: 1px; background: rgba(255, 255, 255, .4); }
.is-hz .progress__fill { position: absolute; left: 0; top: -0.5px; height: 2px; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
