/* ============================================
   お気に入り機能 紹介LP
   Design: Chic / Modern / Stylish
   No emojis. Clean white base + blue accent.
   （/lp/drawing-order/ と同一デザインシステム）
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #E71414;
  --color-primary-dark: #b81010;
  --color-primary-light: #fdecee;
  --color-accent: #0f172a;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-inverse: #ffffff;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1280px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

img, video {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

.sp-only { display: none; }

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 20px;
}

.section-lead {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 56px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  margin-bottom: 14px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, #E71414, #f0455a);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(231, 20, 20, 0.3);
  transition: all 0.4s ease;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #a31326, #b81010);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(231, 20, 20, 0.45), 0 0 20px rgba(240, 69, 90, 0.2);
}

.btn--primary:active { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(231, 20, 20, 0.3); }

.btn--outline {
  background: #ffffff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.06em;
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

.btn--lg { font-size: 1.1rem; padding: 20px 52px; border-radius: 100px; gap: 8px; }
.btn--sm { font-size: 0.85rem; padding: 11px 24px; border-radius: 100px; gap: 6px; }

/* --- Fade In --- */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.header.is-scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo { display: flex; align-items: center; flex-shrink: 0; }
.header__logo-img { height: 54px; width: auto; }

.header__nav { flex: 1; display: flex; justify-content: center; }
.header__nav-list { display: flex; gap: 36px; }

.header__nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  position: relative;
  white-space: nowrap;
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}
.header__nav-link:hover { color: var(--color-text); }
.header__nav-link:hover::after { width: 100%; }

.header__cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  background: linear-gradient(135deg, #E71414 0%, #f0455a 50%, #E71414 100%);
  background-size: 200% 200%;
  color: var(--color-text-inverse);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(231, 20, 20, 0.3);
  transition: var(--transition);
}
.header__cta-btn:hover {
  background-position: 100% 100%;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(231, 20, 20, 0.45), 0 0 16px rgba(240, 69, 90, 0.2);
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.header__hamburger span { display: block; width: 24px; height: 2px; background: var(--color-text); transition: var(--transition); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 68px);
  padding-bottom: 80px;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0b0908;
}

/* メインビジュアル（favorite_back.jpg）。左端をヒーロー文字の左端（レフトライン）に合わせて配置。フェードなし */
.hero__bg {
  position: absolute; top: 0; bottom: 0; right: 0;
  left: max(48px, calc(50% - 792px)); /* コンテナ左padding（=文字の左端）に一致。1680中央寄せ+48px */
  background-color: #0b0908;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
/* PC=favorite_back_D / スマホ=favorite_back_C を出し分け（デフォルト=PC表示） */
.hero__bg--sp { display: none; }

/* 一定幅(1680px)以上で画像が拡大し続けないよう、画像ゾーン幅を固定（右側は黒地でブレンド） */
@media (min-width: 1680px) {
  .hero__bg { right: calc(50% - 840px); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1680px; /* 下部セクション(1280)より広く＝TOPの左ラインを約3文字分左へ */
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
}
.hero__content {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffd7db;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.08em;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: 0.01em;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #ffffff;
  margin-top: 12px;
  margin-bottom: 34px;
}
.hero__heart { color: var(--color-primary); font-size: 2.35rem; line-height: 1; }

.hero__subtitle {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  line-height: 1.95;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero__mark {
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 700;
}

.hero__actions { display: flex; flex-direction: column; align-items: flex-start; }

.hero__free-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hero__free-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* ============================================
   Merits (できること・アイコンカード)
   ============================================ */
.merits { padding: 116px 0; background: var(--color-bg); }

.merit-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.merit-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: var(--transition);
}
.merit-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }

.merit-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: 20px;
}
.merit-card__title { font-size: 1.12rem; font-weight: 700; color: var(--color-text); margin-bottom: 10px; }
.merit-card__desc { font-size: 0.94rem; color: var(--color-text-light); line-height: 1.85; }

.merit-card--wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.merit-card--wide .merit-card__icon { margin-bottom: 0; }

/* ============================================
   Persona (設計者 / 購買 の Before→After)
   ============================================ */
.persona { padding: 116px 0; }
.persona--designer { background: var(--color-bg-alt); }
.persona--buyer { background: var(--color-bg); }

.pairs { max-width: 1000px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 22px; }

.pair {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.pair:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.pair__figure {
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  border-right: 1px solid var(--color-border-light);
}
.pair__figure img { width: 100%; max-width: 207px; height: auto; mix-blend-mode: multiply; }

.pair__body { padding: 26px 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.pair__pain, .pair__gain { display: flex; flex-direction: column; gap: 7px; }
.pair__gain { padding-top: 15px; border-top: 1px dashed var(--color-border); }

.pair__tag {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 12px; border-radius: 100px;
}
.pair__tag--pain { color: var(--color-text-light); background: var(--color-border-light); }
.pair__tag--gain { color: #ffffff; background: var(--color-primary); }

.pair__pain p { font-size: 0.95rem; color: var(--color-text-light); line-height: 1.7; font-weight: 500; }
.pair__gain p { font-size: 1.02rem; color: var(--color-accent); line-height: 1.7; font-weight: 700; }

/* ============================================
   How to use
   ============================================ */
.howto { padding: 116px 0; background: var(--color-bg-alt); }

.howto__sub {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 8px 0 8px;
}
.howto__block { margin-top: 44px; }
.howto__block + .howto__block { margin-top: 80px; }

.reg-list { max-width: 940px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 16px; }

.reg-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: var(--transition);
}
.reg-item:hover { box-shadow: var(--shadow-md); }
.reg-item__head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.reg-item__cap { margin-top: 20px; }

.reg-item__no {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 900;
  flex-shrink: 0;
}
.reg-item__text { font-size: 1.0rem; color: var(--color-text); font-weight: 500; line-height: 1.7; }
.reg-item__text strong { font-weight: 700; }

.reg-item__btns { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.reg-item__video { gap: 7px; }
.reg-item__video svg { flex-shrink: 0; }

.can-grid {
  max-width: 1040px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.can-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.can-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.can-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.can-card__label { font-size: 0.95rem; font-weight: 700; color: var(--color-text); line-height: 1.5; }

/* --- 画面キャプチャ プレースホルダーゾーン --- */
.capzone {
  width: 100%;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 12px, #f1f5f9 12px, #f1f5f9 24px);
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--color-text-light); text-align: center; padding: 16px;
}
.capzone svg { opacity: 0.5; }
.capzone__label { font-size: 0.9rem; font-weight: 600; }
.capzone__sub { font-size: 0.75rem; color: #94a3b8; }
.capzone--wide { max-width: 900px; margin: 0 auto 8px; aspect-ratio: 16 / 8; }
.capzone--step { aspect-ratio: 16 / 6.5; }

/* ============================================
   CTA
   ============================================ */
.cta { background: #171210; padding: 104px 0; position: relative; overflow: hidden; }
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(240, 69, 90, 0.25), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(231, 20, 20, 0.22), transparent 60%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; padding: 0 24px; }
.cta__title { font-size: 2.2rem; font-weight: 900; color: #ffffff; line-height: 1.5; letter-spacing: 0.01em; margin-bottom: 12px; }
.cta__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.7rem; font-weight: 900; color: #ffffff; letter-spacing: 0.01em; margin-bottom: 24px; }
.cta__heart { color: var(--color-primary); font-size: 1.6rem; line-height: 1; }
.cta__lead { font-size: 1.05rem; color: rgba(255, 255, 255, 0.72); line-height: 1.9; margin-bottom: 44px; }
.cta__actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cta__note { margin-top: 22px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* ============================================
   Footer
   ============================================ */
.footer { background: #000000; padding: 0 0 40px; }
.footer__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 60px; }
.footer__brand { padding-top: 48px; margin-bottom: 36px; }
.footer__logo-img { height: 40px; width: auto; opacity: 0.95; }
.footer__divider { border: none; border-top: 1px solid rgba(255, 255, 255, 0.2); margin: 0 0 40px; }
.footer__columns { display: flex; gap: 80px; margin-bottom: 60px; }
.footer__col { flex: 1; }
.footer__col-title { font-size: 1rem; font-weight: 700; color: #ffffff; margin-bottom: 24px; }
.footer__links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 12px; }
.footer__links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer__links a:hover { color: #ffffff; }
.footer__bottom { margin-top: 40px; }
.footer__notice { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); line-height: 1.8; margin-bottom: 16px; }
.footer__copy { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }

/* MAKERZ 共通ECフッター標準（footer_standard.html 準拠） */
.footer-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.footer-col { flex: 1 1 20%; min-width: 180px; }
.footer-col p { margin-bottom: 1em; }
.footer-col a { font-size: 13px; color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: #fff; }
.footer-copyright { text-align: center; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-copyright p { margin: 0; font-size: 12px; color: rgba(255, 255, 255, 0.4); line-height: 2; }

/* 画面キャプチャ画像（使い方ステップ／お気に入り画面） */
.shot { width: 100%; display: block; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); cursor: zoom-in; transition: var(--transition); }
.shot:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.shot--wide { max-width: 1040px; margin: 0 auto 8px; }

/* 画像拡大モーダル（ライトボックス） */
.imodal { position: fixed; inset: 0; z-index: 2100; display: none; align-items: center; justify-content: center; padding: 24px; }
.imodal.is-open { display: flex; }
.imodal__overlay { position: absolute; inset: 0; background: rgba(8, 6, 6, 0.85); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.imodal__box { position: relative; z-index: 1; max-width: 96vw; max-height: 92vh; animation: modalPop 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.imodal__img { display: block; max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: var(--radius-md); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
.imodal__close {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: var(--transition);
}
.imodal__close:hover { background: rgba(0, 0, 0, 0.85); transform: rotate(90deg); }

/* ============================================
   Floating CTA
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 32px; right: 32px;
  background: linear-gradient(135deg, #b81010, #f0455a);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(231, 20, 20, 0.4);
  letter-spacing: 0.05em;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.floating-cta.is-visible { opacity: 1; pointer-events: auto; animation: floatingBounce 3s ease-in-out infinite; }
@keyframes floatingBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.floating-cta:hover { box-shadow: 0 6px 28px rgba(231, 20, 20, 0.55); transform: translateY(-2px); }

.header__nav.is-open { display: flex; }

/* ============================================
   操作動画モーダル / 会員登録ゲート
   ============================================ */
.vmodal, .gate {
  position: fixed; inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.vmodal.is-open, .gate.is-open { display: flex; }

.vmodal__overlay, .gate__overlay {
  position: absolute; inset: 0;
  background: rgba(8, 6, 6, 0.82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.vmodal__box {
  position: relative; z-index: 1;
  width: 100%; max-width: 960px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: modalPop 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.vmodal__video { width: 100%; max-height: 80vh; display: block; background: #000; }

.vmodal__close, .gate__close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: var(--transition);
}
.vmodal__close:hover, .gate__close:hover { background: rgba(0, 0, 0, 0.8); transform: rotate(90deg); }

.gate__box {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px 40px 44px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  animation: modalPop 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.gate__close { color: var(--color-text-light); background: var(--color-bg-alt); }
.gate__close:hover { background: var(--color-border); color: var(--color-text); }
.gate__badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 5px 16px; border-radius: 100px;
  margin-bottom: 18px;
}
.gate__title { font-size: 1.4rem; font-weight: 700; color: var(--color-text); line-height: 1.6; margin-bottom: 14px; }
.gate__lead { font-size: 0.94rem; color: var(--color-text-light); line-height: 1.85; margin-bottom: 30px; }
.gate__actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gate__actions .btn--lg { width: 100%; max-width: 360px; }
.gate__login { font-size: 0.88rem; color: var(--color-text-light); text-decoration: underline; text-underline-offset: 3px; }
.gate__login:hover { color: var(--color-primary); }

@keyframes modalPop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

body.modal-open { overflow: hidden; }

/* ============================================
   Responsive: Tablet
   ============================================ */
@media (max-width: 1024px) {
  .container, .header__inner, .hero__inner, .footer__inner {
    padding-left: 32px; padding-right: 32px;
  }
  .hero__title { font-size: 2.0rem; }
  .hero__brand { font-size: 2.0rem; }
  .hero__heart { font-size: 1.9rem; }
  .hero__content { max-width: 560px; }
  .hero__bg { left: 32px; } /* タブレットの左padding（=文字左端）に一致 */
  .merit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .merit-card--wide { grid-column: span 2; }
  .can-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================
   Responsive: Mobile
   ============================================ */
@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .sp-only { display: inline; }

  .container, .header__inner, .hero__inner, .footer__inner {
    padding-left: 20px; padding-right: 20px;
  }

  .section-title { font-size: 1.5rem; }
  .section-lead { font-size: 0.95rem; margin-bottom: 40px; }

  .btn { white-space: normal; }
  .btn--lg { font-size: 1rem; padding: 16px 28px; width: 100%; max-width: 380px; }

  /* Header */
  .header__nav {
    display: none;
    position: fixed;
    top: var(--header-height); left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 48px;
    z-index: 999;
  }
  .header__nav.is-open { display: flex; }
  .header__nav-list { flex-direction: column; gap: 0; width: 100%; text-align: center; }
  .header__nav-list li { border-bottom: 1px solid var(--color-border-light); }
  .header__nav-link { display: block; padding: 20px 24px; font-size: 1rem; }
  .header__nav-link::after { display: none; }
  .header__cta-btn { display: none; }
  .header__logo-img { height: 40px; }
  .header__hamburger { display: flex; }
  .header__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__hamburger.is-active span:nth-child(2) { opacity: 0; }
  .header__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero: モバイルは「メイン画像 → 中央ぞろえのコピー・ボタン」の縦積み */
  .hero { display: block; padding-top: calc(var(--header-height) + 20px); padding-bottom: 52px; min-height: 0; }
  .hero__inner { display: block; padding: 0 20px; }
  /* スマホは favorite_back_C を表示（PC用Dは隠す） */
  .hero__bg--pc { display: none; }
  .hero__bg--sp { display: block; }
  .hero__bg {
    position: relative; top: auto; right: auto; bottom: auto; left: auto;
    width: 100%; height: 190px;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    margin-bottom: 30px;
  }
  .hero__content { max-width: 100%; align-items: center; text-align: center; }
  .hero__title { font-size: 1.5rem; word-break: normal; line-height: 1.5; }
  .hero__brand { font-size: 1.5rem; margin-top: 8px; margin-bottom: 24px; }
  .hero__heart { font-size: 1.45rem; }
  .hero__subtitle { font-size: 0.95rem; word-break: normal; }
  .hero__actions { align-items: center; width: 100%; }
  .hero__free-note { flex-direction: column; text-align: center; gap: 8px; }

  /* Merits */
  .merits { padding: 72px 0; }
  .merit-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .merit-card--wide { grid-column: span 1; grid-template-columns: 1fr; text-align: left; }
  .merit-card--wide .merit-card__icon { margin-bottom: 16px; }

  /* Persona */
  .persona { padding: 72px 0; }
  .pairs { margin-top: 40px; gap: 18px; }
  .pair { grid-template-columns: 1fr; }
  .pair__figure { border-right: none; border-bottom: 1px solid var(--color-border-light); padding: 22px; }
  .pair__figure img { max-width: 165px; }
  .pair__body { padding: 22px 20px; }
  /* スマホでは keep-all を解除し、日本語を通常折り返し（文字切れ防止） */
  .pair__pain p, .pair__gain p, .section-lead, .merit-card__desc,
  .reg-item__text, .can-card__label, .cta__lead, .howto__sub { word-break: normal; overflow-wrap: break-word; }

  /* How to */
  .howto { padding: 72px 0; }
  .howto__sub { font-size: 1.15rem; }
  .howto__block + .howto__block { margin-top: 56px; }
  .reg-item { padding: 20px; }
  .reg-item__head { grid-template-columns: auto 1fr; gap: 14px; }
  .reg-item__btns { grid-column: 1 / -1; flex-direction: row; gap: 10px; }
  .reg-item__btns .btn--sm { flex: 1 1 0; min-width: 0; width: auto; padding-left: 12px; padding-right: 12px; }
  .can-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  /* CTA */
  .cta { padding: 72px 0; }
  .cta__title { font-size: 1.4rem; }
  .cta__actions { flex-direction: column; align-items: center; }
  .cta__actions .btn { width: 100%; max-width: 380px; }

  /* Footer */
  .footer__columns { flex-direction: column; gap: 40px; }
  .footer__links-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 16px; }
  .footer-col { flex: 1 1 45%; min-width: 140px; }

  /* Floating CTA */
  .floating-cta { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); font-size: 0.82rem; padding: 12px 22px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.35rem; }
  .hero__brand { font-size: 1.35rem; }
  .hero__heart { font-size: 1.3rem; }
  .reg-item__btns { flex-direction: column; }
  .can-grid { grid-template-columns: 1fr; }
}
