/* necomemo サイト（2026-11-22）。色はアプリの Palette（ios/Shared/Tokens.swift）にそろえる。フォントは端末のもの */
:root {
  --paper: #F7F3EE;
  --card: #FFFFFF;
  --ink: #1A1613;
  --muted: #6F675F;
  --line: rgba(26, 22, 19, 0.08);
  --accent: #16A08C;
  --accent-text: #0F7F70;
  --accent-tint: #EAF6F4;
  --danger: #E0504A;
  --radius: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt" 1;
  letter-spacing: 0.02em;
  word-break: auto-phrase; /* 文節で折り返す（Chrome。Safari は効かない） */
  overflow-wrap: anywhere;
}
a { color: var(--accent-text); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ヘッダー・フッター */
.site-header { padding: 18px 0; }
.site-header .wrap { max-width: 1080px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 30px; width: auto; display: block; }
.lang { font-size: 14px; color: var(--muted); text-decoration: none; }
.site-footer { margin-top: 72px; padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* 見出し・本文 */
h1 { font-size: 30px; line-height: 1.4; margin: 24px 0 8px; letter-spacing: 0.01em; }
h2 { font-size: 20px; line-height: 1.5; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, li { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.dates { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* 規約などの本文 */
.doc ol, .doc ul { padding-left: 1.4em; }
.doc ol ol, .doc ul ul, .doc ol ul { margin-top: 8px; }
.doc .toc { background: var(--card); border-radius: var(--radius); padding: 16px 20px 8px; margin: 16px 0 8px; }
.doc .toc ol { margin: 0; padding-left: 1.2em; }
.doc .toc li { margin-bottom: 4px; font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.doc th { width: 34%; color: var(--muted); font-weight: 600; }
.doc tr:last-child th, .doc tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .doc th, .doc td { display: block; width: auto; }
  .doc th { padding-bottom: 0; border-bottom: 0; }
}

/* トップ */
.hero { text-align: center; padding: 40px 0 16px; }
.hero .mark { width: 96px; height: auto; }
.hero h1 { font-size: 34px; margin-top: 20px; }
.hero .lead { font-size: 18px; color: var(--muted); }
.store { display: inline-block; margin-top: 12px; }
.store img { height: 54px; width: auto; display: block; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 40px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 20px; }
.feature h2 { font-size: 17px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* パネル・ボタン */
.panel { background: var(--card); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(0.96); }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* お問い合わせ */
.form { background: var(--card); border-radius: var(--radius); padding: 24px 20px; margin-top: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid transparent; border-radius: 14px; padding: 12px 14px;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--danger); font-weight: 700; }
.done { text-align: center; padding: 32px 20px; }

/* 招待 */
.invite-main { padding: 48px 0; }
.invite-main .hero { padding-top: 0; }
.steps { list-style: none; padding: 0; margin: 24px 0; }
.steps li { display: flex; gap: 16px; background: var(--card); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-text); font-weight: 700; display: grid; place-items: center; }
.steps h2 { font-size: 17px; margin: 2px 0 10px; }
.invite-gone { color: var(--danger); font-weight: 700; }

/* 更新履歴 */
.release { background: var(--card); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.release h2 { margin: 0 0 4px; font-size: 18px; }
.release ul { margin: 8px 0 0; padding-left: 1.2em; }

.nw { white-space: nowrap; }
.invite-main .hero h1 { font-size: 26px; }
@media (max-width: 400px) { .hero h1 { font-size: 28px; } }
