:root {
  --ink: #25211e;
  --muted: #6f665e;
  --paper: #fbf8f1;
  --warm-paper: #f3ece0;
  --sage: #647669;
  --sage-deep: #364a3f;
  /* 小さい見出し（eyebrow など）が地の色 #fbf8f1 の上で 4.5:1 以上になる濃さ（4.62:1）。元は #aa6f4c（3.89:1） */
  --copper: #9a6445;
  --clay: #d6b8a3;
  --line: rgba(55, 45, 36, 0.16);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(40, 33, 27, 0.16);
  --content: min(1120px, calc(100% - 40px));
  /* スクロール中のヘッダーの背景。白い文字が明るい地の上でも 12:1 以上になる */
  --header-solid: rgba(37, 33, 30, 0.92);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP",
    Georgia, serif;
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.88), rgba(251, 248, 241, 1) 620px),
    var(--paper);
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
  /* img の width・height 属性で縦横比だけを伝え、表示の大きさは CSS で決める */
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 46px);
  color: var(--white);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
}

/* スクロールを始めたら濃い背景を敷く（切り替えは index.html 末尾のスクリプト） */
.site-header.is-solid {
  background: var(--header-solid);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 6px 0;
  text-decoration: none;
  /* 写真の明るい部分でも白いロゴが読めるように、文字の影と同じ役目の影を付ける */
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
  --logo-ink: currentColor;
  --logo-gloss: #f5d395;
  --logo-flare: #fff6e2;
}

.brand-mark:focus-visible {
  outline: 2px solid #f5d395;
  outline-offset: 6px;
}

.brand-mark .logo-scissors {
  position: relative;
  left: auto;
  top: auto;
  width: 34px;
  height: auto;
  aspect-ratio: 202 / 120;
}

/* 文字とひし形だけの枠（元画像で 731×105） */
.brand-word {
  position: relative;
  display: block;
  width: 118px;
  aspect-ratio: 731 / 105;
}

.brand-word .logo-wordmark {
  top: 25.714%;
  height: 74.286%;
}

.brand-word .logo-diamond {
  top: 0;
  height: 24.762%;
}

.brand-word .logo-glow {
  top: 12.381%;
  width: 22%;
}

/* ---- CYNTHiA のロゴ（images/logo/ の透過画像をマスクにして色を塗る） ----
   枠は元画像のロゴ全体（731×372）。各パーツの位置は元画像の座標から％にしたもの */
.logo-lockup {
  --logo-ink: currentColor;
  --logo-gloss: #f5d395;
  --logo-flare: #fff6e2;
  position: relative;
  display: block;
  aspect-ratio: 731 / 372;
}

.logo-part,
.logo-scissors,
.logo-line,
.logo-glow {
  position: absolute;
  display: block;
}

.logo-part {
  background: var(--logo-ink, currentColor);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.logo-wordmark {
  left: 0;
  top: 7.258%;
  width: 100%;
  height: 20.968%;
  -webkit-mask-image: url("images/logo/wordmark.png");
  mask-image: url("images/logo/wordmark.png");
  /* 艶（つや）の光が文字の上を左から右へ流れる。止まっているときは右端の地の色だけが見える */
  background:
    linear-gradient(100deg, var(--logo-ink) 0 40%, var(--logo-gloss) 48%, var(--logo-ink) 56% 100%)
    0 0 / 250% 100% no-repeat;
}

.logo-diamond {
  left: 78.796%;
  top: 0;
  width: 3.557%;
  height: 6.989%;
  -webkit-mask-image: url("images/logo/diamond.png");
  mask-image: url("images/logo/diamond.png");
}

/* ひし形が光るときの、にじむ光と十字のきらめき（マスクの外に置く） */
.logo-glow {
  left: 80.575%;
  top: 3.494%;
  width: 16%;
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
}

.logo-glow::before,
.logo-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
}

.logo-glow::before {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 220, 0.95) 0, rgba(245, 211, 149, 0.5) 22%, transparent 62%);
}

.logo-glow::after {
  background:
    linear-gradient(90deg, transparent, var(--logo-flare) 50%, transparent) center / 100% 2px no-repeat,
    linear-gradient(0deg, transparent, var(--logo-flare) 50%, transparent) center / 2px 70% no-repeat;
}

.logo-scissors {
  left: 35.157%;
  top: 44.624%;
  width: 27.633%;
  height: 32.258%;
}

.logo-scissors .logo-part {
  inset: 0;
  /* 支点（元画像のはさみの枠で 50.25%・55%）を中心に、2枚の刃が開閉する */
  transform-origin: 50.25% 55%;
}

.logo-blade-a {
  -webkit-mask-image: url("images/logo/blade-a.png");
  mask-image: url("images/logo/blade-a.png");
}

.logo-blade-b {
  -webkit-mask-image: url("images/logo/blade-b.png");
  mask-image: url("images/logo/blade-b.png");
}

.logo-salon {
  left: 28.865%;
  top: 90.323%;
  width: 42.271%;
  height: 9.677%;
  -webkit-mask-image: url("images/logo/salon.png");
  mask-image: url("images/logo/salon.png");
}

/* はさみが切る細い線。切れたあとは左右へ縮んで消える（止まっている形では見えない） */
.logo-line {
  left: 0;
  right: 0;
  top: 62.37%;
  height: 1px;
}

.logo-line::before,
.logo-line::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--logo-ink);
  opacity: 0.7;
  transform: scaleX(0);
}

.logo-line::before {
  left: 0;
  transform-origin: left center;
}

.logo-line::after {
  right: 0;
  transform-origin: right center;
}

/* 開いたときの動き（ヒーローは最初から、フッターは画面に入ったときに is-playing が付く） */
.logo-lockup.is-waiting {
  opacity: 0;
}

/* 最初の画面のロゴは、形を切り抜く画像が届くまで動きを止めておく（index.html の head のスクリプトが .logo-wait を外す）。
   止めているあいだは、各部品が動きの最初の形（見えない形）のまま待つ */
.logo-wait .hero .logo-lockup,
.logo-wait .hero .logo-lockup *,
.logo-wait .hero .logo-lockup *::before,
.logo-wait .hero .logo-lockup *::after {
  animation-play-state: paused !important;
}

.logo-lockup.is-playing .logo-scissors {
  animation: logo-scissors-in 1.1s 0.2s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.logo-lockup.is-playing .logo-blade-a {
  animation:
    logo-snip-a 0.26s 0.2s 4 ease-in-out,
    logo-snip-a 0.22s 1.34s ease-in;
}

.logo-lockup.is-playing .logo-blade-b {
  animation:
    logo-snip-b 0.26s 0.2s 4 ease-in-out,
    logo-snip-b 0.22s 1.34s ease-in;
}

.logo-lockup.is-playing .logo-line {
  animation: logo-line-draw 0.8s 0.25s ease-out both;
}

.logo-lockup.is-playing .logo-line::before,
.logo-lockup.is-playing .logo-line::after {
  animation: logo-line-cut 0.5s 1.45s cubic-bezier(0.5, 0, 0.2, 1) both;
}

.logo-lockup.is-playing .logo-wordmark {
  animation:
    logo-reveal 0.9s 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both,
    logo-gloss 1.3s 2.5s ease-in-out both;
}

.logo-lockup.is-playing .logo-diamond {
  animation: logo-diamond-in 0.6s 2.15s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

.logo-lockup.is-playing .logo-glow::before {
  animation: logo-burst 1s 2.5s ease-out both;
}

.logo-lockup.is-playing .logo-glow::after {
  animation: logo-flare 1s 2.5s ease-out both;
}

.logo-lockup.is-playing .logo-salon {
  animation: logo-rise 0.8s 2.35s ease-out both;
}

/* 左上のロゴ：ホバーしたときと、スクロールを始めたとき（is-snipping）に、はさみが2回チョキンと鳴り、文字に艶が流れる */
.brand-mark:hover .logo-blade-a,
.brand-mark.is-snipping .logo-blade-a {
  animation: logo-snip-a 0.24s 2 ease-in-out;
}

.brand-mark:hover .logo-blade-b,
.brand-mark.is-snipping .logo-blade-b {
  animation: logo-snip-b 0.24s 2 ease-in-out;
}

.brand-mark:hover .logo-wordmark,
.brand-mark.is-snipping .logo-wordmark {
  animation: logo-gloss 0.9s 0.1s ease-in-out both;
}

.brand-mark:hover .logo-glow::after,
.brand-mark.is-snipping .logo-glow::after {
  animation: logo-flare 0.8s 0.45s ease-out both;
}

@keyframes logo-scissors-in {
  from {
    transform: translateX(-128%);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes logo-snip-a {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(-12deg);
  }
}

@keyframes logo-snip-b {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(12deg);
  }
}

@keyframes logo-line-draw {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}

@keyframes logo-line-cut {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes logo-reveal {
  from {
    clip-path: inset(-10% 50% -10% 50%);
    filter: blur(8px);
    opacity: 0.2;
  }
  to {
    clip-path: inset(-10% 0 -10% 0);
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes logo-gloss {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

@keyframes logo-diamond-in {
  0% {
    transform: translateY(-160%) scale(0) rotate(-135deg);
    opacity: 0;
  }
  60% {
    transform: translateY(0) scale(1.35) rotate(8deg);
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

@keyframes logo-burst {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes logo-flare {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  35% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
  100% {
    transform: scale(0.6) rotate(20deg);
    opacity: 0;
  }
}

@keyframes logo-rise {
  from {
    transform: translateY(60%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

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

.global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 30px);
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.global-nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero picture,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

/* ---- 最初の画面の写真（1枚ずつゆっくり寄りながら、次の写真が重なって現れる） ----
   切り替えは index.html 末尾のスクリプト。動かしているあいだ .hero に is-live、止めているあいだ is-paused が付く。
   スクリプトが動かないときと、動きを減らす設定のときは、1枚目だけを止めて出す */
.hero {
  --hero-slide: 7s; /* 次の写真に替えるまで（スクリプトもこの値を読む） */
  --hero-fade: 1.8s; /* 次の写真が重なって現れる長さ（スクリプトもこの値を読む） */
  --hero-zoom: 1.1; /* 1枚を映すあいだに寄る倍率 */
}

/* 写真どうしの重なり順を、この中だけで決める（写真に重ねる影 .hero-shade より上に出さない） */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  opacity: 0;
}

/* 次の写真（is-active）を前の写真（is-leaving）の上に重ねて現し、覆い終わってから前の写真を消す */
.hero-slide.is-active,
.hero-slide.is-leaving {
  opacity: 1;
}

.hero-slide.is-active {
  z-index: 1;
}

.hero.is-live .hero-slide.is-active {
  transition: opacity var(--hero-fade) ease;
}

/* --focus（index.html の写真ごとの指定）は、スマホの縦長の画面で残す位置と、寄っていく先 */
.hero-slide .hero-image {
  object-position: var(--focus, center);
  transform: scale(var(--zoom-from, 1));
  transform-origin: var(--focus, center);
}

/* 出ていく写真も、覆われるまで寄り続ける（animation が同じなので、印が替わっても始めに戻らない）。
   一括の animation で書くと animation-play-state まで running に戻り、下の is-paused が効かないので、個別に書く */
.hero.is-live .hero-slide.is-active .hero-image,
.hero.is-live .hero-slide.is-leaving .hero-image {
  animation-name: hero-zoom;
  animation-duration: calc(var(--hero-slide) + var(--hero-fade) + 0.4s);
  animation-timing-function: linear;
  animation-fill-mode: both;
}

.hero.is-paused .hero-image {
  animation-play-state: paused;
}

@keyframes hero-zoom {
  from {
    transform: scale(var(--zoom-from, 1));
  }
  to {
    transform: scale(calc(var(--zoom-from, 1) * var(--hero-zoom)));
  }
}

/* 写真の明るい部分でも、上に載る文字が 4.5:1 以上（大きい見出しは 3:1 以上）になる濃さ。
   1段目は写真の上に重なるヘッダーの下、2段目は本文のある左側、3段目は下端 */
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 16, 14, 0.72), rgba(19, 16, 14, 0) 340px),
    linear-gradient(90deg, rgba(21, 17, 14, 0.82), rgba(21, 17, 14, 0.64) 62%, rgba(21, 17, 14, 0.3)),
    linear-gradient(0deg, rgba(19, 16, 14, 0.82), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--content);
  margin: 0 auto;
  padding: calc(128px + var(--draft-bar-h, 0px)) 0 32px;
}

.hero-review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 28px;
}

.review-score {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 8px;
  color: #f5d395;
}

.review-stars {
  grid-column: 1 / -1;
  font-size: 20px;
  line-height: 1.4;
}

.review-score strong {
  font-family: Georgia, serif;
  font-size: 76px;
  font-weight: 400;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.review-scale {
  font-size: 18px;
}

.review-details {
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

.review-details p {
  margin: 0;
}

.review-label {
  font-size: 13px;
  font-weight: 700;
}

.review-details .review-note {
  margin-top: 4px;
  color: #e3ded6;
  font-size: 12px;
  line-height: 1.7;
}

.review-details a {
  display: inline-block;
  padding: 8px 0;
  font-size: 13px;
  text-underline-offset: 4px;
}

.review-details a:focus-visible {
  outline: 2px solid #f5d395;
  outline-offset: 4px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c4a4;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

/* 見出しや短い文は、<wbr> で区切った文節の切れ目だけで折り返す */
.phrase {
  word-break: keep-all;
}

/* 語の途中で折り返さない */
.nw {
  white-space: nowrap;
}

/* 収まる幅ではひとかたまりにし、収まらないときだけ中で折り返す */
.keep {
  display: inline-block;
}

/* 最後の行が1〜2字だけにならないようにする */
p,
li,
dd {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
}

.hero .logo-lockup {
  width: clamp(260px, 38vw, 500px);
  color: var(--white);
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.2;
  text-wrap: balance;
  font-weight: 400;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0;
}

p {
  line-height: 2;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions,
.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--sage-deep);
  box-shadow: 0 14px 34px rgba(34, 45, 39, 0.22);
}

.button-secondary {
  color: currentColor;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.1);
}

.button.large {
  min-width: min(100%, 280px);
}

.hero-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: var(--content);
  margin: 0 auto 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
}

.hero-facts div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts span,
.hero-facts small {
  display: block;
  font-family: Inter, Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  text-transform: uppercase;
}

.hero-facts strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 24px;
  font-weight: 500;
}

.hero-facts small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.7;
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(78px, 10vw, 132px) 0;
}

.section-heading {
  max-width: 820px;
}

.section-heading.wide {
  max-width: 980px;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
}

.concept-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(34px, 7vw, 82px);
  /* 本文を写真の下端に揃えると、短い本文の上（見出しとの間）が大きく空くので、上で揃える。
     本文の文字を大きくして、写真と高さを近づける */
  align-items: center;
  margin-top: clamp(34px, 5vw, 56px);
}

.concept-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 0.55vw + 12px, 20px);
  line-height: 2.1;
}

.concept-copy p {
  margin: 0;
}

.concept-copy p + p {
  margin-top: 1.4em;
}

.portrait-figure {
  margin: 0;
}

.portrait-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.care-section {
  border-top: 1px solid var(--line);
  /* 下の写真の帯をカードの続きとして見せるので、間を詰める */
  padding-bottom: clamp(40px, 5vw, 64px);
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.care-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.care-card {
  min-height: 310px;
  padding: clamp(24px, 4vw, 36px);
}

/* 3枚は同じ重みで並べる（以前は2枚目だけ濃い緑で、そこだけ強調して見えた）。
   マウスを載せたカードだけ、縁を銅色にして少し浮かせる */
@media (hover: hover) {
  .care-card {
    transition:
      border-color 0.4s ease,
      box-shadow 0.4s ease,
      background-color 0.4s ease;
  }

  .care-card:hover {
    border-color: rgba(154, 100, 69, 0.45);
    background: var(--white);
    box-shadow: 0 18px 40px rgba(40, 33, 27, 0.08);
  }
}

.number {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--copper);
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.care-card p {
  margin: 18px 0 0;
  color: var(--muted);
}

/* ケアのカードと同じ幅・同じ3列・同じすき間に揃える。
   左の1枚は2列分の幅で2段分の高さ、右の2枚は3列目に縦に重ねる（どれも元の写真に近い3:2で、ほとんど切り落とさない） */
.image-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: var(--content);
  margin: 0 auto;
}

.image-band picture {
  display: block;
  min-height: 0;
  overflow: hidden;
}

.image-band picture:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.image-band img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.image-band picture:first-child img {
  height: 100%;
  aspect-ratio: auto;
}

.space-section {
  width: 100%;
  padding-left: max(20px, calc((100% - 1120px) / 2));
  padding-right: max(20px, calc((100% - 1120px) / 2));
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(36px, 7vw, 84px);
  align-items: center;
}

.split-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.split-copy p:not(.eyebrow) {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.8;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--copper);
}

.reserve-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 58px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(54, 74, 63, 0.96), rgba(54, 74, 63, 0.88)),
    var(--sage-deep);
}

.reserve-section .eyebrow {
  color: #f2c9ac;
}

.reserve-section h2 {
  font-size: clamp(30px, 4vw, 52px);
}

/* 横並びのとき、ボタンの幅を列の幅（%）に頼らず決め、枠からはみ出さないようにする */
.reserve-section .button.large {
  min-width: 240px;
  white-space: nowrap;
}

.reserve-section p:not(.eyebrow) {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.reserve-section .button-primary {
  background: var(--white);
  color: var(--sage-deep);
}

.access-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.9fr);
  gap: clamp(36px, 7vw, 80px);
  align-items: center;
}

.shop-data {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
}

.shop-data div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.shop-data dt {
  color: var(--sage);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
  font-weight: 700;
}

.shop-data dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.access-image {
  margin: 0;
}

/* 影は写真を包む枠に付ける */
.access-image picture {
  display: block;
  box-shadow: var(--shadow);
}

.access-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

/* 外観の写真の下に地図を重ねる */
.access-visual {
  display: grid;
  gap: 24px;
}

/* 1列になるタブレット幅で縦に伸びすぎないよう、高さに上限を付ける（幅を決めておかないと、上限に合わせて幅も縮む） */
.access-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 420px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.access-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.floating-reserve {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  color: var(--white);
  background: #8e5638;
  box-shadow: 0 16px 42px rgba(50, 30, 18, 0.28);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

/* ヒーローと予約欄の予約ボタンが見えているあいだは、下へ少し沈めて隠す（隠れているあいだはTabでも止まらない） */
.can-float .floating-reserve {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0s linear 0.4s;
}

.can-float .floating-reserve.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0s;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: var(--content);
  margin: 0 auto;
  padding: 54px 0 96px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer .logo-lockup {
  width: 200px;
  color: var(--ink);
  --logo-gloss: var(--copper);
  --logo-flare: #e9b98f;
}

.site-footer p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.site-footer .footer-company {
  color: var(--ink);
  font-size: 14px;
}

.site-footer .footer-company a {
  color: var(--sage-deep);
  text-underline-offset: 4px;
}

.site-footer .footer-sns {
  font-size: 14px;
}

.site-footer .footer-sns a {
  color: var(--sage-deep);
  text-underline-offset: 4px;
}

/* Hair Care と Space は、画面に入ったときに少し下からふわっと現れる（印はページ冒頭のスクリプトが付ける）。
   写真は枠の中で少し寄った状態から元の大きさに戻る。目で追わなくて済むよう、動く距離は小さく、ゆっくりにする */
.can-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0s),
    transform 1s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0s);
}

.can-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

.can-reveal picture.reveal-photo,
.can-reveal .reveal-photo picture {
  overflow: hidden;
}

.can-reveal .reveal-photo img {
  transform: scale(1.06);
  transition: transform 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0s);
}

.can-reveal .reveal-photo.is-in img {
  transform: none;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .global-nav {
    display: none;
  }

  .hero-content {
    padding: calc(128px + var(--draft-bar-h, 0px)) 0 28px;
  }

  /* 本文が横幅いっぱいに広がるので、右側まで濃くする */
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(19, 16, 14, 0.72), rgba(19, 16, 14, 0) 340px),
      linear-gradient(90deg, rgba(21, 17, 14, 0.78), rgba(21, 17, 14, 0.64)),
      linear-gradient(0deg, rgba(19, 16, 14, 0.82), transparent 52%);
  }

  .hero-facts div {
    padding: 13px 16px;
  }

  .concept-layout,
  .split-layout,
  .access-section,
  .reserve-section {
    grid-template-columns: 1fr;
  }

  .care-grid {
    grid-template-columns: 1fr;
  }

  .care-card {
    min-height: auto;
  }

  /* 大きい1枚を上に、残りの2枚を下に並べる */
  .image-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .image-band picture:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .image-band picture:first-child img {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .reserve-section {
    width: calc(100% - 28px);
  }

  .reserve-section .button.large {
    min-width: min(100%, 280px);
    white-space: normal;
  }
}

@media (max-width: 560px) {
  :root {
    --content: min(100% - 28px, 1120px);
  }

  /* 1行に12字が入る大きさにし、「艶髪、頭皮、扱いやすさ。」などの句を1行に収める（上限は30px） */
  h2 {
    font-size: min(30px, calc((100vw - 28px) / 12.2));
  }

  .site-header {
    padding: 14px;
  }

  .brand-word {
    width: 100px;
  }

  .brand-mark .logo-scissors {
    width: 30px;
  }

  .hero {
    min-height: 92svh;
  }

  /* 1枚目（スマホでは半個室の写真）は、少し大きくして下端を基準に寄せる */
  .hero-slide:first-child .hero-image {
    --zoom-from: 1.16;
    transform-origin: center bottom;
  }

  .hero-content {
    padding: calc(96px + var(--draft-bar-h, 0px)) 0 24px;
  }

  .hero .logo-lockup {
    width: min(270px, 74vw);
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-review {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 20px;
    margin-top: 20px;
  }

  .review-score strong {
    font-size: 64px;
  }

  .hero-facts {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .hero-facts strong {
    font-size: 19px;
  }

  .hero-actions,
  .access-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .shop-data div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .floating-reserve {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .site-footer {
    padding-bottom: 112px;
  }
}

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

  .button {
    transition: none;
  }

  /* ロゴは動かさず、止まった形で出す */
  .logo-lockup *,
  .logo-lockup *::before,
  .logo-lockup *::after,
  .brand-mark *,
  .brand-mark *::before,
  .brand-mark *::after {
    animation: none !important;
  }

  .logo-lockup.is-waiting {
    opacity: 1;
  }

  .can-float .floating-reserve {
    transform: none;
    transition: none;
  }

  /* 開いたあとで設定を変えたときも、現れる動きを止めて最初から出す */
  .can-reveal .reveal,
  .can-reveal .reveal-photo img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* 最初の画面の写真は寄せず、重ねて替えもしない（スクリプトは動かさないが、開いたあとで設定を変えたときのために止める） */
  .hero-image {
    animation: none !important;
  }

  .hero-slide {
    transition: none !important;
  }
}

/* ---------- スマホのメニュー（2026-10-13、横山さんの参考画像に寄せた形）。PC幅では出さず、上の並び（.global-nav）を使う ---------- */
.menu-toggle,
.site-menu {
  display: none;
}

/* 開いているあいだは、後ろのページを動かさない */
html.is-menu-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  /* 三本線のボタン。押せる大きさは48px四方 */
  .menu-toggle:not([hidden]) {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: -8px -12px -8px auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    justify-self: end;
    filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.35));
  }

  .menu-toggle-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .menu-toggle-bars span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: currentColor;
  }

  .menu-toggle-label {
    font-family: Inter, Helvetica, Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
  }

  /* 開いたメニューは画面いっぱい。右から少し寄りながら現れる */
  .site-menu:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    color: var(--ink);
    text-shadow: none;
    animation: menu-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-menu-inner {
    max-width: 560px;
    margin: 0 auto;
    padding: 10px 20px 48px;
  }

  .site-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
  }

  .site-menu-name {
    margin: 0;
    color: var(--muted);
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 0.06em;
  }

  /* ×の下に「CLOSE」 */
  .menu-close {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 52px;
    height: 52px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .menu-close-x {
    position: relative;
    width: 22px;
    height: 12px;
  }

  .menu-close-x::before,
  .menu-close-x::after {
    content: "";
    position: absolute;
    left: -2px;
    top: 50%;
    width: 26px;
    height: 1.5px;
    background: currentColor;
    transform: rotate(45deg);
  }

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

  /* 「― MENU ―」の見出し */
  .site-menu-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0 6px;
    font-family: Inter, Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
  }

  .site-menu-title::before,
  .site-menu-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
  }

  .site-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* 項目は「› 日本語　English」。区切りの線は項目の下 */
  .site-menu-list a {
    position: relative;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 12px;
    padding: 16px 4px 16px 22px;
    border-bottom: 1px solid var(--line);
    color: inherit;
    font-family: inherit;
    font-size: 17px;
    line-height: 1.5;
    text-decoration: none;
  }

  .site-menu-list a::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid var(--copper);
    border-right: 1.5px solid var(--copper);
    transform: translateY(-50%) rotate(45deg);
  }

  .site-menu-en {
    color: var(--muted);
    font-family: Inter, Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  /* 下のお問い合わせ。枠で囲まず、地の色を一段濃くして分ける。見出しはページの節と同じく英語の小見出し＋日本語 */
  .site-menu-contact {
    margin-top: 36px;
    padding: 28px 20px 30px;
    background: var(--warm-paper);
    text-align: center;
  }

  .site-menu-contact-en {
    margin: 0;
    color: var(--copper);
    font-family: Inter, Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }

  .site-menu-contact-title {
    margin: 6px 0 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.08em;
  }

  .site-menu-contact-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
  }

  /* 狭い画面では、span ごとのまとまりで折り返す（「定休）」の1語だけが次の行に落ちないように） */
  .site-menu-contact-note span {
    display: inline-block;
  }

  /* 電話は、会社のページの最初の画面のボタン（横山さんが選んだ形）と同じく、角のある形・明朝体・内側の金色の細い線 */
  .site-menu-tel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 58px;
    margin-top: 20px;
    padding: 0 20px;
    background: var(--sage-deep);
    color: var(--white);
    font-family: inherit;
    font-size: 20px;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-decoration: none;
  }

  .site-menu-tel::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid #d6ad66;
    pointer-events: none;
  }

  .site-menu-tel-label {
    font-family: Inter, Helvetica, Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    opacity: 0.85;
  }

  .site-menu-sub {
    margin: 16px 0 0;
    font-size: 13px;
  }

  .site-menu-sub a {
    color: inherit;
    text-underline-offset: 4px;
  }

  /* 予約のボタンの下の電話。予約より目立たせないよう、地の色のまま細い線で囲む */
  .site-menu-tel-small {
    min-height: 52px;
    margin-top: 12px;
    background: transparent;
    color: var(--ink);
    font-size: 18px;
  }

  .site-menu-tel-small::after {
    inset: 0;
    border-color: rgba(55, 45, 36, 0.3);
  }

  /* 予約のボタン（右下の予約ボタンと同じ色） */
  .site-menu-reserve {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 999px;
    color: var(--white);
    background: #8e5638;
    font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu:not([hidden]) {
    animation: none;
  }
}
