/* ===================================
   サイエンスキッチン LP — style.css
   Mobile-first / Ocean Theme
   =================================== */

/* ---------- Variables ---------- */
:root {
  --ocean-deep:   #24a0e3e9;
  --ocean-mid:    #1e6fa8;
  --ocean-bright: #2196d3;
  --ocean-light:  #7dd3f0;
  --ocean-pale:   #d0eeff;
  --ocean-foam:   #fffde8;
  --purple:       #7c5cbf;
  --purple-light: #ede4ff;
  --green:        #28a07a;
  --green-light:  #d6f5eb;
  --yellow:       #ffd060;
  --orange:       #ff8c42;
  --bg:           #fffde8;
  --white:        #ffffff;
  --text:         #0d2137;
  --text-mid:     #2e5878;
  --text-light:   #5b8db0;
  --border:       #b8d9ef;

  --font: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow: 0 6px 24px rgba(10, 61, 98, 0.13);
  --shadow-lg: 0 12px 40px rgba(10, 61, 98, 0.2);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 15px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Container ---------- */
.container { max-width: 640px; margin: 0 auto; padding: 0 18px; }

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.section-title {
  font-size: clamp(1.55rem, 5.5vw, 2rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 24px;
  color: var(--text);
}

/* ---------- Wave helper ---------- */
.section-wave, .section-wave.light { line-height: 0; margin-top: 40px; }
.section-wave svg { width: 100%; display: block; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ocean-deep);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 16px;
  max-width: 640px;
  margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 10px; }

.logo-photo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
}

.logo-photo {
  width: 100%; height: 100%;
  object-fit: cover;
}

.logo-fallback {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--ocean-bright), var(--purple));
  color: white;
}

.logo-photo-wrap.small { width: 34px; height: 34px; border-radius: 10px; }

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main {
  font-size: 1rem;
  font-weight: 900;
  color: white;
}
.logo-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.btn-apply-header {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--yellow);
  color: var(--ocean-deep);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 9px 16px;
  border-radius: 100px;
  box-shadow: 0 3px 10px rgba(255,208,96,0.45);
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-apply-header:active { transform: scale(0.96); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-mid) 70%, var(--ocean-bright) 100%);
  padding: 52px 18px 0;
  overflow: hidden;
  min-height: 520px;
}

.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bub {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  animation: bubbleRise linear infinite;
}
.b1 { width: 18px; height: 18px; left: 8%;  bottom: 0; animation-duration: 7s;  animation-delay: 0s; }
.b2 { width: 12px; height: 12px; left: 22%; bottom: 0; animation-duration: 9s;  animation-delay: 1s; }
.b3 { width: 22px; height: 22px; left: 40%; bottom: 0; animation-duration: 6s;  animation-delay: 2s; }
.b4 { width: 10px; height: 10px; left: 60%; bottom: 0; animation-duration: 8s;  animation-delay: 0.5s; }
.b5 { width: 16px; height: 16px; left: 75%; bottom: 0; animation-duration: 10s; animation-delay: 1.5s; }
.b6 { width: 20px; height: 20px; left: 88%; bottom: 0; animation-duration: 7.5s;animation-delay: 3s; }

@keyframes bubbleRise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-120vh) scale(0.6); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  color: white;
  margin-bottom: 18px;
}

.hero-title em {
  font-style: normal;
  color: var(--yellow);
  position: relative;
  display: inline-block;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: 8px;
  background: rgba(255, 208, 96, 0.3);
  border-radius: 4px;
  z-index: -1;
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 22px;
}
.hero-desc strong { color: var(--yellow); font-weight: 700; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.tag {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 100px;
}

.btn-hero {
  display: inline-block;
  background: var(--yellow);
  color: var(--ocean-deep);
  font-size: 1.05rem;
  font-weight: 900;
  padding: 15px 36px;
  border-radius: 100px;
  box-shadow: 0 6px 24px rgba(255,208,96,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 36px;
}
.btn-hero:active { transform: scale(0.97); }

.ocean-creatures { position: relative; z-index: 2; height: 56px; margin: 0 auto; max-width: 360px; }
.creature {
  position: absolute;
  font-size: 2rem;
  animation: swimFloat ease-in-out infinite;
}
.c1 { left: 5%;  bottom: 4px; animation-duration: 4s;   animation-delay: 0s; }
.c2 { left: 25%; bottom: 8px; animation-duration: 5.5s; animation-delay: 1s; }
.c3 { left: 55%; bottom: 2px; animation-duration: 3.5s; animation-delay: 0.5s; }
.c4 { left: 76%; bottom: 6px; animation-duration: 4.5s; animation-delay: 1.8s; }

@keyframes swimFloat {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-10px) rotate(5deg); }
}

/* ---- HERO WAVE FIX: 端が切れないよう width/margin で全幅に ---- */
.hero-wave {
  line-height: 0;
  margin-top: -2px;
  /* コンテナをはみ出して画面全幅に表示 */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.hero-wave svg { width: 100%; display: block; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--bg);
  padding: 52px 0 0;
  position: relative;
}

.about-bubbles {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
  overflow: hidden;
}

.bubble-row {
  display: flex;
  align-items: flex-end;
  width: 100%;
}

.bubble-left {
  justify-content: flex-start;
}

.bubble-right {
  justify-content: flex-end;
}

.bubble-card {
  position: relative;
  border-radius: 22px;
  padding: 20px 18px;
  max-width: calc(100% - 28px);
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.bubble-card:active { transform: scale(0.98); }

.bc-blue {
  background: linear-gradient(145deg, #daf4ff, #b8e6ff);
  border: 2px solid #8ecfe8;
}

.bc-purple {
  background: linear-gradient(145deg, #e8d8ff, #d0b8ff);
  border: 2px solid #b098d8;
}

.bc-green {
  background: linear-gradient(145deg, #d8fff2, #b8ffdf);
  border: 2px solid #80d8b0;
}

.bc-pink {
  background: linear-gradient(145deg, #ffc1e1, #ff80c1);
  border: 2px solid #ff4da8;
}

.bubble-tail {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  align-self: flex-end;
  margin-bottom: 12px;
}

.tail-left {
  margin-left: -4px;
}
.tail-left::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 0 0 20px;
  border-color: transparent transparent transparent #8ecfe8;
}
.tail-left::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -1px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 0 17px;
  border-color: transparent transparent transparent #b8e6ff;
}

.tail-right {
  margin-right: -4px;
}
.tail-right::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 20px 0 0;
  border-color: transparent #b098d8 transparent transparent;
}
.tail-right::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: -1px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 17px 0 0;
  border-color: transparent #d0b8ff transparent transparent;
}

.bubble-right:nth-child(4) .tail-right::before { border-color: transparent #80d8b0 transparent transparent; }
.bubble-right:nth-child(4) .tail-right::after  { border-color: transparent #b8ffdf transparent transparent; }
.bubble-right:nth-child(6) .tail-right::before { border-color: transparent #e8cc60 transparent transparent; }
.bubble-right:nth-child(6) .tail-right::after  { border-color: transparent #ffe8a0 transparent transparent; }

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

.slide-from-left,
.slide-from-right {
  opacity: 0;
}

.slide-from-left.is-visible {
  animation: slideInLeft 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide-from-right.is-visible {
  animation: slideInRight 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide-from-left.is-visible:nth-child(3),
.slide-from-right.is-visible:nth-child(4) {
  animation-delay: 0.1s;
}
.slide-from-left.is-visible:nth-child(5),
.slide-from-right.is-visible:nth-child(6) {
  animation-delay: 0.2s;
}

.about-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.bubble-card h3 {
  font-size: 0.9rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text);
}

.bubble-card p {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ============================================================
   LEVEL
   ============================================================ */
.level {
  background: var(--ocean-deep);
  padding: 52px 0 0;
}

.level .section-label {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

.level .section-title { color: white; }

.level-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.level-beginner-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(125, 211, 240, 0.5);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  width: 100%;
  max-width: 520px;
}

.level-beginner-chip span { font-size: 2.2rem; flex-shrink: 0; }

.chip-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
}

.chip-target {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

.level-arrow-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
}

.level-arrow-msg {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--yellow);
  background: rgba(255,208,96,0.15);
  padding: 5px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,208,96,0.35);
}

.level-arrow-line { margin-top: 4px; }

.level-intermediate-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 26px 22px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 10px;
}

.level-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.lc-icon { font-size: 2.4rem; flex-shrink: 0; }
.lc-name { font-size: 1.2rem; font-weight: 900; color: var(--text); }
.lc-target { font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }

.level-list {
  list-style: none;
}

.level-list li {
  font-size: 0.87rem;
  font-weight: 500;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-mid);
}
.level-list li:last-child { border-bottom: none; }

/* ============================================================
   GALLERY SECTION (inside .level)
   ============================================================ */
.gallery-section {
  margin-top: 0px;
  padding-bottom: 0px;
}

.gallery-label {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  margin-left: 18px;
  letter-spacing: 0.04em;
}

.gallery-track-wrap {
  width: 100%;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 18px 12px;
  scrollbar-width: none;
}

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

.gallery-item {
  flex-shrink: 0;
  width: 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

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

.gallery-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 16px;
}

.gallery-img-placeholder span {
  font-size: 2.4rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.placeholder-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.2);
  padding: 2px 10px;
  border-radius: 100px;
}

.gi1 { background: linear-gradient(145deg, #1a7bc4, #0d5a96); }
.gi2 { background: linear-gradient(145deg, #e8794a, #c45a28); }
.gi3 { background: linear-gradient(145deg, #7c5cbf, #5a3a9e); }
.gi4 { background: linear-gradient(145deg, #28a07a, #1a7a5c); }
.gi5 { background: linear-gradient(145deg, #d4a017, #a87c00); }
.gi6 { background: #62d5ff}

.gallery-caption {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 0 4px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  padding-bottom: 4px;
}

.gdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.gdot.active {
  background: var(--yellow);
  transform: scale(1.3);
}

/* ============================================================
   COURSE DOOR SECTION
   ============================================================ */
.course-door {
  background: var(--bg);
  padding: 52px 0 60px;
  text-align: center;
}

.lead {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: -12px;
  margin-bottom: 28px;
}

.door-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.door-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.door-card:hover {
  transform: translateY(-6px);
}

.door-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  perspective: 800px;
}

.door-panel {
  position: absolute;
  inset: 0;
  border-radius: 12px 12px 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  box-shadow:
    inset -4px 0 12px rgba(0,0,0,0.12),
    inset 4px 0 8px rgba(255,255,255,0.25),
    0 8px 32px rgba(0,0,0,0.18);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s;
  overflow: hidden;
}

.door-card:hover .door-panel {
  transform: rotateY(-22deg);
  box-shadow:
    inset -8px 0 20px rgba(0,0,0,0.2),
    inset 4px 0 8px rgba(255,255,255,0.3),
    8px 12px 40px rgba(0,0,0,0.25);
}

.door-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    175deg,
    transparent,
    transparent 18px,
    rgba(255,255,255,0.04) 18px,
    rgba(255,255,255,0.04) 19px
  );
  border-radius: inherit;
  pointer-events: none;
}

/* 左上：青色 */
.door-beginner .door-panel {
  background: linear-gradient(160deg, #3a9bd5, #1a6fa8);
  border: 3px solid #1a6fa8;
}

/* 右上：エメラルドブルー */
.door-emerald .door-panel {
  background: linear-gradient(160deg, #2ecfcf, #0fa8a8);
  border: 3px solid #0fa8a8;
}

/* 左下：紫 */
.door-purple .door-panel {
  background: linear-gradient(160deg, #9b6bd5, #6a3fa8);
  border: 3px solid #6a3fa8;
}

/* 右下：変更なし（ピンク）→ door-intermediate のまま */
.door-intermediate .door-panel {
  background: linear-gradient(#FF4DA8 100%);
  border: 3px solid #FF4DA8;
}

.door-knob {
  position: absolute;
  right: 14%;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}

.door-knob {
  background: radial-gradient(circle at 35% 35%, #ffe88a, #c9920a);
  border: 1.5px solid #a07000;
}

.door-card:hover .door-knob {
  transform: translateY(-50%) rotate(30deg);
}

.door-inner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.door-icon {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  font-weight: 600;
  color:white;
  display: block;
}

.door-level {
  font-size: clamp(0.9rem, 3.2vw, 1.05rem);
  font-weight: 900;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
  letter-spacing: 0.02em;
}

.door-grade {
  font-size: clamp(0.65rem, 2.2vw, 0.75rem);
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.2);
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 700;
}

.door-cta {
  font-size: clamp(0.65rem, 2.2vw, 0.75rem);
  font-weight: 700;
  color: white;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  padding: 4px 14px;
  margin-top: 2px;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.door-card:hover .door-cta {
  background: rgba(255,255,255,0.32);
}

.door-shadow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 20px;
  background: rgba(0,0,0,0.18);
  border-radius: 50%;
  filter: blur(8px);
  transition: width 0.3s, opacity 0.3s;
}

.door-card:hover .door-shadow {
  width: 60%;
  opacity: 0.7;
}

.door-label {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  padding: 6px 16px;
  background: rgba(33, 150, 211, 0.1);
  border: 1.5px solid rgba(33, 150, 211, 0.25);
  border-radius: 100px;
}

@media (max-width: 360px) {
  .door-grid { gap: 10px; }
}

@media (min-width: 600px) {
  .door-grid { gap: 24px; }
  .door-panel { padding: 20px 16px; }
  .door-knob { width: 16px; height: 16px; }
}

/* ============================================================
   FLOW
   ============================================================ */
.flow {
  background: var(--bg);
  padding: 52px 0 60px;
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr;   /* ← スマホは1カラム */
  gap: 14px;
  margin-top: 8px;
}

.flow-box {
  border-radius: var(--r-lg);
  padding: 22px 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s;
}

.fb1 { background: linear-gradient(145deg, #daf4ff, #b8e6ff); border: 2px solid #8ecfe8; }
.fb2 { background: linear-gradient(145deg, #e8d8ff, #d0b8ff); border: 2px solid #b098d8; }
.fb3 { background: linear-gradient(145deg, #d8fff2, #b8ffdf); border: 2px solid #80d8b0; }
.fb4 { background: linear-gradient(145deg, #fff5d8, #ffe8a0); border: 2px solid #e8cc60; }

.flow-icon { font-size: 1.5rem; margin-bottom: 3px; display: block; }
.flow-box h3 { font-size: 0.9rem; font-weight: 900; margin-bottom: 6px; color: var(--text); }
.flow-time {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255,255,255,0.65);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  color: var(--ocean-deep);
}
.flow-box p { font-size: 0.78rem; color: var(--text-mid); line-height: 1.65; }

/* ============================================================
   INFO
   ============================================================ */
.info {
  background: linear-gradient(180deg, var(--ocean-mid) 0%, var(--ocean-deep) 100%);
  padding: 0 0 52px;
  position: relative;
}

.info-wave-top { line-height: 0; }
.info-wave-top svg { width: 100%; display: block; }

.info .section-label {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}
.info .section-title { color: white; }

.info-table {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.info-row:last-child { border-bottom: none; }

.info-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 90px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ocean-light);
  flex-shrink: 0;
  padding-top: 2px;
}

.info-label span { font-size: 1rem; }

.info-value {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-value strong {
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
}

.info-value p {
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

.info-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.info-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ocean-light);
  transition: color 0.2s;
}

.price-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.price-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-sm);
  padding: 7px 13px;
}

.price-lv {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
}

.price-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--yellow);
}
.price-num small {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}

.info-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.info-note {
  background: rgba(255,255,255,0.1);
  border-left: 4px solid var(--yellow);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 16px;
  font-size: 0.8rem;
  color: white;
  line-height: 1.6;
}

.info-note.green { border-left-color: var(--green); }

/* ============================================================
   APPLY
   ============================================================ */
.apply {
  background: linear-gradient(135deg, var(--ocean-bright) 0%, var(--purple) 100%);
  padding: 60px 18px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.apply-bubbles { position: absolute; inset: 0; pointer-events: none; }
.ab {
  position: absolute;
  font-size: 2rem;
  opacity: 0.18;
  animation: floatDeco ease-in-out infinite;
}
.ab1 { top: 10%; left: 8%;  animation-duration: 5s; }
.ab2 { top: 20%; right: 10%; animation-duration: 6s; animation-delay: 1s; }
.ab3 { bottom: 15%; left: 20%; animation-duration: 4.5s; animation-delay: 2s; }

@keyframes floatDeco {
  0%,100% { transform: translateY(0) rotate(-10deg); }
  50%      { transform: translateY(-18px) rotate(10deg); }
}

.apply-inner { position: relative; z-index: 1; max-width: 400px; margin: 0 auto; }

.apply-inner h2 {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 900;
  color: white;
  margin-bottom: 10px;
}

.apply-msg {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 22px;
}

.apply-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--r-md);
  padding: 14px 26px;
  margin-bottom: 28px;
}

.count-label { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.75); }
.count-num { font-size: 3.2rem; font-weight: 900; color: var(--yellow); line-height: 1; }
.count-unit { font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,0.75); }

.btn-apply-big {
  display: block;
  background: var(--yellow);
  color: var(--ocean-deep);
  font-size: 1.12rem;
  font-weight: 900;
  padding: 18px 0;
  border-radius: 100px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.btn-apply-big:active { transform: scale(0.97); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }

.apply-sub {
  margin-top: 14px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ocean-deep);
  padding: 32px 18px 24px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer .logo-main { color: white; }
.footer .logo-sub { color: rgba(255,255,255,0.4); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

.mini-menu {
  margin-top: 10%;
  margin-bottom: 10%;
  display: flex;
  align-items: center; /* 縦位置を揃える */
  justify-content: center; /* 全体を中央寄せ */
  gap: 50px; /* 文字と画像の間隔 */
}

.mini-menu h1 {
  color: aliceblue;
  margin-left: 5%;
  font-weight: 800;
  position: absolute;
  top: 1130px; /*上から20px*/
  left: -7px; /*左から30px*/
}

.mini-menu img {
  width: 180px; /* 好きなサイズ */
  margin-left: 65%;
}


/* ============================================================
   DESKTOP ENHANCEMENTS
   ============================================================ */
@media (min-width: 600px) {
  body { font-size: 16px; }

  .bubble-card { padding: 24px 22px; }
  .bubble-card h3 { font-size: 0.96rem; }
  .bubble-card p  { font-size: 0.85rem; }
  .about-icon { font-size: 2.4rem; }

  .flow-grid { gap: 20px; }
  .flow-box { padding: 28px 20px; }
  .flow-icon { font-size: 1.8rem; }
  .flow-box h3 { font-size: 1rem; }
  .flow-box p { font-size: 0.85rem; }

  .info-row { padding: 18px 24px; gap: 20px; }
  .info-label { min-width: 110px; font-size: 0.85rem; }
  .info-value strong { font-size: 0.95rem; }

  .gallery-item { width: 200px; }
}

@media (min-width: 560px) {
  .flow-grid { grid-template-columns: 1fr 1fr; }   /* タブレットは2カラム */
}

@media (min-width: 768px) {
  .flow-grid { grid-template-columns: repeat(4, 1fr); }   /* PC は4カラム */
}

    /* ===== ブラウザバックボタン ===== */
    .back-btn {
      position: fixed;
      top: 16px;
      left: 16px;
      z-index: 9999;
      display: flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1.5px solid rgba(0, 0, 0, 0.12);
      border-radius: 50px;
      padding: 8px 16px 8px 10px;
      cursor: pointer;
      font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
      font-size: 13px;
      font-weight: 700;
      color: #444;
      text-decoration: none;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
      transition: background 0.18s, box-shadow 0.18s, transform 0.12s, opacity 0.3s, visibility 0.3s;
      user-select: none;
      opacity: 0;
      visibility: hidden;
    }
    .back-btn.is-visible {
      opacity: 1;
      visibility: visible;
    }
    .back-btn:hover {
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
      transform: translateY(-1px);
    }
    .back-btn:active {
      transform: scale(0.96);
    }
    .back-btn__arrow {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 26px;
      background: #4caf7d;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .back-btn__arrow svg {
      width: 14px;
      height: 14px;
      stroke: #fff;
      fill: none;
      stroke-width: 2.5;
      stroke-linecap: round;
      stroke-linejoin: round;
    } 
