/* ========== 基本 ==========
   配色は lib/core/themes/app_theme.dart のアプリ本体カラーに合わせている。
   アプリ側のパレットを変えるときは、ここも一緒に直すこと。
   Task 4(プライバシー・利用規約)、Task 5(英語版)がこの変数名を読むので、
   名前は変えないこと。 */
:root {
  --paper: #F1EDE4;
  --ink: #17402E;
  --green: #2F7D4F;
  --accent: #E8762B;
  --surface: #FBF9F4;
  --sunken: #E9E4D8;
  --border: #DCD7CB;
  --text: #2B2A26;
  --muted: #6F6B60;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
}
a:hover {
  text-decoration: none;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 237, 228, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.brand-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.5px;
}

/* ========== Hero ========== */
.hero {
  background: var(--sunken);
  padding: 64px 0 56px;
  text-align: center;
}
.hero-title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 18px;
  color: var(--ink);
  text-wrap: balance;
}
.hero-desc {
  font-size: 16px;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.btn:hover {
  text-decoration: none;
  opacity: 0.88;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* ========== Section 共通 ========== */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 40px;
  color: var(--ink);
}

/* ========== こんなときに ========== */
.scene-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.scene-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15px;
}
.scene-item::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* ========== できること ========== */
.feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.feature:last-child {
  border-bottom: none;
}
.feature-text-only {
  grid-template-columns: 1fr;
}
.feature-shots {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.feature-shots img {
  width: 100%;
  max-width: 160px;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.feature-desc {
  font-size: 14.5px;
  color: var(--text);
}

/* ========== プライバシー ========== */
.privacy-lead {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 15px;
  color: var(--text);
}
.privacy-list {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14.5px;
}
.privacy-mark {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 900;
}

/* ========== Footer ========== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 32px 0 24px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 13px;
  color: rgba(241, 237, 228, 0.85);
}
.footer-nav a:hover {
  color: #fff;
}
.footer-contact {
  width: 100%;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(241, 237, 228, 0.2);
  font-size: 12.5px;
  color: rgba(241, 237, 228, 0.65);
  text-align: center;
}
.footer-contact a {
  color: rgba(241, 237, 228, 0.85);
}

/* ========== Responsive ========== */
@media (max-width: 640px) {
  .hero {
    padding: 48px 0 40px;
  }
  .hero-title {
    font-size: 26px;
  }
  .scene-list {
    grid-template-columns: 1fr;
  }
  .feature {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .feature-shots {
    order: -1;
  }
  .section {
    padding: 48px 0;
  }
  .section-title {
    font-size: 20px;
  }
}
