/* VocaMesh 公開サイト共通スタイル
 *
 * 配色はアプリ本体のテーマに合わせている（ダーク面 #010F28 / シード色 teal）。
 * 外部フォント・スクリプトには一切依存しない。
 */

:root {
  --bg: #fefefe;
  --surface: #ffffff;
  --text: #1b2320;
  --muted: #5a6663;
  --accent: #00695c;
  --accent-text: #fefefe;
  --border: #e2e6e4;
  --danger: #b3261e;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .04);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #010f28;
    --surface: #0a1a38;
    --text: #e8edf2;
    --muted: #9ba9bd;
    --accent: #4dd0c4;
    --accent-text: #010f28;
    --border: #1c2c4a;
    --danger: #ff8a80;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 64px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
body:lang(ja) { line-height: 1.85; }

.wrap { max-width: 720px; margin: 0 auto; }

/* ヘッダー */
header { padding: 48px 0 8px; text-align: center; }
.logo { width: 180px; height: auto; }
.logo-light { display: block; margin: 0 auto; }
.logo-dark { display: none; margin: 0 auto; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}
h1 {
  font-size: 1.55rem;
  line-height: 1.4;
  margin: 28px 0 6px;
  text-align: center;
  letter-spacing: .01em;
}
.dates,
.lead {
  margin: 0 0 32px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.7;
}
.lead { font-size: .95rem; }

/* 言語切り替え */
.lang {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}
.lang a {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: .87rem;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.lang a:hover { border-color: var(--accent); color: var(--accent); }
.lang [aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

/* 本文 */
.card {
  margin: 0 0 32px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.card p { margin: 0; }

ol.terms { margin: 0; padding: 0; list-style: none; counter-reset: item; }
ol.terms li {
  position: relative;
  margin: 0 0 26px;
  padding-left: 46px;
  counter-increment: item;
}
ol.terms li::before {
  content: counter(item);
  position: absolute;
  top: 4px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
}
ol.terms li h2 {
  margin: 0 0 2px;
  font-size: 1.03rem;
  line-height: 1.5;
}
ol.terms li p { margin: 0; }

main a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
strong { color: var(--accent); font-weight: 700; }

/* フォーム */
.field { margin: 0 0 22px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .92rem;
  font-weight: 600;
}
.field .hint {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.6;
}
.field .req {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: .68rem;
  font-weight: 700;
  vertical-align: 2px;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
textarea { min-height: 190px; resize: vertical; }

/* スパム対策用の見えない項目（人間には見せない） */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
button[type="submit"]:hover { opacity: .88; }

.alert {
  margin: 0 0 28px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
}
.alert.error { border-left-color: var(--danger); }
.alert h2 { margin: 0 0 4px; font-size: 1rem; }
.alert p { margin: 0; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.alert.error strong { color: var(--danger); }

/* フッター */
footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}
footer p { margin: 0 0 6px; }
footer a { color: var(--muted); }
