/* DESIGN.md（Coinbase系トークン）準拠
   - 単一アクセント: primary（CTA・リンクのみ、控えめに）
     ※青は会社サイト reef-kk.com（SWELL --color_main: #225ca4 / 帯: #04449c）に合わせる
   - 白キャンバス + soft/strong グレー帯 + ダークバンド
   - 見出しは weight 400、CTAはピル、カードは24px角丸+ヘアライン */

:root {
  --primary: #225ca4;
  --primary-active: #1a457b;
  --brand-deep: #04449c;
  --ink: #0a0b0d;
  --body: #5b616e;
  --muted: #7c828a;
  --hairline: #dee1e6;
  --hairline-soft: #eef0f3;
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-strong: #eef0f3;
  --surface-dark: #0a0b0d;
  --surface-dark-elevated: #16181c;
  --on-dark: #ffffff;
  --on-dark-soft: #a8acb3;
  --semantic-down: #cf202f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    'Inter',
    'Noto Sans JP',
    -apple-system,
    system-ui,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 640px;
}

/* ディスプレイ（weight 400 固定） */
.display-lg,
.display-md {
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.display-lg {
  font-size: 52px;
  line-height: 1.1;
}
.display-md {
  font-size: 40px;
  line-height: 1.15;
}

/* トップナビ */
.top-nav {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-left: 10px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ボタン（すべてピル） */
.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.btn-primary:hover,
.btn-primary:active {
  background: var(--primary-active);
}
.btn-secondary {
  background: var(--surface-strong);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--hairline);
}
.btn-sm {
  font-size: 14px;
  padding: 10px 20px;
}
.btn-lg {
  padding: 16px 32px;
}

/* バッジピル */
.badge-pill {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 24px;
}

/* 開催日時（ヒーロー内・青地の告知ボックス） */
.event-ticket {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 24px;
  margin-bottom: 24px;
}
.ticket-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ticket-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
}
.ticket-dates {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ticket-time {
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ヒーロー */
.hero {
  padding: 96px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 64px;
  align-items: center;
}
.hero-sub {
  margin: 20px 0 32px;
}
.hero-price {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}
.price-value {
  font-size: 44px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-unit {
  font-size: 22px;
  font-weight: 500;
}
.price-meta {
  font-size: 14px;
  color: var(--muted);
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-note {
  font-size: 13px;
  color: var(--muted);
}
.hero-photo img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* セクション共通（96pxリズム） */
.section {
  padding: 96px 0;
}
.section-soft {
  background: var(--surface-soft);
}
.section-head {
  margin-bottom: 48px;
}
.section-head-center {
  text-align: center;
}

/* SP/PC 切り替え表示 */
.sp-only {
  display: none;
}

/* 物件概要（ヘアライン区切りの行リスト、PCは2列） */
.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.spec-row dt {
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
}
.spec-row dd {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.spec-row dd span {
  display: inline-block;
}
.spec-row .num {
  font-variant-numeric: tabular-nums;
}

/* おすすめポイント（縦型写真つきフィーチャーカード） */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
}
.card-img {
  overflow: hidden;
}
.card-img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover .card-img img {
  transform: scale(1.04);
}
.card-body {
  padding: 24px;
}
.card-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.33;
  color: var(--ink);
  margin-bottom: 8px;
}
.card-body p {
  font-size: 14px;
}

/* 画像スライダー（間取りイメージ・長期優良住宅） */
.slider {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 24px;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar {
  display: none;
}
.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.slide img {
  width: 100%;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.slider-arrow:hover {
  background: #ffffff;
}
.slider-prev {
  left: 12px;
}
.slider-next {
  right: 12px;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: var(--hairline);
  cursor: pointer;
  transition: background 0.15s;
}
.slider-dot.active {
  background: var(--primary);
}

/* アクセス */
.access-address {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}
.map-wrap {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.map-wrap iframe {
  display: block;
}

/* フォーム */
.form-lead {
  margin-bottom: 48px;
}
.form-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 32px;
}
.field {
  margin-bottom: 24px;
}
.field label,
.field .field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.required {
  color: var(--semantic-down);
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}
.field-note {
  font-size: 13px;
  color: var(--muted);
  margin: -4px 0 10px;
  font-variant-numeric: tabular-nums;
}
.field input[type='text'],
.field input[type='tel'],
.field input[type='email'] {
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--canvas);
}
.field input::placeholder {
  color: var(--muted);
}
.field input:focus {
  outline: none;
  border: 2px solid var(--primary);
  padding: 13px 15px;
}
.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.radio-pill {
  cursor: pointer;
}
.radio-pill input {
  position: absolute;
  opacity: 0;
}
.radio-pill span {
  display: inline-block;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  padding: 12px 20px;
  transition:
    background 0.15s,
    color 0.15s;
}
.radio-pill input:checked + span {
  background: var(--primary);
  color: #ffffff;
}
.radio-pill input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.turnstile-wrap {
  display: flex;
  justify-content: center;
}
.form-error {
  color: var(--semantic-down);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}
.btn-submit {
  display: block;
  width: 100%;
}
.btn-submit:disabled {
  background: #a9bcd4;
  cursor: not-allowed;
}
.form-success {
  text-align: center;
  padding: 48px 32px;
}
.success-title {
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}
.thanks-back {
  text-align: center;
  margin-top: 32px;
}

/* CTAバンド（会社サイトの青帯に合わせたブルー） */
.cta-band {
  background: var(--brand-deep);
  color: var(--on-dark);
  padding: 96px 0;
  text-align: center;
}
.cta-band .display-md {
  color: var(--on-dark);
}
.cta-sub {
  color: var(--on-white);
  margin: 16px 0 32px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* フッター */
.site-footer {
  background: var(--canvas);
  padding: 64px 0 24px;
}
.footer-brand {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}
.footer-brand span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
}
.footer-info {
  font-size: 14px;
  margin: 12px 0 4px;
}
.footer-link {
  font-size: 14px;
}
.footer-link a {
  color: var(--body);
}
.legal-band {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--hairline-soft);
  margin-top: 32px;
  padding-top: 24px;
}

/* アニメーション（reduced-motion 設定時は無効） */
html {
  scroll-behavior: smooth;
}
section {
  scroll-margin-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
  /* ヒーロー: 読み込み時に時間差でふわっと登場 */
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .hero-text > *,
  .hero-photo {
    animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-text > :nth-child(1) {
    animation-delay: 0.05s;
  }
  .hero-text > :nth-child(2) {
    animation-delay: 0.12s;
  }
  .hero-text > :nth-child(3) {
    animation-delay: 0.19s;
  }
  .hero-text > :nth-child(4) {
    animation-delay: 0.26s;
  }
  .hero-text > :nth-child(5) {
    animation-delay: 0.33s;
  }
  .hero-text > :nth-child(6) {
    animation-delay: 0.4s;
  }
  .hero-photo {
    animation-delay: 0.2s;
  }

  /* スクロール連動フェードイン（.reveal は main.js が付与） */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s ease,
      transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .feature-card,
  .card-img img,
  .btn {
    transition: none;
  }
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .display-lg {
    font-size: 44px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .brand-sub {
    display: none;
  }

  .sp-only {
    display: inline;
  }
  .pc-only {
    display: none;
  }

  .display-lg {
    font-size: 36px;
  }
  .display-md {
    font-size: 30px;
  }

  .hero {
    padding: 48px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .event-ticket {
    width: 100%;
    gap: 2px 10px;
    padding: 12px 16px;
  }
  .ticket-label {
    font-size: 12px;
  }
  .ticket-dates {
    font-size: 16px;
  }
  .ticket-time {
    font-size: 14px;
  }
  .hero-photo {
    order: -1;
  }
  .price-value {
    font-size: 36px;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
  }

  .section,
  .cta-band {
    padding: 56px 0;
  }
  .section-head {
    margin-bottom: 32px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card-body {
    padding: 20px;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }
  .spec-row dd {
    text-align: right;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .slider-prev {
    left: 8px;
  }
  .slider-next {
    right: 8px;
  }

  .form-card {
    padding: 24px 20px;
  }
  .radio-group .radio-pill {
    flex: 1;
  }
  .radio-pill span {
    width: 100%;
    text-align: center;
  }

  .cta-actions .btn {
    width: 100%;
  }
}
