/* 122 アトリエぐるぐる — K06 左固定・右だけ流れる（LP型・可愛い系・紫）
   PC は画面を左右に割り、左（イラスト・名前・申し込み）を固定、右だけ流れる。スマホは左が上に来る1列。
   色と書体は共通の13変数だけ。枠の色の面（.is-*）は同じ名前の変数を上書きする */
:root {
  --c-bg: #fbf7ff;
  --c-bg-alt: #e9dcff;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #2a1550;
  --c-accent: #c6f05a;
  --c-accent-text: #6a2bd6;
  --c-on-accent: #2a1550;
  --c-2: #7b3fe4;
  --c-3: #ff7ab6;
  --font-ja: "Zen Maru Gothic", sans-serif;
  --font-head: "Yusei Magic", "Zen Maru Gothic", sans-serif;
  --font-en: "Bagel Fat One", "Zen Maru Gothic", sans-serif;
  --shadow: 5px 5px 0 var(--c-line);
  --radius: 28px;
  --header-h: 64px;
}
.is-purple { --c-bg: #7b3fe4; --c-bg-alt: #5f2bb8; --c-text: #ffffff; --c-sub: #f3ebff; --c-line: #2a1550; --c-accent-text: #ffffff; }
.is-pink   { --c-bg: #ff7ab6; --c-bg-alt: #ffd3e8; --c-text: #2a1550; --c-sub: #3d2160; --c-line: #2a1550; --c-accent-text: #2a1550; }
.is-lime   { --c-bg: #c6f05a; --c-bg-alt: #e6f9a8; --c-text: #2a1550; --c-sub: #3d2160; --c-line: #2a1550; --c-accent-text: #2a1550; --c-accent: #7b3fe4; --c-on-accent: #ffffff; }
.is-lilac  { --c-bg: #e9dcff; --c-bg-alt: #fbf7ff; --c-text: #374151; --c-sub: #4b5563; --c-line: #2a1550; --c-accent-text: #6a2bd6; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -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.85; overflow-x: hidden; padding-bottom: 76px; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* イラストの色 */
.st { stroke: var(--c-line); }
.fk { fill: var(--c-line); }
.fp { fill: var(--c-2); }
.fl { fill: var(--c-accent); }
.fpk { fill: var(--c-3); }
.fw { fill: white; }
.fli { fill: color-mix(in srgb, white 72%, transparent); }
.fl-stroke { stroke: color-mix(in srgb, white 70%, transparent); }
.fp-stroke { stroke: var(--c-line); }

/* ===== ヘッダー・ボタン ===== */
.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 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.logo { min-height: 44px; display: flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; flex: none; font-family: var(--font-head); font-size: 20px; color: var(--c-line); }
.logo__guru { width: 40px; height: 36px; flex: 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); border: 3px solid var(--c-line); border-radius: 999px; box-shadow: 3px 4px 0 var(--c-line); font-family: var(--font-ja); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; flex: none; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 18px; }
.btn:hover { transform: translate(1px, 2px); box-shadow: 2px 2px 0 var(--c-line); }
.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: 24px; height: 4px; border-radius: 3px; 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), 360px); background: var(--c-bg); border: 3px solid var(--c-line); border-radius: 24px; padding: 6px 22px 14px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; text-decoration: none; font-weight: 700; border-bottom: 2px dotted var(--c-line); }
.spmenu__nav a:last-child { border-bottom: 0; }

/* ===== 左：メインビジュアル ===== */
.side { background: var(--c-bg); color: var(--c-text); padding: 28px 20px 40px; text-align: center; }
.side__badge { display: inline-block; background: var(--c-accent); color: var(--c-on-accent); border: 3px solid var(--c-line); border-radius: 999px; padding: 2px 18px; font-weight: 700; margin-bottom: 8px; }
.side__art { max-width: 460px; margin: 0 auto; }
.side__svg { display: block; width: 100%; height: auto; }
.side__title { font-family: var(--font-head); font-weight: 400; font-size: clamp(40px, 12vw, 60px); line-height: 1.2; margin: 6px 0 14px; color: var(--c-text); }
.side__lead { max-width: 28em; margin: 0 auto 22px; color: var(--c-sub); }
.pop { transform-box: fill-box; transform-origin: center; }

/* ===== 右：流れる側 ===== */
.flow { min-width: 0; position: relative; padding: 8px 16px 28px 44px; background: var(--c-bg); }
.ribbon { position: absolute; left: 6px; top: 0; width: 30px; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.rb1 { stop-color: var(--c-2); } .rb2 { stop-color: var(--c-3); } .rb3 { stop-color: var(--c-accent); }
.is-motion [data-ribbon] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.blk { position: relative; z-index: 1; margin-top: 48px; }
.blk:first-of-type { margin-top: 24px; }
.title { font-family: var(--font-head); font-weight: 400; font-size: clamp(30px, 8.4vw, 42px); line-height: 1.3; margin-bottom: 20px; color: var(--c-text); }
.en { font-family: var(--font-en); font-size: 17px; letter-spacing: .04em; color: var(--c-accent-text); margin-bottom: 6px; }
h3 { font-family: var(--font-head); font-weight: 400; font-size: 22px; line-height: 1.4; }

.bubbles { display: grid; gap: 20px; }
.bubble { background: var(--c-bg); color: var(--c-text); border: 3px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; position: relative; font-weight: 700; }
.bubble:nth-child(2) { margin-left: 24px; background: var(--c-bg-alt); }
.bubble::after { content: ""; position: absolute; left: 28px; bottom: -14px; width: 22px; height: 22px; background: inherit; border-right: 3px solid var(--c-line); border-bottom: 3px solid var(--c-line); transform: rotate(45deg); }

.solve { border: 3px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 24px; background: var(--c-bg); color: var(--c-text); }
.solve .title { color: var(--c-text); }
.solve p:not(.en) { color: var(--c-sub); }

/* G02 */
.ba__box { display: grid; gap: 14px; }
.ba__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border: 3px solid var(--c-line); border-radius: 24px; background: var(--c-bg-alt); }
.ba__img--before img { width: 100%; height: 100%; object-fit: cover; }
.ba__img--after { display: grid; place-items: center; }
.ba__img--after img { height: 88%; width: auto; filter: drop-shadow(5px 6px 0 color-mix(in srgb, var(--c-line) 25%, transparent)); }
.ba__img figcaption { position: absolute; left: 12px; top: 12px; background: var(--c-bg); color: var(--c-text); border: 2px solid var(--c-line); border-radius: 999px; padding: 0 14px; font-weight: 700; font-size: 15px; }
.ba__line, .ba__range { display: none; }
.ba__box.is-ba { display: block; position: relative; aspect-ratio: 3 / 2; border: 3px solid var(--c-line); border-radius: 24px; overflow: hidden; --pos: 50%; box-shadow: var(--shadow); }
.is-ba .ba__img { position: absolute; inset: 0; border: 0; border-radius: 0; aspect-ratio: auto; }
.is-ba .ba__img--after { clip-path: inset(0 0 0 var(--pos)); }
.is-ba .ba__img--after figcaption { left: auto; right: 12px; }
.is-ba .ba__line { display: block; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--c-line); z-index: 2; pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--c-accent); border: 3px solid var(--c-line); }
.ba__knob::before, .ba__knob::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; border-top: 3px solid var(--c-line); border-left: 3px solid var(--c-line); }
.ba__knob::before { left: 11px; transform: translateY(-50%) rotate(-45deg); }
.ba__knob::after { right: 11px; transform: translateY(-50%) rotate(135deg); }
.is-ba .ba__range { display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; touch-action: pan-y; }
.ba__box:has(.ba__range:focus-visible) .ba__knob { outline: 4px solid var(--c-accent-text); outline-offset: 3px; }
.ba__note { margin: 14px 0 22px; color: var(--c-sub); }

/* 特長 */
.stickers { display: grid; gap: 18px; }
.sticker { background: var(--c-bg); color: var(--c-text); border: 3px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.sticker__no { font-family: var(--font-en); font-size: 34px; line-height: 1; color: var(--c-accent-text); margin-bottom: 6px; }
.sticker h3 { color: var(--c-text); margin-bottom: 4px; }
.sticker p:not(.sticker__no) { color: var(--c-sub); }

/* Swiper */
.slider__viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; margin: 0 -4px; }
.slider__track { display: flex; gap: 16px; width: max-content; }
.slider__item { width: min(72vw, 340px); flex: none; scroll-snap-align: start; }
.slider.is-swiper .slider__viewport { overflow: hidden; scroll-snap-type: none; }
.slider.is-swiper .slider__track { gap: 0; width: auto; }
.slider.is-swiper .slider__item { width: auto; height: auto; }
.slider.is-swiper .swiper-wrapper { height: auto; }
.shot { min-width: 0; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid var(--c-line); border-radius: 24px; box-shadow: var(--shadow); background: var(--c-bg-alt); }
.shot--cut img { object-fit: contain; padding: 8px; }
.shot p { margin-top: 12px; font-weight: 700; color: var(--c-text); }
.slider__ctrl { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.slider__ctrl[hidden] { display: none; }
.slider__arrow { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--c-line); background: var(--c-accent); box-shadow: 3px 4px 0 var(--c-line); color: var(--c-line); cursor: pointer; position: relative; padding: 0; }
.slider__arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; 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.swiper-button-disabled { opacity: .4; }
.slider__dots, .slider__dots.swiper-pagination-horizontal { position: static; width: auto; transform: none; display: flex; }
.slider__dots .swiper-pagination-bullet { width: 30px; height: 44px; margin: 0 !important; background: transparent; opacity: 1; position: relative; border-radius: 0; }
.slider__dots .swiper-pagination-bullet::before { content: ""; position: absolute; left: 7px; top: 14px; 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-2); }
.slider__pause { min-height: 44px; padding: 0 18px; border: 3px solid var(--c-line); border-radius: 999px; background: var(--c-bg); color: var(--c-text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }

/* 声・料金・質問 */
.voice-list { display: grid; gap: 16px; }
.voice { background: var(--c-bg-alt); color: var(--c-text); border: 3px solid var(--c-line); border-radius: var(--radius); padding: 18px 22px; }
.voice p { color: var(--c-text); }
.voice .voice__who { margin-top: 8px; color: var(--c-sub); font-weight: 700; }
.plans { display: grid; gap: 18px; }
.plan { background: var(--c-bg); color: var(--c-text); border: 3px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: relative; }
.plan h3 { color: var(--c-text); }
.plan p { color: var(--c-sub); }
.plan .plan__price { font-family: var(--font-en); font-size: 38px; line-height: 1.3; color: var(--c-text); margin: 4px 0; }
.plan__price small { font-family: var(--font-ja); font-size: 16px; margin-left: 4px; }
.plan__tag { display: inline-block; background: var(--c-accent); color: var(--c-on-accent) !important; border: 3px solid var(--c-line); border-radius: 999px; padding: 0 14px; font-weight: 700; transform: rotate(-3deg); margin-bottom: 6px; }
.price__note { margin: 18px 0 22px; color: var(--c-sub); }
.qa { background: var(--c-bg); border: 3px solid var(--c-line); border-radius: 22px; margin-bottom: 12px; }
.qa summary { cursor: pointer; padding: 14px 22px; min-height: 52px; font-weight: 700; list-style: none; color: var(--c-text); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "＋"; font-family: var(--font-ja); color: var(--c-accent-text); flex: none; }
.qa[open] summary::after { content: "－"; }
.qa p { padding: 0 22px 18px; color: var(--c-sub); }

.apply { border: 3px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 24px; background: var(--c-bg); color: var(--c-text); text-align: center; }
.apply__guru { width: 120px; height: 110px; margin-bottom: 8px; }
.apply p { color: var(--c-sub); }
.apply .btn { margin: 20px 0 0; white-space: normal; }
.apply__tel { margin-top: 16px; }
.apply__tel a { font-family: var(--font-en); font-size: 20px; }

.footer { position: relative; z-index: 1; margin-top: 44px; text-align: center; color: var(--c-text); }
.footer__logo { font-family: var(--font-head); font-size: 20px; }
.footer p { color: var(--c-sub); }
.footer__logo { color: var(--c-text); }
.footer__fiction { margin-top: 6px; }

/* ===== 画面の下に固定の申し込みボタン（スマホ・タブレット） ===== */
.fixcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--c-bg) 94%, transparent); border-top: 3px solid var(--c-line); display: flex; justify-content: center; }
.fixcta .btn { width: 100%; max-width: 440px; }

/* ===== 読み込み（A06）：JS が付ける is-loading のときだけ ===== */
.loader { display: none; }
.is-loading .loader { display: grid; align-content: center; justify-items: center; gap: 8px; position: fixed; inset: 0; z-index: 100; background: var(--c-2); color: white; animation: loader-failsafe 0s linear 2.2s forwards; }
.loader__guru { width: 130px; height: 119px; }
.loader__num { font-family: var(--font-en); font-size: 48px; line-height: 1; }
.loader.is-out { opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.is-loading .loader__guru { animation: stretch .5s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes stretch { from { transform: scale(1.06, .92); } to { transform: scale(.94, 1.08); } }

@media (min-width: 768px) {
  .header__inner { padding: 0 32px; }
  .header__btn { display: inline-flex; }
  .flow { padding: 8px 40px 28px 64px; }
  .ribbon { left: 16px; width: 34px; }
  .stickers { grid-template-columns: repeat(3, 1fr); }
  .stickers .sticker:nth-child(2) { transform: translateY(14px) rotate(1.5deg); }
  .stickers .sticker:nth-child(1) { transform: rotate(-1.5deg); }
  .plans { grid-template-columns: 1fr 1fr; }
}

/* ===== PC：左を固定・右だけ流れる ===== */
@media (min-width: 1080px) {
  body { padding-bottom: 0; }
  .fixcta { display: none; }
  .spmenu { display: none; }
  .k06 { display: grid; grid-template-columns: minmax(420px, 42%) minmax(0, 1fr); align-items: start; }
  .side { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px 36px; border-right: 3px solid var(--c-line); overflow: hidden; }
  .side__art { width: 100%; max-width: 520px; max-height: 36svh; }
  .side__svg { max-height: 36svh; }
  .side__title { font-size: clamp(44px, 4.4vw, 68px); margin: 4px 0 10px; }
  .side__lead { margin-bottom: 20px; }
  .flow { padding: 24px 56px 48px 72px; min-height: 100svh; }
  .ribbon { left: 20px; width: 36px; }
  .title { font-size: clamp(34px, 3vw, 46px); }
  .slider__item { width: 300px; }
  .blk { margin-top: 64px; }
  .blk:first-of-type { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .is-loading .loader { display: none; }
}
