/* =============================================
   Hatch Build LP — style.css
   Brand: Powder & Cream (same as slide v4)
============================================= */

:root {
  --navy-dark:   #E4E8EC;
  --navy-mid:    #DAE0E6;
  --navy-light:  #CED5DC;
  --blue:        #5C7E9A;
  --blue-light:  #7A9DB8;
  --teal:        #7A8FA8;
  --teal-light:  #A8C4D8;
  --green:       #5C9A5C;
  --gold:        #8C7060;
  --orange:      #C4967A;
  --red:         #C08080;
  --text-main:   #242C36;
  --text-sub:    #4A5C6A;
  --border:      rgba(92,126,154,0.22);
  --bg:          #EEF1F4;
  --card-bg:     rgba(92,126,154,0.05);
}

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

html { scroll-behavior: smooth; font-size: 16px; overflow-x: clip; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: clip;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238,241,244,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  font-size: 1.275rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.navbar-badge {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
}
.navbar-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.navbar-links a {
  font-size: 1.17rem;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--blue); }

/* ハンバーガーボタン（デスクトップでは非表示） */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}
.navbar-hamburger span {
  display: block;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
/* ハンバーガー → ✕ アニメーション */
.navbar-hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar-hamburger.is-open span:nth-child(2) { opacity: 0; }
.navbar-hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* モバイルドロワー */
@media (max-width: 768px) {
  .navbar { padding: 0 1.25rem; height: auto; min-height: 56px; }
  .navbar-brand {
    font-size: 0.95rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.5rem 0;
  }
  .navbar-badge { font-size: 0.72rem; }
  .navbar-hamburger { display: flex; margin-left: 0.75rem; flex-shrink: 0; }
  .navbar-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: rgba(238,241,244,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 99;
  }
  .navbar-links.is-open { display: flex; }
  .navbar-links li { border-bottom: 1px solid var(--border); }
  .navbar-links li:last-child { border-bottom: none; }
  .navbar-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 4rem 2.5rem;
  font-weight: bold;
  letter-spacing: 0.3em;
}
.hero-brand {
  font-size: 0.9rem;
  color: var(--teal-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--teal-light);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
.hero-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.52));
  z-index: 0;
  pointer-events: none;
}
.hero-catch {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.22em;
  white-space: nowrap;
  text-align: center;
}
.hero-catch::before,
.hero-catch::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: rgba(255,255,255,0.55);
  flex-shrink: 0;
}
.hero-cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--blue);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.15s;
}
.hero-cta:hover { background: var(--blue-light); transform: translateY(-1px); }
.hero-cta-sub {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.75rem 1.6rem;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.2s, border-color 0.2s;
}
.hero-cta-sub:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ===== SECTION BASE ===== */
section { padding: 80px 0; }
section:nth-child(even) { background: #fff; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.7rem;
  color: var(--blue);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  border-left: 4px solid var(--blue);
  padding-left: 0.7rem;
}
.section-desc {
  font-size: 0.92rem;
  color: var(--text-sub);
  margin-bottom: 2.5rem;
  padding-left: 1.1rem;
}

/* ===== GRID ===== */
.grid-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
/* グリッドアイテムが min-width:auto でセルを広げないようにする */
.grid-2 > *, .grid-3 > * { min-width: 0; }
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-brand { margin-bottom: 0.4rem; }
}

/* ===== CARD ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
}
.card-blue   { border-left: 4px solid var(--blue); }
.card-teal   { border-left: 4px solid var(--teal-light); }
.card-gold   { border-left: 4px solid var(--gold); }
.card-green  { border-left: 4px solid var(--green); }
.card-orange { border-left: 4px solid var(--orange); }
.card-red    { border-left: 4px solid var(--red); }
.card-purple { border-left: 4px solid #8B7DB8; }
.card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.7rem;
}
.card ul { padding-left: 1.2rem; }
.card li {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.3rem;
  line-height: 1.65;
}
.card p { font-size: 0.88rem; color: var(--text-main); line-height: 1.7; }

/* ===== FLOW STEPS ===== */
.flow-list { display: flex; flex-direction: column; gap: 0; }
.flow-item { display: flex; align-items: flex-start; gap: 1rem; }
.flow-num {
  width: 32px; height: 32px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800; color: #fff;
  flex-shrink: 0; margin-top: 0.25rem;
}
.flow-body { flex: 1; }
.flow-body strong { font-size: 0.92rem; display: block; margin-bottom: 0.2rem; }
.flow-body p { font-size: 0.82rem; color: var(--text-sub); }
.flow-connector {
  display: flex;
  gap: 1rem;
  margin: 0.05rem 0;
}
.flow-conn-spacer {
  width: 32px;
  flex-shrink: 0;
}
.flow-conn-arrow {
  flex: 1;
  text-align: center;
  color: var(--teal-light);
  font-size: 0.85rem;
  line-height: 1.2;
}

/* ===== SHIORI GALLERY ===== */
.shiori-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.shiori-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
}
.shiori-gallery img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.options-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.options-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.options-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: block;
  transition: transform 0.25s, box-shadow 0.25s;
}
.options-item img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.options-lbl {
  font-size: 0.85rem;
  color: var(--text-sub);
  text-align: center;
  margin: 0;
}

.shiori-coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f0f0f0;
  color: #999;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.6;
  aspect-ratio: 2400 / 1792;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ===== REVENUE PILLARS ===== */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
  margin-bottom: 2rem;
}
.pillar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 0.8rem;
  text-align: center;
}
.pillar-code {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
  margin-bottom: 0.3rem;
}
.pillar-name {
  font-size: 0.72rem;
  color: var(--text-main);
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}
.pillar-note {
  font-size: 0.65rem;
  color: var(--text-sub);
  line-height: 1.4;
}
@media (max-width: 720px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .options-gallery { grid-template-columns: 1fr; }
}

/* ===== TABLE ===== */
.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 1rem;
}
.lp-table th {
  background: var(--navy-light);
  color: var(--text-main);
  padding: 0.6rem 0.8rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
}
.lp-table th:first-child { text-align: left; }
.lp-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  color: var(--text-main);
  vertical-align: middle;
}
.lp-table td:not(:first-child) { text-align: right; }
.lp-table tr:nth-child(even) td { background: rgba(0,0,0,0.025); }
.lp-table .tr-total td {
  background: rgba(92,126,154,0.12) !important;
  font-weight: 700;
  color: var(--gold);
}
.lp-table .tr-hl td {
  background: rgba(92,126,154,0.07);
  font-weight: 700;
}
.lp-table .tr-center td { color: var(--blue); font-weight: 700; }

/* ===== NUM BOXES ===== */
.num-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.num-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1rem;
  text-align: center;
}
.num-box .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1.2;
}
.num-box .num-unit { font-size: 1rem; font-weight: 700; }
.num-box .lbl { font-size: 0.72rem; color: var(--text-sub); margin-top: 0.3rem; }
/* num-row の min-width:0 はモバイルクエリ側で管理 */
.num-row > * { min-width: 0; }

/* ===== PHASE BARS ===== */
.phase-list { display: flex; flex-direction: column; gap: 0.8rem; }
.phase-bar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.phase-bar.p0 { background: rgba(92,154,92,0.07); border-left: 4px solid #5C9A5C; }
.phase-bar.p1 { background: rgba(92,126,154,0.07); border-left: 4px solid var(--blue); }
.phase-bar.p2 { background: rgba(168,200,216,0.1); border-left: 4px solid var(--teal-light); }
.phase-bar.p3 { background: rgba(140,112,96,0.07); border-left: 4px solid var(--gold); }
.phase-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 0.15rem;
  min-width: 70px;
}
.phase-bar.p0 .phase-label { color: #5C9A5C; }
.phase-bar.p1 .phase-label { color: var(--blue); }
.phase-bar.p2 .phase-label { color: var(--teal); }
.phase-bar.p3 .phase-label { color: var(--gold); }
.phase-content { flex: 1; }
.phase-content strong { font-size: 0.88rem; display: block; margin-bottom: 0.3rem; }
.phase-content ul { padding-left: 1.1rem; }
.phase-content li { font-size: 0.8rem; color: var(--text-sub); margin-bottom: 0.15rem; }
.phase-badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-green  { background: #5C9A5C; color: #fff; }
.badge-blue   { background: var(--blue); color: #fff; }
.badge-teal   { background: var(--teal-light); color: #fff; }
.badge-gold   { background: var(--gold); color: #fff; }

/* ===== PARTNER SECTION ===== */
.partner-highlight {
  background: linear-gradient(135deg, rgba(92,126,154,0.1) 0%, rgba(168,200,216,0.12) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.partner-highlight .big-text {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.partner-highlight p { font-size: 0.92rem; color: var(--text-sub); }

/* ===== PROFILE ===== */
.profile-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: start; }
.profile-img-placeholder {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--navy-mid);
  border: 3px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: var(--blue);
}
.profile-name { font-size: 1.4rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.5rem; }
.profile-title { font-size: 0.82rem; color: var(--blue); margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.profile-bio { font-size: 0.78rem; color: var(--blue); margin: 0 0 0.5rem; }
.career-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.2rem; }
.career-item {
  display: flex; align-items: flex-start; gap: 0.8rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.6rem 0.9rem;
}
.career-year { font-size: 0.7rem; color: var(--text-sub); white-space: nowrap; min-width: 80px; padding-top: 0.1rem; }
.career-detail strong { font-size: 0.85rem; display: block; }
.career-detail span { font-size: 0.78rem; color: var(--text-sub); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag {
  background: rgba(92,126,154,0.1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
  color: var(--text-main);
}
@media (max-width: 720px) {
  .profile-wrap { grid-template-columns: 1fr; }
  .profile-img-placeholder { margin: 0 auto; }
}

/* ===== REFUND FLOW ===== */
.refund-flow {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.refund-step {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.refund-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.refund-step p { color: var(--text-sub); }

/* ===== PDF BUTTON ===== */
.btn-pdf {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}
.btn-pdf:hover { background: var(--blue-light); transform: translateY(-2px); }

/* ===== CONTACT ===== */
.contact-box {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2.5rem;
}
.contact-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; color: var(--text-main); }
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.contact-row:last-child { border-bottom: none; }
.contact-label {
  font-size: 0.72rem;
  color: var(--text-sub);
  min-width: 100px;
  font-weight: 700;
}
.contact-value { color: var(--text-main); }
.contact-value a { color: var(--blue); text-decoration: none; }

/* ===== IMPORTANT BOX ===== */
.important-box {
  background: rgba(92,126,154,0.08);
  border: 1px solid rgba(92,126,154,0.3);
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.4rem;
  margin-top: 1.5rem;
}
.important-box p { font-size: 0.9rem; font-weight: 700; color: var(--text-main); }

/* ===== HIGHLIGHT TEXT ===== */
.hl-gold { color: var(--gold); font-weight: 700; }
.hl-blue { color: var(--blue); font-weight: 700; }

/* ===== LAW MODAL ===== */
.law-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.law-modal-overlay.is-open { display: flex; }
.law-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2rem 1.5rem;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.law-modal-box h2 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--blue);
}
.law-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none;
  font-size: 1.4rem; cursor: pointer;
  color: var(--text-sub); line-height: 1;
}
.law-modal-close:hover { color: var(--text-main); }
.law-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 0.5rem; }
.law-table th, .law-table td { padding: 0.55rem 0.75rem; border: 1px solid #ddd; vertical-align: top; }
.law-table th { background: #f5f5f5; white-space: nowrap; width: 9rem; font-weight: 600; color: var(--text-main); }
.law-table td { color: var(--text-body); }
.law-section-title { font-weight: 700; color: var(--blue); margin: 1.2rem 0 0.4rem; font-size: 0.9rem; }
.law-modal-box ul { padding-left: 1.4rem; font-size: 0.85rem; color: var(--text-body); }
.law-modal-box ul li { margin-bottom: 0.3rem; }
.law-modal-box p { font-size: 0.85rem; color: var(--text-body); line-height: 1.7; }
.law-note { font-size: 0.75rem; color: var(--text-sub); }

/* ===== FOOTER LINKS ===== */
.footer-links {
  font-size: 0.78rem;
  color: var(--text-sub);
  text-align: center;
  margin-top: 1.5rem;
}
@media (max-width: 768px) {
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .footer-sep { display: none; }
}

/* ===== FOOTER ===== */
footer {
  background: var(--text-main);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  line-height: 1.9;
}
footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
footer a:hover { color: #fff; }

/* ===== LIGHTBOX ===== */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
#lightbox-overlay.visible { display: flex; }
#lightbox-box {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  max-width: 100%;
  max-height: 100%;
  display: flex;
  overflow: hidden;
}
#lightbox-box img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
}
#lightbox-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.15s;
}
#lightbox-close:hover { background: rgba(0,0,0,0.8); }
.shiori-gallery img { cursor: zoom-in; }
.options-item img { cursor: zoom-in; }

/* ===== UTIL ===== */
.mt-1 { margin-top: 0.6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.text-center { text-align: center; }

/* ===== TABLE SCROLL WRAPPER ===== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  display: block;
}

/* ===== MOBILE OVERRIDES (≤ 768px) ===== */
@media (max-width: 768px) {
  /* セクション余白 */
  section { padding: 40px 0; }

  /* hero：フル高さで上下に分割 */
  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  /* 上部グラデーション（テキスト読みやすさのため）
     z-index:1 = hero-bg(0) より前面、hero-content(1) と同層だが ::before は先に描かれるため text は上に来る */
  .hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 42%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
    z-index: 1;
    pointer-events: none;
  }
  /* hero-content：上下に伸びて中央を空ける */
  .hero-content {
    flex: 1;
    max-width: 100%;
    padding: 1.5rem 1.25rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .hero-title { margin-bottom: 0.4rem; }
  .hero-sub { margin-bottom: 0.5rem; }
  .hero-tagline { margin-bottom: 0; }
  /* ボタンエリアを hero-catch の上に配置 */
  .hero-bottom {
    padding-bottom: calc(30% + 3.2rem);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .hero-cta, .hero-cta-sub {
    display: block;
    margin-left: 0;
    flex: 1;
    text-align: center;
  }

  /* hero-catch */
  .hero-catch {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    gap: 0.8rem;
    bottom: 8%;
  }
  .hero-catch::before,
  .hero-catch::after { width: 28px; }

  /* pillar-grid: 2列 */
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }

  /* num-row: 1列（金額が長いので2列は厳しい） */
  .num-row { grid-template-columns: 1fr; }
  .num-box .num { font-size: 1.5rem; }

  /* テーブル：列幅を均等に固定してスクロールさせる */
  .lp-table {
    table-layout: fixed;
    min-width: 420px;
  }
  .lp-table th, .lp-table td {
    word-break: break-all;
    white-space: normal;
  }
  /* テーブル横スクロールのヒント */
  .table-wrap::after {
    content: '← 横にスクロールできます →';
    display: block;
    text-align: center;
    font-size: 0.68rem;
    color: var(--text-sub);
    margin-top: 0.4rem;
    letter-spacing: 0.05em;
  }

  /* phase-bar：label + badge を上段、content を下段フル幅 */
  .phase-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "label badge" "content content";
    gap: 0.3rem 0.6rem;
    align-items: center;
  }
  .phase-label { grid-area: label; min-width: auto; padding-top: 0; }
  .phase-badge { grid-area: badge; }
  .phase-content { grid-area: content; }

  /* profile */
  .profile-wrap { gap: 1.2rem; }

  /* contact */
  .contact-box { padding: 1.5rem 1.25rem; }
  .contact-row { flex-wrap: wrap; gap: 0.4rem; }
  .contact-label { min-width: auto; }
}
