/* キロログ サイト共通スタイル
   - フレームワーク・Web フォント・外部 CDN は一切使わない（外部リクエストを発生させない）
   - ライト／ダーク両対応。アプリ本体が両対応のため揃える */

:root {
  --amber: #ffb020;
  --teal: #0e7a5f;
  --dark: #15171c;

  --bg: #ffffff;
  --bg-sub: #f5f6f8;
  --fg: #15171c;
  --fg-sub: #5a6070;
  --border: #dfe2e8;
  --accent: var(--teal);
  --accent-fg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171c;
    --bg-sub: #1d2028;
    --fg: #eceef2;
    --fg-sub: #a4abb9;
    --border: #2e323d;
    /* ダーク背景ではティールのコントラストが不足するため明度を上げる */
    --accent: #3fbf99;
    --accent-fg: #10131a;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo,
    sans-serif;
  line-height: 1.8;
  font-size: 16px;
}

.wrap {
  width: min(100% - 2.5rem, 46rem);
  margin-inline: auto;
}

a {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--bg);
  padding: 0.5rem 1rem;
  border: 2px solid var(--accent);
  border-radius: 6px;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--fg);
}

.wordmark-mark {
  color: var(--amber);
  margin-inline: 0.06em;
}

.nav {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.925rem;
}

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

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

.hero {
  background: var(--dark);
  color: #eceef2;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero .wordmark-large {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}

.hero .wordmark-large .wordmark-mark {
  color: var(--amber);
}

.hero p {
  margin: 0 auto;
  max-width: 34rem;
  color: #c3c8d4;
}

.hero-lead {
  font-size: 1.125rem;
  color: #eceef2 !important;
}

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

section {
  padding: 3rem 0;
}

section + section {
  border-top: 1px solid var(--border);
}

h1,
h2,
h3 {
  line-height: 1.5;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
}

h2 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.05rem;
  margin: 2rem 0 0.5rem;
}

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

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.features li {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.features strong {
  display: block;
  margin-bottom: 0.35rem;
}

.features p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--fg-sub);
}

/* ---- バッジ・ボタン ---- */

.cta {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background: var(--amber);
  color: #15171c;
  font-weight: 700;
  text-decoration: none;
}

.cta-pending {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.7rem 1.5rem;
  border: 1px dashed #6b7280;
  border-radius: 999px;
  color: #c3c8d4;
  font-size: 0.925rem;
}

/* ---- FAQ ---- */

.faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.6rem;
  background: var(--bg-sub);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details > *:not(summary) {
  margin-bottom: 0;
}

/* ---- フォーム ---- */

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form-field .hint {
  font-size: 0.85rem;
  color: var(--fg-sub);
  margin: 0.25rem 0 0;
}

.req {
  color: #c0392b;
  font-size: 0.8rem;
  margin-left: 0.35rem;
}

/* 確認チェックボックス */
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.7;
  cursor: pointer;
}

.check-field input[type="checkbox"] {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.3rem;
  accent-color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  .req {
    color: #ff8a7a;
  }
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 1rem; /* iOS で入力時に拡大されないよう 16px 以上を保つ */
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button[type="submit"] {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* honeypot: 人間には見えず、支援技術からも隠す */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  margin-top: 1.25rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-status[data-state="error"] {
  background: #fdecea;
  color: #8c1d13;
}

.form-status[data-state="ok"] {
  background: #e8f5ef;
  color: #0b5c47;
}

@media (prefers-color-scheme: dark) {
  .form-status[data-state="error"] {
    background: #3a1d1a;
    color: #ffb4a8;
  }
  .form-status[data-state="ok"] {
    background: #12332a;
    color: #7fe0c0;
  }
}

.form-status:empty {
  display: none;
}

/* ---- 表・本文 ---- */

.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.925rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.prose h2 {
  margin-top: 2.5rem;
}

.table-scroll {
  overflow-x: auto;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3.5rem;
  background: var(--bg-sub);
  font-size: 0.9rem;
  color: var(--fg-sub);
}

.footer-nav {
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-owner {
  margin: 0 0 0.25rem;
}

.footer-note {
  margin: 0;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
