/* 整体ジムFOREST — tokify型グリッドLP / v5 縦4×横4 */

:root {
  --bg: #1a2a1f;
  --bg-light: #f4f7f4;
  --text: #1e2e22;
  --text-light: #f0f4f0;
  --accent: #4a8f5c;
  --line: #06c755;
  --font: "Noto Sans JP", sans-serif;
  --vh: 100vh;
  --vh: 100dvh;
  --cta-h: 52px;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: #000;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.matrix {
  height: var(--vh);
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}

.row {
  position: relative;
  height: var(--vh);
  min-height: var(--vh);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.row::-webkit-scrollbar { display: none; }

/* 横列あり：縦横どちらのスワイプも許可（pan-xのみだと縦が固まる） */
.row[data-cols]:not([data-cols="1"]) {
  touch-action: pan-x pan-y;
  cursor: grab;
}

.row[data-cols]:not([data-cols="1"]).is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.row[data-cols="1"] {
  overflow-x: hidden;
  touch-action: pan-y;
}

.page {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  overflow: hidden;
  flex-shrink: 0;
}

.row-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 36px;
  height: 56px;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.row[data-cols]:not([data-cols="1"]) .row-nav {
  opacity: 0.7;
  pointer-events: auto;
}

.row-nav:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.55);
}

.row-nav--prev { left: 8px; }
.row-nav--next { right: 8px; }

.row[data-cols]:not([data-cols="1"]) .row-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.row[data-cols]:not([data-cols="1"]) .row-nav.is-hidden:hover {
  opacity: 0;
  background: rgba(0, 0, 0, 0.35);
}

.nav-v {
  position: fixed;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.nav-v__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.3s;
}

.nav-v__dot.is-active {
  height: 20px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-v--dark .nav-v__dot {
  background: rgba(30, 46, 34, 0.2);
}

.nav-v--dark .nav-v__dot.is-active {
  background: var(--accent);
}

.nav-h {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-h.is-visible { opacity: 1; }

.nav-h__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.nav-h__dot.is-active {
  background: var(--accent);
  transform: scale(1.35);
}

.nav-h--dark .nav-h__dot {
  background: rgba(30, 46, 34, 0.22);
}

.nav-h--dark .nav-h__dot.is-active {
  background: var(--accent);
}

.page--cover {
  display: flex;
  align-items: flex-end;
  color: var(--text-light);
}

.page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(26, 42, 31, 0.9) 0%, rgba(26, 42, 31, 0.15) 55%, rgba(26, 42, 31, 0.35) 100%);
}

.page__overlay--dark {
  background: linear-gradient(to top, rgba(26, 42, 31, 0.93) 0%, rgba(26, 42, 31, 0.35) 100%);
}

/* ヒーロー：写真を明るく・オーバーレイを薄く（下部は文字用に少し残す） */
.page--hero .page__bg {
  filter: brightness(1.18);
}

.page__overlay--hero {
  background: linear-gradient(
    to top,
    rgba(26, 42, 31, 0.62) 0%,
    rgba(26, 42, 31, 0.06) 55%,
    rgba(26, 42, 31, 0.1) 100%
  );
}

/* スタジオ紹介：写真を明るく・オーバーレイを薄く */
.page--studio .page__bg {
  filter: brightness(1.15);
}

.page__overlay--studio {
  background: linear-gradient(
    to top,
    rgba(26, 42, 31, 0.45) 0%,
    rgba(26, 42, 31, 0.08) 50%,
    transparent 100%
  );
}

.page__content {
  position: relative;
  z-index: 2;
  padding: 0 28px 88px;
  width: 100%;
}

.page__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 20px;
  opacity: 0.85;
}

.page__title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.page__title--sm {
  font-size: 26px;
  font-weight: 700;
}

.page__sub {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.7;
}

.swipe-hint {
  position: absolute;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}

.swipe-hint--v {
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce-v 2s infinite;
}

.swipe-hint--h {
  bottom: 88px;
  right: 20px;
  font-size: 18px;
  letter-spacing: 0;
}

.swipe-hint--dark {
  color: rgba(30, 46, 34, 0.35);
}

/* 1-1 移動ヒント（→ ↓） */
.move-hints {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.move-hints.is-visible {
  opacity: 1;
}

.move-hint {
  position: absolute;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
}

.move-hint--right {
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  animation: pulse-h 2.4s ease-in-out infinite;
}

.move-hint--down {
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce-down 2.4s ease-in-out infinite;
}

@keyframes pulse-h {
  0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0.45; }
  50% { transform: translateY(-50%) translateX(5px); opacity: 0.9; }
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 0.9; }
}

.page--owner .page__image-top {
  flex: 1;
  min-height: 0;
}

.page--owner .page__image-top img {
  object-fit: contain;
  object-position: center center;
}

@keyframes bounce-v {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

.page--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 28px 88px;
  background: var(--bg-light);
  color: var(--text);
}

.page__heading {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 20px;
}

.page__body {
  font-size: 15px;
  line-height: 1.9;
  color: #4a5c4e;
}

.page__deco-line {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: 32px;
}

.page--split {
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
}

.page__image-top {
  flex: 1;
  min-height: 0;
  background: var(--bg-light);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.page__image-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.page__text-bottom {
  flex-shrink: 0;
  padding: 22px 28px 88px;
}

.page__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.page__label--light {
  color: rgba(255, 255, 255, 0.75);
}

.page__heading-sm {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text);
}

.page__body-sm {
  font-size: 14px;
  line-height: 1.8;
  color: #4a5c4e;
}

.page--menu-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text-light);
}

.page--menu-card > img {
  flex: 1;
  min-height: 0;
  max-height: 52%;
}

.menu-card__body {
  padding: 20px 28px 88px;
}

.menu-card__body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.menu-card__body p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.menu-card__price {
  font-size: 28px;
  font-weight: 900;
  color: #7ec492;
}

.price-note {
  position: absolute;
  bottom: 72px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 10;
}

.page--access {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 28px 88px;
  background: var(--bg-light);
  color: var(--text);
}

.access { margin-top: 20px; }

.access__row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(30, 46, 34, 0.1);
  font-size: 14px;
}

.access__row dt {
  font-weight: 700;
  color: var(--accent);
}

.access__row dd {
  color: #4a5c4e;
  line-height: 1.7;
}

.page--access .btn-line {
  margin-top: 24px;
  align-self: stretch;
  max-width: none;
}

.page--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px 28px 88px;
  background: var(--bg);
  color: var(--text-light);
}

.page--cta .page__heading {
  color: var(--text-light);
  margin-bottom: 16px;
}

.page--cta .page__body {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
}

.btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  padding: 16px 24px;
  background: var(--line);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  border-radius: 40px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.25);
}

.btn-tel {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px;
}

.page__hp-link {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
}

.page--map {
  display: flex;
  flex-direction: column;
  padding: 40px 20px 88px;
  background: var(--bg-light);
  color: var(--text);
}

.page--map .page__body-sm {
  margin-bottom: 12px;
}

.map-embed {
  flex: 1;
  width: 100%;
  min-height: 240px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 46, 34, 0.06);
}

.map-link {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
  color: var(--accent);
  text-decoration: underline;
}

.fixed-cta {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 48px);
  max-width: 320px;
  height: var(--cta-h);
  background: var(--line);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.fixed-cta.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

@media (min-width: 481px) {
  body {
    display: flex;
    justify-content: center;
    background: #111;
  }

  .matrix,
  .nav-v,
  .nav-h,
  .fixed-cta {
    max-width: 430px;
  }

  .nav-v {
    right: calc(50% - 215px + 10px);
  }
}
