/* 編集アプリ。本文 18px 以上、押す所は高さ 56px 以上、スマホ優先。色は brand.css */
:root {
	--font: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
	--r: 24px;
	--shadow: 0 14px 30px -20px rgba(90, 60, 20, .45);
	color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--cream); color: var(--ink);
	font-family: var(--font); font-size: 18px; line-height: 1.8; letter-spacing: .03em;
	min-height: 100vh; min-height: 100dvh;
	word-break: auto-phrase; line-break: strict;
	-webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
h1 { font-size: 26px; line-height: 1.5; font-weight: 700; letter-spacing: .05em; }
h2 { font-size: 22px; line-height: 1.5; font-weight: 700; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ------------------------------------------------ ヘッダー */
.top {
	position: sticky; top: 0; z-index: 10;
	background: var(--header-bg); border-bottom: 3px solid var(--sun);
	padding-top: env(safe-area-inset-top, 0px);
}
.top__in {
	max-width: 640px; margin: 0 auto; min-height: 68px;
	padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
	display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; text-decoration: none; color: inherit; min-width: 0; }
.brand__site { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; color: inherit; min-width: 0; }
a.brand__site:active { opacity: .7; }
.brand__mark { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.brand__sub { font-size: 16px; line-height: 1.3; color: var(--ink-2); }
a.brand__site .brand__sub { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.brand__ext { font-weight: 700; color: var(--leaf-deep); }
.brand__name { display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px; font-size: 21px; font-weight: 700; letter-spacing: .04em; line-height: 1.3; color: inherit; text-decoration: none; border-radius: 12px; white-space: nowrap; }
.brand__name:active { background: var(--leaf-soft); }

/* ------------------------------------------------ 画面の枠 */
.page { max-width: 640px; margin: 0 auto; padding: 24px max(20px, env(safe-area-inset-right, 0px)) 64px max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: 24px; }
.stack { display: grid; gap: 16px; }
.lead { font-size: 19px; }
.muted { color: var(--ink-2); font-size: 17px; }
.center { text-align: center; }
.card {
	background: var(--white); border: 2px solid var(--line); border-radius: var(--r);
	padding: 22px 20px; box-shadow: var(--shadow); display: grid; gap: 14px;
}
.hello { font-size: 24px; font-weight: 700; }

.back {
	display: inline-flex; align-items: center; gap: 6px; min-height: 56px; padding: 0 18px 0 12px; margin-left: -6px;
	font-size: 19px; font-weight: 700; color: var(--leaf-deep); text-decoration: none; border-radius: 999px; justify-self: start;
}
.back:hover { background: var(--leaf-soft); }

/* ------------------------------------------------ ボタン */
.btn {
	display: flex; align-items: center; justify-content: center; gap: .5em; width: 100%;
	min-height: 64px; padding: 10px 24px; border: 0; border-radius: 999px; cursor: pointer;
	font-size: 20px; font-weight: 700; letter-spacing: .06em; line-height: 1.4; text-align: center; text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 var(--sun-deep); }
.btn--sun:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--sun-deep); }
.btn--sun:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sun-deep); }
.btn--line { background: var(--white); border: 2px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--green { background: var(--leaf); color: var(--white); box-shadow: 0 5px 0 var(--leaf-deep); }
.btn--green:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--leaf-deep); }
.btn--danger { background: var(--white); border: 2px solid var(--apple); color: var(--apple); }
.btn--danger:hover { background: var(--apple); color: var(--white); }
.btn--small { min-height: 56px; font-size: 18px; padding: 8px 20px; width: auto; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }

/* ------------------------------------------------ メッセージ */
.msg { border-radius: 16px; padding: 14px 16px; font-size: 18px; }
.msg--err { background: var(--apple-soft); border: 2px solid var(--apple); }
.msg--ok { background: var(--leaf-soft); border: 2px solid var(--leaf); }
.msg--info { background: var(--sun-soft); border: 2px solid var(--sun); }

/* ------------------------------------------------ ホームの大きな4つ */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile {
	display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 160px; padding: 16px 10px;
	border-radius: var(--r); border: 2px solid var(--line); text-decoration: none; color: var(--ink); text-align: center;
	font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: .04em; box-shadow: var(--shadow);
	transition: transform .15s ease;
}
.tile:active { transform: scale(.97); }
.tiles > .tile:not(.tile--wide) { aspect-ratio: 1 / 1; min-height: 0; }
.tile--board { background: var(--leaf-soft); border: 3px solid var(--leaf); }
.tile__ico { font-size: 44px; line-height: 1.1; }
/* ボタンの名前は言葉の切れ目で折り返す（「お知/らせ」「困っ/た」にしない・2026-11-17） */
.tile > span:last-child { word-break: keep-all; overflow-wrap: anywhere; }
.tile--chat { background: var(--sun-soft); border-color: var(--sun); }
/* ホームの一番上の赤帯（通知・スマホ通知 ON かメール登録のお願い） */
/* 一番上の赤帯（ヘッダーより上・1 行・2026-11-16 運営者「帯一段一行」） */
.topband { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); background: var(--apple); color: #fff; overflow: hidden; }
.topband[hidden] { display: none; }
.topband__link { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.5; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 32px; display: flex; align-items: center; }
.topband__link:only-child { flex: 1; }
.btn--band { background: #fff; color: var(--apple); border: 2px solid #fff; }
.tile--undo { background: var(--leaf-soft); border-color: var(--leaf); }
.tile--help { background: var(--white); border-color: var(--orange); }
.settings-link { justify-self: center; }

/* ------------------------------------------------ お知らせ・一覧 */
.list { display: grid; gap: 14px; }
.row { background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 16px 18px; display: grid; gap: 10px; }
.row__main { font-size: 19px; font-weight: 700; line-height: 1.5; word-break: break-word; }
.row__meta { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.tag { display: inline-block; font-size: 16px; font-weight: 700; padding: 0 10px; border-radius: 999px; background: var(--sky-soft); margin-right: 6px; }
.tag--alert { background: var(--apple-soft); color: var(--apple); }
.empty { text-align: center; color: var(--ink-2); padding: 28px 0; }

.menu { display: grid; gap: 14px; }
.menu .btn { justify-content: flex-start; text-align: left; padding-left: 26px; }
/* 設定の「🌐 ドメイン」の残り日数。幅が足りない時は、日数だけ次の行へ（途中で折れない） */
#domain-link { flex-wrap: wrap; row-gap: 0; }
.menu__sub { font-size: 18px; letter-spacing: 0; white-space: nowrap; }

/* ------------------------------------------------ 入力 */
.field { display: grid; gap: 8px; }
.field label { font-size: 19px; font-weight: 700; }
.input {
	width: 100%; min-height: 60px; border: 2px solid var(--ink); border-radius: 16px; padding: 10px 16px;
	font: inherit; font-size: 20px; background: var(--white); color: var(--ink);
}
.input:focus { outline: 3px solid var(--leaf); outline-offset: 2px; }

/* ------------------------------------------------ QR・招待 */
.qrbox { display: grid; justify-items: center; gap: 14px; }
.qr { width: min(280px, 80vw); height: auto; aspect-ratio: 1; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
.linkbox { width: 100%; font-size: 16px; min-height: 56px; }
.btnrow { display: grid; gap: 12px; width: 100%; }

/* ------------------------------------------------ アプリを入れる案内（iPhone） */
.guide { display: grid; gap: 18px; }
.step { display: grid; gap: 10px; background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 16px; }
.step__head { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; line-height: 1.5; }
.step__no { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.step svg { width: 100%; max-width: 300px; height: auto; margin: 0 auto; display: block; }

/* ------------------------------------------------ アプリの中のブラウザの案内 */
.inapp { border-color: var(--apple); background: var(--apple-soft); gap: 16px; }
.inapp__title { font-size: 24px; line-height: 1.5; margin: 0; }
.inapp .lead { margin: 0; font-size: 20px; font-weight: 700; }
dialog.dlg--guide { max-height: 90vh; overflow: auto; }

/* ------------------------------------------------ 確認の小窓 */
dialog.dlg {
	border: 0; border-radius: var(--r); padding: 24px 22px; width: min(92vw, 460px); background: var(--white); color: var(--ink);
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5);
}
dialog.dlg::backdrop { background: rgba(58, 50, 43, .55); }
dialog.dlg form { display: grid; gap: 16px; margin: 0; }
.dlg__btns { display: grid; gap: 12px; }

.spinner { width: 44px; height: 44px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--sun); animation: spin 1s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .btn, .tile { transition: none; } }

/* ------------------------------------------------ 広い画面（PC） */
@media (min-width: 700px) {
	.page { padding-top: 40px; }
	h1 { font-size: 30px; }
	.btnrow { grid-template-columns: 1fr 1fr; }
}

/* 運営元（ポチHP）— 画面の一番下。黒っぽい帯・白い文字（スマホの下の白いボタンが見えるように。下の安全な余白も同じ色で続く） */
.foot { background: var(--dark); color: var(--on-dark); padding: 24px max(20px, calc((100% - 640px) / 2 + 20px)) calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center; display: grid; gap: 4px; }
.foot p { margin: 0; }
.foot__by { font-size: 16px; color: var(--on-dark); }
.foot__link { justify-self: center; display: inline-flex; align-items: center; min-height: 56px; padding: 0 16px; font-size: 20px; font-weight: 700; color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
.foot__pr { font-size: 16px; color: var(--on-dark); }

/* ------------------------------------------------ 二区切り目: 会話・見本・写真・元に戻す */
.quick { display: grid; grid-template-columns: 1fr; gap: 10px; }
.quick .btn { justify-content: flex-start; padding-left: 22px; }
.chat { display: grid; gap: 14px; }
.bubble { max-width: 92%; padding: 14px 16px; border-radius: 22px; font-size: 19px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; border: 2px solid var(--line); }
.bubble--ai { background: var(--white); border-top-left-radius: 6px; justify-self: start; }
.bubble--me { background: var(--sun-soft); border-color: var(--sun); border-top-right-radius: 6px; justify-self: end; }
.bubble--wait { color: var(--ink-2); }
.card--chg { gap: 10px; }
.chg { background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; font-size: 18px; }
.chg__page { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.chg__old, .chg__new { margin: 0; padding: 6px 10px; border-radius: 10px; word-break: break-word; }
.chg__old { background: var(--apple-soft); text-decoration: line-through; text-decoration-color: rgba(226, 72, 58, .6); }
.chg__new { background: var(--leaf-soft); }
.chg__tag { display: inline-block; font-size: 16px; font-weight: 700; margin-right: 8px; text-decoration: none; }
.composer { display: grid; gap: 12px; position: sticky; bottom: 0; background: var(--cream); padding: 12px 0 calc(8px + var(--navbar-h, env(safe-area-inset-bottom, 0px))); }
.composer textarea.input { min-height: 72px; resize: vertical; line-height: 1.6; } /* 下の入力欄が画面の半分を取らないように（2026-11-17） */
.composer { gap: 8px; padding-top: 8px; }
.composer .voice__note { font-size: 14px; line-height: 1.5; }
.composer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.pickers { display: flex; flex-wrap: wrap; gap: 10px; }
.pickers .btn { width: auto; flex: 1 1 calc(50% - 10px); min-width: fit-content; } /* 長い名前（プライバシーポリシー）は 1 行に 1 つ（2026-11-17） */
.pickers .btn[aria-pressed="true"] { background: var(--sun); border-color: var(--sun-deep); }

.phone { width: 100%; max-width: 420px; margin: 0 auto; border: 4px solid var(--ink); border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.phone.pv { max-width: none; box-sizing: border-box; }
.phone--pc { border-radius: 14px; }
.pvwrap { width: 100%; min-width: 0; }
.pv__stage { position: relative; overflow: hidden; background: #fff; }
.pv__stage iframe { position: absolute; top: 0; left: 0; display: block; border: 0; background: #fff; transform-origin: 0 0; }
.pv__modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv__modes .btn { width: 100%; padding-inline: 8px; font-size: 18px; letter-spacing: .02em; } /* 「スマホで見/る」にしない（2026-11-17） */
.pv__modes .btn[aria-pressed="true"] { background: var(--sun); border-color: var(--sun-deep); }
.diff { display: grid; gap: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.thumb { display: grid; gap: 6px; padding: 8px; background: var(--white); border: 3px solid var(--line); border-radius: 18px; cursor: pointer; text-align: left; font-size: 16px; line-height: 1.4; min-height: 56px; }
.thumb:hover, .thumb[aria-pressed="true"] { border-color: var(--sun); background: var(--sun-soft); }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--cream); display: block; }
.thumb--new { cursor: default; }
.stage { display: grid; gap: 14px; }
.stage canvas { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 16px; background: #fff; touch-action: manipulation; cursor: crosshair; display: block; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 19px; line-height: 1.6; padding: 10px 0; }
.check input { width: 32px; height: 32px; flex-shrink: 0; margin-top: 4px; accent-color: var(--leaf); }
.row__acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag--now { background: var(--leaf-soft); color: var(--leaf-deep); }
@media (min-width: 700px) {
	.quick { grid-template-columns: repeat(3, 1fr); }
	.quick .btn { justify-content: center; padding-left: 14px; }
	.page--wide { max-width: 760px; }
}

/* ------------------------------------------------ 三区切り目: 未読の数・ドメイン・トーク・メモ・使い方 */
.badge { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; margin-left: 8px; border-radius: 999px; background: var(--apple); color: #fff; font-size: 17px; font-weight: 700; line-height: 1; vertical-align: middle; letter-spacing: 0; }
.tile__sub { display: block; font-size: 18px; font-weight: 700; color: var(--ink-2); }
.tile--domain { background: var(--white); border-color: var(--sky); }
.tile--memo, .tile--staff { background: var(--white); border-color: var(--sun); } /* 「会話で直す」（黄色の地）と並んでも見分けがつくよう、地は白 */
.tile--inbox { background: var(--apple-soft); border-color: var(--apple); }
.tile--wide { grid-column: 1 / -1; min-height: 120px; }
/* 📨 メモの連絡（管理者 → スタッフ） */
.tile--mn { background: var(--white); border-color: var(--sky); }
/* 💬 スタッフ連絡（LINE 風の園内チャット） */
.staff-del { min-height: 48px; padding: 4px 16px; font-size: 16px; }
.staff-readonly { display: grid; gap: 12px; }
.mn-pick { display: grid; gap: 0; border: 2px solid var(--line); border-radius: 16px; padding: 4px 14px; background: var(--white); }
.mn-pick[hidden] { display: none; }
.mn-box { background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 16px 18px; display: grid; gap: 10px; }
.mn-reply { background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 12px 16px; display: grid; gap: 6px; }
.mn-names { font-size: 18px; line-height: 1.7; word-break: break-word; }
.mn-img { display: block; max-width: 100%; width: 300px; height: auto; border-radius: 14px; background: var(--cream); }
.mn-photo-prev { font-size: 18px; color: var(--ink-2); }
.tile--site { background: var(--white); border-color: var(--leaf); min-height: 104px; }
.troublebox { max-width: 640px; margin: -32px auto 0; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px)); }
.trouble { margin-top: 0; }

.codeinput { font-size: 32px; letter-spacing: .4em; text-align: center; }
select.input { appearance: auto; }

.domain { gap: 10px; }
.domain__name { font-size: 24px; word-break: break-all; }
.bigdays { font-size: 40px; font-weight: 700; line-height: 1.3; color: var(--leaf-deep); }
.bigdays--soon { color: #a85a00; }
.bigdays--over { color: var(--apple); }
.memo-text { white-space: pre-wrap; word-break: break-word; }
.memo-snippet { font-size: 18px; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.memo-row .btn { justify-self: start; }
.tagline { display: block; margin-bottom: 4px; }
.rowlink { text-decoration: none; color: inherit; }
.check input[type="checkbox"] { width: 32px; height: 32px; flex-shrink: 0; margin-top: 4px; accent-color: var(--leaf); }

/* トーク（LINE 風） */
.talk { display: grid; gap: 10px; padding: 4px 0 12px; }
.talk-hours p { margin: 0; font-size: 18px; }
.daysep { justify-self: center; font-size: 16px; color: var(--ink-2); background: var(--cream); border: 2px solid var(--line); border-radius: 999px; padding: 0 14px; }
.trow { display: grid; gap: 2px; max-width: 88%; }
.trow--me { justify-self: end; justify-items: end; }
.trow--them { justify-self: start; justify-items: start; }
.twho { font-size: 16px; color: var(--ink-2); }
.tbub { padding: 12px 16px; border-radius: 22px; font-size: 19px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; border: 2px solid var(--line); display: grid; gap: 8px; }
.tbub--me { background: #c9eba4; border-color: var(--leaf); border-top-right-radius: 6px; }
.tbub--them { background: var(--white); border-top-left-radius: 6px; }
.tbub--auto { background: var(--sky-soft); border-color: var(--sky); border-top-left-radius: 6px; }
.tmeta { font-size: 16px; color: var(--ink-2); }
.treaders { font-size: 16px; color: var(--ink-2); max-width: 100%; }
.talk .trow { scroll-margin-bottom: 480px; } /* 下に貼り付く入力欄の後ろに、最後の吹き出し（👀 見た人）が隠れないように */
.treaders summary { cursor: pointer; min-height: 40px; padding: 6px 0; }
.treaders p { margin: 2px 0; }
.tnote { justify-self: center; max-width: 94%; background: var(--sun-soft); border: 2px solid var(--sun); border-radius: 18px; padding: 12px 16px; font-size: 18px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; display: grid; gap: 4px; }
.timg { display: block; max-width: 100%; width: 260px; height: auto; border-radius: 14px; background: var(--cream); }
.ctx summary { min-height: 56px; display: flex; align-items: center; cursor: pointer; font-size: 18px; font-weight: 700; }
.ctx__line { font-size: 17px; margin: 0 0 4px; color: var(--ink-2); word-break: break-word; }
.ctxcard { gap: 8px; }
.ctxlist { list-style: disc; padding-left: 1.4em; font-size: 18px; }

/* 使い方 */
.help-toc { display: grid; gap: 10px; }
.help-toc a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 16px; border: 2px solid var(--line); border-radius: 18px; background: var(--white); color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 700; }
.help-chapter { display: grid; gap: 18px; scroll-margin-top: 80px; }
.help-chapter h2 { font-size: 24px; background: var(--sun-soft); border: 2px solid var(--sun); border-radius: 18px; padding: 10px 16px; }
.help-step { display: grid; gap: 10px; background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 16px; }
.help-step__no { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); font-size: 24px; font-weight: 700; flex-shrink: 0; }
.help-step__head { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; line-height: 1.5; }
.help-step img { width: 100%; max-width: 360px; height: auto; margin: 0 auto; display: block; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.help-step p { margin: 0; }
.help-print { justify-self: start; }
@media print {
	body { background: #fff; font-size: 14pt; }
	.top, .foot, .trouble, .back, .help-toc, .help-print, .no-print { display: none !important; }
	.page { max-width: none; padding: 0; gap: 12pt; }
	.help-chapter { break-before: page; page-break-before: always; }
	.help-chapter:first-of-type { break-before: auto; page-break-before: auto; }
	.help-step { break-inside: avoid; page-break-inside: avoid; border: 1px solid #999; }
	.help-step img { max-width: 70mm; border: 1px solid #999; }
}
dialog.dlg--guide[open] { display: grid; gap: 14px; }
.emailjoin { margin-top: 16px; }

/* ------------------------------------------------ AI の使われ方（運営者だけ） */
.field > span { font-size: 19px; font-weight: 700; }
.tile--aiusage { background: var(--white); border-color: var(--leaf); }
.tablewrap { overflow-x: auto; border: 2px solid var(--line); border-radius: var(--r); background: var(--white); }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font-weight: 700; background: var(--cream); }
.tbl tr:last-child td { border-bottom: 0; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.statcard { gap: 4px; padding: 16px 14px; }
.statcard p { margin: 0; }
.stat { font-size: 26px; font-weight: 700; }
.stack > *, .statgrid > *, .pv__modes > * { min-width: 0; }
.tablewrap { max-width: 100%; }
.field .input { min-width: 0; width: 100%; box-sizing: border-box; }

/* ------------------------------------------------ お知らせの「出す期間」カレンダー（出す日と下げる日を同時に決める） */
.period { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.period > legend { padding: 0; margin-bottom: 10px; font-size: 19px; font-weight: 700; line-height: 1.6; }
.cal { display: grid; gap: 10px; min-width: 0; }
.cal__head { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cal__title { grid-column: 1 / -1; text-align: center; font-size: 22px; font-weight: 700; line-height: 1.4; }
.cal__nav { min-height: 48px; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); color: var(--ink); font-size: 18px; cursor: pointer; }
.cal__nav:disabled { opacity: .35; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px 0; margin: 0 -12px; }
.cal__wd { text-align: center; font-size: 16px; font-weight: 700; line-height: 1.8; color: var(--ink-2); }
.cal__day { min-height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.cal__day:disabled { color: var(--ink-2); opacity: .35; cursor: default; }
.cal__day--in { background: var(--sun-soft); }
.cal__day--start, .cal__day--end { color: var(--white); font-weight: 700; border-radius: 12px; }
.cal__day--start { background: var(--leaf-deep); }
.cal__day--end { background: var(--apple); }
.cal__day--today { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 12px; }
.period__times { display: grid; gap: 10px; }
.period__row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; align-items: center; }
.period__row label, .period__label { font-size: 19px; font-weight: 700; }
.period__fixed { font-size: 19px; }
.period__summary { padding: 12px 14px; border-radius: 14px; background: var(--sun-soft); font-size: 19px; font-weight: 700; line-height: 1.6; }

/* ボタン・見出しの名前は言葉の切れ目で折り返す（「見/る」「トー/ク」「登/録する」にしない・2026-11-17 運営者 #170） */
.btn, summary, legend { word-break: keep-all; overflow-wrap: break-word; }
.reinstall-btns { display: flex; flex-wrap: wrap; gap: 8px; }
#reinstall-slot:empty { display: none; }
.reinstall-addr { font-weight: 700; word-break: break-all; background: var(--white); border: 2px dashed var(--line, #d9d2c2); border-radius: 10px; padding: 8px 12px; user-select: all; }
