/* ============================================================
   合同会社TTD — Landing Page Stylesheet
   カラー: Black #1a1a1a / Red #E8002D / White #FFFFFF
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --black:   #1a1a1a;
  --red:     #E8002D;
  --red-h:   #FF1744;
  --white:   #FFFFFF;
  --gray-bg: #F8F8F8;
  --gray-bd: #E0E0E0;
  --text:    #333333;
  --text-lt: #666666;

  --font: 'Noto Sans JP', sans-serif;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;

  --sh-sm: 0 2px 8px rgba(0,0,0,.08);
  --sh-md: 0 4px 20px rgba(0,0,0,.12);
  --sh-lg: 0 8px 40px rgba(0,0,0,.15);

  --ease: .3s ease;
  --w:    1100px;
}

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

/* ---------- Layout ---------- */
.container {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }

/* ---------- Section Labels ---------- */
.section-label {
  display: block;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--black);
  line-height: 1.4;
  margin-bottom: 52px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-h);
  border-color: var(--red-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,0,45,.35);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg  { padding: 18px 48px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ---------- Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-bd);
  transition: box-shadow var(--ease);
}
.header.scrolled { box-shadow: var(--sh-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.logo { flex-shrink: 0; }
.logo-img { height: 40px; width: auto; }

.nav { flex: 1; }
.nav-list { display: flex; gap: 32px; }
.nav-list a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--ease);
}
.nav-list a:hover { color: var(--red); }

.header-cta { flex-shrink: 0; padding: 10px 24px; font-size: .9rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  margin-left: auto;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all var(--ease);
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 148px 0 0;
  background: linear-gradient(140deg, #0d0d0d 0%, #1a1a1a 55%, #2a2a2a 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,0,45,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding-bottom: 88px;
}
.hero-label {
  display: inline-block;
  background: rgba(232,0,45,.15);
  color: var(--red);
  border: 1px solid rgba(232,0,45,.35);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 32px;
}
.hero-title { margin-bottom: 28px; }
.hero-title-main {
  display: block;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}
.hero-title-sub {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 44px;
  line-height: 1.9;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.hero .btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 500;
}
.hero-wave { line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* ============================================================
   PAIN POINTS
   ============================================================ */
.pain { background: var(--gray-bg); }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.pain-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--sh-sm);
  transition: transform var(--ease);
}
.pain-card:hover { transform: translateY(-4px); }
.pain-icon { font-size: 2.4rem; margin-bottom: 14px; }
.pain-card p { font-size: .92rem; font-weight: 500; line-height: 1.7; }
.pain-solution {
  background: var(--black);
  border-radius: var(--r-md);
  padding: 36px 40px;
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  line-height: 1.85;
}
.pain-solution strong { color: var(--white); font-size: 1.15rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--white); }
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p {
  font-size: 1rem;
  line-height: 2;
  color: var(--text);
}
.about-text strong { color: var(--red); }

.about-steps { display: flex; flex-direction: column; }
.about-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-bd);
}
.about-step:last-child { border-bottom: none; }
.about-step-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 900;
}
.about-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--black); }
.about-step p  { font-size: .88rem; color: var(--text-lt); line-height: 1.7; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--gray-bg); padding-top: 100px; padding-bottom: 100px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 44px 32px;
  text-align: center;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--ease);
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--sh-md); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-card--main {
  padding: 52px 36px;
  box-shadow: var(--sh-md);
}
.feature-card--main::after {
  transform: scaleX(1);
}
.feature-icon { font-size: 2.8rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--black); margin-bottom: 16px; line-height: 1.45; }
.feature-card p  { font-size: .88rem; color: var(--text-lt); line-height: 1.85; }

/* ============================================================
   FLOW
   ============================================================ */
.flow { background: var(--white); }
.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.flow-step {
  flex: 1;
  text-align: center;
  padding: 36px 24px;
  background: var(--gray-bg);
  border-radius: var(--r-md);
}
.flow-num {
  display: inline-flex;
  width: 56px; height: 56px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.flow-step h3 { font-size: .95rem; font-weight: 700; color: var(--black); margin-bottom: 10px; }
.flow-step p  { font-size: .84rem; color: var(--text-lt); line-height: 1.75; }
.flow-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  padding-top: 28px;
  font-size: 1.8rem;
  color: var(--red);
  font-weight: 700;
}

/* ============================================================
   TARGET
   ============================================================ */
.target {
  background: linear-gradient(140deg, #0d0d0d, #1a1a1a);
}
.target .section-label { color: var(--red); }
.target .section-title { color: var(--white); }
.target-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.target-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  padding: 20px 24px;
  transition: all var(--ease);
}
.target-item:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(232,0,45,.45);
}
.target-check {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .88rem;
}
.target-item p { color: rgba(255,255,255,.88); font-size: 1rem; font-weight: 500; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--gray-bg); }
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  transition: background var(--ease);
}
.faq-q:hover { background: var(--gray-bg); }
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 300;
  transition: transform var(--ease);
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a p {
  padding: 0 28px 24px;
  color: var(--text-lt);
  line-height: 1.85;
  font-size: .93rem;
}
.faq-item.open .faq-a { max-height: 320px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--white); padding-top: 108px; }
.contact-desc {
  text-align: center;
  color: var(--text-lt);
  margin-bottom: 48px;
  font-size: 1rem;
}
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-bd);
  border-radius: var(--r-lg);
  padding: 52px 48px;
  box-shadow: var(--sh-lg);
}
.form-group { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* テキスト系ラベル（チェックボックスラベルは除外） */
.form-group label:not(.privacy-check-label) {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.req {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 700;
  vertical-align: middle;
}
/* テキスト系インプット（チェックボックスは除外） */
.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid var(--gray-bd);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-privacy { margin-bottom: 32px; }

/* チェックボックス：label が input を包む確実パターン */
.privacy-check-label {
  display: flex;
  align-items: center;  /* 縦方向中央揃え */
  gap: 10px;
  cursor: pointer;
  margin-bottom: 10px;
  width: fit-content;
  line-height: 1;
}
.privacy-check-label input[type="checkbox"] {
  /* カスタムチェックボックス（視覚的に明確） */
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--gray-bd);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  top: 0;
  margin: 0;
  transition: background .15s, border-color .15s;
}
/* チェック済み：赤背景 + 白チェックマーク */
.privacy-check-label input[type="checkbox"]:checked {
  background: var(--red);
  border-color: var(--red);
}
.privacy-check-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 8px;
  height: 12px;
  border: 2.5px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
/* フォーカス時のアウトライン */
.privacy-check-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.privacy-check-text {
  font-size: .92rem;
  color: var(--text);
  user-select: none;
  line-height: 1.4;
  vertical-align: middle;
}
/* ポリシー確認ボタン（チェックと分離） */
.privacy-read-btn {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  color: var(--red);
  font-size: .82rem;
  font-family: var(--font);
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 6px;
  transition: opacity var(--ease);
}
.privacy-read-btn:hover { opacity: .7; }

/* ---------- Inline Field Errors ---------- */
.field-error {
  display: block;
  font-size: .8rem;
  color: #C62828;
  margin-top: 6px;
  min-height: 1em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.field-error.visible {
  opacity: 1;
  transform: translateY(0);
}
.field-error--check {
  margin-top: 8px;
  padding-left: 28px;
}

/* エラー状態の入力欄 */
.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
  border-color: #C62828;
  background: #fff8f8;
}
.form-group input.input-error:focus,
.form-group select.input-error:focus,
.form-group textarea.input-error:focus {
  border-color: #C62828;
}

#submitBtn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.form-success {
  margin-top: 24px;
  padding: 24px 28px;
  background: #E8F5E9;
  border-radius: var(--r-sm);
  border-left: 4px solid #2E7D32;
  color: #1B5E20;
  text-align: left;
}
.success-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.form-success p { margin-bottom: 6px; line-height: 1.7; }
.success-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  font-size: 0.9rem;
}
.success-note p { font-weight: 700; margin-bottom: 6px; }
.success-note ul { padding-left: 20px; }
.success-note li { margin-bottom: 4px; }
.btn-resend {
  background: none;
  border: 1px solid #2E7D32;
  color: #2E7D32;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}
.btn-resend:hover { background: #2E7D32; color: #fff; }

.form-error {
  margin-top: 20px;
  padding: 16px 20px;
  background: #FFEBEE;
  border-radius: var(--r-sm);
  border-left: 4px solid #C62828;
  color: #C62828;
  font-weight: 500;
}
.form-error a { color: var(--red); text-decoration: underline; }
.footer-contact-link { color: rgba(255,255,255,.7); transition: color 0.2s; }
.footer-contact-link:hover { color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--black); padding: 60px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 10px;
}
.footer-tagline { color: var(--red); font-size: .82rem; font-weight: 700; letter-spacing: .06em; }
.footer-info { display: flex; flex-direction: column; gap: 6px; }
.footer-info p,
.footer-info a { color: rgba(255,255,255,.65); font-size: .9rem; }
.footer-info a:hover { color: var(--red); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color var(--ease); }
.footer-nav a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.copyright { color: rgba(255,255,255,.4); font-size: .78rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,.4); font-size: .78rem; transition: color var(--ease); }
.footer-legal a:hover { color: var(--red); }

/* ============================================================
   MODAL — Privacy Policy
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--white);
  border-radius: var(--r-lg);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  transform: scale(.95) translateY(16px);
  transition: transform .25s ease;
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--gray-bd);
  flex-shrink: 0;
}
.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-bg);
  border: none;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
  color: var(--text);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--gray-bd); }
.modal-body {
  overflow-y: auto;
  padding: 24px 28px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.modal-body h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--black);
  margin: 20px 0 6px;
  padding-left: 10px;
  border-left: 3px solid var(--red);
  line-height: 1.4;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body p  { font-size: .85rem; color: var(--text); line-height: 1.85; }
.modal-body ul { font-size: .85rem; color: var(--text); padding-left: 20px; list-style: disc; line-height: 1.85; }
.modal-body ul li { margin-bottom: 2px; }
.modal-body a { color: var(--red); text-decoration: underline; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid var(--gray-bd);
  flex-shrink: 0;
  background: var(--gray-bg);
}
.modal-footer > a { font-size: .82rem; color: var(--red); text-decoration: underline; white-space: nowrap; }
.modal-footer .btn { padding: 12px 28px; font-size: .9rem; }

/* ============================================================
   RESPONSIVE — Tablet (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .pain-grid { grid-template-columns: repeat(2,1fr); }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  section { padding: 64px 0; }

  /* Header */
  .nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .nav.open {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 72px);
    background: #ffffff;
    padding: 8px 0;
    z-index: 1500;
    overflow-y: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,.15);
  }
  .nav.open .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav.open .nav-list li {
    width: 100%;
  }
  .nav.open .nav-list a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 22px 32px;
    font-size: 1.15rem;
    font-weight: 700;
    border-bottom: 1px solid #eeeeee;
    color: #1a1a1a;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
  }
  .nav.open .nav-list a:active,
  .nav.open .nav-list a:hover {
    background: #f9f9f9;
    color: var(--red);
  }
  .nav.open .nav-list li:last-child a { border-bottom: none; }

  /* Hero */
  .hero { padding-top: 120px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-lg { padding: 16px 36px; width: 100%; max-width: 320px; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }

  /* Flow */
  .flow-steps { flex-direction: column; }
  .flow-arrow { padding: 0; justify-content: center; transform: rotate(90deg); height: 28px; }
  .flow-step { min-width: auto; }

  /* Form */
  .contact-form { padding: 32px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   RESPONSIVE — Small Mobile (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .pain-grid { grid-template-columns: 1fr; }
  .hero-badges { flex-direction: column; align-items: center; }
  .hero-title-main { font-size: clamp(2.8rem, 14vw, 4rem); }
  .modal-footer { flex-direction: column; align-items: stretch; text-align: center; }
  .modal-footer .btn { width: 100%; }
  .modal-box { border-radius: var(--r-md); }
}
