/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --pink: #e91e8c;
  --orange: #f5a623;
  --grad: linear-gradient(90deg, #e91e8c 0%, #f5a623 100%);
  --dark: #0d0d0d;
  --dark2: #1a1a2e;
  --white: #ffffff;
  --gray-bg: #f5f5f7;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ===== UTILITY ===== */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  border: none;
  min-width: 140px;
}
.btn--primary:hover { opacity: 0.85; transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: var(--pink);
  border: 2px solid var(--pink);
  min-width: 140px;
}
.btn--outline:hover { background: var(--pink); color: #fff; }
.btn--hero-primary {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 18px 0;
  font-size: 17px;
  width: 200px;
}
.btn--hero-primary:hover { opacity: 0.85; transform: translateY(-2px); }
.btn--hero-outline {
  background: transparent;
  color: var(--pink);
  border: 2px solid var(--pink);
  padding: 18px 0;
  font-size: 17px;
  width: 200px;
}
.btn--hero-outline:hover { background: var(--pink); color: #fff; }
.btn--full { width: 100%; }
.btn--line {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 20px 52px;
  font-size: 18px;
}
.btn--line:hover { opacity: 0.85; transform: translateY(-2px); }
.btn--mail {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 20px 52px;
  font-size: 18px;
}
.btn--mail:hover { background: rgba(255,255,255,0.1); }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.header__logo { flex-shrink: 0; }
.header__logo-img { height: 48px; width: auto; }
.header__nav {
  display: flex;
  gap: 24px;
  flex: 1;
}
.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: color 0.2s;
}
.header__nav a:hover { color: var(--pink); }
.header__cta { display: flex; gap: 12px; flex-shrink: 0; }
.header__cta .btn { padding: 10px 20px; font-size: 14px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #fff5f8 0%, #fff8f0 100%);
  overflow: hidden;
  padding: 80px 0 100px;
  min-height: 680px;
}
.hero__bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
}
.hero__bg-circle--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #f5a623, transparent);
  top: -100px; right: -80px;
}
.hero__bg-circle--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #e91e8c, transparent);
  bottom: -60px; left: 40%;
}
.hero__bg-circle--3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #e91e8c, transparent);
  top: 20px; left: -60px;
}
.hero__bg-line {
  position: absolute;
  width: 3px;
  height: 160px;
  background: var(--grad);
  opacity: 0.25;
  border-radius: 4px;
  transform: rotate(-30deg);
}
.hero__bg-line--1 { top: 60px; left: 48%; }
.hero__bg-line--2 { top: 120px; left: 52%; width: 2px; height: 100px; opacity: 0.15; }
/* SVG deco */
.hero__deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.hero__deco--wave {
  bottom: 60px;
  left: 0;
  width: 55%;
  height: 80px;
  opacity: 0.7;
}
.hero__deco--dots {
  bottom: 30px;
  left: 20px;
  width: 130px;
  height: 130px;
  opacity: 0.8;
}
.hero__deco--lines {
  top: 40px;
  left: 36%;
  width: 80px;
  height: 160px;
  opacity: 0.6;
}
.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero__badge {
  display: inline-block;
  background: linear-gradient(90deg, rgba(233,30,140,0.12), rgba(245,166,35,0.12));
  border: 1px solid rgba(233,30,140,0.3);
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #1a1a1a;
}
.hero__title--accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 17px;
  color: #444;
  margin-bottom: 28px;
  line-height: 1.8;
}
.hero__sub strong {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}
.hero__checks {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 32px;
  margin-bottom: 36px;
  justify-content: start;
}
.hero__checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
}
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
  -webkit-text-fill-color: #fff;
}
.hero__btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: visible;
}
.hero__illust {
  position: absolute;
  right: -20px;
  top: -60px;
  width: 280px;
  z-index: 2;
}
.hero__map-wrap {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}
.hero__map { width: 100%; }
.hero__tv-illust {
  width: 140%;
  max-width: 860px;
  margin-top: -40px;
  margin-right: -100px;
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.10));
}

/* ===== TICKER ===== */
.ticker {
  background: var(--grad);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  gap: 24px;
  animation: ticker-scroll 30s linear infinite;
}
.ticker__track span {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.ticker__diamond { color: rgba(255,255,255,0.6) !important; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECTION BASE ===== */
.section { padding: 100px 0; }
.section__inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section__label {
  display: inline-block;
  border: 1.5px solid var(--pink);
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section__label--dark {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
}
.section__title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #1a1a1a;
  text-align: left;
}
.section__title--white { color: #fff; }
.section__sub { font-size: 16px; color: #666; margin-bottom: 48px; }

/* ===== DARK SECTION ===== */
.dark-section {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 100%);
}

/* ===== WORRIES ===== */
.worries { background: #f4f4f6; padding-bottom: 48px; }

.worries__layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
  margin-bottom: 40px;
}
.worries__illust img {
  width: 100%;
  max-width: 400px;
  display: block;
}
.worries__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-content: stretch;
}
.worry-card2 {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 3px solid transparent;
  border-image: var(--grad) 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s;
  justify-content: center;
}
.worry-card2:hover { transform: translateY(-3px); }
.worry-card2__icon { font-size: 24px; flex-shrink: 0; margin-top: 0; line-height: 1; }
.worry-card2__body h3 { font-size: 14px; font-weight: 700; color: #1a1a1a; line-height: 1.4; margin-bottom: 4px; white-space: nowrap; }
.worry-card2__body p { font-size: 12px; color: #666; line-height: 1.6; }
/* icon-banner (共通パーツ) */
.icon-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: transparent;
  padding: 12px 0 0;
  margin-top: 40px;
}
.icon-banner__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff6b9d, #ff8c42);
}
.icon-banner__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.icon-banner__text {
  font-size: 19px;
  color: #1a1a1a;
  line-height: 1.7;
  font-weight: 700;
}

/* ===== BRIDGE BANNER ===== */
.bridge-banner {
  background: linear-gradient(135deg, #e91e8c 0%, #f5a623 100%);
  padding: 32px 0;
}
.bridge-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.bridge-banner__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.bridge-banner__text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
}
.bridge-banner__text strong {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== STRENGTH ===== */
.strength__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}
.strength__grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.strength__illust {
  display: flex;
  justify-content: center;
  align-items: center;
}
.strength__illust img {
  max-width: 520px;
  width: 100%;
  height: auto;
}
.strength-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: background 0.2s;
  box-shadow: none;
}
.strength-card:hover { background: rgba(255,255,255,0.11); }
.strength-card__body { flex: 1; }
.strength-card__num {
  font-size: 40px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 56px;
  flex-shrink: 0;
  line-height: 1;
}
.strength-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.strength-card p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.7; margin: 0; }

/* ===== WHY MEO ===== */
.why-meo__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}
.why-meo__point { margin-bottom: 0; }
.why-meo__point:last-child { margin-bottom: 0; }
.why-meo__point h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 4px solid;
  border-image: var(--grad) 1;
}
.why-meo__point p { font-size: 13px; color: #555; line-height: 1.75; }
.why-meo__illust img { max-width: 420px; margin: 0 auto; }

/* ===== SERVICE ===== */
.service__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff4d8d, #ff8c42);
  border-radius: 10px 0 0 10px;
}
.service-card:hover { background: rgba(255,255,255,0.08); }
/* details要素のデフォルトmarginをリセット */
details.service-card { list-style: none; }
details.service-card > summary { list-style: none; }
details.service-card > summary::-webkit-details-marker { display: none; }
.service-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
}
.service-card__icon { font-size: 20px; flex-shrink: 0; }
.service-card__header h3 { font-size: 14px; font-weight: 700; color: #fff; margin: 0; flex: 1; }
/* 矢印アイコン */
.service-card__header::after {
  content: '▼';
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
details.service-card[open] .service-card__header::after {
  transform: rotate(180deg);
}
/* PC版: detailsが開いている状態でbodyを表示 */
.service-card__body {
  padding: 0 16px 14px;
}
.service-card p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.7; margin: 0; }
.service__illust { display: flex; align-items: center; justify-content: center; }
.service__illust img { max-width: 100%; width: 460px; }

/* ===== FLOW ===== */
.flow__steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 48px;
}
.flow-step {
  flex: 1;
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.flow-step__num {
  font-size: 32px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.flow-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: #1a1a1a; }
.flow-step p { font-size: 14px; color: #666; line-height: 1.7; }
.flow-step__arrow {
  font-size: 28px;
  color: var(--pink);
  padding: 0 12px;
  margin-top: 40px;
  flex-shrink: 0;
}

/* ===== PRICE ===== */
.price { background: var(--gray-bg); padding-bottom: 96px; }
.price__cards {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  margin-bottom: 24px;
}
.price-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 48px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  max-width: 520px;
  width: 100%;
  position: relative;
}
.price-card--main {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.price-card--main::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: var(--grad);
  z-index: -1;
}
.price-card__badge {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  white-space: nowrap;
  width: auto;
  max-width: fit-content;
}
.price-card__name { font-size: 22px; font-weight: 900; margin-bottom: 20px; color: #1a1a1a; }
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
}
.price-card__yen {
  font-size: 20px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.price-card__num {
  font-size: 56px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.price-card__unit { font-size: 16px; color: #666; }
.price-card__list { margin-bottom: 32px; }
.price-card__list li {
  font-size: 15px;
  color: #333;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 500;
}
.price-card__list li:last-child { border-bottom: none; }
.price__note { text-align: center; font-size: 13px; color: #888; }

/* ===== FAQ ===== */
.faq__list { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.faq-item summary {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item__a {
  padding: 20px 24px;
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  background: #fff;
}

/* ===== CONTACT ===== */
.contact__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}
.contact__btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 24px 24px;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer__logo { height: 56px; width: auto; }
.footer__copy { font-size: 13px; color: #aaa; }

/* ===== RESPONSIVE ===== */


/* ========================================
   タブレット: max-width 1024px
   要素は消さず、グリッドを1カラムに変えてサイズ調整のみ
   ======================================== */
@media (max-width: 1024px) {

  /* ヘッダー: ナビは非表示、CTAのアウトラインボタンは非表示 */
  .header__nav { display: none; }
  .header__cta .btn--outline { display: none; }

  /* ヒーロー */
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { justify-content: center; margin-top: 32px; }
  .hero__tv-illust { width: 80%; max-width: 480px; margin: 0 auto; margin-right: auto; }

  /* よくある悩み: イラストを表示したまま1カラムに */
  .worries__layout { grid-template-columns: 1fr; }
  .worries__illust { display: flex; justify-content: center; }
  .worries__illust img { max-width: 320px; }
  .worries__cards { grid-template-columns: repeat(2, 1fr); }

  /* 弊社の強み */
  .strength__layout { grid-template-columns: 1fr; gap: 40px; }
  .strength__illust { justify-content: center; margin-top: 8px; }
  .strength__illust img { max-width: 400px; }

  /* なぜ今MEO */
  .why-meo__content { grid-template-columns: 1fr; }
  .why-meo__illust { display: flex; justify-content: center; margin-top: 32px; }
  .why-meo__illust img { max-width: 320px; }

  /* 比較表 */
  .compare-table-wrap { overflow-x: auto; }
  .compare-table { min-width: 560px; }

  /* サービス内容 */
  .service-compare { flex-direction: column; gap: 16px; }
  .service-compare__vs { text-align: center; }
  .service__layout { grid-template-columns: 1fr; gap: 32px; }
  .service__grid { grid-template-columns: repeat(2, 1fr); }
  .service__illust { justify-content: center; margin-top: 8px; }
  .service__illust img { max-width: 340px; }

  /* 料金プラン */
  .price__layout { grid-template-columns: 1fr; gap: 40px; }
  .price__illust { align-items: center; }
  .price__illust img { max-width: 320px; }
  .price__title { text-align: center; }

  /* ご契約の流れ */
  .flow__steps { flex-direction: column; gap: 0; }
  .flow-step__arrow { transform: rotate(90deg); margin: 8px auto; }
}


/* ========================================
   スマホ: max-width 768px
   要素は絶対に消さない。全部表示してサイズ調整のみ
   ======================================== */
@media (max-width: 768px) {

  /* body横スクロール禁止 */
  body { overflow-x: hidden; }

  /* ヘッダー */
  .header__inner { height: 60px; padding: 0 16px; gap: 0; justify-content: space-between; }
  .header__logo-img { height: 36px; }
  .header__nav { display: none; }
  .header__cta { gap: 8px; }
  .header__cta .btn--outline { display: none; }
  .header__cta .btn--primary { padding: 9px 16px; font-size: 13px; min-width: unset; }

  /* ヒーロー */
  .hero { padding: 48px 0 60px; min-height: unset; overflow: hidden; }
  .hero__inner { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
  .hero__visual { justify-content: center; margin-top: 24px; overflow: hidden; }
  .hero__tv-illust { width: 100%; max-width: 340px; margin: 0 auto; margin-right: auto; }
  .hero__title { font-size: 32px; }
  .hero__sub { font-size: 15px; }
  .hero__checks { grid-template-columns: 1fr; gap: 8px; }
  .hero__btns { flex-direction: column; gap: 12px; }
  .btn--hero-primary, .btn--hero-outline { width: 100%; }

  /* セクション共通 */
  .section { padding: 56px 0; }
  .section__inner { padding: 0 16px; }
  .section__title { font-size: 24px; }

  /* bridge-banner */
  .bridge-banner { padding: 24px 0; }
  .bridge-banner__inner { flex-direction: column; gap: 12px; text-align: center; padding: 0 16px; }
  .bridge-banner__icon { width: 52px; height: 52px; font-size: 22px; }
  .bridge-banner__text { font-size: 18px; }

  /* よくある悩み: イラスト表示したまま1カラムに */
  .worries__layout { grid-template-columns: 1fr; gap: 24px; }
  .worries__illust { display: flex; justify-content: center; }
  .worries__illust img { max-width: 240px; width: 60%; }
  .worries__cards { grid-template-columns: 1fr; gap: 16px; }
  .worry-card2 { padding: 20px 18px; }
  .worry-card2__body h3 { white-space: normal; font-size: 14px; }

  /* icon-banner */
  .icon-banner { gap: 14px; margin-top: 32px; }
  .icon-banner__avatar { width: 64px; height: 64px; }
  .icon-banner__text { font-size: 15px; }

  /* 弊社の強み */
  .strength__layout { grid-template-columns: 1fr; gap: 32px; }
  .strength__grid { flex-direction: column; gap: 12px; }
  .strength__illust { justify-content: center; margin-top: 8px; }
  .strength__illust img { max-width: 280px; }
  .strength-card { padding: 16px 18px; gap: 14px; }
  .strength-card__num { font-size: 32px; min-width: 44px; }
  .strength-card h3 { font-size: 14px; }
  .strength-card p { font-size: 12px; }

  /* なぜ今MEO */
  .why-meo__content { grid-template-columns: 1fr; }
  .why-meo__illust { display: flex; justify-content: center; margin-top: 32px; }
  .why-meo__illust img { max-width: 260px; }
  .why-meo__point-body h3 { font-size: 15px; }
  .why-meo__point-body p { font-size: 12px; }

  /* 比較表: 横スクロール可能にして要素は全部表示 */
  .compare-table-wrap { margin-top: 40px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table { min-width: 480px; }
  .compare-table__cell { padding: 10px 8px; font-size: 12px; }
  .compare-note { font-size: 9px; }

  /* サービス内容: 他社比較も全部表示 */
  .service-compare { flex-direction: column; gap: 12px; }
  .service-compare__vs { text-align: center; font-size: 22px; }
  .service-compare__col { padding: 20px 16px; }
  .service-compare__col li { font-size: 14px; }
  /* サービスカード8枚: 2カラム・クリック展開 */
  .service__layout { display: flex !important; flex-direction: column !important; width: 100% !important; max-width: 100% !important; gap: 0 !important; }
  .service__grid { display: grid !important; grid-template-columns: 1fr 1fr !important; width: 100% !important; max-width: 100% !important; gap: 8px !important; }
  .service-card { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; overflow: hidden !important; }
  /* スマホではデフォルトで閉じた状態（open属性を展開時のみ適用） */
  details.service-card:not([open]) .service-card__body { display: none !important; }
  details.service-card[open] .service-card__body { display: block !important; padding: 0 10px 12px !important; }
  .service__illust { display: flex !important; justify-content: center !important; margin-top: 24px !important; width: 100% !important; }
  .service__illust img { max-width: 200px !important; width: 65% !important; }
  .service-card__header { padding: 10px 10px !important; }
  .service-card__header h3 { font-size: 12px !important; writing-mode: horizontal-tb !important; word-break: keep-all !important; line-height: 1.4 !important; }
  .service-card__icon { font-size: 16px !important; }
  .service-card p { writing-mode: horizontal-tb !important; word-break: normal !important; font-size: 12px !important; }
  /* 矢印は::afterデ表示するのでservice-card__arrowは不要 */

  /* 料金プラン: タイトル→イラスト→カードの順で完全縦積み */
  .price__layout { display: flex !important; flex-direction: column !important; gap: 24px !important; grid-template-columns: unset !important; }
  .price__illust { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; width: 100% !important; }
  .price__title { font-size: 20px !important; text-align: center !important; width: 100% !important; writing-mode: horizontal-tb !important; margin-bottom: 0 !important; }
  .price__illust img { max-width: 200px !important; width: 60% !important; margin-top: 16px !important; }
  .price__card-wrap { width: 100% !important; }
  .price-card { padding: 28px 20px; }
  .price-card__num { font-size: 44px; }
  .price-card__price { flex-wrap: wrap; }
  .price-card__meta-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .price-card__meta-value { font-size: 13px; }

  /* ご契約の流れ */
  .flow__steps { flex-direction: column; gap: 0; }
  .flow-step__arrow { transform: rotate(90deg); margin: 8px auto; }
  .flow-step { padding: 22px 18px; }
  .flow-step h3 { font-size: 15px; }
  .flow-step p { font-size: 13px; }

  /* FAQ */
  .faq__list { gap: 8px; }
  .faq-item summary { padding: 14px 18px; font-size: 14px; }
  .faq-item__a { padding: 16px 18px; font-size: 14px; }

  /* フォーム */
  .contact-form__grid { grid-template-columns: 1fr; }
  .btn--lg { font-size: 16px; padding: 16px; }
  .contact__sub { font-size: 14px; }

  /* フッター */
  .footer { padding: 20px 16px; }
  .footer__logo { height: 44px; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .footer__links a { font-size: 12px; }
  .footer__copy { font-size: 12px; text-align: center; }
}


/* ========================================
   小さいスマホ: max-width 480px
   ======================================== */
@media (max-width: 480px) {

  /* ヒーロー */
  .hero { padding: 40px 0 48px; }
  .hero__title { font-size: 28px; }
  .hero__tv-illust { max-width: 300px; }

  /* セクション共通 */
  .section { padding: 48px 0; }
  .section__title { font-size: 22px; }

  /* bridge-banner */
  .bridge-banner__text { font-size: 16px; }

  /* よくある悩み */
  .worry-card2 { padding: 16px 14px; }
  .worry-card2__body h3 { font-size: 13px; }

  /* 弊社の強み */
  .strength-card { padding: 14px 14px; gap: 12px; }
  .strength-card__num { font-size: 28px; min-width: 38px; }

  /* 比較表 */
  .compare-table { min-width: 420px; }
  .compare-table__cell { padding: 8px 6px; font-size: 11px; }
  .compare-note { font-size: 8.5px; }

  /* サービス内容 */
  .service-compare__col li { font-size: 13px; }

  /* 料金プラン */
  .price-card { padding: 24px 16px; }
  .price-card__num { font-size: 40px; }
  .price-card__name { font-size: 18px; }

  /* FAQ */
  .faq-item summary { font-size: 13px; padding: 12px 14px; }
  .faq-item__a { font-size: 13px; padding: 14px 14px; }

  /* フォーム */
  .contact-form__input,
  .contact-form__textarea { font-size: 14px; padding: 12px 14px; }
  .btn--lg { font-size: 15px; }
}



/* ===== WHY MEO - POINT NUM ===== */
.why-meo__text {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.why-meo__point {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 28px;
}
.why-meo__point:last-child { padding-bottom: 0; }
/* タイムライン縦線 */
.why-meo__point::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(233,30,140,0.25), rgba(245,166,35,0.1));
}
.why-meo__point:last-child::before { display: none; }
.why-meo__point-num {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: var(--grad);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
  box-shadow: 0 2px 10px rgba(233,30,140,0.3);
  position: relative;
  z-index: 1;
}
.why-meo__point-body {
  flex: 1;
  padding-top: 8px;
}
.why-meo__point-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.4;
}
.why-meo__point-body p { font-size: 11.5px; color: #555; line-height: 1.65; margin: 0; }

/* ===== COMPARE TABLE ===== */
.compare-table-wrap {
  margin-top: 96px;
}
.compare-table-wrap__title {
  font-size: 22px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 24px;
  text-align: center;
}
.compare-table {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-table__header,
.compare-table__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.4fr;
}
.compare-table__header {
  background: #1a1a1a;
}
.compare-table__row {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  min-height: 72px;
}
.compare-table__row:last-child { border-bottom: none; }
.compare-table__cell {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  line-height: 1.3;
}
.compare-table__cell--label {
  font-weight: 700;
  color: #555;
  flex-direction: row;
  justify-content: flex-start;
  background: #f8f8f8;
}
.compare-table__header .compare-table__cell--label {
  background: #1a1a1a;
  color: rgba(255,255,255,0.5);
}
.compare-table__cell--meo {
  background: linear-gradient(135deg, rgba(233,30,140,0.06), rgba(245,166,35,0.06));
  font-weight: 700;
}
.compare-table__header .compare-table__cell--meo {
  background: var(--grad);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}
.compare-table__header .compare-table__cell--portal {
  background: #2a2a2a;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
}
.compare-table__cell--vs {
  background: #1a1a1a;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  justify-content: center;
  padding: 8px 4px;
}
.compare-table__row .compare-table__cell--vs {
  background: #f0f0f0;
  color: #bbb;
  font-size: 11px;
}
.compare-note {
  display: block;
  font-size: 10px;
  color: #999;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2px;
}
.compare-table__cell--meo .compare-note {
  color: rgba(233,30,140,0.6);
}
.compare-good {
  color: var(--pink);
  font-weight: 700;
}
.compare-bad {
  color: #999;
}

/* ===== SERVICE COMPARE ===== */
.service-compare {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 48px;
}
.service-compare__col {
  flex: 1;
  border-radius: var(--radius);
  padding: 28px 24px;
}
.service-compare__col--other {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}
.service-compare__col--us {
  background: linear-gradient(135deg, rgba(233,30,140,0.15), rgba(245,166,35,0.15));
  border: 1px solid rgba(233,30,140,0.3);
}
.service-compare__label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.service-compare__col--us .service-compare__label {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.service-compare__col ul { display: flex; flex-direction: column; gap: 12px; }
.service-compare__col li {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-compare__col--us li { color: #fff; font-weight: 700; }
.service-compare__vs {
  font-size: 28px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}
.x-mark { font-size: 16px; }
.check-mark { font-size: 16px; }

/* ===== SERVICE LAYOUT ===== */
.service__layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

/* ===== PRICE LAYOUT ===== */
.price__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: stretch;
  margin-top: 32px;
}
.price__illust {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.price__title {
  margin-top: 0;
  margin-bottom: 24px;
}
.price__illust img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin-top: 16px;
}
.price__card-wrap {
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.price__card-wrap .price-card {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.price__card-wrap .price-card .btn {
  margin-top: auto;
}
.price-card__init {
  font-size: 15px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.8;
}
.price-card__init small { font-size: 13px; color: #888; }
.price-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid rgba(233,30,140,0.15);
  border-radius: 12px;
  overflow: hidden;
}
.price-card__meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(233,30,140,0.03);
  border-bottom: 1px solid rgba(233,30,140,0.1);
}
.price-card__meta-item:last-child {
  border-bottom: none;
}
.price-card__meta-label {
  font-size: 13px;
  color: #888;
  font-weight: 500;
}
.price-card__meta-value {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 700;
}
.price-card__campaign {
  background: linear-gradient(135deg, rgba(233,30,140,0.06), rgba(245,166,35,0.06));
  border: 1px solid rgba(233,30,140,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.price-card__campaign-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 8px;
}
.price-card__campaign p {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}
.price-card__note {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 16px;
}

/* ===== FLOW ICON ===== */
.flow-step__icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.flow-step { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.flow-step h3 { color: #fff; }
.flow-step p { color: rgba(255,255,255,0.7); }
.flow-step__arrow { color: rgba(255,255,255,0.4); }

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 100%;
  margin: 40px 0 0;
}
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.contact-form__row--full {
  margin-top: 0;
}
.contact-form__row {
  margin-bottom: 20px;
}
.contact-form__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}
.required {
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}
.optional {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: rgba(255,255,255,0.3);
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--pink);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 3px rgba(233,30,140,0.18);
}
.contact-form__textarea {
  min-height: 120px;
  resize: vertical;
}
.btn--lg {
  padding: 20px;
  font-size: 18px;
  margin-top: 8px;
}

/* ===== FOOTER LINKS ===== */
.footer__links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer__links a {
  font-size: 13px;
  color: #aaa;
  transition: color 0.2s;
}
.footer__links a:hover { color: #555; }
.footer__links span { color: #ddd; }

/* ===== ICON BANNER LIGHT ===== */
.icon-banner--light {
  margin-bottom: 32px;
}
.icon-banner__text--dark {
  color: rgba(255,255,255,0.9);
}


/* ========================================
   SP OVERRIDES (added 2026-06-22)
   PC (1025px+) は絶対に変更しない
   ======================================== */

/* ---- ヘッダー：申込みボタンをスマホ・タブレットに表示 ---- */
@media (max-width: 1024px) {
  .header__cta { gap: 8px; }
  .header__cta .btn--outline { display: inline-flex !important; padding: 8px 12px !important; font-size: 12px !important; min-width: unset !important; }
  .header__cta .btn--primary { padding: 8px 12px !important; font-size: 12px !important; min-width: unset !important; }
}

@media (max-width: 768px) {

  /* ---- ヒーロー：背景をテキストの後ろに ---- */
  .hero__bg-circle,
  .hero__bg-line { z-index: 0 !important; }
  .hero__inner { position: relative !important; z-index: 1 !important; }

  /* ---- ヒーロー：キャッチコピー大きく ---- */
  .hero__title { font-size: 36px !important; }

  /* ---- ヒーロー：チェック2列 ---- */
  .hero__checks { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }

  /* ---- ヒーロー：イラスト（PHP側で追加するSP専用img） ---- */
  .hero__tv-illust--sp {
    display: block !important;
    width: 75%;
    max-width: 260px;
    margin: 20px auto 8px !important;
  }

  /* ---- ヒーロー：ボタン横並び50% ---- */
  .hero__btns { flex-direction: row !important; gap: 10px !important; }
  .btn--hero-primary,
  .btn--hero-outline {
    width: calc(50% - 5px) !important;
    font-size: 13px !important;
    padding: 14px 6px !important;
    text-align: center !important;
  }

  /* ---- ヒーロー：元のビジュアル列は非表示（SP用に入れ替え）---- */
  .hero__visual { display: none !important; }

  /* ---- 弊社の強み：リード文を小さく ---- */
  .strength .section__sub--white {
    font-size: 13px !important;
    line-height: 1.65 !important;
  }

  /* ---- 弊社の強み：イラストをカードの上に ---- */
  .strength__layout { display: flex !important; flex-direction: column !important; }
  .strength__illust { order: 1 !important; margin-bottom: 16px !important; }
  .strength__grid { order: 2 !important; }

  /* ---- なぜ今MEO：見出し小さく ---- */
  .why-meo__point-body h3 { font-size: 13px !important; }

  /* ---- 比較表：横スクロールUI ---- */
  .compare-table-wrap {
    position: relative !important;
    cursor: grab !important;
  }
  .compare-table-wrap::before {
    content: '← 横にスクロールできます →';
    display: block;
    text-align: center;
    font-size: 11px;
    color: #e91e8c;
    margin-bottom: 8px;
    opacity: 0.8;
  }
  .compare-table { min-width: 560px !important; }

  /* ---- VSカード：両カードの幅を揃える ---- */
  .service-compare { align-items: stretch !important; }
  .service-compare__col {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ---- 料金プラン：ラベル・タイトル左寄せ ---- */
  .price .section__label { text-align: left !important; }
  .price__title {
    text-align: left !important;
    font-size: 22px !important;
  }

  /* ---- 料金プラン：イラスト大きく ---- */
  .price__illust img { max-width: 260px !important; width: 80% !important; margin-top: 20px !important; }

  /* ---- 料金プラン：カード内メタ情報左寄せ ---- */
  .price-card__meta { align-items: flex-start !important; }
  .price-card__meta-item { text-align: left !important; align-items: flex-start !important; }
  .price-card__meta-label,
  .price-card__meta-value { text-align: left !important; }

  /* ---- ご契約の流れ：コンパクトなレイアウト ---- */
  .flow-step {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding: 14px 16px !important;
    gap: 0 !important;
  }
  .flow-step__num {
    width: 100% !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    color: rgba(233,30,140,0.6) !important;
    margin-bottom: 4px !important;
  }
  .flow-step__icon {
    font-size: 22px !important;
    margin-right: 8px !important;
    line-height: 1 !important;
  }
  .flow-step h3 {
    flex: 1 !important;
    font-size: 14px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
  }
  .flow-step p {
    width: 100% !important;
    font-size: 12px !important;
    margin: 6px 0 0 0 !important;
    padding-left: 30px !important;
    line-height: 1.6 !important;
  }

  /* ---- フォーム：1カラム ---- */
  .contact-form__grid { grid-template-columns: 1fr !important; }
}


/* ========================================
   SP OVERRIDES v2 (2026-06-22)
   ======================================== */

@media (max-width: 768px) {

  /* ---- なぜ今MEO：イラスト上下余白を詰める ---- */
  .why-meo__illust { margin-top: 16px !important; margin-bottom: 8px !important; }
  .compare-table-wrap { margin-top: 20px !important; }

  /* ---- 比較表：テキスト1行固定（補足テキスト .compare-note は2行OK）---- */
  .compare-table {
    width: max-content !important;
    min-width: unset !important;
  }
  .compare-table__header,
  .compare-table__row {
    grid-template-columns: auto auto auto !important;
  }
  .compare-table__cell--label,
  .compare-table__header .compare-table__cell--meo,
  .compare-table__header .compare-table__cell--portal,
  .compare-good,
  .compare-bad { white-space: nowrap !important; }
  .compare-note { white-space: normal !important; max-width: 130px; }
  .compare-table__cell { padding: 10px 14px !important; }

  /* ---- VSカード：横スクロール化 ---- */
  .service-compare {
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 0 !important;
    align-items: stretch !important;
    padding-bottom: 4px !important;
  }
  .service-compare__col {
    flex-shrink: 0 !important;
    width: 78% !important;
    max-width: 78% !important;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
  }
  .service-compare__vs {
    flex-shrink: 0 !important;
    min-width: 42px !important;
    width: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 18px !important;
  }

  /* ---- 料金カードメタ：背景色を復元（align-itemsのバグ修正）---- */
  .price-card__meta { align-items: stretch !important; }
  .price-card__meta-item {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* ========================================
   SP OVERRIDES v3 - 比較表・VSカード完全修正
   (v1/v2の誤りをすべて上書き)
   ======================================== */

@media (max-width: 768px) {

  /* ---- 比較表：グリッド比率を維持してmin-widthでスクロール ---- */
  .compare-table {
    width: 100% !important;
    min-width: 620px !important;
  }
  /* v2で壊したautoグリッドを正しい比率に戻す */
  .compare-table__header,
  .compare-table__row {
    grid-template-columns: 1fr 1.4fr 1.4fr !important;
  }
  /* 全セル統一パディング・フォント */
  .compare-table__cell { padding: 10px 14px !important; font-size: 12px !important; }
  /* ラベル列・メインテキストは1行固定 */
  .compare-table__cell--label { white-space: nowrap !important; }
  .compare-table__header .compare-table__cell--meo,
  .compare-table__header .compare-table__cell--portal { white-space: nowrap !important; font-size: 13px !important; }
  .compare-good,
  .compare-bad { white-space: nowrap !important; }
  /* 補足テキスト（compare-note）は折り返しOK */
  .compare-note { white-space: normal !important; max-width: none !important; font-size: 9px !important; }

  /* ---- VSカード：テキスト1行でコンテンツ幅に自動拡張→横スクロール ---- */
  .service-compare {
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 12px !important;
    align-items: flex-start !important;
    padding-bottom: 8px !important;
    /* snap不要：ユーザーが自由にスクロール */
    scroll-snap-type: none !important;
  }
  /* 各カードをコンテンツ幅に合わせる（折り返し禁止で幅が確定） */
  .service-compare__col {
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: unset !important;
  }
  /* リスト項目を1行固定 */
  .service-compare__col li {
    white-space: nowrap !important;
  }
  .service-compare__label {
    white-space: nowrap !important;
  }
  /* VSは縦中央 */
  .service-compare__vs {
    flex-shrink: 0 !important;
    width: auto !important;
    min-width: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
    font-size: 20px !important;
    align-self: center !important;
  }
}


/* ========================================
   SP OVERRIDES v4 - ヒーロー再設計
   ======================================== */

@media (max-width: 768px) {

  /* ---- 線の背景装飾を非表示 ---- */
  .hero__bg-line { display: none !important; }

  /* ---- バッジを小さく ---- */
  .hero__badge { font-size: 11px !important; padding: 5px 12px !important; margin-bottom: 12px !important; }

  /* ---- キャッチコピーをインパクトある大きさに ---- */
  .hero__title { font-size: 42px !important; line-height: 1.15 !important; margin-bottom: 12px !important; }

  /* ---- サブテキストを小さく ---- */
  .hero__sub { font-size: 13px !important; line-height: 1.6 !important; margin-bottom: 0 !important; }

  /* ---- SP専用イラスト：右寄せ・大きく ---- */
  .hero__tv-illust--sp {
    display: block !important;
    width: 88% !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: -12px !important;
    margin-top: 8px !important;
    margin-bottom: 12px !important;
  }

  /* ---- チェックリスト（イラストの下）---- */
  .hero__checks {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 36px !important; }
  .hero__tv-illust--sp { width: 85% !important; max-width: 280px !important; }
}


/* ========================================
   SP OVERRIDES v5 - セクションタイトル統一
   全セクションのh2を20pxに統一（3行防止）
   ======================================== */

@media (max-width: 768px) {
  .section__title { font-size: 22px !important; }
}

@media (max-width: 480px) {
  .section__title { font-size: 20px !important; }
}


/* ========================================
   SP OVERRIDES v6 - 料金プランラベル間隔修正
   ======================================== */

@media (max-width: 768px) {
  /* section__labelの下余白を他セクションと同じに詰める */
  .price .section__label { margin-bottom: 8px !important; }
  .price__layout { margin-top: 0 !important; }
  .price__title { margin-top: 0 !important; }
}


/* ========================================
   TABLET OVERRIDES (769px〜1024px)
   SP illustをタブレット範囲にも適用
   ======================================== */

@media (max-width: 1024px) {
  /* SP用イラストをタブレットでも表示、hero__visualは非表示 */
  .hero__tv-illust--sp {
    display: block !important;
    width: 70% !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    margin-top: 12px !important;
    margin-bottom: 16px !important;
  }
  .hero__visual { display: none !important; }

  /* タイトルサイズをタブレット用に調整 */
  .hero__title { font-size: 40px; }
  .hero__checks { grid-template-columns: repeat(2, 1fr) !important; }
  .hero__btns { flex-direction: row !important; gap: 12px !important; }
  .btn--hero-primary,
  .btn--hero-outline { width: calc(50% - 6px) !important; }
}


/* ========================================
   TABLET ONLY (769px〜1024px) — v8
   PC・スマホには一切影響しない
   ======================================== */
@media (min-width: 769px) and (max-width: 1024px) {

  /* ── Hero: PC風2カラム ── */
  .hero__tv-illust--sp { display: none !important; }
  .hero__inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: center !important;
    min-height: 460px !important;
    gap: 0 !important;
  }
  .hero__content { grid-column: 1 !important; }
  .hero__visual {
    display: flex !important;
    grid-column: 2 !important;
    justify-content: center !important;
    align-items: flex-end !important;
    height: 100% !important;
  }
  .hero__tv-illust {
    width: 100% !important;
    max-width: 380px !important;
  }
  .hero__title { font-size: 36px !important; }
  .hero__badge { font-size: 13px !important; }
  .hero__checks { grid-template-columns: repeat(2, 1fr) !important; }
  .hero__btns { flex-direction: row !important; gap: 10px !important; }
  .btn--hero-primary,
  .btn--hero-outline { width: calc(50% - 5px) !important; }

  /* ── よくある悩み: カード1列左・イラスト右下重なり ── */
  .worries__layout {
    position: relative !important;
    display: block !important;
    min-height: 400px !important;
  }
  .worries__cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 58% !important;
  }
  .worries__illust {
    position: absolute !important;
    right: 0 !important;
    top: 32% !important;
    width: 46% !important;
    z-index: 0 !important;
  }
  .worries__illust img { width: 100% !important; }
  .worry-card2 { position: relative !important; z-index: 1 !important; }

  /* ── なぜ今MEO: テキスト左・イラスト右上・比較表余白詰め ── */
  .why-meo__content {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    align-items: flex-start !important;
  }
  .why-meo__text { flex: 1 !important; }
  .why-meo__illust {
    flex-shrink: 0 !important;
    width: 36% !important;
    margin-top: -24px !important;
    margin-right: -10px !important;
  }
  .why-meo__illust img { width: 100% !important; }
  .compare-table-wrap { margin-top: 20px !important; }

  /* ── VS比較: 横並び・スクロールなし・等幅 ── */
  .service-compare {
    flex-direction: row !important;
    overflow-x: visible !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  .service-compare__col {
    flex: 1 !important;
    min-width: 0 !important;
    width: auto !important;
  }
  .service-compare__col li {
    white-space: normal !important;
    font-size: 13px !important;
  }
  .service-compare__vs { flex-shrink: 0 !important; }

  /* ── サービス内容: 3-3-2グリッド + イラスト9枠目 ── */
  .service__layout {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
  }
  .service__grid { display: contents !important; }
  .service__illust {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
  }
  .service__illust img {
    width: 100% !important;
    max-width: 220px !important;
  }

  /* ── 料金: 上段テキスト左・イラスト右 / 下段フル幅カード ── */
  .price__layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .price__illust {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
  }
  .price__title {
    flex: 1 !important;
    text-align: left !important;
    font-size: 22px !important;
    margin: 0 !important;
  }
  .price__illust > img {
    width: 38% !important;
    flex-shrink: 0 !important;
    max-width: 260px !important;
  }
  .price__card-wrap { width: 100% !important; max-width: 100% !important; }
  .price-card--main { max-width: 100% !important; }
  .price-card__meta {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
  }
  .price-card__meta-item { flex: 1 !important; }

  /* ── ご契約の流れ: 2×2コンパクトグリッド ── */
  .flow__steps {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
  .flow-step__arrow { display: none !important; }
  .flow-step {
    display: grid !important;
    grid-template-columns: 26px 28px 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 6px !important;
    row-gap: 6px !important;
    align-items: center !important;
    padding: 16px !important;
  }
  .flow-step__num { grid-column: 1 !important; grid-row: 1 !important; font-size: 11px !important; }
  .flow-step__icon { grid-column: 2 !important; grid-row: 1 !important; font-size: 18px !important; }
  .flow-step h3 { grid-column: 3 !important; grid-row: 1 !important; font-size: 13px !important; margin: 0 !important; }
  .flow-step p { grid-column: 1 / -1 !important; grid-row: 2 !important; font-size: 12px !important; margin: 0 !important; line-height: 1.5 !important; }
}


/* ── Hero tablet fix (769-1024) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero { padding-top: 12px !important; }
  .hero__inner {
    align-items: stretch !important;
    min-height: 440px !important;
  }
  .hero__content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .hero__sub { font-size: 13px !important; white-space: nowrap !important; }
  .hero__visual { align-items: flex-start !important; }
  .hero__tv-illust {
    width: 100% !important;
    max-width: none !important;
  }
  .hero__btns {
    margin-top: auto !important;
    padding-top: 16px !important;
    flex-direction: row !important;
    gap: 12px !important;
  }
  .btn--hero-primary,
  .btn--hero-outline {
    width: calc(50% - 6px) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}


/* ── Hero tablet fix v2 ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    padding-top: 52px !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
  }
  .hero__inner {
    min-height: auto !important;
    align-items: stretch !important;
  }
  .hero__content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .hero__btns {
    margin-top: auto !important;
    padding-top: 20px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .btn--hero-primary,
  .btn--hero-outline {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
  }
}


/* ── Hero tablet fix v3 ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero { padding-bottom: 40px !important; }
  .hero__badge { align-self: flex-start !important; width: auto !important; }
  .hero__checks { align-self: stretch !important; }
}


/* ── Header tablet fix ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .header__inner { justify-content: space-between !important; gap: 0 !important; }
}


/* ── Hero illust bigger / btns up ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr 1.12fr !important; }
  .hero__btns { margin-top: 28px !important; }
}


/* ── Hero illust fix: revert cols / bleed right ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr 1fr !important; }
  .hero__tv-illust { width: 112% !important; margin-right: -12% !important; }
}


/* ── Hero illust up / btns margin fix ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero__visual { margin-top: -28px !important; }
  .hero__btns { margin-top: 24px !important; }
}


/* ── Hero illust/btns fine-tune ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero__visual { margin-top: -14px !important; }
  .hero__btns { margin-top: 20px !important; padding-top: 0 !important; }
}


/* ── 4 sections tablet fix ── */
@media (min-width: 769px) and (max-width: 1024px) {

  /* よくある悩み: 2×2グリッド + イラスト右下 */
  .worries__layout { position: relative !important; display: block !important; min-height: 380px !important; }
  .worries__cards { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; width: 62% !important; gap: 10px !important; }
  .worries__illust { position: absolute !important; right: 0 !important; bottom: 0 !important; top: auto !important; width: 40% !important; }
  .worries__illust img { width: 100% !important; }
  .worry-card2 { position: relative !important; z-index: 1 !important; }

  /* なぜ今MEO: イラストをflex-end(右下)・比較表の上余白確保 */
  .why-meo__content { align-items: flex-start !important; }
  .why-meo__illust { margin-top: 0 !important; margin-right: 0 !important; align-self: flex-end !important; }
  .compare-table-wrap { margin-top: 40px !important; }

  /* サービス内容: 2-col grid + イラスト右下・VS下余白 */
  .service__layout { display: flex !important; flex-direction: row !important; gap: 16px !important; align-items: flex-start !important; }
  .service__grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; flex: 1 !important; gap: 10px !important; }
  .service__illust { width: 26% !important; flex-shrink: 0 !important; align-self: flex-end !important; display: block !important; }
  .service__illust img { width: 100% !important; max-width: none !important; }
  .service-compare { margin-bottom: 28px !important; }

  /* 料金: ラベル〜タイトル詰める・イラスト大きく */
  .price .section__label { margin-bottom: 8px !important; }
  .price__layout { margin-top: 8px !important; }
  .price__illust > img { width: 52% !important; max-width: 320px !important; }
}


/* ── worries tablet fix v2 ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .worries__layout {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    min-height: auto !important;
  }
  .worries__cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
    gap: 12px !important;
  }
  .worries__illust {
    position: static !important;
    width: 50% !important;
    margin-left: auto !important;
    margin-top: 12px !important;
    top: auto !important;
  }
  .worries__illust img { width: 100% !important; }
}


/* ── worries order fix ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .worries__cards { order: 1 !important; }
  .worries__illust { order: 2 !important; }
}


/* ── hero fine-tune v4 ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero { padding-bottom: 56px !important; }
  .hero__visual { margin-top: 40px !important; }
  .hero__btns { margin-top: 12px !important; }
}


/* ── worries: 1col full-width + illust below-right ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .worries__layout { display: flex !important; flex-direction: column !important; position: static !important; min-height: auto !important; }
  .worries__cards { display: flex !important; flex-direction: column !important; width: 100% !important; gap: 8px !important; order: 1 !important; }
  .worries__illust { position: static !important; width: 48% !important; margin-left: auto !important; margin-top: 16px !important; order: 2 !important; top: auto !important; }
  .worries__illust img { width: 100% !important; }

  /* カード内: 絵文字 + タイトル + 説明文 を横並び1行 */
  .worry-card2 { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 12px !important; padding: 12px 20px !important; }
  .worry-card2__icon { flex-shrink: 0 !important; font-size: 22px !important; }
  .worry-card2__body { flex: 1 !important; display: flex !important; flex-direction: row !important; align-items: center !important; gap: 12px !important; }
  .worry-card2__body h3 { white-space: nowrap !important; margin: 0 !important; font-size: 14px !important; flex-shrink: 0 !important; }
  .worry-card2__body p { font-size: 12px !important; margin: 0 !important; line-height: 1.4 !important; color: #666 !important; }
}


/* ── worries card layout fix ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .worry-card2__body { flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
  .worry-card2__body h3 { white-space: normal !important; font-size: 14px !important; }
  .worry-card2__body p { font-size: 12px !important; }
}


/* ── worries cards 65% width ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .worries__cards { width: 65% !important; }
}


/* ── worries: PC layout for tablet ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .worries__layout { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 20px !important; position: static !important; min-height: auto !important; }
  .worries__illust { width: 34% !important; flex-shrink: 0 !important; position: static !important; margin: 0 !important; order: 1 !important; top: auto !important; }
  .worries__illust img { width: 100% !important; }
  .worries__cards { flex: 1 !important; display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; width: auto !important; order: 2 !important; }
  .worry-card2 { display: flex !important; flex-direction: column !important; }
  .worry-card2__body { display: block !important; }
  .worry-card2__body h3 { font-size: 13px !important; white-space: normal !important; }
  .worry-card2__body p { font-size: 12px !important; margin: 0 !important; }
}


/* ── why-meo illust down + compare gap ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .why-meo__illust { margin-top: 32px !important; }
  .compare-table-wrap { margin-top: 56px !important; }
}


/* ── service VS fix + illust below bigger ── */
@media (min-width: 769px) and (max-width: 1024px) {
  /* VS: col幅を43%に抑えてVSバッジに余裕 */
  .service-compare__col { flex: 0 0 43% !important; max-width: 43% !important; }
  .service-compare__vs { flex: 1 !important; text-align: center !important; }

  /* イラスト: グリッド下・大きく */
  .service__layout { flex-direction: column !important; }
  .service__grid { flex: unset !important; width: 100% !important; }
  .service__illust { width: 56% !important; margin: 20px auto 0 !important; align-self: center !important; }
}


/* ── strength + service illust smaller ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .strength__illust img { width: 75% !important; max-width: 280px !important; }
  .service__illust { width: 44% !important; }
}


/* ── strength illust bigger + right ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .strength__illust img { width: 88% !important; max-width: 320px !important; margin-left: auto !important; display: block !important; }
}


/* ── price: label-title gap fix + illust adjust ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .price__layout { align-items: flex-start !important; margin-top: 16px !important; gap: 40px !important; }
  .price__illust { justify-content: flex-start !important; }
  .price__title { font-size: 22px !important; margin-bottom: 12px !important; }
  .price__illust img { max-width: 240px !important; width: 72% !important; margin-top: 20px !important; }
}


/* ── price: title top-align + font-size fix ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .price__illust { align-items: flex-start !important; }
  .price__title { font-size: 26px !important; margin-top: 0 !important; margin-bottom: 0 !important; }
  .price__layout { margin-top: 12px !important; }
}


/* ── price: PC layout restore for tablet ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .price__layout { display: grid !important; flex-direction: unset !important; grid-template-columns: 1fr 0.85fr !important; gap: 32px !important; align-items: flex-start !important; margin-top: 12px !important; }
  .price__illust { display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important; gap: 0 !important; }
  .price__illust > img { width: 100% !important; max-width: none !important; margin-top: 16px !important; flex-shrink: unset !important; }
  .price__title { flex: unset !important; font-size: 24px !important; margin: 0 0 0 0 !important; }
  .price__card-wrap { width: 100% !important; }
}


/* ── price: meta vertical + balance ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .price-card__meta { flex-direction: column !important; gap: 8px !important; }
  .price-card__meta-item { flex-direction: row !important; justify-content: space-between !important; }
  .price__card-wrap { margin-top: -16px !important; }
  .price__illust > img { margin-top: 32px !important; }
}


/* ── price: card-wrap higher ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .price__card-wrap { margin-top: -52px !important; }
}


/* ── price: number size down ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .price-card__num { font-size: 38px !important; }
  .price-card__yen { font-size: 15px !important; }
  .price-card__unit { font-size: 13px !important; }
  .price-card__price { gap: 3px !important; flex-wrap: nowrap !important; }
}


/* ── price: 50/50 grid + illust smaller + card padding fix ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .price__layout { grid-template-columns: 1fr 1fr !important; }
  .price__illust > img { width: 78% !important; max-width: 200px !important; }
  .price-card { padding: 20px 16px !important; }
  .price-card__name { font-size: 16px !important; white-space: nowrap !important; }
  .price-card__meta-label, .price-card__meta-value { font-size: 12px !important; white-space: nowrap !important; }
  .price-card__meta-item { gap: 8px !important; }
}


/* ── price: illust full width ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .price__illust > img { width: 100% !important; max-width: none !important; }
}


/* ── iPad Mini (768px) tablet layout extend ── */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr 1fr !important; min-height: auto !important; }
  .hero__content { display: flex !important; flex-direction: column !important; align-items: stretch !important; }
  .hero__badge { align-self: flex-start !important; width: auto !important; }
  .hero__visual { display: flex !important; align-items: flex-start !important; margin-top: 40px !important; }
  .hero__tv-illust { display: block !important; width: 112% !important; max-width: none !important; margin-right: -12% !important; }
  .hero__tv-illust--sp { display: none !important; }
  .hero__btns { display: flex !important; flex-direction: row !important; gap: 12px !important; margin-top: 12px !important; }
  .btn--hero-primary, .btn--hero-outline { flex: 1 !important; width: auto !important; }
  .worries__layout { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 20px !important; position: static !important; }
  .worries__illust { width: 34% !important; flex-shrink: 0 !important; position: static !important; margin: 0 !important; order: 1 !important; }
  .worries__cards { flex: 1 !important; display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; order: 2 !important; }
  .price__layout { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 32px !important; align-items: flex-start !important; }
  .price__illust { display: flex !important; flex-direction: column !important; justify-content: flex-start !important; }
  .price__illust > img { width: 100% !important; max-width: none !important; margin-top: 16px !important; }
}


/* ── hero: sub to checks gap ── */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero__sub { margin-bottom: 20px !important; }
  .hero__checks { margin-top: 0 !important; }
}
