/* =========================================================
   楽スタ LP — style.css
   ========================================================= */

:root {
  /* Color tokens (flyer base: green / mint / white) */
  --color-primary: #00A75B;
  --color-primary-dark: #007D44;
  --color-primary-darker: #005C32;
  --color-primary-light: #E7F6EF;
  --color-primary-soft: #F4FAF7;
  --color-accent: #EA5532;
  --color-line: #06C755;
  --color-text: #1F2A26;
  --color-text-sub: #57655F;
  --color-bg: #FFFFFF;
  --color-border: #E1EAE5;
  --color-danger: #D6534A;

  /* Typography */
  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
  --font-en: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-hero: 48px;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  /* Layout */
  --container-max: 1120px;
  --container-narrow: 800px;
  --radius-card: 14px;
  --radius-btn: 10px;
  --shadow-card: 0 2px 14px rgba(20, 40, 32, 0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: var(--text-base);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
select, input, textarea { font-family: inherit; font-size: var(--text-base); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Utilities: PC/SP改行切替 ---------- */
.pc-br { display: none; }
.sp-br { display: inline; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-2);
}
.container-narrow { max-width: var(--container-narrow); }
.container-narrow.container { margin-left: auto; margin-right: auto; }
p.container-narrow { max-width: var(--container-narrow); margin-left: auto; margin-right: auto; }

.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon-lg { width: 30px; height: 30px; }

.num { font-family: var(--font-en); font-weight: 700; }

/* ---------- Section base ---------- */
.section { padding: var(--space-8) 0; }
.section-soft { background: var(--color-primary-soft); }

.section-eyebrow {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  text-align: center;
}
.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--space-2);
  text-align: center;
}
.section-lead {
  font-size: var(--text-lg);
  color: var(--color-text-sub);
  margin-bottom: var(--space-6);
  text-align: center;
}
.container-narrow {
  text-align: center;
}

/* ---------- 30秒でわかる動画（スマホモックアップ） ---------- */
#intro-video { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.phone-mockup {
  width: min(86vw, 360px);
  margin: 0 auto;
  padding: 14px;
  border-radius: 36px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  position: relative;
}
.phone-speaker {
  width: 64px;
  height: 5px;
  border-radius: 999px;
  background: var(--color-primary-light);
  margin: 0 auto 12px;
}
.phone-screen {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 9 / 16;
  background: #000;
}
.phone-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-lead-out {
  margin-top: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-sub);
  text-align: center;
}

@media (min-width: 768px) {
  .phone-mockup { width: 340px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: var(--text-base);
  border: 2px solid transparent;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-lg { min-height: 52px; padding: 0 var(--space-4); font-size: var(--text-lg); }
.btn-sm { min-height: 40px; padding: 0 var(--space-2); font-size: var(--text-sm); }
.btn-block { width: 100%; }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-secondary { background: #fff; color: var(--color-primary-dark); border-color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary-light); }

.btn-tel { background: #fff; color: var(--color-primary-dark); border-color: var(--color-border); }
.btn-tel:hover { border-color: var(--color-primary); }

.btn-on-dark { background: #fff; color: #0E8A8A; }
.btn-on-dark:hover { opacity: .9; }
.btn-cta-line { background: var(--color-line); color: #fff; }
.btn-cta-line:hover { background: #05b349; }
.btn-on-dark-outline { background: #fff; color: var(--color-primary-dark); border-color: rgba(255,255,255,.6); }
.btn-on-dark-outline:hover { opacity: .9; }

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: underline;
  font-size: inherit;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(180%) blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-2);
}
.logo { display: flex; align-items: center; }
.logo-image {
  display: block;
  height: 40px;
  width: auto;
}
.header-cta { display: flex; align-items: center; gap: 8px; }
.header-cta .btn-tel span.num { display: none; }

/* ヘッダーナビ（スマホ：ドロワー） */
.header-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  flex-direction: column;
  padding: var(--space-3) var(--space-4);
  gap: 0;
  z-index: 49;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.header-nav.is-open { display: flex; }
.header-nav a {
  display: block;
  padding: 14px 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.header-nav a:last-child { border-bottom: none; }

/* ハンバーガーボタン */
.header-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.header-menu-btn span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.header-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.header-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero { background: #EEF8F2; }
.hero-visual {
  position: relative;
  width: 100%;
  margin-bottom: var(--space-3);
}
.hero-media { overflow: hidden; margin-top: 24px; margin-left: calc(-1 * var(--space-2)); margin-right: calc(-1 * var(--space-2)); }
.hero-media img { width: 100%; height: auto; display: block; }
.hero-text-top {
  position: absolute;
  top: 0;
  left: calc(-1 * var(--space-2));
  right: calc(-1 * var(--space-2));
  padding: var(--space-2) var(--space-4) 0;
  text-align: center;
  background: linear-gradient(to bottom, #EEF8F2 0%, rgba(238,248,242,0.85) 50%, transparent 100%);
}
#hero .section-deco {
  z-index: 3;
  opacity: 0.15;
}
.hero-text-bottom { width: 100%; margin-top: -60px; }
.hero-overlay { display: none; }
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0;
  padding-bottom: var(--space-6);
}
.hero-eyebrow {
  display: inline-block;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
  border-bottom: 2px solid #F5C842;
  padding-bottom: 2px;
}
.hero-title { font-size: 28px; font-weight: 900; line-height: 1.4; margin-bottom: var(--space-2); }
.hero-sub { font-size: var(--text-lg); color: var(--color-text-sub); margin-bottom: var(--space-3); }
.hero-note { font-size: var(--text-base); font-weight: 700; color: var(--color-accent); margin-bottom: var(--space-3); }
.hero-price-box {
  display: inline-block;
  border: 2px solid #00A75B;
  border-radius: var(--radius-btn);
  padding: 10px 20px;
  font-size: var(--text-sm);
  color: #00A75B;
  font-weight: 500;
  background: #fff;
}
.hero-price-box strong {
  font-size: 22px;
  font-weight: 900;
  font-family: var(--font-en);
  margin: 0 2px;
}
.hero-price-box small {
  font-size: var(--text-xs);
  font-weight: 500;
  font-family: var(--font-jp);
}

/* Hero CTA Bar */
.hero-cta-bar {
  position: relative;
  z-index: 2;
  background: var(--color-primary);
  padding: var(--space-3) 0;
}
.hero-cta-bar-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}
.hero-cta-item { text-align: center; width: 100%; max-width: 340px; }
.hero-cta-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.9);
  font-weight: 500;
  margin-bottom: 8px;
}
.hero-cta-btn { width: 100%; }
.hero-cta-sep {
  display: none;
  width: 1px;
  background: rgba(255,255,255,.3);
  align-self: stretch;
}

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: 1fr; }

.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-3);
}

.problem-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
}
.problem-card .icon { color: var(--color-accent); }

/* Problem layout — person + checklist */
.problem-layout {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  max-width: 860px;
  margin: 0 auto;
}
.problem-person {
  flex: 0 0 auto;
  width: 220px;
}
.problem-person img {
  width: 100%;
  height: auto;
  display: block;
}
.problem-checklist {
  flex: 1 1 auto;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.problem-checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.5;
}
.checklist-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .problem-layout {
    flex-direction: column;
    gap: var(--space-4);
  }
  .problem-person {
    width: 160px;
  }
  .problem-checklist li {
    font-size: var(--text-base);
  }
}

.feature-card { display: flex; flex-direction: column; gap: 10px; }
.feature-card .icon { color: var(--color-primary); }
.feature-card h3 { font-size: var(--text-lg); font-weight: 700; }
.feature-card p { color: var(--color-text-sub); font-size: var(--text-sm); }

/* What You Can Do — 2-col feature grid + mockup image */
.service-layout {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.service-features {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: var(--space-3);
}
.feature-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.feature-item h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
}
.feature-item p {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  line-height: 1.6;
  margin: 0;
}
.service-mockup {
  flex: 0 0 auto;
  width: 220px;
}
.service-mockup img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .service-layout {
    flex-direction: column;
    gap: var(--space-6);
  }
  .service-features {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .service-mockup {
    width: 180px;
    order: -1;
  }
}

.point {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  padding: 12px;
}
.point .icon { color: var(--color-primary); }

/* ---------- Steps ---------- */
.step-list { display: flex; flex-direction: column; gap: var(--space-3); }
.step-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.step-number {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--text-lg);
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-list h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: 4px; }
.step-list p { color: var(--color-text-sub); }

.step-list-row { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-bottom: var(--space-6); }

/* ---------- How to use ---------- */
.how-to-inner { display: flex; flex-direction: column-reverse; gap: var(--space-6); align-items: center; }
.how-to-media img { max-width: 320px; margin: 0 auto; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.how-to-text { width: 100%; }

/* How to Use — new layout */
/* ヘッダー全体：タイトルはセンター、バッジ+人物は右上に絶対配置 */
.howto-header {
  position: relative;
  text-align: center;
  padding-right: 160px;
  margin-bottom: var(--space-6);
}
.howto-header-person {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.howto-person-img {
  width: 200px;
  height: auto;
  display: block;
}

/* 4ステップカードグリッド */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-2);
}
.howto-step {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 28px;
}
.howto-step-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  overflow: hidden;
}
.howto-step-badge {
  position: absolute;
  top: 0;
  left: -10px;
  width: 72px;
  height: auto;
  z-index: 1;
}
.howto-step-img-wrap {
  width: 100%;
  aspect-ratio: 9 / 17;
  overflow: hidden;
}
.howto-step-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.howto-step-img-wrap--contain img {
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.howto-step-caption {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-primary);
  text-align: left;
  margin-top: var(--space-3);
  margin-bottom: 6px;
  line-height: 1.4;
}
.howto-step-desc {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .howto-header {
    padding-right: 130px;
  }
  .howto-person-img {
    width: 140px;
  }
  .howto-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px var(--space-3);
  }
  .howto-step {
    padding-top: 22px;
  }
  .howto-step-badge {
    width: 56px;
  }
}
@media (max-width: 480px) {
  .howto-header {
    padding-right: 0;
  }
  .howto-header-person {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-bottom: var(--space-3);
  }
  .howto-steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Memo flow ---------- */
.memo-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.memo-step {
  text-align: center;
  width: 100%;
  max-width: 280px;
}
.memo-step-img {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.14);
  margin-bottom: var(--space-2);
}
.memo-step-img img {
  width: 100%;
  height: auto;
  display: block;
}
.memo-step-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--text-base);
  margin: 0;
}
.memo-step-caption .step-number {
  width: 28px;
  height: 28px;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.memo-arrow {
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  display: block;
  transform: rotate(90deg);
}
.memo-caption {
  text-align: center;
  margin-top: var(--space-4);
  font-weight: 700;
  font-size: var(--text-lg);
  color: #EA5532;
}

/* ---------- Enhance (before/after) ---------- */
/* ===== 画像加工セクション ===== */
.enhance-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.enhance-card {
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
}
.enhance-card-header {
  background: var(--color-primary-light);
  color: var(--color-primary-darker);
  font-weight: 700;
  font-size: var(--text-base);
  text-align: center;
  padding: 10px var(--space-2);
  border-bottom: 2px solid var(--color-primary);
}
.enhance-card-img img {
  width: 100%;
  height: auto;
  display: block;
}
.enhance-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text);
  padding: var(--space-2) var(--space-3);
  margin: 0;
  line-height: 1.7;
}
.enhance-accent {
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* 下部：人物 + ポイント */
.enhance-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.enhance-person {
  width: 160px;
  flex-shrink: 0;
}
.enhance-person img {
  width: 100%;
  height: auto;
  display: block;
}
.enhance-points-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}
.enhance-point {
  background: var(--color-primary-light);
  border-radius: var(--radius-card);
  padding: var(--space-3) var(--space-4);
  position: relative;
  z-index: 1;
}
.enhance-point-title {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-primary-darker);
  margin: 0 0 var(--space-1);
}
.enhance-point-title .icon {
  color: var(--color-primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.enhance-point-desc {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: 0;
  line-height: 1.75;
}
.enhance-point-desc small {
  color: var(--color-text-sub);
  font-size: var(--text-xs);
}

/* ---------- Usecases ---------- */
/* ===== 業種別活用例 ===== */
.usecase-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.usecase-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.usecase-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.usecase-body {
  padding: var(--space-3) var(--space-3);
  flex-grow: 1;
}
.usecase-body-inner {
  display: flex;
  flex-direction: row;
  gap: var(--space-2);
  align-items: flex-start;
}
.usecase-body-text {
  flex: 1 1 0;
  min-width: 0;
}
.usecase-cat-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}
.usecase-desc {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}
.usecase-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.usecase-list li {
  padding-left: 1.2em;
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}
.usecase-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.6em;
  top: 0.35em;
}
.usecase-mockup-wrap {
  flex: 0 0 auto;
  width: 110px;
}
.usecase-mockup {
  width: 100%;
  height: auto;
  display: block;
}
.usecase-banner {
  background: var(--color-primary);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-6);
  text-align: center;
}
.usecase-banner p {
  color: #fff;
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1.8;
  margin: 0;
}

/* ---------- Team ---------- */
/* ===== 複数人投稿（memo-flow クラス共用） ===== */

/* ---------- Pricing ---------- */
.pricing-grid { margin-bottom: var(--space-3); }
.pricing-card { text-align: center; position: relative; border: 2px solid var(--color-border); }
.pricing-card-recommend { border-color: var(--color-primary); }
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}
.pricing-name { font-size: var(--text-lg); font-weight: 700; margin-bottom: 4px; }
.pricing-freq { color: var(--color-text-sub); margin-bottom: var(--space-2); }
.pricing-price { font-size: var(--text-xl); font-weight: 900; color: var(--color-primary-darker); }
.pricing-price .num { font-size: var(--text-2xl); }
.pricing-unit { font-size: var(--text-sm); font-weight: 500; margin-left: 4px; }

/* 画像加工オプション */
.pricing-option {
  background: #EEF4D8;
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-4);
  text-align: center;
}
.pricing-option-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--space-2);
}
.pricing-option-label {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}
.pricing-option-price {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary-darker);
}
.pricing-option-price .num { font-size: var(--text-lg); }
.pricing-option-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.pricing-option-tags li {
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 999px;
}

/* 初期費用テーブル */
.pricing-table-wrap {
  margin-bottom: var(--space-3);
  background: #fff;
  border-radius: var(--radius-card);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  border: 2px solid var(--color-border);
}
.pricing-table-title {
  font-size: var(--text-lg);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
}
.pricing-table th,
.pricing-table td {
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
  font-size: var(--text-sm);
  line-height: 1.7;
}
.pricing-table th {
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  width: 36%;
}
.pricing-table td { color: var(--color-text); }
.pricing-old {
  color: var(--color-text-sub);
  text-decoration: line-through;
  font-size: var(--text-sm);
}
.pricing-campaign {
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--text-base);
}

.pricing-disclaimer { font-size: var(--text-xs); color: var(--color-text-sub); margin-top: var(--space-2); }

/* ---------- Support ---------- */
/* ===== 導入までの流れ ===== */
.support-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.support-card {
  background: #E7F6EF;
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-3) var(--space-3);
  position: relative;
  text-align: center;
}
.support-step-badge {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 1;
}
.support-step-num {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.support-card-img {
  height: 130px;
  margin: 0 auto var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.support-card-img img {
  width: 100%;
  height: 100%;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.support-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-1);
  line-height: 1.5;
}
.support-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.75;
  margin: 0;
  text-align: left;
}

/* ---------- CTA banner ---------- */
/* ---------- 料金後 軽めCTA ---------- */
.cta-mid {
  background: var(--color-primary);
  padding: 20px var(--space-2);
  text-align: center;
}
.cta-mid-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cta-mid-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.cta-mid-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.88);
}

/* ---------- 最終CTA ---------- */
.cta-banner { background: #0E8A8A; color: #fff; padding: var(--space-8) 0; text-align: center; }
.cta-inner h2 { font-size: var(--text-xl); font-weight: 900; margin-bottom: var(--space-2); }
.cta-inner p { font-size: var(--text-base); opacity: .92; margin-bottom: var(--space-4); }
.cta-buttons { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 360px; margin: 0 auto var(--space-4); }
.cta-info { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-sm); opacity: .9; }
.cta-info div { display: flex; gap: 6px; justify-content: center; }
.cta-info dt { font-weight: 700; }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: var(--text-sm); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.required, .optional {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.required { background: #FCEAE8; color: var(--color-danger); }
.optional { background: var(--color-primary-light); color: var(--color-primary-darker); }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  background: #fff;
  width: 100%;
}
.form-row textarea { resize: vertical; min-height: 120px; }

.form-row-checkbox { flex-direction: row; align-items: flex-start; gap: 10px; }
.form-row-checkbox input { margin-top: 4px; width: 18px; height: 18px; }
.form-row-checkbox label { font-weight: 500; }

.form-note { font-size: var(--text-xs); color: var(--color-text-sub); text-align: center; }
.form-status { text-align: center; font-weight: 700; color: var(--color-primary-dark); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-soft);
  padding: var(--space-4) 0 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-2);
}
.footer-logo-link { display: inline-block; }
.footer-logo-img { height: 24px; width: auto; display: block; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: var(--text-sm);
  font-weight: 500;
}
.footer-nav a { color: var(--color-text); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-top: 1px solid var(--color-border);
  padding: var(--space-3) 0;
  text-align: center;
}
.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-sub);
  margin: 0;
}
.footer-privacy {
  font-size: var(--text-xs);
  color: var(--color-text-sub);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 40;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Section decoration ---------- */
#hero,
#intro-video,
#service,
#memo,
#pricing,
#comparison,
#faq {
  position: relative;
  overflow: hidden;
}
#pricing { background: #fff; }
#faq { background: #f7f8f9; }
.section-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  width: 220px;
  height: auto;
}
.section-deco--tl { top: 0; left: 0; }
.section-deco--tr { top: 0; right: 0; transform: scaleX(-1); }
.section-deco--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.section-deco--br { bottom: 0; right: 0; transform: scale(-1); }

.section-deco2 {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  width: 180px;
  height: auto;
}
#problem, #how-to, #privacy {
  position: relative;
  overflow: hidden;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 26, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-card);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-3);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); position: sticky; top: 0; background: #fff; }
.modal-head h2 { font-size: var(--text-xl); font-weight: 900; }
.modal-close { background: var(--color-primary-light); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--color-primary-darker); }
.modal-body h3 { font-size: var(--text-base); font-weight: 700; margin-top: var(--space-3); margin-bottom: 6px; }
.modal-body p { color: var(--color-text-sub); }
.modal-body a { color: var(--color-primary-dark); text-decoration: underline; }

/* ---------- Hero trial badge ---------- */
.hero-trial-badge {
  margin-bottom: var(--space-2);
}
.hero-trial-label {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 900;
  font-size: var(--text-base);
  padding: 8px 20px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.hero-price-info {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  margin-bottom: var(--space-3);
}
.hero-price-info strong {
  color: var(--color-text);
  font-weight: 700;
}

/* ---------- Trial / LINE buttons ---------- */
.btn-trial {
  background: var(--color-accent);
  color: #fff;
}
.btn-trial:hover { background: #d44528; }

.btn-line {
  background: var(--color-line);
  color: #fff;
}
.btn-line:hover { background: #05b349; }

/* ---------- Comparison table ---------- */
.comparison-table-wrap {
  overflow-x: auto;
  margin-top: var(--space-4);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: var(--text-base);
}
.comparison-table th,
.comparison-table td {
  padding: 15px 15px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.6;
}
.comparison-th-item {
  background: transparent;
  border: none;
  width: 28%;
}
.comparison-th-old {
  background: #FFF0EE;
  color: var(--color-text);
  font-weight: 700;
  border-radius: var(--radius-card) 0 0 0;
}
.comparison-th-new {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  border-radius: 0 var(--radius-card) 0 0;
}
.comparison-table tbody tr {
  border-top: 1px solid var(--color-border);
}
.comparison-table tbody tr:last-child {
  border-bottom: 1px solid var(--color-border);
}
.comparison-item {
  background: #F5F5F5;
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}
.comparison-old {
  color: var(--color-text-sub);
  background: #fff;
}
.comparison-old::before {
  content: "× ";
  color: var(--color-accent);
  font-weight: 700;
}
.comparison-new {
  color: var(--color-primary-dark);
  font-weight: 600;
  background: #fff;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}
.comparison-new::before {
  content: "✓ ";
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------- Mid CTA ---------- */
.mid-cta {
  background: var(--color-primary);
  padding: var(--space-4) 0;
  text-align: center;
}
.mid-cta-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}
.mid-cta-lead {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.9);
  font-weight: 500;
  margin-bottom: 8px;
}
.mid-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ---------- LP CTA（グリーン帯） ---------- */
.lp-cta {
  background: var(--color-primary);
  padding: var(--space-8) var(--space-2);
  text-align: center;
}
.lp-cta-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.lp-cta-title {
  font-size: var(--text-xl);
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  margin-bottom: var(--space-2);
}
.lp-cta-desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,.88);
  margin-bottom: var(--space-4);
  line-height: 1.8;
}
.lp-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.btn-lp-main {
  background: var(--color-accent);
  color: #fff;
  border-color: transparent;
}
.btn-lp-main:hover { background: #d44528; }
.btn-lp-line {
  background: var(--color-line);
  color: #fff;
  border-color: #FFF;
}
.btn-lp-line:hover { background: #05b349; }
.btn-lp-sub {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: rgba(255,255,255,.6);
}
.btn-lp-sub:hover { opacity: .9; }

/* ---------- Free trial section ---------- */
.trial-section-title { font-size: 30px; }
.trial-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 900px;
  margin: var(--space-6) auto 0;
}
.trial-card {
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
}
.trial-card-header {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--text-lg);
  text-align: center;
  padding: 10px 0;
  letter-spacing: 0.06em;
}
.trial-card-body {
  padding: var(--space-4) 12px var(--space-3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.trial-card-icon {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trial-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.btn-trial-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-line);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-lg);
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-trial-step:hover { background: #05b349; }
.btn-trial-step--insta {
  background: linear-gradient(45deg, #f77737 0%, #e1306c 50%, #833ab4 100%);
}
.btn-trial-step--insta:hover { background: linear-gradient(45deg, #d9632a 0%, #c4285e 50%, #6a2f96 100%); }
.trial-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-sub);
  margin-top: calc(-1 * var(--space-3));
}
.trial-card-desc-only {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin: auto 0;
  line-height: 1.5;
}
.trial-note {
  color: var(--color-accent);
  font-size: var(--text-sm);
  text-align: center;
  margin-top: var(--space-4);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: var(--container-narrow);
  margin: var(--space-4) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.faq-q {
  font-weight: 700;
  font-size: var(--text-base);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  line-height: 1.5;
  position: relative;
  z-index: 10;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { display: none; }
.faq-q::before {
  content: "Q";
  font-family: var(--font-en);
  font-weight: 900;
  color: #fff;
  background: var(--color-primary);
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
}
.faq-q::after {
  content: "＋";
  color: var(--color-primary);
  font-size: var(--text-lg);
  margin-left: auto;
  flex-shrink: 0;
  font-weight: 400;
}
details[open] .faq-q::after { content: "−"; }
.faq-a {
  padding: var(--space-2) var(--space-3) var(--space-3);
  padding-left: calc(var(--space-3) + 40px);
  color: var(--color-text-sub);
  line-height: 1.8;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 560px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .pc-br { display: inline; }
  .sp-br { display: none; }

  .pricing-table th { width: 35%; }

  .logo-image { height: 48px; }
  .header-cta .btn-tel span.num { display: inline; }
  .header-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: var(--space-4);
  }
  .header-nav a {
    padding: 0;
    font-size: var(--text-sm);
    border-bottom: none;
  }
  .header-menu-btn { display: none; }
  .hero-eyebrow { font-size: var(--text-lg); }
  .hero-media { margin-top: -24px; }
  .hero-title { font-size: 40px; }
  .hero-cta-bar-inner { flex-direction: row; justify-content: center; gap: var(--space-8); max-width: none; }
  .hero-cta-item { max-width: 300px; }
  .hero-cta-btn { width: auto; min-width: 260px; }
  .hero-cta-sep { display: block; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .memo-flow { flex-direction: row; align-items: flex-start; justify-content: center; }
  .memo-flow .memo-step { max-width: 240px; }
  .memo-arrow { transform: rotate(0deg); align-self: center; }


  .usecase-cards { grid-template-columns: repeat(3, 1fr); }
  .usecase-photo { aspect-ratio: 4/3; }
  .usecase-cat-title { font-size: var(--text-lg); }
  .usecase-mockup-wrap { width: 120px; }
  .usecase-banner p { font-size: var(--text-lg); }
  .cta-buttons { flex-direction: row; max-width: none; justify-content: center; }
  .cta-info { flex-direction: row; justify-content: center; gap: var(--space-4); }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-bottom { flex-direction: row; justify-content: center; gap: var(--space-3); }
  .step-list-row { grid-template-columns: repeat(3, 1fr); }
  .support-cards { grid-template-columns: repeat(3, 1fr); }
  .support-card-img { width: 200px; }

  .enhance-cards { grid-template-columns: repeat(3, 1fr); }
  .enhance-bottom { flex-direction: row; align-items: flex-start; }
  .enhance-person { width: 200px; }
  .mid-cta-inner { flex-direction: row; justify-content: center; gap: var(--space-8); }
  .mid-cta-btns { flex-direction: row; justify-content: center; }
  .lp-cta-btns { flex-direction: row; justify-content: center; }
  .lp-cta-title { font-size: var(--text-2xl); }
  .trial-cards { grid-template-columns: repeat(3, 1fr); }
  .trial-section-title { font-size: 38px; }
  .trial-card-icon { width: 160px; height: 160px; }
  .section-deco { width: 340px; }
  .section-deco2 { width: 260px; }
  .section-deco--tr { transform: scaleX(-1); }
  .section-deco--bl { transform: scaleY(-1); }
  .section-deco--br { transform: scale(-1); }
}

@media (min-width: 1024px) {
  .hero {
    position: relative;
    min-height: 580px;
    background-color: #EEF8F2;
    background-image: url('images/hero-medical-care-education-sns_pc.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right 70%;
  }
  .hero-visual { position: static; width: auto; margin: 0; }
  .hero-media { display: none; }
  .hero-text-top { position: static; background: none; padding: 0; text-align: left; }
  .hero-overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      to right,
      #EEF8F2 0%,
      #EEF8F2 34%,
      rgba(238,248,242,0.88) 50%,
      rgba(238,248,242,0.15) 68%,
      transparent 82%
    );
  }
  .hero-inner {
    position: relative;
    z-index: 2;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    min-height: 580px;
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
  .hero-text-top,
  .hero-text-bottom { max-width: 560px; }
  .hero-text-bottom { margin-top: 0; }
  .hero-title { font-size: var(--text-hero); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .section-title { font-size: 36px; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .back-to-top, .modal-overlay { transition: none; }
}
