/* =========================================================
   hair atelier SOYO — design sample (fictional salon)
   mobile first / monotone / greige
   ========================================================= */
:root {
  --black: #0e0e0d;
  --ink: #1a1917;
  --white: #f5f3ef;
  --paper: #ece7e0;
  --greige: #b8ada0;
  --greige-d: #8c8378;
  --line: rgba(26, 25, 23, .14);
  --line-l: rgba(245, 243, 239, .18);
  --serif: "Cormorant Garamond", "Noto Serif JP", serif;
  --mincho: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", system-ui, sans-serif;
  --gutter: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .04em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp { display: inline; }
@media (min-width: 768px) { .sp { display: none; } }
:focus-visible { outline: 1px solid var(--greige-d); outline-offset: 4px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 120px 0; position: relative; }
@media (min-width: 1024px) { .section { padding: 200px 0; } }

/* ---------- typography ---------- */
.label {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--greige-d);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.label span { font-style: italic; letter-spacing: .05em; }
.label::after { content: ""; width: 48px; height: 1px; background: currentColor; }
.label--light { color: var(--greige); }

.heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(54px, 15vw, 168px);
  line-height: .98;
  letter-spacing: -.02em;
}
.heading em, .hero__title em { color: var(--greige-d); font-weight: 300; }

/* 1行ずつせり上がる：外側で切り抜き、内側を動かす */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 36px;
  border-radius: 999px;
  font-family: var(--mincho);
  font-size: 14px;
  letter-spacing: .14em;
  text-decoration: none;
  border: 1px solid currentColor;
  position: relative; overflow: hidden;
  transition: color .5s var(--ease);
  background: none; cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: currentColor;
  transform: translateY(101%); border-radius: inherit;
  transition: transform .6s var(--ease);
}
.btn span { position: relative; z-index: 1; transition: color .5s var(--ease); }
.btn--light { color: var(--white); }
.btn--light:hover::before { transform: translateY(0); }
.btn--light:hover span { color: var(--ink); }
.magnetic { will-change: transform; }

.btn-text {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-size: 14px; letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none; color: var(--white);
}
.btn-text i { width: 1px; height: 44px; background: var(--line-l); position: relative; overflow: hidden; }
.btn-text i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--white); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- loader ---------- */
.loader { display: none; }
.js.is-loading .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  background: var(--black); color: var(--white);
}
.js.is-loading body { overflow: hidden; }
.loader__inner { text-align: center; width: min(280px, 70vw); }
.loader__mark { font-family: var(--serif); font-weight: 300; font-size: 64px; letter-spacing: .3em; line-height: 1; padding-left: .3em; display: flex; justify-content: center; overflow: hidden; }
.loader__mark span { display: inline-block; }
.loader__sub { font-family: var(--serif); font-style: italic; font-size: 14px; letter-spacing: .3em; color: var(--greige); margin-top: 10px; }
.loader__bar { height: 1px; background: var(--line-l); margin: 36px 0 12px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; }
.loader__count { font-family: var(--serif); font-size: 13px; letter-spacing: .2em; color: var(--greige); text-align: right; }
.loader__skip {
  position: absolute; right: var(--gutter); bottom: 32px;
  background: none; border: 1px solid var(--line-l); color: var(--white);
  font-family: var(--serif); letter-spacing: .3em; font-size: 12px;
  padding: 10px 20px 10px 24px; border-radius: 999px; cursor: pointer;
}
.loader__skip:hover { border-color: var(--white); }

/* ---------- cursor (PC only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 90;
    width: 72px; height: 72px; margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: var(--white);
    mix-blend-mode: difference;
    pointer-events: none;
    transform: scale(.16);
    transition: transform .45s var(--ease), opacity .3s;
    opacity: 0;
  }
  .has-cursor .cursor.is-visible { opacity: 1; }
  .has-cursor .cursor.is-hover { transform: scale(1); }
  .cursor__label { font-family: var(--serif); font-size: 12px; letter-spacing: .2em; color: var(--black); opacity: 0; transition: opacity .3s; padding-left: .2em; }
  .cursor.is-hover .cursor__label { opacity: 1; }
  .has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
  .has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
}

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  color: var(--white);
  mix-blend-mode: difference;
}
.header__logo { font-family: var(--serif); font-size: 26px; letter-spacing: .28em; text-decoration: none; line-height: 1; display: flex; flex-direction: column; }
.header__logo small { font-size: 10px; letter-spacing: .32em; font-style: italic; margin-top: 4px; opacity: .7; }
.header__nav { display: none; }
.header__cta { display: none; }
.header__toggle {
  width: 44px; height: 44px; border: 0; background: none; color: inherit; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 8px;
}
.header__toggle > span:not(.sr-only) { display: block; height: 1px; width: 28px; background: currentColor; transition: transform .5s var(--ease), width .5s var(--ease); }
.header__toggle > span:nth-child(2) { width: 18px; }
.header__toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(4.5px) rotate(20deg); }
.header__toggle[aria-expanded="true"] > span:nth-child(2) { width: 28px; transform: translateY(-4.5px) rotate(-20deg); }
@media (min-width: 900px) {
  .header { padding: 28px var(--gutter); }
  .header__nav { display: flex; gap: 40px; font-family: var(--serif); font-size: 15px; letter-spacing: .2em; }
  .header__nav a { text-decoration: none; position: relative; }
  .header__nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
  .header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .header__cta { display: inline-flex; font-family: var(--serif); letter-spacing: .24em; font-size: 13px; text-decoration: none; border: 1px solid currentColor; border-radius: 999px; padding: 10px 24px; }
  .header__toggle { display: none; }
}

.drawer {
  position: fixed; inset: 0; z-index: 45;
  background: var(--black); color: var(--white);
  display: flex; align-items: center;
  padding: 100px var(--gutter) 120px;
}
.drawer[hidden] { display: none; }
.drawer nav { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.drawer a { font-family: var(--serif); font-size: 44px; line-height: 1.2; text-decoration: none; display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line-l); padding-bottom: 10px; }
.drawer small { font-family: var(--sans); font-size: 11px; color: var(--greige); letter-spacing: .12em; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  background: var(--black); color: var(--white);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,13,.2) 0%, rgba(14,14,13,0) 40%, rgba(14,14,13,.75) 100%); pointer-events: none; }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 140px var(--gutter) 96px; }
.hero__eyebrow { font-family: var(--serif); font-style: italic; font-size: 14px; letter-spacing: .2em; color: var(--greige); margin-bottom: 20px; }
.hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, min(16vw, 17vh), 184px); line-height: .92; letter-spacing: -.025em; }
.hero__title em { color: var(--greige); }
.hero__lead { font-family: var(--mincho); font-weight: 200; font-size: 16px; line-height: 2.1; letter-spacing: .16em; margin-top: 32px; }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero__meta { position: absolute; z-index: 2; right: var(--gutter); top: 50%; font-family: var(--serif); font-size: 11px; letter-spacing: .3em; color: var(--greige); writing-mode: vertical-rl; display: none; gap: 24px; }
@media (min-width: 900px) {
  .hero__inner { padding-bottom: 96px; }
  .hero__lead { font-size: 18px; }
  .hero__meta { display: flex; transform: translateY(-50%); }
}

/* ---------- concept ---------- */
.concept__grid { display: grid; gap: 48px; }
.concept__ja { font-family: var(--mincho); font-weight: 200; font-size: clamp(22px, 5.6vw, 32px); line-height: 1.9; letter-spacing: .12em; margin-bottom: 32px; color: var(--ink); }
.concept__body p + p { margin-top: 1.4em; }
.concept__body p:not(.concept__ja) { color: #4a4540; }
@media (min-width: 1024px) {
  .concept__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: end; }
}

.concept__visuals { display: grid; gap: 24px; margin-top: 88px; }
@media (min-width: 768px) {
  .concept__visuals { grid-template-columns: 5fr 7fr; gap: 40px; align-items: end; margin-top: 140px; }
  .frame--wide { margin-bottom: 120px; }
}

/* clip-path で開くフレーム */
.frame { position: relative; }
.frame__clip { overflow: hidden; background: var(--paper); }
.frame__clip img, .frame__clip svg { width: 100%; height: 100%; object-fit: cover; }
.frame--tall .frame__clip { aspect-ratio: 3 / 4; }
.frame--wide .frame__clip { aspect-ratio: 12 / 7; }
.frame--portrait .frame__clip { aspect-ratio: 4 / 5; }
.frame figcaption { font-family: var(--serif); font-style: italic; font-size: 13px; letter-spacing: .14em; color: var(--greige-d); margin-top: 12px; }
.js:not(.reduced) .frame__clip { clip-path: inset(100% 0 0 0); }
.js:not(.reduced) .frame__clip img { transform: scale(1.3); }

.points { display: grid; gap: 0; margin-top: 88px; border-top: 1px solid var(--line); }
.points li { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; }
.points__num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--greige-d); grid-row: span 2; line-height: 1.4; }
.points h3 { font-family: var(--mincho); font-weight: 300; font-size: 18px; letter-spacing: .1em; }
.points p { color: #5a544e; font-size: 14px; }
@media (min-width: 900px) {
  .points { grid-template-columns: repeat(3, 1fr); border-top: 0; margin-top: 140px; gap: 40px; }
  .points li { border-top: 1px solid var(--line); border-bottom: 0; grid-template-columns: 1fr; padding-top: 28px; }
  .points__num { grid-row: auto; margin-bottom: 20px; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--white); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 9vw, 96px); line-height: 1.1; white-space: nowrap; padding-right: .4em; }
.marquee i { color: var(--greige); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- menu ---------- */
.menu { background: var(--paper); }
.menu__note { margin-top: 28px; font-size: 13px; color: var(--greige-d); }
.menu__grid { display: grid; gap: 56px; margin-top: 64px; }
.menu__group h3 { font-family: var(--serif); font-weight: 300; font-size: 36px; line-height: 1.2; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.menu__group h3 span { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: var(--greige-d); }
.price > div { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price dt { flex: 1 1 auto; min-width: 0; font-size: 14px; }
.price dd { font-family: var(--serif); font-size: 21px; letter-spacing: .04em; white-space: nowrap; }
.price > div::after { content: none; }
@media (min-width: 900px) {
  .menu__grid { grid-template-columns: 1fr 1fr; column-gap: 80px; row-gap: 88px; margin-top: 100px; }
}
.menu__pick {
  margin-top: 80px; padding: 40px 28px;
  background: var(--ink); color: var(--white);
  display: grid; gap: 12px;
}
.menu__pick-label { font-family: var(--serif); font-style: italic; letter-spacing: .24em; color: var(--greige); font-size: 14px; }
.menu__pick-title { font-family: var(--mincho); font-weight: 200; font-size: 18px; line-height: 1.9; letter-spacing: .1em; }
.menu__pick-title strong { font-weight: 300; font-size: 22px; }
.menu__pick-text { font-size: 13px; color: var(--greige); }
@media (min-width: 900px) {
  .menu__pick { grid-template-columns: 180px 1fr auto; align-items: center; padding: 48px 56px; gap: 40px; }
}

/* ---------- staff ---------- */
.staff__list { display: grid; gap: 72px; margin-top: 72px; }
.staff__role { font-family: var(--serif); font-style: italic; font-size: 13px; letter-spacing: .2em; color: var(--greige-d); margin-top: 24px; }
.staff__name { font-family: var(--mincho); font-weight: 300; font-size: 24px; letter-spacing: .16em; margin-top: 6px; }
.staff__name span { display: block; font-family: var(--serif); font-size: 14px; letter-spacing: .14em; color: var(--greige-d); font-weight: 400; margin-top: 2px; }
.staff__text { font-size: 14px; color: #4a4540; margin-top: 14px; }
@media (min-width: 900px) {
  .staff__list { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 110px; }
  .staff__card:nth-child(2) { margin-top: 120px; }
  .staff__card:nth-child(3) { margin-top: 60px; }
}

/* ---------- access ---------- */
.access { background: var(--white); border-top: 1px solid var(--line); }
.access__grid { display: grid; gap: 64px; }
.info { margin-top: 48px; border-top: 1px solid var(--line); }
.info > div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info dt { font-family: var(--serif); font-style: italic; letter-spacing: .14em; color: var(--greige-d); font-size: 15px; }
.info dd { font-size: 14px; line-height: 1.9; }
.info a { text-decoration: none; border-bottom: 1px solid var(--line); }
.map .frame__clip { aspect-ratio: 1; }
@media (min-width: 1024px) {
  .access__grid { grid-template-columns: 1fr 1fr; gap: 100px; align-items: end; }
}

/* ---------- reserve ---------- */
.reserve { background: var(--black); color: var(--white); }
.reserve .heading em { color: var(--greige); }
.reserve__lead { margin-top: 28px; color: var(--greige); font-size: 14px; max-width: 34em; }
.form { margin-top: 64px; max-width: 760px; display: grid; gap: 28px; }
.form__row { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.form__row--half { grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row--half > div { display: grid; gap: 10px; min-width: 0; }
.form label, .form legend { font-size: 13px; letter-spacing: .12em; color: var(--paper); padding: 0; }
.form label span { font-size: 10px; margin-left: 10px; color: var(--greige); border: 1px solid var(--line-l); padding: 1px 8px; border-radius: 99px; }
.form input:not([type="radio"]), .form select, .form textarea {
  width: 100%; min-width: 0;
  background: transparent; color: var(--white);
  border: 0; border-bottom: 1px solid var(--line-l);
  padding: 12px 0; font: inherit; font-size: 16px; letter-spacing: .06em;
  border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color .4s;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--greige) 50%), linear-gradient(135deg, var(--greige) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.form select option { color: var(--ink); }
.form input::placeholder, .form textarea::placeholder { color: rgba(245,243,239,.3); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--white); }
.form input[type="date"] { color-scheme: dark; min-height: 49px; }
.form input[aria-invalid="true"] { border-color: #c9a38f; }
.form__staff { display: flex; flex-wrap: wrap; gap: 10px; }
.form__staff legend { margin-bottom: 12px; }
.form__staff label { position: relative; }
.form__staff input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.form__staff label span { display: inline-block; margin: 0; font-size: 13px; color: var(--paper); padding: 8px 18px; border-color: var(--line-l); transition: background .3s, color .3s; }
.form__staff input:checked + span { background: var(--white); color: var(--ink); border-color: var(--white); }
.form__staff input:focus-visible + span { outline: 1px solid var(--greige); outline-offset: 3px; }
.form__demo { font-size: 12px; color: var(--greige-d); }
.form__submit { justify-self: start; min-width: 240px; }
.form__result { font-family: var(--mincho); font-size: 14px; color: var(--paper); min-height: 1.5em; }

/* ---------- footer ---------- */
.footer { background: var(--black); color: var(--greige); border-top: 1px solid var(--line-l); padding: 64px 0 140px; }
.footer__inner { display: grid; gap: 24px; }
.footer__logo { font-family: var(--serif); color: var(--white); font-size: 40px; letter-spacing: .3em; line-height: 1; display: flex; flex-direction: column; }
.footer__logo small { font-size: 12px; letter-spacing: .32em; font-style: italic; color: var(--greige); margin-top: 8px; }
.footer__addr, .footer__copy { font-size: 12px; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1fr 1fr auto; align-items: end; } .footer { padding-bottom: 72px; } }

/* ---------- sample badge ---------- */
.sample-badge {
  position: fixed; right: 12px; bottom: 12px; z-index: 80;
  max-width: calc(100vw - 24px);
  background: rgba(245,243,239,.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 11px; line-height: 1.6; letter-spacing: .04em;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.sample-badge p { font-weight: 400; }
.sample-badge a { color: var(--greige-d); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- JSが動く時だけの初期状態 ---------- */
.js:not(.reduced) .line > span { transform: translateY(110%); }
.js:not(.reduced) .reveal-up,
.js:not(.reduced) .split-fade { opacity: 0; transform: translateY(24px); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee__track { transform: none; }
}

/* 2カラム内の見出しは列幅に合わせて少し小さく */
@media (min-width: 1024px) {
  .concept__grid .heading, .access__grid .heading { font-size: clamp(64px, 9vw, 128px); }
}
