/* ========================================
   Theme Variables
   サイト全体で使う色・共通値
======================================== */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #e5e7eb;
  --soft: #eff6ff;
}

/* ========================================
   Base
   全体の基本設定
======================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

/* ========================================
   Header
   固定ヘッダー・ナビゲーション
======================================== */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--primary);
}

/* ========================================
   Hero
   トップの紹介エリア
======================================== */
.hero {
  padding: 72px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.label {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h2 {
  margin: 12px 0 20px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.lead {
  color: var(--muted);
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 12px;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

/* ========================================
   Buttons
   共通ボタン
======================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.button.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: var(--surface);
}

/* ========================================
   Phone Mock
   トップ右側のスマホ風表示
======================================== */
.hero-card {
  display: flex;
  justify-content: center;
}

.phone-mock {
  width: min(320px, 100%);
  min-height: 560px;
  border-radius: 36px;
  background: #111827;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.25);
  color: white;
}

.phone-top {
  width: 92px;
  height: 6px;
  border-radius: 99px;
  background: #374151;
  margin: 0 auto 32px;
}

.scan-box {
  height: 260px;
  border: 2px dashed #60a5fa;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.15);
}

.result-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: white;
  color: var(--text);
}

.result-card small {
  display: block;
  color: var(--muted);
}

.result-card.muted {
  background: #e5e7eb;
}

/* ========================================
   Sections
   各セクション共通
======================================== */
.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--surface);
}

.section h2 {
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.section-lead {
  color: var(--muted);
  margin-bottom: 28px;
}

/* ========================================
   Feature Cards
   機能紹介カード
======================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.alt .card {
  background: var(--bg);
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ========================================
   Screenshots
   アプリ画面スクリーンショット
======================================== */
.screenshots {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.screenshot-card {
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.alt .screenshot-card {
  background: var(--bg);
}

/* Scan画面を少し強調 */
.screenshot-card:first-child {
  border: 2px solid #ff6600;
}

.screenshot-card h3 {
  margin: 0 0 8px;
}

.screenshot-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.placeholder {
  padding: 10px;
  height: 320px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--soft), #e0f2fe);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 16px;
}

.placeholder img {
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 20px;
}

/* ========================================
   Usage Steps
   使い方ステップ
======================================== */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: 0.2s;
}

.steps li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
}

.steps li strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.steps li span {
  display: block;
  line-height: 1.8;
  color: #475569;
}

/* ========================================
   Video
   YouTube操作動画
======================================== */
.video-card {
  margin-top: 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 16px;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 700;
  text-align: center;
}

/* ========================================
   Manual / Support
   マニュアルPDF・問い合わせ導線
======================================== */
.link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.link-card,
.support-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.link-card {
  transition: 0.2s;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.link-card h3,
.support-card h3 {
  margin-bottom: 12px;
}

.link-card p,
.support-card p {
  color: #475569;
  line-height: 1.8;
}

.support-card {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
}

/* ========================================
   Test Section
   内部テスト募集
======================================== */

.test-card {
    max-width: 720px;
    margin: 32px auto 0;
    text-align: left;
}

    /* タイトルのみ中央 */
    .test-card h3 {
        text-align: center;
        margin-bottom: 24px;
    }

/* 説明文 */
.test-description {
    line-height: 1.9;
    color: #334155;
}

/* 注意書き */
.test-note {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.8;
    color: #64748b;
}

/* ボタン中央 */
.test-button {
    margin-top: 28px;
    text-align: center;
}


.test-policy-link {
    margin-top: 14px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 14px;
}

.test-policy-link a {
    color: #f97316;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(249,115,22,0.35);
    transition: all 0.2s ease;
}

.test-policy-link a:hover {
    color: #c2410c;
    border-bottom-color: #c2410c;
}

/* ========================================
   Notice / Links / Privacy
   注意事項・リンク・プライバシーポリシー
======================================== */
.notice-list {
  padding-left: 1.2em;
  color: var(--muted);
}

.link-list {
  display: grid;
  gap: 12px;
}

.link-list a {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 700;
}

.policy h3 {
  margin-top: 32px;
}

.updated {
  margin-top: 40px;
  color: var(--muted);
}

/* ========================================
   Footer
   フッター
======================================== */
.footer {
  padding: 28px 0;
  background: #111827;
  color: #d1d5db;
  font-size: 14px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
}

/* ========================================
   Responsive
   スマホ・タブレット表示
======================================== */
@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

  .link-cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0;
  }
}

@media (max-width: 560px) {
  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .screenshot-card {
    width: 100%;
    max-width: 280px;
  }

  .placeholder {
    height: 360px;
  }
}