@charset "UTF-8";

/*
 * EveryAlarmEX 公式サイト共通スタイル。
 *
 * 配色はアプリ本体の lib/theme/app_colors.dart と揃える(色相150系の緑)。
 * 変更するときは、文字と背景のコントラスト比が WCAG AA
 * (通常文字 4.5:1 / 大きな文字・UI部品 3:1)を下回らないか確認すること。
 */

:root {
  /* アプリ本体と同じ基準色 */
  --green-base: #84ffc1;
  --green-light: #b8ffdb;
  --green-pale: #cfffe6;
  --green-primary: #0a7a42;
  --green-deep: #0b4126;
  --green-surface-dark: #0e4e2e;

  --bg: #f2fff8;
  --surface: #ffffff;
  --surface-alt: #eafff3;
  --border: #c6ecd8;

  --text: #0d2b1c;
  --text-muted: #3f5c4e;
  --link: #076536;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(11, 65, 38, 0.06), 0 8px 24px rgba(11, 65, 38, 0.08);
  --maxw: 1080px;

  --font: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--green-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ---------------- ヘッダー ---------------- */

.site-header {
  background: var(--green-pale);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-deep);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.nav a {
  color: var(--green-deep);
  text-decoration: none;
  padding: 4px 2px;
}

.nav a:hover {
  text-decoration: underline;
}

.lang-switch {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------------- ヒーロー ---------------- */

.hero {
  background: linear-gradient(170deg, var(--green-base) 0%, var(--green-light) 55%, var(--bg) 100%);
  padding-block: 56px 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
  color: var(--green-deep);
}

.hero .subtitle {
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 600;
  color: var(--green-primary);
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 1.02rem;
  margin: 0 0 28px;
  color: var(--text);
  max-width: 34em;
}

.hero-shots {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-shots img {
  width: 46%;
  max-width: 210px;
  border-radius: 18px;
  border: 1px solid rgba(11, 65, 38, 0.12);
  box-shadow: var(--shadow);
}

.hero-shots img:nth-child(2) {
  transform: translateY(22px);
}

/* ---------------- ボタン ---------------- */

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background 0.15s ease;
}

.btn:hover {
  background: #0b8447;
}

.btn-secondary {
  background: var(--surface);
  color: var(--green-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-alt);
}

.note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* ---------------- セクション ---------------- */

section {
  padding-block: 56px;
}

section.alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}

h2 {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  margin: 0 0 10px;
  color: var(--green-deep);
  line-height: 1.4;
}

h2 + .section-lead {
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 46em;
}

/* ---------------- 特徴カード ---------------- */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: var(--green-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.feature h3 svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--green-primary);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---------------- スクリーンショット一覧 ---------------- */

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shots li {
  text-align: center;
}

.shots img {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-inline: auto;
}

.shots figcaption,
.shots .caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ---------------- サポート ---------------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--green-deep);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card p + p {
  margin-top: 10px;
}

/* ---------------- フッター ---------------- */

.site-footer {
  background: var(--green-deep);
  color: #d8f7e6;
  padding-block: 36px 30px;
  font-size: 0.9rem;
}

.site-footer a {
  color: #a9f0cb;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.copyright {
  margin: 0;
  color: #9fd9bd;
  font-size: 0.85rem;
}

/* ---------------- 法務ページ ---------------- */

.legal {
  padding-block: 44px 64px;
}

.legal-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 22px 40px;
  box-shadow: var(--shadow);
}

.legal h1 {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  margin: 0 0 6px;
  color: var(--green-deep);
  line-height: 1.35;
}

.legal .meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 28px;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 36px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.legal h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 28px;
}

.legal h3 {
  font-size: 1.02rem;
  margin: 22px 0 6px;
  color: var(--green-primary);
}

.legal p,
.legal li {
  font-size: 0.97rem;
}

.legal ul,
.legal ol {
  padding-left: 1.4em;
}

.legal li {
  margin-bottom: 6px;
}

.legal .toc {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 8px;
}

.legal .toc p {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--green-deep);
}

.legal .toc ol {
  margin: 0;
  font-size: 0.92rem;
}

.callout {
  background: var(--surface-alt);
  border-left: 4px solid var(--green-primary);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0;
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 8px;
}

/* 表は狭い画面で横スクロールさせ、ページ本体を横に伸ばさない */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 0.92rem;
  background: var(--surface);
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface-alt);
  color: var(--green-deep);
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------------- レスポンシブ ---------------- */

@media (min-width: 600px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .shots {
    grid-template-columns: repeat(4, 1fr);
  }

  .legal-inner {
    padding: 40px 40px 52px;
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

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

  .hero {
    padding-block: 72px 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
