/* こどもの杜 会員ページ — ブランド: web-brand-kits.md「こどもの杜（学童・スクール）」の実測値
   緑 #5EB93C / 濃緑 #33801A / 薄緑 #EFF8EA / イエロー #FFF000（マーカー・面のみ） / 本文 #333 / 白
   書体: 見出し M PLUS Rounded 1c 800（見出しのみ）・本文 Noto Sans JP */
:root {
  --tint: #EFF8EA;
  --tint-2: #F7FBF4;
  --brand: #5EB93C;
  --strong: #33801A;
  --accent: #FFF000;
  --ink: #333333;
  --sub: #6B7A66;
  --line: #D8E7D1;
  --bg: #FFFFFF;
  --danger: #B3261E;
  --danger-bg: #FBEBEA;
  --radius: 12px;
  --focus: 0 0 0 3px rgba(94, 185, 60, .45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: 15px; line-height: 1.75; font-feature-settings: "palt";
}
a { color: var(--strong); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: none; box-shadow: var(--focus); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* 上部 */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--bg); border-bottom: 4px solid var(--brand);
  position: sticky; top: 0; z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--strong); }
.logo { height: 34px; width: auto; display: block; }   /* 本サイトのヘッダー用ロゴ（kodo-mori.jp header_logo_s.svg）2026-10-31 */
.brand-name { line-height: 1.1; padding-left: 10px; border-left: 1px solid var(--line); }
.brand-name small { display: block; font-family: "Noto Sans JP", sans-serif; font-weight: 700; font-size: 12px; color: var(--sub); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 14px; font-size: 13px; flex-shrink: 0; }
.nav a, .nav .linklike { white-space: nowrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.brand { min-width: 0; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav a[aria-current="page"] { border-bottom-color: var(--brand); font-weight: 700; }
.inline { display: inline; }
.linklike { background: none; border: 0; padding: 4px 0; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike.danger { color: var(--danger); }
.nav .linklike { text-decoration: none; color: var(--sub); border-bottom: 2px solid transparent; }
.nav .linklike:hover { color: var(--ink); }

/* ページ */
.page { max-width: 560px; margin: 0 auto; padding: 20px 16px 48px; }
.hero { padding: 8px 0 18px; }
.hero.compact { padding-bottom: 10px; }
.title { margin: 0 0 10px; font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif; font-weight: 800; font-size: 26px; line-height: 1.3; color: var(--ink); }
.marker { background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); padding: 0 2px; }
.lead { margin: 0; color: var(--sub); font-size: 14px; }
.who { margin: 6px 0 0; font-size: 14px; }
.back { display: inline-block; margin-bottom: 8px; font-size: 13px; text-decoration: none; color: var(--sub); }

/* 通知 */
.notice { background: var(--tint); border-left: 4px solid var(--brand); padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 14px; font-size: 14px; }
.notice.big { padding: 16px; }
.notice.big strong { display: block; font-size: 16px; margin-bottom: 4px; }
.notice p { margin: 4px 0 0; }
.alert { background: var(--danger-bg); border-left: 4px solid var(--danger); color: #5a1a15; padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 14px; font-size: 14px; }
.alert.soft { background: #FFFBE0; border-left-color: #E0C200; color: #5c4a00; }
.small { font-size: 12px; color: var(--sub); }
.empty { padding: 28px 16px; text-align: center; color: var(--sub); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty p { margin: 0 0 6px; }

/* フォーム */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.form .field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.field > span em { font-style: normal; font-weight: 400; color: var(--sub); margin-left: 6px; }
.field input { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #B9CDB0; border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus { border-color: var(--brand); }
.btn {
  display: inline-block; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--strong); color: #fff; border: 2px solid var(--strong); border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 15px; padding: 11px 18px; line-height: 1.3;
}
.btn:hover { background: #2a6b15; border-color: #2a6b15; }
.btn.wide { width: 100%; padding: 14px; font-size: 16px; }
.btn.ghost { background: #fff; color: var(--strong); }
.btn.ghost:hover { background: var(--tint); }
.btn.small-btn { padding: 7px 12px; font-size: 13px; }
.btn.disabled, .btn[disabled] { background: #E6EBE3; border-color: #E6EBE3; color: #8a948a; cursor: default; }
.form > .btn { width: 100%; margin-top: 4px; }
.sub-actions { margin: 14px 0 22px; text-align: center; }
.sub-actions .btn { width: 100%; }

/* 安心・きまり */
.trust, .howto { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); }
.trust h2, .howto h2 { font-size: 14px; margin: 0 0 8px; color: var(--strong); }
.trust ul, .howto ul { margin: 0; padding-left: 1.2em; font-size: 13px; color: var(--sub); }
.trust li, .howto li { margin: 4px 0; }

/* ホーム: お子さまごとの連絡帳 */
.child { margin: 18px 0 26px; }
.child-name { margin: 0 0 8px; font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif; font-weight: 800; font-size: 20px; color: var(--strong); padding-left: 12px; border-left: 6px solid var(--brand); line-height: 1.3; }
.child-name small { font-family: "Noto Sans JP", sans-serif; font-weight: 400; font-size: 13px; color: var(--sub); }
.classes { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.class-row { display: flex; gap: 12px; align-items: center; padding: 14px 14px; background: #fff; }
.class-row + .class-row { border-top: 1px solid var(--line); }
.class-row:nth-child(even) { background: var(--tint-2); }
.class-main { flex: 1; min-width: 0; }
.class-title { font-weight: 700; font-size: 16px; }
.class-meta { font-size: 12px; color: var(--sub); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pill { display: inline-block; background: var(--tint); color: var(--strong); border-radius: 999px; padding: 0 8px; font-size: 11px; }
.class-next { margin-top: 4px; font-size: 13px; }
.class-next.muted { color: var(--sub); font-size: 12px; }
.class-action .btn { white-space: nowrap; padding: 10px 12px; font-size: 14px; }
.mine { list-style: none; margin: 8px 0 0; padding: 8px 10px; background: #FFFBE0; border-radius: 8px; font-size: 13px; }
.mine li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.mine li + li { margin-top: 4px; }
.mine-date { font-weight: 700; }
.mine-note { color: var(--sub); }

/* 欠席登録 */
.dates { border: 0; padding: 0; margin: 0 0 6px; }
.dates legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.date { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; cursor: pointer; }
.date:has(input:checked) { border-color: var(--brand); background: var(--tint); box-shadow: inset 0 0 0 1px var(--brand); }
.date.off { color: #9aa397; background: #F7F8F6; cursor: default; }
.date input { width: 20px; height: 20px; margin: 0; accent-color: var(--strong); }
.date-label { font-weight: 700; font-size: 15px; }
.date-note { margin-left: auto; font-size: 12px; color: var(--sub); }
.form .field { margin-top: 16px; }

/* 履歴 */
.history { list-style: none; margin: 0; padding: 0; }
.hist { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hist-date { grid-column: 1 / -1; font-weight: 700; color: var(--strong); font-size: 14px; }
.hist.future .hist-date { color: var(--strong); }
.hist.canceled .hist-date, .hist.canceled .hist-title { color: #9aa397; text-decoration: line-through; }
.hist-title { font-size: 15px; }
.hist-note { font-size: 13px; color: var(--sub); }
.hist-meta { font-size: 12px; color: var(--sub); }
.hist-action { align-self: center; }

/* フッター */
.foot { max-width: 560px; margin: 0 auto; padding: 18px 16px 28px; font-size: 12px; color: var(--sub); border-top: 1px solid var(--line); }
.foot p { margin: 2px 0; }

@media (max-width: 600px) {
  .brand-name { display: none; }   /* 狭い画面ではロゴだけ */
}
@media (max-width: 340px) {
  .logo { height: 28px; }   /* 極端に狭い画面ではロゴを少し小さく */
}
@media (max-width: 420px) {
  .class-row { flex-direction: column; align-items: stretch; }
  .class-action .btn { width: 100%; }
  .nav { gap: 10px; }
}
