@import "./themes.css?v=5";
@import "./img-themes.css?v=32";
/* main.css v=455 */

/* ── Shippori Latin: 英字のみ Shippori Mincho B1 を使う @font-face ────
   unicode-range をラテン文字に限定。日本語はスタック内の次のフォント
   (Noto Sans JP) にフォールバックするので、英字→明朝系・日本語→ゴシック
   という混在表示が CSS だけで実現できる。                              */

/* Latin Extended */
@font-face {
  font-family: 'Shippori Latin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/shipporiminchob1/v24/wXK1E2wCr44tulPdnn-xbIpJ9RgT9-nKMo9_13Kgxn0Euw07.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Shippori Latin';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/shipporiminchob1/v24/wXK1E2wCr44tulPdnn-xbIpJ9RgT9-nKLox_13Kgxn0Euw07.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Latin Basic */
@font-face {
  font-family: 'Shippori Latin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/shipporiminchob1/v24/wXK1E2wCr44tulPdnn-xbIpJ9RgT9-nKMo9_2XKgxn0Euw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Shippori Latin';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/shipporiminchob1/v24/wXK1E2wCr44tulPdnn-xbIpJ9RgT9-nKLox_2XKgxn0Euw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  min-height: 100%;
  overscroll-behavior-y: none;
  background: var(--color-bg);
  overflow-x: hidden; /* bodyではなくhtmlに置くことでposition:fixedを壊さない */
}

body {
  width: 100%;
  min-height: 100svh;
  overscroll-behavior-y: none;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  color: var(--color-text);
}

/* ボタン・ナビ等の操作要素はテキスト選択禁止 */
button, .panels-fab, .menu-nav__item, .cta-btn,
.hero-cta__primary, .hero-cta__secondary,
.sticky-bottom-bar, .section-label, .scroll-hint,
.footer-edit, .sns-btn, .result-label {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

#app {
  width: 100%;
  max-width: 393px;
  margin: 0 auto;
}

.screen {
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.s1 {
  padding:
    max(1.25rem, env(safe-area-inset-top))
    1.25rem
    max(0.875rem, env(safe-area-inset-bottom));
  gap: 0;
  position: relative;
  isolation: isolate;
}

.s1-hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

/* ヒーロー下端フェード — テーマ・背景設定に依存しない共通レイヤー */
.s1::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}


.biz-name {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-accent);
  white-space: pre-line;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  font-family: 'Shippori Latin', 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55), 0 1px 6px rgba(0,0,0,0.40);
}

/* キャッチフレーズの存在感を強化 */
.biz-catchphrase {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-accent);
  margin-top: 0.75rem;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 10px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.35);
  white-space: pre-line;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ── トップ左上ロゴ店名 ───────────────────────────────── */
.s1-logo-name {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  left: 1.25rem;
  line-height: 44px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  text-shadow: 0 1px 8px rgba(0,0,0,0.45), 0 0 3px rgba(0,0,0,0.25);
  white-space: nowrap;
  max-width: calc(100% - 5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 10;
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero CTA ───────────────────────────────────────── */
.hero-cta {
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.s1-hero__cta { display: none; }

.hero-cta__row {
  display: flex;
  width: 100%;
  gap: 0.5rem;
}

.hero-cta__primary {
  flex: 1;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 14px;
  background: rgba(45, 28, 18, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(180, 130, 90, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 210, 160, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.16,1,0.3,1);
  -webkit-tap-highlight-color: transparent;
}

.hero-cta__secondary {
  flex: 1;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.40);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    0 2px 8px rgba(0,0,0,0.14);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.16,1,0.3,1);
  -webkit-tap-highlight-color: transparent;
}


.hero-cta__primary:active,
.hero-cta__secondary:active { opacity: 0.72; transform: scale(0.97); }

.hero-cta__icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-cta__icon svg { width: 100%; height: 100%; }

.hero-sns-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 28px;
}


/* ── Services + Menu Section ─────────────────────────── */
.services-menu-section {
  padding: 0 1.25rem 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.services-menu-section .section-label { margin-bottom: 0; }

/* パネル間の呼吸 */
.panels-grid {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem 2rem 0.875rem 0.875rem;
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface);
  cursor: default;
  text-align: left;
  min-height: 88px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.05);
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.panel-arrow {
  position: absolute;
  right: 0.625rem;
  top: 0.8125rem;
  width: 13px;
  height: 13px;
  color: var(--color-text-muted);
  opacity: 0.35;
}

.panel-arrow svg { width: 100%; height: 100%; }

.panel-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

/* panel-desc を最低限読める大きさに */
.panel-price {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.panel-desc {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

/* 3パネル時 — 下段を全幅 */
.panels-grid--3 {
  grid-template-columns: repeat(2, 1fr);
}
.panel-full {
  grid-column: 1 / -1;
}
.panel-full .panel {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-height: 72px;
}

/* info-card 下余白を調整 */
.info-card {
  flex: 0 0 auto;
  display: block;
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  padding: 0.875rem;
  background: var(--color-surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.05);
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.info-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.625rem;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: 0.5625rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* アイコン opacity をテキストより下げて視線をテキストへ */
.info-row-icon {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  opacity: 0.4;
}

.info-row-icon svg { width: 100%; height: 100%; }

.info-cta {
  display: block;
  width: 100%;
}

.info-cta__row {
  display: flex;
  width: 100%;
  gap: 0.5rem;
}

/* CTAボタンに押し込み感を追加、R統一 */
.cta-btn {
  flex: 1;
  height: 44px;
  padding: 0 0.875rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 14px;
  transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.16,1,0.3,1);
  -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  white-space: nowrap;
}

.cta-btn:active { opacity: 0.72; transform: scale(0.97); }

@media (hover: hover) {
  .cta-btn:hover { opacity: 0.85; }
}

.cta-btn__icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-btn__icon svg { width: 100%; height: 100%; }

.cta-btn__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* s2 は自由スクロール */
.s2 {
  height: auto;
  overflow: visible;
  padding-top: 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  background: var(--color-bg);
}

/* 説明文セクション */
.about-section {
  padding: 3rem 1.25rem 3rem;
}

.about-text {
  font-size: 0.875rem;
  line-height: 1.95;
  color: var(--color-text-sub);
  letter-spacing: 0.03em;
  white-space: pre-wrap;
  -webkit-font-smoothing: antialiased;
}
/* PC用説明文の出し分け */
@media (min-width: 768px) { .about-text--sp { display: none; } }
@media (max-width: 767px) { .about-text--pc { display: none; } }


/* トレーナーセクション */
.trainer-section {
  padding: 2.75rem 1.25rem 3rem;
  border-top: 1px solid var(--color-border-soft);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.trainer-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.trainer-card:first-of-type {
  padding-top: 0;
}

.trainer-card__photo {
  flex: 0 0 calc(50% - 0.5rem);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-surface);
}

.trainer-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trainer-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.25rem;
}

.trainer-card__name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
  font-family: 'Shippori Latin', 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.trainer-card__title {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-sub);
  opacity: 0.75;
}

.trainer-card__bio {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--color-text-sub);
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
}

/* アクセスセクション */
.access-section {
  padding: 2.75rem 1.25rem 3.5rem;
  border-top: 1px solid var(--color-border-soft);
}

.access-section .info-row {
  font-size: 0.75rem;
  line-height: 1.7;
  margin-bottom: 0.25rem;
}

.access-section .info-row:last-child {
  margin-bottom: 0;
}

/* Google Maps埋め込み */
.map-frame {
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  height: 220px;
  background: var(--color-surface);
}

.gallery-area {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 2.75rem 1.25rem 3rem;
  gap: 0.625rem;
  justify-content: center;
}

/* section-label の区切り線を控えめに */
.section-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.85;
  margin-bottom: 1rem;
  -webkit-font-smoothing: antialiased;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.2;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.gallery-grid__item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
}

.gallery-grid__item:last-child:nth-child(odd) {
  grid-column: span 2;
}

.gallery-grid__img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.gallery-grid__item:last-child:nth-child(odd) .gallery-grid__img-wrap {
  aspect-ratio: 2 / 1;
}

.gallery-grid__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Gallery Caption Glass ──────────────────────────────────
   ギャラリーキャプション専用ガラスクラス。
   SNS / CTA ガラスとは完全に独立。
   背景・ぼかし・テキスト色・ボーダーはここだけで管理する。
   ──────────────────────────────────────────────────────── */
.gallery-caption-glass {
  background: rgba(0, 0, 0, 0.50);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.90);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.gallery-grid__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.625rem 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.gallery-caption__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 0;
}

.gallery-caption__desc {
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  opacity: 0.75;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ── Gallery Style 2: Horizontal Slider ── */
.gallery-slider {
  width: 100%;
  overflow: hidden;
}

.gallery-slider__track {
  display: flex;
  gap: 12px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 1.25rem;
  padding-right: calc(18% + 1.25rem);
  box-sizing: border-box;
}

.gallery-slider__track::-webkit-scrollbar {
  display: none;
}

.gallery-slider__card {
  flex: 0 0 82%;
  scroll-snap-align: start;
}

.gallery-slider__img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.gallery-slider__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-slider__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* SNSボタンに :active フィードバック追加 */
.sns-row {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 1.25rem 1rem;
}

.sns-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-text-sub);
  transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.16,1,0.3,1);
  -webkit-tap-highlight-color: transparent;
}

.sns-btn:active {
  opacity: 0.72;
  transform: scale(0.95);
}

/* sns-btn-icon の R統一 */
.sns-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}


.sns-btn-icon svg { width: 18px; height: 18px; }

/* ラベルを読める濃さに */
.sns-btn-label {
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}

.site-footer {
  flex-shrink: 0;
  position: relative;
  border-top: 1px solid var(--color-border-soft);
  padding: 0.625rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  text-align: center;
}

/* ── Sticky Bottom CTA Bar ────────────────────────────── */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.625rem 1.25rem max(0.75rem, env(safe-area-inset-bottom));
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  will-change: opacity, transform;
}
.sticky-bottom-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-bottom-bar__inner {
  max-width: 393px;
  margin: 0 auto;
}

/* sticky bar に乗っかられるフッターに下余白を追加 */
body.has-sticky-bar .site-footer {
  padding-bottom: max(5rem, calc(env(safe-area-inset-bottom) + 5rem));
}

/* S2 背景に合わせた Solid ボタンスタイル（blur不要） */
.sticky-bottom-bar .hero-cta__primary {
  background: var(--color-text);
  color: var(--color-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
}
.sticky-bottom-bar .hero-cta__secondary {
  background: transparent;
  color: var(--color-text);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: var(--color-text);
  box-shadow: none;
  opacity: 0.75;
}

/* PC では非表示（デスクトップは hero CTA で完結） */
@media (min-width: 768px) {
  .sticky-bottom-bar { display: none !important; }
  body.has-sticky-bar .site-footer { padding-bottom: inherit; }
}

/* copyright の文字間隔を締める */
.footer-copy {
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  opacity: 0.65;
  margin-top: 0.25rem;
}

/* 通常は控えめ、保存直後のみ fully visible */
.footer-edit {
  position: fixed;
  left: 1rem;
  top: max(0.875rem, env(safe-area-inset-top));
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0,0,0,0.52);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
  z-index: 50;
  font-style: normal;
  font-size: 0;
  opacity: 0.4;
}

.footer-edit--highlight { opacity: 1; }

.footer-edit::before {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.92;
}

.footer-edit:active { transform: scale(0.92); }
@media (hover: hover) {
  .footer-edit:hover { transform: scale(1.06); opacity: 1; }
}

.s1[data-bg] {
  margin-left:  calc((100% - 100vw) / 2);
  margin-right: calc((100% - 100vw) / 2);
  padding-left:  calc((100vw - 100%) / 2 + 1.25rem);
  padding-right: calc((100vw - 100%) / 2 + 1.25rem);
  background-image:
    linear-gradient(to top, var(--color-bg) 0%, transparent 20%, transparent 100%),
    var(--bg-image);
  background-size: 100% 100%, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}



@media (max-height: 700px) {
  .s1 { padding-top: max(0.875rem, env(safe-area-inset-top)); }
  .s1-hero { padding-bottom: 1rem; }
  .biz-name { font-size: clamp(1.5rem, 7vw, 2.25rem); }
  .panel { min-height: 72px; padding: 0.625rem 1.75rem 0.5rem 0.625rem; }
  .cta-btn { font-size: 0.5625rem; min-height: 28px; }
}

@media (max-height: 600px) {
  .biz-subtitle { display: none; }
  .panel { min-height: 60px; }
  .panel-desc { display: none; }
}

/* アニメ duration 統一、d5/d7 delay 短縮で5秒以内に全要素表示 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim      { opacity: 0; }
.anim-d1   { animation: fadeUp 1.6s cubic-bezier(0.16,1,0.3,1) 0.10s both; }
.anim-d2   { animation: fadeUp 1.6s cubic-bezier(0.16,1,0.3,1) 0.36s both; }
.anim-d3   { animation: fadeUp 1.6s cubic-bezier(0.16,1,0.3,1) 0.64s both; }
.anim-d5   { animation: fadeUp 1.6s cubic-bezier(0.16,1,0.3,1) 1.30s both; }
.anim-d6   { animation: fadeUp 1.6s cubic-bezier(0.16,1,0.3,1) 1.55s both; }
.anim-d7   { animation: fadeUp 1.6s cubic-bezier(0.16,1,0.3,1) 1.50s both; }

.scroll-anim { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.scroll-anim.is-visible { opacity: 1; transform: translateY(0); }
.scroll-anim-d1 { transition-delay: 0.10s; }
.scroll-anim-d2 { transition-delay: 0.36s; }
.scroll-anim-d3 { transition-delay: 0.64s; }

/* スクロールヒントを早期表示 */
.scroll-hint {
  position: absolute;
  bottom: max(0.875rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-muted);
  opacity: 0;
  animation: scrollHintIn 0.6s ease 1.6s forwards;
  pointer-events: none;
  z-index: 1;
}
.scroll-hint svg { display: block; animation: scrollHintBounce 1.8s ease-in-out 1.8s infinite; }

@keyframes scrollHintIn  { to { opacity: 0.5; } }
@keyframes scrollHintBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* data-text-color はヒーロー(s1)のみに適用 — 他セクションはテーマ色を継承 */
html[data-text-color="ivory"]     .s1 { --color-text: #f4f0e6 !important; --color-text-sub: rgba(244,240,230,0.65) !important; --color-text-muted: rgba(244,240,230,0.42) !important; }
html[data-text-color="blue-grey"] .s1 { --color-text: #0e1e38 !important; --color-text-sub: rgba(14,30,56,0.62) !important;   --color-text-muted: rgba(14,30,56,0.40) !important; }
html[data-text-color="white"]     .s1 { --color-text: #ffffff !important; --color-text-sub: rgba(255,255,255,0.65) !important; --color-text-muted: rgba(255,255,255,0.42) !important; }
html[data-text-color="black"]     .s1 { --color-text: #111111 !important; --color-text-sub: rgba(17,17,17,0.60) !important;   --color-text-muted: rgba(17,17,17,0.38) !important; }

html[data-accent-color="ivory"]     { --color-accent: #f4f0e6 !important; --color-accent-2: #e6e0d2 !important; }
html[data-accent-color="blue-grey"] { --color-accent: #1d3f72 !important; --color-accent-2: #2e5490 !important; }
html[data-accent-color="white"]     { --color-accent: #ffffff !important; --color-accent-2: rgba(255,255,255,0.82) !important; }
html[data-accent-color="black"]     { --color-accent: #111111 !important; --color-accent-2: #2a2a2a !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .anim, .scroll-anim { opacity: 1; transform: none; }
  .scroll-hint, .scroll-hint svg { animation: none; opacity: 0.5; }
  .page-fade-in { animation: none; opacity: 1; }
}

.gallery-pc-area { display: none; }

.gallery-pc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.gallery-pc-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
  aspect-ratio: 16 / 9;
  position: relative;
}

.gallery-pc-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.gallery-pc-item:first-child {
  grid-column: auto;
}

.gallery-pc-item:last-child:nth-child(even) {
  grid-column: auto;
}

.gallery-pc-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  html {
    background: var(--color-bg);
  }

  body {
    touch-action: auto;
    -webkit-user-select: auto;
    user-select: auto;
  }

  /* ── レイアウトリセット ── */
  #app {
    max-width: 100%;
    display: block;
  }

  .screen {
    height: auto;
    overflow: visible;
  }

  /* ── Hero: フル幅・背景画像 ── */
  .s1,
  .s1[data-bg],
  .s1[data-img-theme]:not([data-img-theme="0"]) {
    position: relative;
    top: auto;
    width: 100%;
    height: 88vh;
    min-height: 560px;
    overflow: hidden;
    padding: 3rem 4rem;
    margin: 0;
    background-image:
      linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.52) 100%),
      var(--bg-image-pc, var(--bg-image, none));
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
  }

  .s1-hero {
    flex: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
  }

  /* 店名 PC サイズ */
  .biz-name {
    font-size: clamp(3.5rem, 7vw, 7rem);
    white-space: pre-line;
  }

  .biz-catchphrase {
    font-size: 1.125rem;
  }

  /* Hero CTA (PC内ヒーロー表示) */
  .s1-hero__cta {
    display: block;
    margin-top: 1.75rem;
  }
  .hero-cta {
    max-width: 420px;
  }

  .hero-cta__secondary {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
  }

  /* ハンバーガー非表示 */
  .panels-fab,
  .panels-overlay,
  .panels-drawer,
  .scroll-hint { display: none !important; }

  /* ── コンテンツ: 中央寄せ1カラム ── */
  .s2 {
    height: auto;
    overflow: visible;
    max-width: 960px;
    margin: 0 auto;
    padding: 5rem 2rem 6rem;
    border-left: none;
    background: var(--color-bg);
  }

  .about-section,
  .services-menu-section,
  .access-section {
    padding-left: 0;
    padding-right: 0;
  }

  /* ── パネル: 4列 ── */
  .panels-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
    padding-top: 0;
  }

  .panels-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .panels-grid--3 .panel-full {
    grid-column: auto;
  }
  .panels-grid--3 .panel-full .panel {
    flex-direction: column;
    align-items: flex-start;
    min-height: 88px;
  }

  .panel-desc {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  /* ── Gallery: PCグリッド表示 ── */
  .gallery-area { display: none; }

  .gallery-pc-area {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 0 2.75rem;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .gallery-pc-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-pc-item { aspect-ratio: 4 / 3; }
  .gallery-pc-item:first-child {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }
  .gallery-pc-item:last-child:nth-child(even) {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  /* スライダーモード（style=2）PC用 */
  .gallery-pc-grid--slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-pc-grid--slider::-webkit-scrollbar { display: none; }
  .gallery-pc-grid--slider .gallery-pc-item {
    flex: 0 0 58%;
    scroll-snap-align: start;
    aspect-ratio: 16 / 9;
  }

  /* SNS非表示（Heroにあるため） */

  /* ── その他 ── */
  .footer-edit { top: 1rem; left: 1rem; }
  .site-footer { padding-left: 0; padding-right: 0; }
  .float-phone { right: 2rem; bottom: 2rem; width: 52px; height: 52px; }

  .anim-d5 { animation-delay: 0.55s !important; }
  .anim-d6 { animation-delay: 0.75s !important; }
  .anim-d7 { animation-delay: 0.95s !important; }

  /* ── Trainer: 3列グリッド ── */
  .trainer-section {
    padding-left: 0;
    padding-right: 0;
  }
  .trainer-card {
    gap: 1.5rem;
  }

  /* ── Results: 3列グリッド（コンパクト） ── */
  .results-section {
    padding-left: 0;
    padding-right: 0;
  }
  .results-slider {
    overflow-x: visible;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-right: 0;
    scroll-snap-type: none;
  }
  .result-card {
    flex: none;
    width: 100%;
  }
  /* Before/After を CSS グリッドで横並び・正方形に */
  .result-imgs {
    display: grid;
    grid-template-columns: 1fr 14px 1fr;
    align-items: center;
    gap: 4px;
  }
  .result-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;   /* 正方形でコンパクトに */
  }
  .result-arrow {
    display: flex;
    justify-content: center;
    transform: rotate(-90deg);
    opacity: 0.35;
  }
  .result-title {
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }
  .result-desc { font-size: 0.6875rem; }
}

/* 保存後リダイレクト時のフェードイン演出 */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body.page-fade-in {
  animation: pageFadeIn 0.45s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── Panels Hamburger Drawer ─────────────────────────────────── */

/* FAB button */
.panels-fab {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: 1rem;
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  transition: opacity 0.15s, transform 0.15s cubic-bezier(0.16,1,0.3,1);
  -webkit-tap-highlight-color: transparent;
}
.panels-fab:active { transform: scale(0.91); }

/* Overlay backdrop */
.panels-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.panels-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer panel — dark glass */
.panels-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  width: 88%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  background: rgba(8,8,14,0.93);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-left: 1px solid rgba(255,255,255,0.07);
  box-shadow: -12px 0 48px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.panels-drawer.is-open { transform: translateX(0); }

.panels-drawer__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem 1.125rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.panels-drawer__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.panels-drawer__close:active {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}

.panels-drawer__title {
  flex: 1;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}

.panels-drawer__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1rem 1.125rem 1.5rem;
}

/* ── Menu navigation items ───────── */
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.menu-nav__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 0.9375rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s cubic-bezier(0.16,1,0.3,1),
              border-color 0.18s,
              transform 0.15s cubic-bezier(0.16,1,0.3,1);
  -webkit-tap-highlight-color: transparent;
}
.menu-nav__item:active {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.13);
  transform: scale(0.985);
}

.menu-nav__item--no-link {
  opacity: 0.45;
  cursor: default;
}

/* CTA items — slightly highlighted */
.menu-nav__item--cta {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.menu-nav__item--cta .menu-nav__label { font-weight: 600; }

.menu-nav__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.38);
}
.menu-nav__icon svg { width: 18px; height: 18px; }
.menu-nav__item--cta .menu-nav__icon { color: rgba(255,255,255,0.6); }

.menu-nav__label {
  flex: 1;
  color: rgba(255,255,255,0.85);
}

.menu-nav__arrow {
  flex-shrink: 0;
  color: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
}


/* Scroll lock: body overflow は使わない（スクロールバー消失によるレイアウトジャンプを防ぐため）
   ドロワー内の overscroll-behavior: contain で背景スクロールを抑制する */
/* body.panels-open { overflow: hidden; } ← 削除済み */

/* ── Fix ①: img-theme 適用時の左右余白バグ修正 ─────────────────── */
/* .s1[data-bg] と同じ全画面幅トリックを img-theme 時にも適用する  */
.s1[data-img-theme]:not([data-img-theme="0"]) {
  margin-left:  calc((100% - 100vw) / 2);
  margin-right: calc((100% - 100vw) / 2);
  padding-left:  calc((100vw - 100%) / 2 + 1.25rem);
  padding-right: calc((100vw - 100%) / 2 + 1.25rem);
  overflow: hidden;
}

/* ── Fix ②: section.screen.s1 を viewport 全幅に（白線修正）── */
section.screen.s1 {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

/* ══════════════════════════════════════════════
   Title Style System
   5種類のタイトルレイアウト世界観
   data-title-style="N" on .s1
══════════════════════════════════════════════ */

/* Style 01 — Salon Classic: デフォルト（上書きなし）
   中央配置・明朝体・現在のデザインそのまま */

/* Style 02 — Cafe Editorial: 左上・Sans・雑誌風 */
[data-title-style="2"] .s1-hero {
  align-items: flex-start;
  text-align: left;
  justify-content: flex-start;
  padding-top: 3.5rem;
  gap: 0;
}
[data-title-style="2"] .biz-name {
  font-family: 'Shippori Latin', 'Noto Sans JP', sans-serif;
  font-size: 2.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  line-height: 1.05;
  white-space: normal;
}
[data-title-style="2"] .biz-catchphrase {
  font-size: 0.5625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 1.25rem;
  line-height: 1.6;
}
[data-title-style="2"] .hero-cta { align-self: stretch; margin-top: 28vh; }

/* Style 03 — Luxury Hotel: 中央上・明朝体・ホテル風 */
[data-title-style="3"] .hero-cta { margin-top: 26vh; }
[data-title-style="3"] .s1-hero {
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  padding-top: 5rem;
  gap: 0;
}
[data-title-style="3"] .biz-name {
  font-size: 2.75rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
}
[data-title-style="3"] .biz-catchphrase {
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  font-weight: 300;
  margin-top: 1.75rem;
  line-height: 2;
  text-transform: uppercase;
}

/* Style 04 — Urban Brand: 左下・太字Sans・ブランド風 */
[data-title-style="4"] .s1-hero {
  align-items: flex-start;
  text-align: left;
  justify-content: flex-end;
  padding-bottom: 4.5rem;
  gap: 0;
}
[data-title-style="4"] .biz-name {
  font-family: 'Shippori Latin', 'Noto Sans JP', sans-serif;
  font-size: 3.5rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 0.95;
  white-space: normal;
}
[data-title-style="4"] .biz-catchphrase {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-top: 0.625rem;
  line-height: 1.5;
}
[data-title-style="4"] .hero-cta { align-self: stretch; }

/* Style 05 — Modern Studio: 中央下・ミニマルSans・スタジオ風 */
[data-title-style="5"] .s1-hero {
  align-items: center;
  text-align: center;
  justify-content: flex-end;
  padding-bottom: 6rem;
  gap: 0;
}
[data-title-style="5"] .biz-name {
  font-family: 'Shippori Latin', 'Noto Sans JP', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  line-height: 1.2;
  white-space: normal;
}
[data-title-style="5"] .biz-catchphrase {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 1.25rem;
  line-height: 1.6;
}

/* ── Mobile: Title Style 2/3/5 キャッチコピー視認性向上 ── */
@media (max-width: 767px) {
  [data-title-style="2"] .biz-catchphrase {
    font-size: 0.76rem;
    letter-spacing: 0.2em;
  }
  [data-title-style="3"] .biz-catchphrase {
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    line-height: 1.6;
  }
  [data-title-style="5"] .biz-catchphrase {
    font-size: 0.76rem;
    letter-spacing: 0.2em;
  }
}

/* ═══════════════════════════════════════════════════════
   GYM LAYOUT OVERRIDE — STRUCTURE FIRST
   セクション順序を美容室と別物に。サービス最優先表示
   ═══════════════════════════════════════════════════════ */

/* ── FAB: 角型 ───────────────────────────────────────── */
.panels-fab {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

/* ── s2: flex化してセクション順序を制御 ────────────────── */
.s2 {
  display: flex;
  flex-direction: column;
}

/* 表示順: About → Program → Trainer → Gallery/Results → Access → FAQ → CTA → Footer */
.about-section         { order: 1; }
.services-menu-section { order: 2; }
.trainer-section       { order: 3; }
.results-section       { order: 4; }
.gallery-area          { order: 4; }
.gallery-pc-area       { order: 4; }
.access-section        { order: 5; }
.faq-section           { order: 6; }
.cta-section           { order: 7; }
.site-footer           { order: 8; }

/* ── Section label: 太字・左揃え ─────────────────────── */
.section-label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  opacity: 1;
}

/* ── Panels: 2×2 カード → 全幅リスト行＋連番 ──────────── */
.panels-grid,
.panels-grid--3 {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1rem;
  counter-reset: panel-n;
}

.panel {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  padding: 1.25rem 0;
  min-height: 72px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  box-shadow: none;
  gap: 0;
  counter-increment: panel-n;
}

/* 連番: 非表示 */
.panel::before {
  display: none;
}

.panel-title {
  order: 1;
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-right: 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.panel-price {
  order: 2;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  flex-shrink: 0;
  width: 8.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  padding-right: 1.1rem;
  /* アンティークブロンズグラデーション */
  background: linear-gradient(180deg, #B8924E 0%, #7A5B30 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(168,134,75,.18));
  -webkit-font-smoothing: antialiased;
}
/* 縦ライン統一のため全行同じ padding-right を使用 */

.panel-desc {
  order: 3;
  flex-basis: 100%;
  padding-left: 0;
  font-size: 0.6rem;
  margin-top: 0.125rem;
  opacity: 0.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.panel-arrow { display: none !important; }

/* 3パネル variant */
.panel-full        { grid-column: auto; }
.panel-full .panel { flex-direction: row; flex-wrap: wrap; align-items: center; }

/* ── Services section: ゆとりある余白 ────────────────── */
.services-menu-section {
  padding-top: 2.75rem;
  padding-bottom: 3rem;
}

/* ── PROGRAM 注意書き ────────────────────────────────── */
.panels-note {
  margin-top: 1rem;
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.28);
  text-align: right;
  line-height: 1.6;
}

/* ── info-card: 極力シンプルに ───────────────────────── */
.info-card {
  border-radius: 4px;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  margin-top: 1.5rem;
  padding: 1rem 0 0;
}

.cta-btn {
  border-radius: 4px;
  border-color: rgba(255, 255, 255, 0.18);
}

/* ── About: コンパクト＋左バー ───────────────────────── */
.about-section {
  position: relative;
  padding: 2.5rem 1.25rem 2rem 2.25rem;
}

.about-section::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 2.5rem;
  bottom: 2rem;
  width: 1px;
  background: currentColor;
  opacity: 0.12;
}

.about-text {
  font-size: 0.8125rem;
  line-height: 1.9;
}

/* ── Gallery: 2×3グリッド・角なし・タイト ───────────── */
.gallery-grid {
  gap: 3px;
  grid-template-columns: 1fr 1fr;
}

.gallery-grid__item,
.gallery-grid__item:first-child,
.gallery-grid__item:nth-child(2),
.gallery-grid__item:last-child:nth-child(odd),
.gallery-grid__item:last-child:nth-child(even),
.gallery-grid__item:nth-last-child(2):nth-child(odd) {
  border-radius: 0;
  grid-column: span 1;
  aspect-ratio: 1 / 1;
}
.gallery-grid__item:last-child:nth-child(odd) .gallery-grid__img-wrap {
  aspect-ratio: 1 / 1;
}

/* ── menu image: シャープ枠 ──────────────────────────── */
.menu-img-frame {
  border-radius: 4px;
}

/* ── Map: シャープ ───────────────────────────────────── */
.map-frame { border-radius: 4px; }

/* ── CTA btn: シャープ ───────────────────────────────── */
.cta-btn {
  border-radius: 4px;
  height: 52px;
  border-color: rgba(255, 255, 255, 0.18);
}

/* ── PC 時もリスト維持 ───────────────────────────────── */
@media (min-width: 768px) {
  .panels-grid,
  .panels-grid--3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .panel          { padding: 1.5rem 0; min-height: 80px; }
  .panel-title    { font-size: 1.0625rem; }
  .panel-price    { font-size: 1rem; }
  .panel-desc     { font-size: 0.6875rem; }
}

/* ── FAQ セクション ───────────────────────────────────── */
.faq-section {
  padding: 2.75rem 1.25rem 3rem;
}

.faq-list {
  margin-top: 1.25rem;
  border-top: 1px solid var(--color-divider, rgba(255,255,255,0.08));
}

[data-theme="black"] .faq-list,
[data-theme="black"] .faq-item {
  border-color: rgba(255,255,255,0.08);
}
[data-theme="ivory"] .faq-list,
[data-theme="ivory"] .faq-item {
  border-color: rgba(0,0,0,0.10);
}

.faq-item {
  border-bottom: 1px solid var(--color-divider, rgba(255,255,255,0.08));
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq-q span {
  flex: 1;
}

.faq-chevron {
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.22s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 0 1rem 0;
}

.faq-a p {
  font-size: 0.8125rem;
  line-height: 1.85;
  opacity: 0.72;
}

/* ── Results (Before/After) セクション ──────────────────── */
.results-section {
  padding: 1.75rem 0 2rem 1.25rem;
}

.results-slider {
  display: grid;
  grid-template-rows: 1fr;
  grid-auto-flow: column;
  grid-auto-columns: calc(50% - 5px);
  gap: 10px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-right: 1.25rem;
}

.results-slider::-webkit-scrollbar { display: none; }

.result-card {
  scroll-snap-align: start;
  min-width: 0;
}

.result-imgs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
}

.result-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.result-label {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.42);
  padding: 0.2em 0.55em;
  border-radius: 2px;
  z-index: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.result-label--after {
  background: rgba(0,0,0,0.55);
}

.result-arrow {
  display: flex;
  justify-content: center;
  opacity: 0.25;
  margin: 1px 0;
}

.result-title {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.result-desc {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.56;
  line-height: 1.55;
}

/* ── Results PC レイアウト（ベース CSS より後に置くことで上書き確定） ── */
@media (min-width: 768px) {
  .results-section {
    padding-left: 0;
    padding-right: 0;
  }
  /* 横スクロール・カード幅 300px 固定 */
  .results-slider {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-right: 2rem;
  }
  .result-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
  }
  /* Before / After を横並び（CSS グリッド） */
  .result-imgs {
    display: grid;
    grid-template-columns: 1fr 14px 1fr;
    align-items: center;
    gap: 4px;
  }
  .result-img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
  }
  .result-arrow {
    display: flex;
    justify-content: center;
    transform: rotate(-90deg);
    opacity: 0.35;
  }
  .result-title { font-size: 0.8125rem; margin-top: 0.625rem; }
  .result-desc  { font-size: 0.75rem; }
}

/* ══════════════════════════════════════════════
   PREMIUM REFINEMENTS
   Identity preserved — craft elevated.
   Typography · Rhythm · Hierarchy · Restraint
══════════════════════════════════════════════ */

/* ── Panel rows: deeper breathing ──────────────── */
.panel {
  padding: 1.5rem 0;
}


/* ── Panel title: confident, not aggressive ─────── */
.panel-title {
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ── Panel price: cleaner weight ────────────────── */
.panel-price {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ── Panel desc: visible ─────────────────────────── */
.panel-desc {
  font-size: 0.6875rem;
  opacity: 0.72;
  margin-top: 0.3125rem;
  letter-spacing: 0.01em;
}

/* ── Section label: precision tracking ──────────── */
.section-label {
  letter-spacing: 0.40em;
  font-size: 0.625rem;
  opacity: 0.85;
}

/* ── CTA buttons: softer radius, more premium ───── */
.cta-btn {
  border-radius: 6px;
}

/* ── About: more air, more readable ─────────────── */
.about-section {
  padding: 3.25rem 1.25rem 2.75rem 2.25rem;
}

.about-text {
  font-size: 0.875rem;
  line-height: 2.0;
  letter-spacing: 0.025em;
}

/* ── FAQ: gothic / luxury thin ──────────────── */
.faq-q {
  padding: 1.125rem 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", sans-serif;
  font-weight: 300;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
}

.faq-a p {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", sans-serif;
  font-weight: 300;
  opacity: 0.62;
  line-height: 1.92;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

/* ── Results section: more bottom air ───────────── */
.results-section {
  padding-bottom: 3.5rem;
}

/* ── Result labels: BEFORE / AFTER ─────────────── */
.result-label {
  font-size: 0.5rem;
  padding: 0.28em 0.65em;
  border-radius: 3px;
  letter-spacing: 0.16em;
  background: rgba(0,0,0,0.50);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Result title: slight clarity boost ─────────── */
.result-title {
  font-size: 0.875rem;
  line-height: 1.45;
  letter-spacing: 0.015em;
  font-weight: 600;
}

/* ── Result desc: slightly more visible ─────────── */
.result-desc {
  opacity: 0.60;
  line-height: 1.65;
}

/* ── Result arrow: sharper ───────────────────────── */
.result-arrow {
  opacity: 0.35;
}

/* ── Trainer name: tighter, more refined ────────── */
.trainer-card__name {
  letter-spacing: 0.015em;
}

/* ── Trainer title: stronger identity ───────────── */
.trainer-card__title {
  letter-spacing: 0.16em;
  opacity: 0.60;
}

/* ── Gallery grid: tighter edit feel ────────────── */
.gallery-grid {
  gap: 2px;
}

/* ── Access info: fully readable ─────────────────── */
.access-section .info-row {
  font-size: 0.8125rem;
  line-height: 1.8;
}

/* ── SNS label: barely-there refinement ─────────── */
.sns-btn-label {
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  opacity: 0.60;
}

/* ── Info card divider: crisper ──────────────────── */
.info-card {
  margin-top: 2rem;
  padding-top: 1.25rem;
}

/* ── PC: richer proportions ─────────────────────── */
@media (min-width: 768px) {
  .panel {
    padding: 1.75rem 0;
    min-height: 84px;
  }
  .panel-title { font-size: 1.125rem; }
  .panel-price { font-size: 1.0625rem; }
  .panel-desc  { font-size: 0.75rem; opacity: 0.72; }
  .faq-q       { font-size: 1rem; padding: 1.25rem 0; }
  .faq-a p     { font-size: 0.875rem; }
  .about-text  { font-size: 0.9375rem; }
  .result-title { font-size: 0.9375rem; }
  .result-desc  { font-size: 0.8125rem; }
}

/* ══════════════════════════════════════════════
   UX LIFT — Typography · Hierarchy · Rhythm
   視線誘導・高級感・スクロールリズム強化
══════════════════════════════════════════════ */

/* ── Gallery grid: gap fix (PREMIUMの2px上書き) ─── */
.gallery-grid { gap: 10px; }

/* ── Panel desc: 折り返し表示・行間確保 ─────────── */
.panel-desc {
  white-space: normal;
  overflow: hidden;
  text-overflow: unset;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.68;
  letter-spacing: 0.015em;
  font-size: 0.6875rem;
  opacity: 0.58;
  margin-top: 0.4375rem;
}

/* ── Panel title: 字間強化・奥行きシャドウ ──────── */
.panel-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

/* ── Panel 区切り線: テーマ別に繊細なトーン ─────── */
[data-theme="black"] .panel {
  border-bottom-color: rgba(255, 255, 255, 0.065);
}
[data-theme="ivory"] .panel {
  border-bottom-color: rgba(0, 0, 0, 0.065);
}


/* ── Section rhythm: 下端に余白を加えてメリハリ ─── */
.services-menu-section { padding-bottom: 3.5rem; }
.trainer-section       { padding-bottom: 3.75rem; }
.gallery-area          { padding-bottom: 0.5rem; }

/* ── About: インデントで引用的な余白感 ──────────── */
.about-text {
  letter-spacing: 0.028em;
}

/* ── Trainer bio: more air between lines ─────────── */
.trainer-card__bio {
  line-height: 1.8;
}

/* ── Footer copy: premium letter-spacing ─────────── */
.footer-copy {
  letter-spacing: 0.18em;
}

/* ── PC: より広い字間・ゆったりした行間 ──────────── */
@media (min-width: 768px) {
  .panel-title { font-size: 1.125rem; letter-spacing: 0.06em; }
  .panel-price { font-size: 1rem; }
  .panel-desc  { font-size: 0.75rem; line-height: 1.72; opacity: 0.62; }
}

/* ── Gallery Style 3 (Before/After integrated) ────
   gallery-area is display:none on PC by default;
   override to show results when galleryStyle === 3  */
.gallery-area[data-gallery-style="3"] {
  padding: 1.75rem 0 2rem 1.25rem;
}

@media (min-width: 768px) {
  .gallery-area[data-gallery-style="3"] {
    display: flex !important;
    flex-direction: column;
    padding-left: 1.5rem;
    padding-right: 0;
  }
}

/* ============================================================
   Release stabilization overrides
   （旧 index.html インラインスタイルをここに集約）
   ============================================================ */

/* footer hidden edit hotspot */
.footer-edit-hotspot {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  opacity: 0;
  border-radius: 16px;
}

/* .biz-name フォントファミリー — title-style 全バリアント共通 */
.biz-name,
[data-title-style="2"] .biz-name,
[data-title-style="3"] .biz-name,
[data-title-style="4"] .biz-name,
[data-title-style="5"] .biz-name {
  font-family: 'Shippori Latin', 'Noto Sans JP', sans-serif !important;
}

/* Safari/iOS: html+body 両方 hidden だと position:fixed が壊れる。
   html を visible、body だけ hidden にすることで
   ・横スクロール防止（body でクリップ）
   ・position:fixed 正常動作（html がスクロールコンテナのまま）
   ・#app の clip を外せるのでヒーロー width:100vw が全幅に出る */
html { overflow-x: visible !important; }
body { overflow-x: hidden; }

/* PC でも sticky-bottom-bar を表示 */
@media (min-width: 768px) {
  .sticky-bottom-bar { display: block !important; }
  body.has-sticky-bar .site-footer {
    padding-bottom: max(5rem, calc(env(safe-area-inset-bottom) + 5rem)) !important;
  }
}

/* Before/After: カード幅・余白調整 */
.results-slider {
  grid-auto-columns: calc(73% - 5px) !important;
  gap: 20px !important;
  padding-left: 1.25rem !important;
}
.result-imgs {
  gap: 10px !important;
}
.result-img-wrap {
  border-radius: 12px !important;
}
.result-arrow {
  opacity: 0.55 !important;
  margin: 2px 0 !important;
}
.result-title {
  font-size: 0.875rem !important;
  margin-top: 0.875rem !important;
  letter-spacing: 0.02em !important;
}
.result-desc {
  font-size: 0.8rem !important;
  opacity: 0.65 !important;
  margin-top: 0.35rem !important;
}

/* Trainer: 写真を一回り小さく */
.trainer-card__photo {
  flex: 0 0 calc(40% - 0.5rem) !important;
  border-radius: 10px !important;
}
.trainer-card {
  gap: 1.125rem !important;
  padding: 1.375rem 0 !important;
}
.trainer-card:first-of-type {
  padding-top: 0 !important;
}

/* Before/After 画像フィルター — 削除済み（元画像をそのまま表示） */

/* ── PC: ビフォーアフター 2カラムグリッド表示 ────────── */
@media (min-width: 768px) {
  .gallery-area[data-gallery-style="3"] {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .results-slider {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    overflow-x: visible !important;
    gap: 1.5rem !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    scroll-snap-type: none !important;
  }
  .result-card {
    flex: none !important;
    width: 100% !important;
  }
  .result-img-wrap {
    aspect-ratio: 4 / 5 !important;
  }
}

/* ── テキストはみ出し防止（購入者入力テキスト全般） ── */
.panel-title,
.trainer-card__name,
.faq-q span,
.result-title,
.cta-btn__label,
.section-label {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ============================================================ */

.panels-drawer__title {
  display: none !important;
}
