/*
 * Ray Kids school の画面の見た目（ホームページ ray-kids.com に合わせる。D61）
 * サーモンピンク #FF9999 とティール #73C3C3 が主役。差し色に青 #59B2FF、背景にクリーム・ピーチ。
 * 各画面の <style> のあとに読み込んで、色と形を上書きする。
 */
:root {
  --pink: #ff9999;
  --pink-dark: #e87d7d;
  --pink-light: #fff0f0;
  --teal: #73c3c3;
  --teal-dark: #4fa8a8;
  --teal-light: #eef8f8;
  --blue: #59b2ff;
  --peach: #ffcc99;
  --cream: #fbf8ec;
  --yellow: #f0dc8b;
  --ink: #4a4a4a;
  --green: #ff9999; /* 前の画面の「主の色」を、サイトのピンクに置き換える */
  --gray: #9a948e;
  --line: #f0e6dc;
  --red: #e0605e;
  --orange: #e09a3c;
}
body { background: var(--cream); color: var(--ink); font-family: Verdana, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Hiragino Sans", "PingFang SC", Meiryo, sans-serif; }
header { background: #fff; border-bottom: 2px solid var(--teal-light); box-shadow: 0 1px 6px rgba(115, 195, 195, 0.12); }
/* 文字を大きくした端末（130%など）でも、見出しを1文字ずつの縦長にしない。入らなければ言語のボタンを次の行へ（P4 のレビュー） */
header { flex-wrap: wrap; row-gap: 6px; }
header h1 { flex: 1 1 auto; min-width: 7em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header .langs { flex: 0 0 auto; }
h1 { display: flex; align-items: center; gap: 8px; color: var(--ink); letter-spacing: 0.02em; }
h1 .logo { width: 30px; height: 30px; border-radius: 6px; flex: none; }
h2 { display: flex; align-items: center; gap: 6px; color: var(--teal-dark); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 10px rgba(255, 153, 153, 0.08); }
.hint, .sub { color: var(--gray); }
.primary { background: var(--pink); border-radius: 999px; box-shadow: 0 3px 0 var(--pink-dark); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.primary:disabled { background: #f6cccc; box-shadow: none; }
.secondary { border: 1.5px solid var(--teal); color: var(--teal-dark); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
footer { background: rgba(255, 255, 255, 0.96); border-top: 2px solid var(--teal-light); }
.message { color: var(--teal-dark); }
.message.error, .error { color: var(--red); }
.langs button { border-radius: 999px; border-color: var(--line); white-space: nowrap; }
.langs button.on { background: var(--teal); border-color: var(--teal); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--pink); }
.nav button, .month button { border-radius: 999px; border-color: var(--line); color: var(--teal-dark); }
label.check input, input[type="radio"], input[type="checkbox"] { accent-color: var(--pink); }
label.field input, label.field select, label.field textarea, select, input[type="number"], input[type="text"], input[type="email"], input[type="date"], input[type="time"], textarea {
  border-color: #e6dcd2; border-radius: 10px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-light); border-color: var(--teal); }
.tag { background: var(--teal-light); color: var(--teal-dark); border-radius: 999px; }
.tag.warn { background: var(--pink-light); color: var(--red); }
.tag.info { background: #eaf4ff; color: #2f86d6; }
.tag.wait { background: #fff4e3; color: var(--orange); }
.tag.done, .badge.ok { background: var(--teal-light); color: var(--teal-dark); }
.badge { border-radius: 999px; }
.badge.wait { background: #fff4e3; color: var(--orange); }
.shift.me { border-color: var(--pink); background: var(--pink-light); }
.day.available { background: var(--teal-light); border-color: var(--teal); }
.day.available small { color: var(--teal-dark); }
.day.off { background: #fff4e3; border-color: var(--peach); }
.ok { border-color: var(--teal) !important; color: var(--teal-dark) !important; }
.change { border-color: var(--teal) !important; color: var(--teal-dark) !important; }
.recordBtn { border-color: var(--teal) !important; color: var(--teal-dark) !important; border-radius: 999px !important; }
.form .save, .save { background: var(--pink) !important; border-radius: 999px !important; }
.add { border-color: var(--teal) !important; color: var(--teal-dark) !important; border-radius: 999px !important; }
.switch input:checked + .slider { background: var(--pink); }
.friend { background: var(--teal) !important; border-radius: 999px !important; }
.empty { color: var(--gray); }
/* アイコン（Lucide。theme.js が data-icon に付ける） */
svg.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
h2 svg.icon { color: var(--pink); }
.primary svg.icon { width: 1.2em; height: 1.2em; }
.hidden { display: none !important; }
/* QR コードを画面いっぱいに出す（.qr-zoom を押すと開く。押すと閉じる） */
.qr-overlay { position: fixed; inset: 0; background: rgba(255, 255, 255, 0.98); z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 14px; }
.qr-overlay img { width: min(92vw, 80vh); height: auto; image-rendering: pixelated; }
.qr-overlay p { margin: 0; font-size: 15px; color: var(--ink); text-align: center; }
.qr-overlay .close { font-size: 14px; color: var(--gray); }
.qr-zoom { cursor: zoom-in; }
.url-box { display: block; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; word-break: break-all; -webkit-user-select: all; user-select: all; }

/* 顔写真（D109。photos.js） */
.rk-photos { margin-top: 8px; }
.rk-photo-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rk-photo-cell { position: relative; }
.rk-photo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #f1f1f1; display: block; }
.rk-photo.broken { opacity: 0.3; }
.rk-photo-del { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #ddd; background: #fff; color: #c0392b; font-size: 14px; line-height: 1; padding: 0; }
.rk-photo-add { margin-top: 8px; border-radius: 999px; padding: 8px 14px; font-size: 14px; background: #fff; border: 1.5px solid var(--teal, #6fbab4); color: var(--teal-dark, #3a8f8a); font-weight: bold; }
.rk-photo-hint, .rk-photo-none { font-size: 12px; color: #8a8a8a; margin: 6px 0 0; }
.rk-photo-zoom { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.rk-photo-big { max-width: 92vw; max-height: 74vh; border-radius: 12px; }
.rk-photo-track { display: flex; width: 100vw; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rk-photo-track::-webkit-scrollbar { display: none; }
.rk-photo-slide { flex: 0 0 100vw; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.rk-photo-dots { display: flex; gap: 6px; }
.rk-photo-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); }
.rk-photo-dots span.on { background: #fff; }
.rk-photo-nav { position: absolute; top: 45%; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.85); font-size: 24px; line-height: 1; }
.rk-photo-nav.prev { left: 8px; }
.rk-photo-nav.next { right: 8px; }
.rk-photo-close { border-radius: 999px; padding: 10px 24px; font-size: 15px; background: #fff; border: none; }

/* お知らせ（D112。notices.js） */
.rk-notices { margin: 0 0 10px; background: #fff; border: 1px solid var(--line, #e5e5e5); border-radius: 12px; }
.rk-notices-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: none; background: none; padding: 10px 12px; font-size: 15px; font-weight: bold; text-align: left; color: inherit; }
.rk-notices-badge { background: #e0605e; color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.rk-notices-list { border-top: 1px solid var(--line, #e5e5e5); max-height: 60vh; overflow-y: auto; }
.rk-notice { padding: 10px 12px; border-bottom: 1px solid #f2f2f2; font-size: 14px; }
.rk-notice.unread { background: #fbf8ec; }
.rk-notice-meta { font-size: 12px; color: #8a8a8a; display: flex; gap: 8px; align-items: center; }
.rk-notice-urgent { color: #c0392b; font-weight: bold; }
.rk-notice-text { white-space: pre-line; line-height: 1.5; margin-top: 2px; }
.rk-notice-link { display: inline-block; margin-top: 4px; margin-right: 12px; font-size: 13px; font-weight: bold; color: var(--teal-dark, #3a8f8a); text-decoration: none; }
.rk-notices-none { color: #8a8a8a; font-size: 13px; padding: 10px 12px; margin: 0; }
