/* この名字が好きだから:共通スタイル */
:root {
  --moss-1: #6A7A5E; --moss-2: #46553E; --moss-3: #2E3A29;
  --shu: #B8432F; --shu-dark: #5E1A12; --shu-1: #C8452F; --shu-2: #AE3523;
  --washi: #F4EEE1; --washi-2: #FBF7EE; --washi-3: #EFE7D6; --cream: #F3E6CF;
  --ink: #1E1B18; --ink-2: #4F483F; --ink-3: #5E564B;
  --line: #E2D8C3; --line-2: #CFC4B0; --ai: #1E3557;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  color: var(--ink);
  background: var(--washi);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--ai); }
a:hover { color: var(--shu); }
button, input, select, textarea { font: inherit; color: inherit; }
.mincho { font-family: 'Shippori Mincho B1', serif; font-weight: 800; }
.fude { font-family: 'Yuji Syuku', serif; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 24px; border: none;
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-shu { background: var(--shu); color: #fff; box-shadow: 0 6px 16px rgba(184,67,47,0.28); }
.btn-shu:hover { color: #fff; background: #A63A27; }
.btn-ai { background: var(--ai); color: #fff; }
.btn-ai:hover { color: #fff; background: #16294A; }
.btn-line { background: transparent; color: var(--ai); border: 1.5px solid var(--ai); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-2);
  background: rgba(251,247,238,0.95); display: inline-flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer;
}

/* 読み物ページ(規約など) */
.page-head {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid var(--line); background: var(--washi);
  position: sticky; top: 0; z-index: 5;
}
.page-head a.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; font-size: 14px; font-weight: 500; text-decoration: none; }
.page-head h1 { margin: 0; font-size: 18px; }
.doc { max-width: 720px; margin: 0 auto; padding: 24px 20px 64px; line-height: 1.85; font-size: 15px; }
.doc h2 { font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: 18px; margin: 36px 0 10px; color: var(--shu-dark); }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 12px 0; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--washi-3); white-space: nowrap; }
.doc .meta { color: var(--ink-3); font-size: 13px; }

.site-foot { padding: 28px 20px 40px; text-align: center; font-size: 12px; color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.site-foot a { color: var(--ink-3); }

/* フォーム */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .label { font-size: 14px; font-weight: 700; }
.input, .select, .textarea {
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--washi-2);
  padding: 0 14px; font-size: 16px; color: var(--ink);
}
.input, .select { height: 50px; }
.textarea { padding: 12px 14px; line-height: 1.7; resize: vertical; min-height: 110px; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--ai); outline-offset: 1px; }
.hint { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.7; min-height: 44px; padding-top: 10px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--ai); }
.check.req input { accent-color: var(--shu); }
.error-box { background: #FBEBEB; color: #8E1F1F; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.6; }
.ok-box { background: #E5F4E4; color: #1F5A1F; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.6; }

:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }
