/* 073 紫苑眼鏡店 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f7f6f9;
  --c-white: #ffffff;
  --c-main: #2e2a38;
  --c-accent: #a597cf;
  --c-accent-text: #5f4b99;
  --c-mist: #e9e5f2;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #dcd7e8;
  --font: "Zen Kaku Gothic Antique", sans-serif;
  --font-en: "Jost", sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 2; letter-spacing: .06em; color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, 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; }

.en { font-family: var(--font-en); font-weight: 300; font-size: 16px; letter-spacing: .3em; text-transform: uppercase; color: var(--c-accent-text); margin-bottom: 20px; }
.title { font-weight: 500; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.6; letter-spacing: .1em; color: var(--c-main); margin-bottom: 24px; }
.title--sm { font-size: clamp(24px, 2.2vw, 30px); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; text-decoration: none; letter-spacing: .14em; white-space: nowrap; flex: none; transition: background-color .6s, color .6s; }
.btn--main { background: var(--c-accent-text); color: #fff; }
.btn--main:hover, .btn--main:focus-visible { background: var(--c-main); }
.btn--lg { min-height: 60px; padding: 0 44px; font-size: 17px; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: rgba(247, 246, 249, .94); color: var(--c-main); }
.header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); padding: 0 16px 0 20px; }
.logo { display: flex; align-items: baseline; gap: 12px; min-height: 48px; align-items: center; text-decoration: none; white-space: nowrap; flex: none; }
.logo__en { font-family: var(--font-en); font-weight: 300; font-size: 24px; letter-spacing: .4em; }
.logo__ja { font-size: 15px; letter-spacing: .14em; color: var(--c-sub); }
@media (max-width: 599px) { .logo__ja { display: none; } }
.gnav { display: none; }
.header__btn { margin-left: auto; }
@media (min-width: 1080px) {
  :root { --header-h: 84px; }
  .header__inner { padding: 0 48px; gap: 32px; }
  .gnav { display: flex; gap: 28px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; letter-spacing: .14em; }
  .gnav a:hover { color: var(--c-accent-text); }
  .header__btn { margin-left: 0; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.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: 22px; height: 1px; background: currentColor; 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; left: 0; right: 0; top: 100%; background: var(--c-white); padding: 8px 20px 24px; display: flex; flex-direction: column; box-shadow: 0 16px 32px rgba(46, 42, 56, .1); }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; text-decoration: none; border-bottom: 1px solid var(--c-line); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 縦並び（スマホ・JSなし）が基本 ===== */
.panel { position: relative; padding: 96px 20px; }

/* 1. メインビジュアル：写真の下の縁は霧のようにぼける（完成形） */
.hero { padding: var(--header-h) 0 72px; }
.hero__photo { height: 62vh; min-height: 380px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__copy { position: relative; margin-top: -96px; padding: 0 20px; }
.hero__name { font-family: var(--font-en); font-weight: 300; font-size: 22vw; line-height: 1; letter-spacing: .12em; color: var(--c-accent-text); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero__name { background: linear-gradient(100deg, #3f3366 0%, #6d5aa8 45%, #a597cf 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero__title { margin-top: 20px; font-weight: 500; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.45; letter-spacing: .12em; color: var(--c-main); }
.hero__lead { margin: 16px 0 28px; max-width: 28em; }

.about__photo { margin-top: 40px; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__text p + p { margin-top: 16px; }

/* 3. フレームの形（Swiper・C02） */
.frames { padding-left: 0; padding-right: 0; }
.frames__head { padding: 0 20px; margin-bottom: 32px; }
.frames__photo { margin-top: 24px; }
.frames__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.frames__ctrl { display: none; gap: 8px; margin-top: 24px; }
.is-swiper .frames__ctrl { display: flex; }
.ctrl { width: 52px; height: 52px; border: 1px solid var(--c-accent); border-radius: 50%; background: var(--c-white); color: var(--c-main); font: inherit; font-size: 18px; cursor: pointer; transition: background-color .4s, color .4s; }
.ctrl:hover, .ctrl:focus-visible { background: var(--c-accent-text); color: #fff; }
.frames__swiper { padding: 8px 0 64px; }
.frames__swiper .swiper-slide { width: 72%; max-width: 340px; perspective: 900px; height: auto; }
.fcard { height: 100%; background: var(--c-white); border: 1px solid var(--c-line); padding: 32px 24px 28px; transform-origin: 50% 50%; will-change: transform; }
.fcard svg { width: 100%; height: auto; fill: none; stroke: var(--c-accent-text); stroke-width: 2; stroke-linecap: round; margin-bottom: 20px; }
.fcard__en { font-family: var(--font-en); font-weight: 300; font-size: 15px; letter-spacing: .3em; color: var(--c-accent-text); }
.fcard h3 { font-weight: 500; font-size: 22px; color: var(--c-main); margin: 2px 0 8px; }
.frames__swiper:not(.swiper-initialized) .swiper-wrapper { overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 0 20px 12px; }
.frames__swiper:not(.swiper-initialized) .swiper-slide { scroll-snap-align: start; }
.frames__dots.swiper-pagination-bullets { bottom: 4px; }
.frames__dots .swiper-pagination-bullet { width: 44px; height: 44px; margin: 0 !important; background: transparent; opacity: 1; position: relative; border-radius: 0; }
.frames__dots .swiper-pagination-bullet::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: var(--c-line); transition: background-color .4s; }
.frames__dots .swiper-pagination-bullet-active::after { background: var(--c-accent-text); }

/* 4. 眼鏡ができるまで（B06：縦では sticky で付箋のように積み重なる。CSSだけ） */
.stack { margin-top: 32px; }
.tab { position: sticky; background: var(--c-white); border: 1px solid var(--c-line); box-shadow: 0 -8px 24px rgba(46, 42, 56, .05); min-height: 300px; margin-bottom: 24px; }
.tab:nth-child(1) { top: calc(var(--header-h) + 12px); }
.tab:nth-child(2) { top: calc(var(--header-h) + 64px); }
.tab:nth-child(3) { top: calc(var(--header-h) + 116px); }
.tab:nth-child(4) { top: calc(var(--header-h) + 168px); }
.tab:nth-child(5) { top: calc(var(--header-h) + 220px); }
.tab__label { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--c-line); background: var(--c-mist); font-weight: 500; color: var(--c-main); }
.tab__label span { font-family: var(--font-en); color: var(--c-accent-text); letter-spacing: .1em; }
.tab__body { padding: 24px 20px 32px; }
.tab__body h3 { font-weight: 500; font-size: 20px; color: var(--c-main); margin-bottom: 8px; }

.care__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.care__text { margin-top: 40px; }
.care__list { margin-top: 24px; border-top: 1px solid var(--c-line); }
.care__list li { padding: 12px 0; border-bottom: 1px solid var(--c-line); color: var(--c-main); }

.reserve { background: var(--c-mist); }
.reserve__title { font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.5; letter-spacing: .1em; color: var(--c-main); margin-bottom: 20px; }
.reserve__inner .btn { margin-top: 32px; }
.reserve__tel { margin-top: 16px; font-size: 15px; }
.reserve__photo { margin-top: 48px; }
.reserve__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.shop { padding: 96px 20px; background: var(--c-white); }
.shop__inner { max-width: 960px; margin: 0 auto; }
.info div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.info dt { font-weight: 500; color: var(--c-main); }
@media (min-width: 768px) {
  .panel { padding: 120px 48px; }
  .hero { padding: var(--header-h) 0 96px; }
  .hero__copy { padding: 0 48px; }
  .frames { padding-left: 0; padding-right: 0; }
  .frames__head { padding: 0 48px; }
  .info div { grid-template-columns: 9em 1fr; gap: 24px; }
}

.footer { background: var(--c-main); color: #ebe8f2; padding: 64px 20px 40px; text-align: center; font-size: 15px; }
.footer__logo { font-family: var(--font-en); font-weight: 300; font-size: 24px; letter-spacing: .4em; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 16px 0 24px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }

/* PCでJSが無いとき（縦並びのまま）：写真が大きくなりすぎないよう2列に */
@media (min-width: 1080px) {
  html:not(.is-h) .about, html:not(.is-h) .care, html:not(.is-h) .reserve { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  html:not(.is-h) .about__photo, html:not(.is-h) .care__text, html:not(.is-h) .reserve__photo { margin: 0; }
  html:not(.is-h) .about__photo img, html:not(.is-h) .care__photo img { max-height: 80vh; }
  html:not(.is-h) .steps { max-width: 1100px; margin: 0 auto; }
}

.hstatus, .hbar { display: none; }

/* ===== 横の旅（PC・JSあり。script.js が .is-h を付ける） ===== */
@media (min-width: 1080px) {
  .is-h .hwrap { height: 100vh; overflow: hidden; }
  .is-h .htrack { display: flex; height: 100vh; width: max-content; }
  .is-h .panel { flex: none; height: 100vh; padding: calc(var(--header-h) + 32px) 5vw 96px; display: flex; align-items: center; gap: 4vw; }

  .is-h .hero { width: 100vw; padding: 0; display: block; }
  .is-h .hero__photo { position: absolute; left: 0; right: 0; top: var(--header-h); height: 74vh; min-height: 0; }
  .is-h .hero__copy { position: absolute; left: 6vw; right: 6vw; bottom: 8vh; margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 4vw; align-items: end; }
  .is-h .hero__name { grid-column: 1 / -1; font-size: min(15vw, 24vh); margin-bottom: -.06em; }
  .is-h .hero__title { margin: 0; font-size: min(4.4vw, 7vh); }
  .is-h .hero__lead { margin: 0 0 6px; }
  .is-h .hero__copy .btn { grid-column: 2; justify-self: start; margin-top: 20px; }

  .is-h .about { width: 76vw; }
  .is-h .about__text { width: 30vw; flex: none; }
  .is-h .about__photo { margin: 0; height: 70vh; }
  .is-h .about__photo img { height: 100%; width: auto; aspect-ratio: 4 / 5; }

  .is-h .frames { width: 100vw; padding-right: 0; }
  .is-h .frames__head { width: 24vw; flex: none; padding: 0; margin: 0; }
  .is-h .frames__photo img { height: 22vh; width: 100%; aspect-ratio: auto; }
  .is-h .frames__swiper { flex: 1; min-width: 0; padding: 24px 0 64px; }
  .is-h .frames__swiper .swiper-slide { width: 22vw; max-width: none; }
  .is-h .fcard { padding: 4vh 2vw 3vh; }

  .is-h .steps { width: 100vw; }
  .is-h .steps__head { width: 22vw; flex: none; }
  .is-h .stack { position: relative; flex: 1; height: 62vh; margin: 0; overflow: hidden; }
  .is-h .tab { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% - 4 * 72px); min-height: 0; margin: 0; display: flex; box-shadow: -16px 0 32px rgba(46, 42, 56, .08); }
  .is-h .tab__label { writing-mode: vertical-rl; flex: none; width: 72px; height: auto; padding: 24px 0; justify-content: flex-start; border-bottom: 0; border-right: 1px solid var(--c-line); font-size: 18px; letter-spacing: .2em; }
  .is-h .tab__label span { writing-mode: horizontal-tb; }
  .is-h .tab__body { padding: 6vh 3vw; align-self: center; }
  .is-h .tab__body h3 { font-size: 26px; margin-bottom: 16px; }

  .is-h .care { width: 82vw; }
  .is-h .care__photo { height: 72vh; flex: none; }
  .is-h .care__photo img { height: 100%; width: auto; }
  .is-h .care__text { margin: 0; width: 32vw; }

  .is-h .reserve { width: 100vw; }
  .is-h .reserve__inner { width: 36vw; flex: none; }
  .is-h .reserve__photo { margin: 0; flex: 1; height: 66vh; }
  .is-h .reserve__photo img { height: 100%; aspect-ratio: auto; }

  .is-h .hstatus { display: flex; align-items: center; gap: 14px; position: fixed; z-index: 55; right: 48px; bottom: 28px; font-family: var(--font-en); font-weight: 300; color: var(--c-main); letter-spacing: .14em; transition: opacity .6s; }
  .is-h .hstatus__no { font-size: 28px; }
  .is-h .hstatus__line { width: 48px; height: 1px; background: var(--c-accent); }
  .is-h .hstatus__all { font-size: 18px; color: var(--c-sub); }
  .is-h .hstatus__name { margin-left: 12px; font-size: 15px; letter-spacing: .3em; color: var(--c-accent-text); }
  .is-h .hbar { display: block; position: fixed; z-index: 61; left: 0; right: 0; top: 0; height: 2px; background: var(--c-mist); transition: opacity .6s; }
  .is-h .hbar span { display: block; height: 100%; background: var(--c-accent-text); transform-origin: left; transform: scaleX(0); }
  .is-h.is-hdone .hstatus, .is-h.is-hdone .hbar { opacity: 0; }
}

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