/* ============================================================
   力は宿るポータル 共通の見た目
   方針：シンプルで、かっこよく。飾りは足さず、文字の大きさ・太さ・余白で見せる
   ・色は「墨・生成り・朱」の3つ。朱は大事なところだけ
   ・線は細く、影は使わない。角は少しだけ丸める
   ・スマホの夜間モードでは、墨と生成りが入れ替わる
   ============================================================ */
:root {
  --bg: #f4f2ee;          /* 生成り */
  --card: #ffffff;
  --ink: #141413;         /* 墨 */
  --muted: #6e6a63;
  --line: #e2ded6;
  --accent: #c8341c;      /* 朱（力は宿る） */
  --line-green: #06c755;  /* LINE の緑（LINE ボタンだけ） */
  --danger: #b42318;
  --ok: #067647;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0e; --card: #191918; --ink: #f3f1ec; --muted: #a29d94;
    --line: #2c2b29; --accent: #ec5a3f; --danger: #f97066; --ok: #47cd89;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  line-height: 1.75; -webkit-text-size-adjust: 100%;
  font-feature-settings: "palt";
}
main { max-width: 480px; margin: 0 auto; padding: 40px 20px 56px; }

/* 看板 */
.title { margin: 0 0 36px; }
.title .en {
  margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .22em; color: var(--muted);
}
.brand {
  margin: 0 0 24px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--accent);
}
.title .brand {
  margin: 0; font-size: 26px; font-weight: 800; letter-spacing: .02em; color: var(--ink); line-height: 1.3;
}
.title .brand::after {
  content: ""; display: block; width: 28px; height: 3px; background: var(--accent); margin-top: 14px;
}

h1 { font-size: 22px; font-weight: 800; margin: 0 0 12px; line-height: 1.4; letter-spacing: .01em; }
h2.sect {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--muted); margin: 0 0 4px;
}
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }
.error { color: var(--danger); font-weight: 600; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; margin: 0 0 16px;
}

/* ボタン */
.btn {
  display: block; width: 100%; padding: 15px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 16px; font-weight: 700; text-align: center; text-decoration: none;
  cursor: pointer; margin: 0 0 10px; font-family: inherit;
  transition: background-color .15s, border-color .15s, transform .05s;
}
.btn:hover:not(:disabled) { border-color: var(--ink); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.btn-line:hover:not(:disabled) { border-color: var(--line-green); filter: brightness(.95); }

/* ホームの大きなボタン：左寄せの見出し＋矢印 */
.menu { padding: 12px; }
.btn-big {
  position: relative; text-align: left; padding: 22px 56px 22px 22px; margin-bottom: 12px;
  background: var(--ink); border-color: var(--ink); color: var(--bg);
}
.btn-big .big { display: block; font-size: 22px; font-weight: 800; line-height: 1.3; }
.btn-big .sub { display: block; font-size: 13px; font-weight: 500; opacity: .7; margin-top: 4px; }
.btn-big .arrow {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; transition: transform .15s;
}
.btn-big:hover .arrow { transform: translate(4px, -50%); }
.menu .btn:not(.btn-big) {
  text-align: left; font-size: 15px; padding: 13px 18px; margin-bottom: 8px; position: relative;
}
.menu .btn:not(.btn-big)::after { content: "→"; position: absolute; right: 18px; color: var(--muted); font-weight: 400; }
.menu > :last-child, .menu > div > :last-child { margin-bottom: 0; }

/* 本人確認 */
.who { font-size: 22px; font-weight: 800; margin: 6px 0 20px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 6px 6px 0; }

/* お知らせ */
.list { list-style: none; padding: 0; margin: 0; }
.list li { border-top: 1px solid var(--line); padding: 14px 0; }
.list li:first-child { border-top: 0; }
.ann-title { font-weight: 700; }
.ann-body { white-space: pre-wrap; font-size: 15px; margin-top: 4px; }

footer { text-align: center; margin-top: 28px; }
footer button { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 14px; cursor: pointer; font-family: inherit; }

/* 本部の画面で共通に使う小物 */
input, select, textarea { font-family: inherit; }
a { color: var(--accent); }
.btn { text-decoration: none; }
