/* 見た目は会社HPリニューアル（プロジェクト/会社HPリニューアル/写真入り版）にそろえる。
 * 紺の文字・青とはちみつ色の差し色・角を丸めない四角・英字の小見出し（Bricolage Grotesque）・見出しは Zen Maru Gothic・本文は Zen Kaku Gothic New。
 * 会社HPと同じくライト表示だけ。
 */
:root {
  color-scheme: light;
  --bg: #fdfcfa;
  --white: #ffffff;
  --ink: #1c2540;
  --muted: #5c6274;
  --line: #e7e3dc;
  --blue: #3a5bd0;
  --honey: #e3a83a;
  --brown: #a9784e;
  --sky: #9cc7dc;
  --soft: #f4f2ee;
  --blue-pale: #eef1fb;
  --honey-pale: #fbf1de;
  --danger: #c0473a;
  --f-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --f-head: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --shadow: 0 6px 20px rgba(28, 37, 64, .10);
  --nav-h: 62px;
  --head-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; line-height: 1.8; letter-spacing: .02em;
  -webkit-text-size-adjust: 100%; word-break: auto-phrase;
}
a { color: var(--blue); }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.45; margin: 0; font-weight: 700; }
.mute { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* ---- 英字の見出し（会社HPの .disp と .news-kicker） */
.disp {
  font-family: var(--f-display); font-variation-settings: "wdth" 75; font-weight: 800;
  line-height: .9; letter-spacing: -.01em; text-transform: uppercase;
}
.kicker { display: flex; align-items: center; gap: 12px; font: 800 11px/1 var(--f-display); letter-spacing: .3em; color: var(--blue); text-transform: uppercase; }
.kicker::after { content: ""; width: 36px; height: 1.5px; background: var(--ink); }
.page-head { margin: 8px 0 22px; display: grid; gap: 8px; }
.page-head .disp { font-size: clamp(40px, 9vw, 64px); }
.page-head h1 { font-size: 16px; letter-spacing: .08em; }
.page-head-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-title {
  font-family: var(--f-head); font-size: 17px; margin: 34px 0 14px; padding-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1.5px solid var(--ink);
}

/* ---- ボタン。主ボタンは会社HPの LINE ボタンの青、白い箱は .btn-box（はちみつ色の三角つき） */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 0; padding: 12px 22px; min-height: 46px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; filter: none; }
.btn.quiet { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.btn.quiet::after { content: ""; border-left: 7px solid var(--honey); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.btn.danger { background: transparent; color: var(--danger); border: 1.5px solid var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; filter: none; }
.btn.sm { padding: 7px 14px; min-height: 38px; font-size: 13px; }

.card { background: var(--white); border: 1px solid var(--line); padding: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 13px; font-weight: 700; }
.field small { color: var(--muted); font-size: 12px; }
input[type=text], input[type=password], input[type=date], input[type=datetime-local], input[type=number], textarea, select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 0; background: var(--white);
  padding: 11px 12px; font-size: 16px; color: var(--ink);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); }

/* 切り替え（会社HPのお知らせ／活動報告のタブと同じ、はちみつ色の下線） */
.chips { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1.5px solid var(--line); }
.chip {
  flex: none; border: 0; background: none; padding: 10px 14px 9px; font-weight: 700; font-size: 14px;
  color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px; text-decoration: none;
}
.chip.on { color: var(--ink); border-bottom-color: var(--honey); }

.breed-tag, .staff-tag {
  display: inline-block; font: 800 10px/1 var(--f-display); letter-spacing: .16em; padding: 5px 7px; text-transform: uppercase;
}
.breed-tag { background: var(--soft); color: var(--muted); }
.breed-tag.itagre { background: var(--blue-pale); color: var(--blue); }
.breed-tag.spitz { background: var(--honey-pale); color: #9a6a14; }
.staff-tag { background: var(--honey); color: var(--ink); }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-mark { display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #fff; flex: none; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.logo b { font-family: var(--f-display); font-variation-settings: "wdth" 75; font-weight: 800; font-size: 26px; letter-spacing: .02em; line-height: 1; }
.logo small { display: block; font: 800 9px/1 var(--f-display); letter-spacing: .32em; color: var(--honey); margin-top: 3px; }

/* アバター（写真が無ければ犬の名前の頭文字） */
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: var(--blue-pale); color: var(--blue); display: grid; place-items: center; font-family: var(--f-head); font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.spitz { background: var(--honey-pale); color: #9a6a14; }
.avatar.lg { width: 92px; height: 92px; font-size: 34px; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }

/* ---- 全体の配置。スマホは下にタブ、PC は左に紺の帯（会社HPのフッターと同じ紺） */
#app { min-height: 100%; }
#nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: var(--white); border-top: 1.5px solid var(--ink);
}
#nav .brand { display: none; }
#nav a {
  flex: 1; display: grid; justify-items: center; align-content: center; gap: 3px; position: relative;
  text-decoration: none; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
}
#nav a svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
#nav a.on { color: var(--ink); }
#nav a.on::before { content: ""; position: absolute; top: -1.5px; left: 28%; right: 28%; height: 3px; background: var(--honey); }
#nav .dot { position: absolute; top: 9px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--danger); }
/* ヘッダー（スマホだけ。PC は左の帯にロゴがあるので出さない） */
#topbar {
  position: sticky; top: 0; z-index: 25; height: var(--head-h); padding: 0 16px;
  display: flex; align-items: center; background: rgba(253, 252, 250, .94); backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--ink);
}
.topbar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.topbar-logo .logo-mark { width: 34px; height: 34px; box-shadow: inset 0 0 0 1px var(--line); }
.topbar-logo .disp { font-size: 25px; line-height: 1; letter-spacing: .01em; }
.topbar-logo .disp i { color: var(--honey); font-style: normal; }
#view { padding: 0 0 calc(var(--nav-h) + var(--safe-b) + 24px); }
.page { max-width: 760px; margin: 0 auto; padding: 22px 16px; }

@media (min-width: 900px) {
  #nav {
    top: 0; right: auto; bottom: 0; width: 220px; height: auto; padding: 26px 14px;
    flex-direction: column; gap: 2px; border-top: 0; background: var(--ink); color: #f3f1ec;
  }
  #nav .brand { display: flex; padding: 0 10px 30px; color: #fff; }
  #nav .brand:hover { background: none; }
  #nav a { flex: none; display: flex; align-items: center; gap: 12px; padding: 11px 12px; font-size: 14px; color: #c9ccd6; }
  #nav a:hover { color: #fff; }
  #nav a.on { color: #fff; background: rgba(255,255,255,.08); }
  #nav a.on::before { top: 0; bottom: 0; left: 0; right: auto; width: 3px; height: auto; }
  #nav .dot { position: static; margin-left: auto; }
  #view { margin-left: 220px; padding-bottom: 24px; }
  .page { padding: 34px 32px; }
  #topbar { display: none; }
  :root { --head-h: 0px; }
}

/* ---- 入口（未登録の端末） */
#gate { min-height: 100%; display: grid; place-items: center; padding: 32px 16px; }
.gate-card { max-width: 440px; display: grid; gap: 14px; }
.gate-card .disp { font-size: clamp(64px, 18vw, 104px); }
.gate-card .disp i { color: var(--honey); font-style: normal; }
.gate-card h1 { font-size: 18px; letter-spacing: .08em; }
.gate-card p { margin: 0; }
.login-card { display: grid; gap: 4px; margin-top: 10px; border-top: 3px solid var(--honey); }
.login-card h2 { font-size: 17px; margin: 6px 0 12px; }
.login-card .btn { margin-top: 4px; }
#join-open { margin-top: 6px; }
.login-card p { margin-top: 10px; }
/* パスワードを決めるまでは下のタブとヘッダーを出さない */
body.setup #nav, body.setup #topbar { display: none; }

/* ---- トーク */
.talk { display: grid; height: calc(100dvh - var(--head-h) - var(--nav-h) - var(--safe-b)); }
.rooms { overflow-y: auto; padding: 22px 16px; background: var(--bg); }
.room {
  display: flex; gap: 12px; align-items: center; padding: 14px 4px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--line);
}
.room:hover .room-name { color: var(--blue); }
.room.on { background: var(--white); box-shadow: inset 3px 0 0 var(--honey); padding-left: 12px; }
.room-icon {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 700; font-size: 18px; color: #fff; background: var(--blue);
}
.room-icon.oshirase { background: var(--ink); }
.room-icon.soudan { background: var(--brown); }
.room-icon.itagre { background: var(--blue); }
.room-icon.spitz { background: var(--honey); color: var(--ink); }
.room-body { flex: 1; min-width: 0; }
.room-name { font-family: var(--f-head); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.room-last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-side { display: grid; justify-items: end; gap: 4px; font: 700 11px/1.2 var(--f-display); letter-spacing: .06em; color: var(--muted); }
.unread { min-width: 20px; height: 20px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }

.chat { display: flex; flex-direction: column; min-height: 0; background: var(--soft); }
.chat-head {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--white); border-bottom: 1.5px solid var(--ink);
}
.chat-head .room-icon { width: 38px; height: 38px; font-size: 15px; }
.chat-head h2 { font-size: 16px; }
.chat-head p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.back { border: 0; background: none; width: 36px; height: 40px; display: grid; place-items: center; text-decoration: none; color: var(--ink); font: 700 22px/1 var(--f-display); }
.chat-empty { flex: 1; display: grid; place-items: center; color: var(--muted); padding: 24px; text-align: center; }
.stream { flex: 1; overflow-y: auto; padding: 14px 14px 10px; overscroll-behavior: contain; }
.day { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; font: 800 10.5px/1 var(--f-display); letter-spacing: .2em; color: var(--muted); }
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { display: flex; gap: 10px; margin: 10px 0; align-items: flex-start; }
.msg .who { font-size: 12px; color: var(--muted); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.msg .who a { color: var(--ink); text-decoration: none; font-weight: 700; }
.msg-col { max-width: min(78%, 540px); display: grid; justify-items: start; }
.bubble {
  background: var(--white); border: 1px solid var(--line); padding: 10px 14px;
  white-space: pre-wrap; overflow-wrap: anywhere; position: relative;
}
.bubble.photo-only { padding: 4px; }
.bubble img.photo { max-height: 340px; width: auto; cursor: zoom-in; margin: 2px 0 6px; }
.bubble.photo-only img.photo { margin: 0; }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .msg-col { justify-items: end; }
.msg.mine .bubble { background: var(--blue-pale); border-color: #d6ddf5; }
.msg.staff .bubble { border-left: 3px solid var(--honey); }
.quote {
  display: block; border-left: 2px solid var(--blue); padding: 2px 0 2px 8px; margin-bottom: 6px;
  font-size: 12px; color: var(--muted); white-space: normal; text-decoration: none;
}
.event-card {
  display: block; text-decoration: none; color: inherit; background: var(--bg); padding: 12px 14px; margin-top: 8px;
  white-space: normal; border: 1px solid var(--line); border-top: 3px solid var(--honey);
}
.event-card b, .event-card small { display: block; }
.event-card b { font-family: var(--f-head); }
.event-card span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink); font-weight: 700; margin-top: 4px; }
.event-card span::after { content: ""; border-left: 7px solid var(--honey); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.msg > a { text-decoration: none; }
.meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; font: 600 11px/1 var(--f-display); letter-spacing: .04em; color: var(--muted); }
.msg.mine .meta { flex-direction: row-reverse; }
.paw {
  display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); background: var(--white);
  border-radius: 999px; padding: 2px 9px; font: 700 12px/1 var(--f-display); color: var(--muted); min-height: 26px;
}
.paw svg { width: 14px; height: 14px; fill: currentColor; }
.paw.on { color: var(--honey); border-color: var(--honey); background: var(--honey-pale); }
.tiny-btn { border: 0; background: none; color: var(--muted); font-family: var(--f-body); font-size: 12px; padding: 4px 6px; min-height: 26px; }
.tiny-btn:hover { color: var(--ink); text-decoration: underline; }
.deleted { font-size: 12px; color: var(--muted); }
.more-btn { display: flex; margin: 0 auto 8px; }

.composer { flex: none; background: var(--white); border-top: 1.5px solid var(--ink); padding: 10px 12px calc(10px + var(--safe-b)); }
.composer .replying { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 0 4px 8px; }
.composer .replying span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-left: 2px solid var(--blue); padding-left: 8px; }
.composer .preview { position: relative; display: inline-block; margin: 0 0 8px 4px; }
.composer .preview img { height: 76px; }
.composer .preview button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 13px; line-height: 1; }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { min-height: 46px; max-height: 160px; resize: none; padding: 11px 14px; line-height: 1.5; background: var(--bg); }
.icon-btn { flex: none; width: 46px; height: 46px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); display: grid; place-items: center; }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.send { background: var(--blue); border-color: var(--blue); color: #fff; }
.icon-btn:disabled { opacity: .4; }
.readonly-note { text-align: center; font-size: 12px; color: var(--muted); padding: 14px; background: var(--white); border-top: 1.5px solid var(--ink); }

@media (max-width: 899px) {
  .talk.has-chat .rooms { display: none; }
  .talk:not(.has-chat) .chat { display: none; }
  body.in-chat #nav, body.in-chat #topbar { display: none; }
  body.in-chat #view { padding-bottom: 0; }
  body.in-chat .talk { height: 100dvh; }
}
@media (min-width: 900px) {
  .talk { grid-template-columns: 330px 1fr; height: 100dvh; }
  .rooms { border-right: 1px solid var(--line); padding: 34px 22px; }
  .chat-head { padding: 14px 20px; }
  .chat-head .back { display: none; }
  .stream { padding: 18px 24px 12px; }
  #view:has(.talk) { padding-bottom: 0; }
}

/* ---- イベント */
.event-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.event-item { display: flex; gap: 16px; text-decoration: none; color: inherit; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.event-item:hover h3 { color: var(--blue); }
.event-date { flex: none; width: 64px; text-align: center; background: var(--ink); color: #fff; padding: 9px 0 10px; line-height: 1; }
.event-date small { display: block; font: 800 10px/1 var(--f-display); letter-spacing: .2em; color: var(--honey); margin-bottom: 6px; }
.event-date b { font: 800 30px/1 var(--f-display); font-variation-settings: "wdth" 75; }
.event-item.past { opacity: .55; }
.event-item h3 { font-size: 15.5px; }
.status { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; background: var(--soft); color: var(--muted); }
.status.joined { background: var(--blue); color: #fff; }
.status.closed { background: var(--danger); color: #fff; }
.event-detail h1 { font-size: clamp(21px, 4vw, 28px); margin: 14px 0 16px; text-wrap: balance; }
.facts { display: grid; gap: 0; margin: 0 0 18px; border-top: 1px solid var(--line); }
.facts div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { flex: none; width: 5em; font: 800 11px/2 var(--f-display); letter-spacing: .2em; color: var(--blue); text-transform: uppercase; }
.facts dd { margin: 0; }
.event-body { white-space: pre-wrap; }
.entry-form { display: grid; gap: 4px; border-top: 3px solid var(--honey); }
.dogs-pick { display: flex; gap: 6px; }
.dogs-pick button { width: 48px; height: 46px; border: 1.5px solid var(--line); background: var(--white); font: 800 18px/1 var(--f-display); }
.dogs-pick button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 3px; font-size: 13px; text-decoration: none; color: inherit; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); text-decoration: none; }
.back-link::before { content: "←"; font-family: var(--f-display); }

/* ---- 学ぶ（会社HPのお知らせカードと同じ、縦書きの日付つき） */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px 20px; margin-top: 20px; }
.post { display: grid; grid-template-columns: 18px 1fr; gap: 10px; text-decoration: none; color: inherit; }
.post time { writing-mode: vertical-rl; font: 700 11px/1 var(--f-display); letter-spacing: .16em; color: var(--muted); padding-top: 2px; }
.post .thumb { aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post:hover .thumb img { transform: scale(1.04); }
.post .txt { display: grid; gap: 4px; align-content: start; padding-top: 10px; }
.post .cat { font-size: 11px; font-weight: 700; color: var(--blue); }
.post h3 { font-family: var(--f-body); font-size: 14px; font-weight: 700; line-height: 1.6; }
.post p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.learn-lead { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

/* ---- マイページ・プロフィール */
.profile-head { display: flex; gap: 18px; align-items: center; }
.profile-head h1 { font-size: 21px; }
.profile-head p { margin: 4px 0 0; }
.intro { white-space: pre-wrap; margin: 16px 0 0; }
.stats { display: flex; gap: 22px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.stats b { color: var(--ink); font: 800 22px/1 var(--f-display); margin-right: 4px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.photo-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; cursor: zoom-in; }
.avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.member-list { display: grid; border-top: 1px solid var(--line); }
.member-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.member-row:hover b { color: var(--blue); }
.member-row .grow { flex: 1; min-width: 0; }
.member-row .grow b { display: block; font-family: var(--f-head); }
.link-card { display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: var(--ink); font-weight: 700; }
.link-card::after { content: ""; border-left: 7px solid var(--honey); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.linkbox { display: grid; gap: 12px; justify-items: center; text-align: center; }
.linkbox .url { font-size: 12px; word-break: break-all; background: var(--soft); padding: 8px 10px; width: 100%; }
.qr { background: #fff; padding: 10px; border: 1px solid var(--line); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- 管理 */
.admin-tabs { margin-bottom: 22px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font: 800 10.5px/1 var(--f-display); letter-spacing: .14em; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.table-wrap { overflow-x: auto; }
.off-row { opacity: .5; }
.card-title { font-size: 16px; margin-bottom: 14px; }

/* ---- 窓・写真の拡大・通知 */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(28, 37, 64, .55); display: grid; place-items: center; padding: 16px; }
.modal-card { background: var(--white); padding: 26px 22px; width: min(460px, 100%); max-height: 90dvh; overflow-y: auto; border-top: 4px solid var(--honey); }
.modal-card h2 { font-size: 18px; margin-bottom: 14px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
#lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(15, 20, 35, .92); display: grid; place-items: center; padding: 12px; cursor: zoom-out; }
#lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; }
#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); transform: translateX(-50%); z-index: 70;
  background: var(--ink); color: #fff; padding: 11px 20px; font-size: 14px; max-width: calc(100% - 32px); box-shadow: var(--shadow);
  border-left: 4px solid var(--honey);
}
#toast.error { background: var(--danger); border-left-color: #fff; }
.loading { color: var(--muted); text-align: center; padding: 40px 0; }
.privacy-note { font-size: 12px; color: var(--muted); margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---- お知らせ（会社HPのお知らせカードと同じく、縦書きの日付つき） */
.news-list { display: grid; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 18px 2px; border-bottom: 1px solid var(--line); }
.news-item > time { writing-mode: vertical-rl; font: 700 11px/1 var(--f-display); letter-spacing: .16em; color: var(--muted); padding-top: 2px; }
.news-main { min-width: 0; display: grid; gap: 8px; justify-items: start; }
.news-from { font-size: 11px; font-weight: 700; color: var(--blue); }
.news-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.news-photo { max-height: 320px; width: auto; cursor: zoom-in; }
.news-main .event-card { margin-top: 0; width: 100%; }
.news-line { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.news-line time { font: 700 11px/1.9 var(--f-display); letter-spacing: .12em; color: var(--muted); }
.news-line span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; }
.tag { display: inline-block; background: var(--honey); color: var(--ink); font-size: 11px; font-weight: 700; padding: 3px 8px; flex: none; }

/* ---- ホーム */
.home section { margin-top: 34px; }
.home-sec-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.home-sec-head h2 { font-size: 18px; margin-top: 8px; }
.more-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.more-link::after { content: ""; border-left: 7px solid var(--honey); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.birthday { margin-top: 26px; background: var(--ink); color: #fff; padding: 18px; }
.birthday .kicker { color: var(--honey); }
.birthday .kicker::after { background: #fff; }
.birthday p { margin: 8px 0 12px; font-family: var(--f-head); font-weight: 700; }
.birthday .person { color: var(--ink); border-color: transparent; }
.chat-rows, .news-list, .event-list, .member-list { grid-template-columns: minmax(0, 1fr); }
.chat-rows { display: grid; border-top: 1px solid var(--line); }
.chat-row { display: flex; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.chat-row .grow { flex: 1; min-width: 0; }
.chat-row-head { display: flex; align-items: baseline; gap: 8px; font-size: 12px; }
.chat-row-head b { font-size: 13px; }
.chat-row-head span { color: var(--blue); font-weight: 700; font-size: 11px; }
.chat-row-head time { margin-left: auto; font: 700 11px/1 var(--f-display); color: var(--muted); }
.chat-row p { margin: 2px 0 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* うちの子の写真。会社HPのトップと同じく、はちみつ色の四角を右下にずらして重ね、右上に青の小さな四角 */
.home-photo { display: block; position: relative; width: 78%; max-width: 380px; aspect-ratio: 1; margin: 6px 0 26px; text-decoration: none; }
.home-photo-block { position: absolute; inset: 14% -8% -7% 14%; background: var(--honey); }
.home-photo::before { content: ""; position: absolute; top: -10px; right: -8%; width: 30px; height: 30px; background: var(--blue); z-index: 2; }
.home-photo-frame { position: absolute; inset: 0 6% 6% 0; background: var(--soft); overflow: hidden; display: grid; place-items: center; }
.home-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.home-photo-empty { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.home-photo-empty b { font: 700 64px/1 var(--f-head); color: #c9c3b7; }
.dash-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dash-head h1 { font-size: 20px; }
.dash-head .grow { flex: 1; }
.dash-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 18px; }
.dash-actions a { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: 11.5px; font-weight: 700; text-align: center; }
.dash-icon { width: 54px; height: 54px; display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--ink); }
.dash-actions a:first-child .dash-icon { background: var(--blue); border-color: var(--blue); color: #fff; }
.dash-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dash-event { display: grid; gap: 4px; background: var(--ink); color: #fff; padding: 16px 18px; text-decoration: none; position: relative; }
.dash-event .kicker { color: var(--honey); }
.dash-event .kicker::after { background: #fff; }
.dash-event b { font-family: var(--f-head); font-size: 17px; }
.dash-event span { font-size: 12px; color: #c9ccd6; }
.dash-event::after { content: ""; position: absolute; right: 18px; top: 50%; border-left: 9px solid var(--honey); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---- 参加の申請（管理） */
.request-list { display: grid; gap: 12px; }
.request { border-left: 4px solid var(--honey); }
.request-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.request-head .grow { display: grid; }
.request .facts { margin-bottom: 14px; }
.request-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 14px; background: var(--honey-pale); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }

/* ---- メンバー（管理）。スマホで横にはみ出さないよう、表ではなくカードで並べる */
.member-cards { display: grid; gap: 10px; }
.member-card { display: grid; gap: 10px; padding: 14px 16px; }
.member-card-head { display: flex; align-items: center; gap: 12px; }
.member-card-head .grow { min-width: 0; }
.member-card-head a { color: var(--ink); text-decoration: none; margin-right: 6px; }
.member-card-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); }
.member-card-meta b { color: var(--ink); }

/* ---- 通知 */
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.push-prompt { margin-bottom: 16px; padding: 14px 16px; background: var(--blue-pale); border-left: 4px solid var(--blue); }
.push-prompt p { margin: 0 0 10px; font-size: 14px; }
.profile-facts { margin: 16px 0 0; }
.profile-facts dt { width: 9em; letter-spacing: .08em; }
