/* =========================================================
   CAR CLIP LP - style.css
   フレームワーク不使用 / システムフォントのみ
   ========================================================= */

:root {
  --navy: #1B2430;
  --navy-deep: #131A24;
  --navy-line: #2E3A4A;
  --white: #FFFFFF;
  --ink: #1B2430;
  --ink-soft: #4A5568;
  --paper: #FFFFFF;
  --paper-soft: #F5F6F8;
  --accent: #E63946;
  --line-light: #E2E5EA;
  --muted-on-dark: #9AA6B2;
  --font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* ページ内リンク(ヒーローCTA→問い合わせ)を滑らかに */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 見出し・セクション共通 ---------- */

.section {
  padding: 72px 0;
}

.section--light {
  background: var(--paper);
  color: var(--ink);
}

.section--dark {
  background: var(--paper-soft);
  color: var(--ink);
}

.section-label {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin: 0 0 12px;
}

.section__title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 48px;
  letter-spacing: 0.02em;
}

.section__closing {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid #E2E5EA;
  color: var(--ink);
}

.section__closing--dark {
  border-top: 1px solid #DCE0E6;
  color: var(--ink);
}

/* =========================================================
   1. ヒーロー
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  /* 背景イラスト(道路+車のライン画)。
     写真に差し替える場合は assets/hero-bg.svg をお手持ちの画像に置き換えるか、
     下記1つ目の url() のパスを変更してください(2層目のグラデーションは下地としてそのまま残す)。
     写真を使う場合は薄くするために opacity 調整済みの画像を用意するか、
     グラデーション側を rgba の半透明にして被せる方法もあります */
  background-image:
    url("assets/hero-bg.svg"),
    linear-gradient(180deg, var(--white) 0%, var(--paper-soft) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: center bottom, center;
  /* モバイルではイラストをやや拡大して下部に敷く(PC幅では100%に戻す) */
  background-size: 170% auto, cover;
  color: var(--ink);
  padding: 56px 0 48px;
}

/* ごく薄いドットパターン */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 背景イラストと重なるため、ドットはごく控えめに */
  background-image: radial-gradient(rgba(27, 36, 48, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

/* 左上の大きな円形装飾(ごく薄い赤みのグロー) */
.hero::after {
  content: "";
  position: absolute;
  top: -160px;
  left: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.07) 0%, rgba(230, 57, 70, 0) 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero__text {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border: 1px solid #D3D8DF;
  border-radius: 999px;
  background: var(--white);
  padding: 6px 16px;
  margin: 0 0 20px;
}

.hero__headline {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}

.hero__service-name {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.hero__service-name span {
  color: var(--ink);
  font-weight: 700;
}

.hero__lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  margin: 28px 0 0;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* スマホモック背後の柔らかな放射グロー */
.hero__visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 36, 48, 0.10) 0%, rgba(27, 36, 48, 0) 65%);
  pointer-events: none;
}

/* --- スマートフォン枠モック --- */

.phone-frame {
  position: relative;
  width: 240px;
  background: #0B0F14;
  border-radius: 34px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(27, 36, 48, 0.25), 0 0 0 1px var(--navy-line);
}

.phone-frame__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #0B0F14;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.phone-frame__screen {
  position: relative;
  width: 100%;
  /* デモ動画(9:16)と同じ比率にして左右クロップを防ぐ */
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: var(--navy);
}

.demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--navy) center / cover no-repeat;
}

/* =========================================================
   2. お悩み / 汎用カードグリッド
   ========================================================= */

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(27, 36, 48, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(27, 36, 48, 0.10);
}

.card__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
}

.card__body {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* =========================================================
   3. 仕組み3ステップ
   ========================================================= */

.steps {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

.step {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 28px 24px;
}

.step__number {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 10px;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
}

.step__body {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* =========================================================
   4. お届けする動画の特徴
   ========================================================= */

.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.feature {
  padding: 24px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line-light);
  box-shadow: 0 2px 8px rgba(27, 36, 48, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(27, 36, 48, 0.10);
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature__body {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* =========================================================
   5. 料金
   ========================================================= */

.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(27, 36, 48, 0.04);
}

.price-card--featured {
  border-color: var(--accent);
  background: #FFF9F9;
  transform: scale(1.02);
}

.price-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.price-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 4px 0 16px;
  letter-spacing: 0.04em;
}

.price-card__price {
  margin: 0 0 8px;
}

.price-card__amount {
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
}

.price-card__unit {
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: 4px;
}

.price-card__volume {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}

.price-card__note {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.price-note {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* =========================================================
   6. 運営者プロフィール
   ========================================================= */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 560px;
  margin: 0 auto;
}

.profile__photo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.profile__fallback {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 700;
}

.profile__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.profile__photo.is-loaded {
  opacity: 1;
}

.profile__name {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 4px;
}

.profile__role {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.profile__bio {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  text-align: left;
}

/* =========================================================
   7. お問い合わせ CTA
   ========================================================= */

.section--cta {
  text-align: center;
  background: #FDF6F6;
}

.cta__lead {
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 15px;
  color: var(--ink-soft);
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 16px 40px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  background: #D62839;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.30);
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* ---- 問い合わせフォーム ---- */

.contact-form-wrap {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(27, 36, 48, 0.04);
}

/* honeypot: 視覚的に隠す(display:noneにしないのが定石) */
.contact-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-required {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: 1px;
}

.form-field input {
  width: 100%;
  font-size: 16px; /* 16px未満だとiOSでフォーカス時に自動ズームされるため */
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #D3D8DF;
  border-radius: 8px;
  padding: 13px 14px;
}

.form-field input::placeholder {
  color: #A6AEB8;
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.form-hint {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 8px 0 0;
  line-height: 1.6;
}

.contact-form__submit {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--accent);
  text-align: center;
}

.form-status a {
  color: inherit;
  font-weight: 600;
}

.form-success {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 36px 24px;
  box-shadow: 0 2px 8px rgba(27, 36, 48, 0.04);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.cta__email {
  margin: 20px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: center;
}

.cta__email a {
  color: inherit;
}

/* =========================================================
   8. フッター
   ========================================================= */

.footer {
  background: #ECEEF1;
  color: var(--ink-soft);
  border-top: 1px solid #DCE0E6;
  padding: 40px 0;
  font-size: 12.5px;
}

.footer__line {
  margin: 0 0 8px;
}

.footer__copyright {
  margin: 0 0 20px;
}

.footer__privacy summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

.footer__privacy p {
  margin: 12px 0 0;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* =========================================================
   デスクトップ (PC幅) レイアウト調整
   ========================================================= */

@media (min-width: 900px) {
  .hero {
    padding: 88px 0;
    background-size: 100% auto, cover;
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 64px;
  }

  .hero__text {
    text-align: left;
    flex: 1;
  }

  .hero__lead {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__headline {
    font-size: 40px;
  }

  .hero__visual {
    flex: 0 0 auto;
    width: auto;
  }

  .phone-frame {
    width: 280px;
  }

  .section {
    padding: 96px 0;
  }

  .section__title {
    font-size: 32px;
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature--wide {
    grid-column: 1 / -1;
  }

  .price-card--featured {
    transform: scale(1.04);
  }

  .profile {
    flex-direction: row;
    text-align: left;
    max-width: 640px;
  }

  .profile__photo-wrap {
    width: 140px;
    height: 140px;
  }
}

/* =========================================================
   スクロール連動フェードイン
   - .js クラスは script.js が付与する。JSが動かない環境では
     .reveal は無効のままなので、コンテンツは常に表示される
   ========================================================= */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 「おすすめ」カードは scale を保ったままフェードインさせる */
.js .price-card--featured.reveal {
  transform: translateY(16px) scale(1.02);
}

.js .price-card--featured.reveal.is-visible {
  transform: scale(1.02);
}

@media (min-width: 900px) {
  .js .price-card--featured.reveal {
    transform: translateY(16px) scale(1.04);
  }

  .js .price-card--featured.reveal.is-visible {
    transform: scale(1.04);
  }
}

/* =========================================================
   アニメーション無効化(視差効果を減らす設定のユーザー向け)
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .card,
  .feature,
  .button {
    transition: none !important;
  }

  .card:hover,
  .feature:hover,
  .button:hover {
    transform: none !important;
  }
}
