/* ========================================
   Base Styles - リセット＆共通ユーティリティ
   ======================================== */

/* Basic Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   Anchor Scroll Offset
   - sticky ヘッダーにセクションが被らないよう、
     アンカージャンプ時にヘッダー分の余白を確保する。
   - PC/SP の出し分けブレークポイント(1040px)に合わせる。
   ======================================== */
html {
  scroll-padding-top: 120px;
}

@media (max-width: 1040px) {
  html {
    scroll-padding-top: 80px;
  }
}

/* ========================================
   PC/SP Display Utility
   - PC表示用: .pc-only
   - SP表示用: .sp-only
   ======================================== */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

@media (max-width: 1040px) {
  .pc-only {
    display: none;
  }
  
  .sp-only {
    display: block;
  }
}

/* ========================================
   Release Control Utility（.is-hidden）
   - 公開タイミングがまだ来ていない要素を一時的に非表示にする
   - 特定小型の公開切り替え手順: docs/08-special-vehicle-launch.md
   - 表示するときは対象要素から .is-hidden を外す
   - PC/SPの .pc-only / .sp-only より優先して隠すため !important を付与
   - ※ app-floating-banner の is-hidden は JS 開閉用で、上記とは無関係
   ======================================== */
.is-hidden {
  display: none !important;
}

/* ========================================
   Layout Utilities
   ======================================== */
.container {
  max-width: var(--container-max-width, 1200px);
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ========================================
   Common Component Styles
   ======================================== */
.card {
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #333;
  color: var(--color-base-white);
  text-decoration: none;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  border: none;
  font-size: var(--font-size-base);
  transition: background-color 0.2s ease, opacity 0.2s ease;
  width: 100%;
}

.btn:hover {
  background-color: var(--color-base-safety-red);
  opacity: 1;
}

.btn--primary {
  background-color: var(--color-key-blue);
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--color-key-blue);
  color: var(--color-key-blue);
}

/* ========================================
   Common Layout Components
   ======================================== */
.header {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.footer {
  padding: 20px 0;
  background: #f9f9f9;
  margin-top: 40px;
}

main {
  min-height: calc(100vh - var(--header-height) - 200px);
}
