/* 115 ぽちっとラボ — K01「1画面完結」。PC は1画面に5つの面を入れ、ヘッダーのタブか ← → キーで切り替える。
   スマホ・JSなしは5つの面が縦に並ぶ。色と書体は共通の13変数だけ。面の色は .t-alt・.t-room が同じ名前の変数を上書きする */
:root {
  --c-bg: #fbf7ff;
  --c-bg-alt: #efe4ff;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #23123f;
  --c-accent: #6d35d6;
  --c-accent-text: #6326c9;
  --c-on-accent: #ffffff;
  --c-2: #ffd84d;
  --c-3: #ff7ac0;
  --font-ja: "M PLUS Rounded 1c", sans-serif;
  --font-head: "DotGothic16", "M PLUS Rounded 1c", sans-serif;
  --font-en: "Bagel Fat One", "M PLUS Rounded 1c", sans-serif;
  --radius: 20px;
  --shadow: 6px 6px 0 var(--c-line);
  --header-h: 64px;
  --footer-h: 40px;
  --ease: cubic-bezier(.34, 1.4, .64, 1);
}
.t-alt  { --c-bg: #efe4ff; --c-bg-alt: #fbf7ff; }
.t-room { --c-bg: #160b2b; --c-bg-alt: #231445; --c-text: #e8defb; --c-sub: #cdbff0; --c-line: #8c6fe0; --c-accent: #ffd84d; --c-accent-text: #ffd84d; --c-on-accent: #23123f; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font-ja); font-size: 16px; line-height: 1.8; overflow-x: hidden; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dd, li, summary { word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3, p, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ===== ヘッダー ===== */
.header { position: sticky; top: 0; z-index: 30; background: var(--c-bg); color: var(--c-text); border-bottom: 3px solid var(--c-line); }
.header__inner { height: var(--header-h); padding: 0 20px; display: flex; align-items: center; gap: 12px; justify-content: space-between; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; white-space: nowrap; flex: none; }
.logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--c-line); background: var(--c-2); color: var(--c-line); font-family: var(--font-en); font-size: 20px; line-height: 1; }
.logo__ja { font-weight: 800; font-size: 19px; }
.gnav { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; background: var(--c-accent); color: var(--c-on-accent); font-weight: 800; text-decoration: none; white-space: nowrap; flex: none; border: 3px solid var(--c-line); border-radius: 999px; box-shadow: 4px 4px 0 var(--c-line); font-family: inherit; font-size: 16px; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--c-line); }
.btn--lg { min-height: 54px; padding: 0 28px; }
.btn--ghost { background: var(--c-bg-alt); color: var(--c-text); }
.btn--sun { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent); box-shadow: none; }
[hidden] { display: none !important; }
.header__btn { display: none; }

.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-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: 26px; height: 4px; border-radius: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -8px; } .spmenu__bar::after { top: 8px; }
.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; right: 12px; top: 100%; width: min(calc(100% - 24px), 380px); background: var(--c-bg); border: 3px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 22px 16px; display: flex; flex-direction: column; margin-top: 8px; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; text-decoration: none; font-weight: 700; border-bottom: 2px dashed var(--c-line); }

/* ===== 面の共通 ===== */
.panel { position: relative; background: var(--c-bg); color: var(--c-text); padding: 56px 20px; border-bottom: 3px solid var(--c-line); }
.en { font-family: var(--font-en); font-size: 17px; letter-spacing: .06em; color: var(--c-accent-text); margin-bottom: 8px; }
.h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 7.4vw, 38px); line-height: 1.35; margin-bottom: 22px; }
.note { margin-top: 12px; color: var(--c-sub); }

/* 面1 ホーム：動画風 */
.hero { padding: 16px; display: grid; gap: 16px; }
.hero__photo { position: relative; height: 62vw; min-height: 300px; overflow: hidden; border: 3px solid var(--c-line); border-radius: 28px; box-shadow: var(--shadow); background: var(--c-bg-alt); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.is-motion .hero__photo img { animation: pan 24s ease-in-out infinite alternate; }
@keyframes pan { from { transform: scale(1.3) translate(-4%, -3%); } to { transform: scale(1.3) translate(4%, 3%); } }
.rec { position: absolute; right: 30px; top: 30px; margin: 0; display: flex; align-items: center; gap: 8px; padding: 4px 14px; background: var(--c-bg); border: 3px solid var(--c-line); border-radius: 999px; font-family: var(--font-en); font-size: 16px; color: var(--c-text); }
.rec i { width: 12px; height: 12px; border-radius: 50%; background: var(--c-3); }
.is-motion .rec i { animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero__card { background: var(--c-bg); border: 3px solid var(--c-line); border-radius: 28px; box-shadow: var(--shadow); padding: 24px 22px; }
.hero__title { font-family: var(--font-head); font-weight: 400; font-size: clamp(36px, 10.4vw, 52px); line-height: 1.2; margin-bottom: 12px; color: var(--c-accent-text); }
.hero__lead { margin-bottom: 20px; }
.hero__btns { display: grid; gap: 12px; }

/* 面2 こまりごと・やり方 */
.worry { display: grid; gap: 40px; }
.bubbles { display: grid; gap: 14px; }
.bubbles li { position: relative; padding: 16px 20px; background: var(--c-bg-alt); border: 3px solid var(--c-line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--c-line); font-weight: 700; }
.bubbles li:nth-child(2) { background: var(--c-2); color: var(--c-line); margin-left: 24px; }
.bubbles li:nth-child(3) { margin-right: 24px; }
.steps { display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 16px; background: var(--c-bg-alt); border: 3px solid var(--c-line); border-radius: var(--radius); }
.sticker { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); border: 3px solid var(--c-line); font-family: var(--font-en); font-size: 24px; transform: rotate(-8deg); }
.steps h3 { font-weight: 800; font-size: 18px; }
.steps p { color: var(--c-sub); }

/* 面3 スポットライト（C06）。始める前・JSなしは、全部あかるい状態 */
.find__head { display: grid; gap: 16px; margin-bottom: 20px; }
.find__how { color: var(--c-sub); }
.find .btn--sun { justify-self: start; }
.room { position: relative; border: 3px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg-alt); overflow: hidden; --x: 50%; --y: 50%; --r: 150px; }
.room__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; }
.rcard { position: relative; overflow: hidden; border-radius: 14px; border: 3px solid var(--c-line); background: var(--c-bg); }
.rcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rcard__tag { padding: 10px 12px; font-size: 15px; line-height: 1.5; color: var(--c-text); transition: opacity .3s; }
.rcard__tag b { display: block; font-size: 17px; color: var(--c-accent-text); }
.room__dark { display: none; }
.room.is-play { cursor: crosshair; touch-action: none; user-select: none; }
.room.is-play .room__dark { display: block; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle var(--r) at var(--x) var(--y), transparent 0, transparent 55%, color-mix(in srgb, var(--c-bg) 96%, transparent) 100%); }
.room.is-play .rcard__tag { opacity: 0; }
.room.is-play .rcard.is-lit .rcard__tag { opacity: 1; }
.room.is-play .rcard.is-lit { z-index: 2; box-shadow: 0 0 0 4px var(--c-accent); }
.rcard { transition: box-shadow .3s; }

/* 面4 つくったもの（Swiper）。JSなしは指で横に送れる並び */
.works__head { margin-bottom: 8px; }
.slider__viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; scroll-padding-inline: 4px; }
.slider__track { display: flex; gap: 16px; width: max-content; }
.slider__item { width: 78vw; max-width: 340px; flex: none; scroll-snap-align: start; }
.slider.is-swiper .slider__viewport { overflow: hidden; scroll-snap-type: none; padding-bottom: 8px; }
.slider.is-swiper .slider__track { gap: 0; width: auto; }
.slider.is-swiper .slider__item { width: auto; max-width: none; height: auto; }
.wcard { background: var(--c-bg-alt); border: 3px solid var(--c-line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--c-line); overflow: hidden; display: flex; flex-direction: column; }
.wcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 3px solid var(--c-line); }
.wcard__body { padding: 16px; display: grid; gap: 6px; }
.wcard__tag { justify-self: start; padding: 0 12px; background: var(--c-2); color: var(--c-line); border: 2px solid var(--c-line); border-radius: 999px; font-weight: 800; font-size: 15px; }
.wcard h3 { font-weight: 800; font-size: 18px; line-height: 1.5; }
.wcard p:last-child { color: var(--c-sub); }
.slider__ctrl { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.slider__ctrl[hidden] { display: none; }
.slider__arrow { width: 52px; height: 52px; border: 3px solid var(--c-line); border-radius: 50%; background: var(--c-bg-alt); color: var(--c-text); cursor: pointer; position: relative; }
.slider__arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: translate(-65%, -50%) rotate(45deg); }
.slider__prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.slider__arrow:hover, .slider__arrow:focus-visible { background: var(--c-2); color: var(--c-line); }
.slider__dots, .slider__dots.swiper-pagination-horizontal { position: static; width: auto; transform: none; display: flex; }
.slider__dots .swiper-pagination-bullet { width: 28px; height: 44px; margin: 0 !important; background: transparent; opacity: 1; position: relative; border-radius: 0; }
.slider__dots .swiper-pagination-bullet::before { content: ""; position: absolute; left: 6px; top: 16px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--c-line); background: var(--c-bg); }
.slider__dots .swiper-pagination-bullet-active::before { background: var(--c-accent); }
.slider__pause { min-height: 44px; padding: 0 18px; margin-left: 8px; border: 3px solid var(--c-line); border-radius: 999px; background: var(--c-bg-alt); color: var(--c-text); font: inherit; font-weight: 800; cursor: pointer; }

/* 面5 料金・質問・申し込み */
.last { display: grid; gap: 40px; }
.plans { display: grid; gap: 12px; }
.plans li { padding: 14px 18px; background: var(--c-bg-alt); border: 3px solid var(--c-line); border-radius: var(--radius); }
.plans li.plan--main { background: var(--c-2); color: var(--c-line); box-shadow: 4px 4px 0 var(--c-line); }
.plans h3 { font-weight: 800; font-size: 17px; }
.plan__price { font-family: var(--font-en); font-size: 28px; line-height: 1.4; color: var(--c-accent-text); }
.plan--main .plan__price { color: var(--c-line); }
.plan--main p { color: var(--c-line); }
.faq details { background: var(--c-bg-alt); border: 3px solid var(--c-line); border-radius: 16px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; min-height: 52px; padding: 10px 44px 10px 16px; position: relative; display: flex; align-items: center; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--font-en); font-size: 24px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 16px 14px; color: var(--c-sub); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-weight: 800; }
.form input { min-height: 50px; padding: 0 14px; border: 3px solid var(--c-line); border-radius: 14px; background: var(--c-bg-alt); color: var(--c-text); font: inherit; }

.footer { padding: 20px; text-align: center; background: var(--c-bg); border-top: 3px solid var(--c-line); }
.footer__count { display: none; }
.footer__fiction { font-size: 15px; color: var(--c-sub); }

@media (min-width: 768px) {
  .header__inner { padding: 0 32px; }
  .panel { padding: 72px 40px; }
  .hero { padding: 24px; }
  .hero__photo { height: 46vw; }
  .hero__btns { grid-template-columns: auto auto; justify-content: start; }
  .room__cards { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
}

/* ===== PC：1画面完結（JS が .is-tabs を付けたときだけ） ===== */
@media (min-width: 1080px) {
  .gnav { display: flex; gap: 6px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 800; border-radius: 999px; border: 3px solid transparent; }
  .gnav a:hover { background: var(--c-bg-alt); }
  .gnav a[aria-current="true"] { background: var(--c-2); border-color: var(--c-line); color: var(--c-line); }
  .gnav__no { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); font-family: var(--font-en); font-size: 15px; }
  .header__btn { display: inline-flex; }
  .spmenu { display: none; }

  .panel { padding: 40px 64px; }
  .hero { padding: 24px; }
  .hero__photo { height: 44vw; }
  .hero__title { font-size: clamp(44px, 4.6vw, 64px); }
  .hero__btns { display: flex; flex-wrap: wrap; }
  .is-tabs .hero { display: block; }
  .is-tabs .hero__photo { position: absolute; inset: 24px; height: auto; }
  .is-tabs .rec { right: 48px; top: 48px; }
  .is-tabs .hero__card { position: absolute; left: 56px; bottom: 56px; width: min(560px, 46%); }

  .worry { grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
  .worry .h2 { font-size: clamp(32px, 3.2vw, 46px); }

  .find { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 20px; }
  .find__head { grid-template-columns: 1fr auto; align-items: end; margin: 0; }
  .find .h2 { margin-bottom: 8px; font-size: clamp(30px, 2.8vw, 42px); }
  .room { min-height: 0; display: grid; align-items: center; --r: 190px; }
  .room__cards { gap: 24px; padding: 24px; align-self: center; }
  .rcard img { aspect-ratio: 4 / 3; }
  .rcard:nth-child(even) { transform: translateY(24px); }

  .works { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-content: center; }
  .works > * { min-width: 0; }
  .works .h2 { font-size: clamp(32px, 3vw, 44px); margin-bottom: 8px; }

  .last { grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; align-content: center; }
  .last .h2 { font-size: clamp(26px, 2.2vw, 34px); margin-bottom: 14px; }
  .plans { grid-template-columns: 1fr; gap: 10px; }
  .plans li { padding: 10px 16px; }
  .plans h3, .plan__price { display: inline; }
  .plan__price { margin-left: 10px; font-size: 24px; }
  .plans li p:last-child { margin-top: 2px; }

  .is-tabs body { height: 100svh; overflow: hidden; display: grid; grid-template-rows: var(--header-h) minmax(0, 1fr) var(--footer-h); }
  .is-tabs .header { position: relative; }
  .is-tabs .stage { position: relative; display: grid; min-height: 0; overflow: hidden; }
  .is-tabs .panel { grid-area: 1 / 1; min-height: 0; overflow: hidden; border-bottom: 0; animation: none; }
  .is-tabs .panel:not(.is-on) { display: none; }
  .is-tabs .is-on { animation: appear .3s ease-out both; }
  .is-tabs .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; }
  .is-tabs .footer__count { display: block; font-family: var(--font-en); font-size: 15px; letter-spacing: .06em; color: var(--c-text); }
}
@keyframes appear { from { opacity: .0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo img, .rec i, .is-tabs .is-on { animation: none; }
  .btn { transition: none; }
}
