/* 📌 掲示板のお知らせ・ホームの注意カード。本文 18px 以上、押す所は高さ 56px 以上。色は brand.css */

/* ホームの大きな「掲示板のお知らせ」ボタン（横いっぱい） */
.boardbtn {
	display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; min-height: 104px; padding: 14px 18px;
	border-radius: var(--r); border: 3px solid var(--leaf); background: var(--leaf-soft); color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
}
.boardbtn:active { transform: scale(.98); }
.boardbtn__ico { font-size: 44px; line-height: 1; }
.boardbtn__body { display: grid; gap: 2px; min-width: 0; }
.boardbtn__name { font-size: 24px; font-weight: 700; line-height: 1.4; }
.boardbtn__sub { font-size: 18px; line-height: 1.5; color: var(--ink-2); }

/* 通知の宛先が無いときの注意（運営者: 赤い枠／先生: やさしい色） */
.alertcard { display: grid; gap: 14px; padding: 18px 18px; border-radius: var(--r); border: 4px solid var(--apple); background: var(--apple-soft); box-shadow: var(--shadow); }
.alertcard__title { font-size: 20px; font-weight: 700; line-height: 1.6; }
.hintcard { border-color: var(--sun); background: var(--sun-soft); }

/* 掲示板の画面 */
.bdrow__body { display: flex; gap: 12px; align-items: flex-start; }
.bdrow__img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex: none; background: var(--cream); }
.bdrow__main { display: grid; gap: 4px; min-width: 0; }
.bdrow__date { font-size: 18px; font-weight: 700; color: var(--leaf-deep); }
.bdrow__ask { display: grid; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--apple-soft); border: 2px solid var(--apple); }
#board-add textarea.input { min-height: 104px; resize: vertical; line-height: 1.6; }
#board-publish { min-height: 72px; font-size: 22px; }
#board-publish:disabled { opacity: .5; }

/* 写真を付ける欄 */
.photobox { display: grid; gap: 12px; }
.photobox__img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 16px; border: 2px solid var(--line); background: var(--white); display: block; }
.photobox__img--small { width: 96px; height: 96px; max-height: none; object-fit: cover; flex: none; }
.photobox__done { display: flex; gap: 14px; align-items: center; }
.photobox__done--off { opacity: .45; }

/* Facebook・Instagram にも出す欄 */
.snsbox { display: grid; gap: 10px; padding: 12px 10px; border-radius: 16px; background: var(--sky-soft); border: 2px solid var(--sky); min-width: 0; overflow-wrap: anywhere; }
.snsbox .lead, .snsbox p, .snsbox label { font-size: 16px; line-height: 1.6; }
.snsbox h2 { font-size: 18px; }
.snsbox:empty { display: none; }
.snsguide { min-width: 0; }
.snsguide summary { font-size: 17px; font-weight: 700; min-height: 56px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; list-style: none; }
.snsguide summary::-webkit-details-marker { display: none; }
.snsguide[open] summary { margin-bottom: 8px; }
.snsguide__steps { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.snsguide__steps > li { min-width: 0; }
.snsstep { display: grid; gap: 6px; padding: 10px 10px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.snsstep__head { display: flex; gap: 8px; align-items: center; min-width: 0; }
.snsstep__no { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 17px; display: grid; place-items: center; }
.snsstep__body { display: grid; gap: 6px; min-width: 0; }
.snsstep__body > * { min-width: 0; }
.snsbox .snsstep__title { font-size: 17px; font-weight: 700; margin: 0; }
.snsbox .snsstep__text { font-size: 16px; line-height: 1.6; margin: 0; }
.snsstep .snsstep__link { width: 100%; justify-self: stretch; text-decoration: none; overflow-wrap: anywhere; font-size: 16px; padding-left: 8px; padding-right: 8px; }
.snsstep__perms { display: grid; gap: 6px; }
.snsstep__perms code { display: block; background: var(--sky-soft); border-radius: 10px; padding: 6px 8px; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.bdrow__sns { font-size: 17px; color: var(--leaf-deep); font-weight: 700; }

/* 出す時・下げる時（日時を決めて出す・下げる）。丸ボタンの下の説明と日時の欄は、丸ボタンの文の頭にそろえる */
.bdwhen { display: grid; gap: 0; margin: 0; padding: 6px 14px 12px; border: 2px solid var(--line); border-radius: 16px; background: var(--white); min-width: 0; }
.bdwhen legend { font-size: 19px; font-weight: 700; padding: 0 6px; }
.bdwhen > .check { padding: 8px 0; }
.bdwhen__note { margin: 0 0 6px 44px; }
.bdwhen__at { display: grid; gap: 8px; padding: 2px 0 4px 44px; }
.bdwhen__pick { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; }
.bdwhen__pick .input { min-width: 0; width: 100%; box-sizing: border-box; padding-left: 10px; padding-right: 10px; }
.bdrow__when { font-size: 19px; font-weight: 700; color: var(--ink); }
.bdrow__until { font-size: 17px; font-weight: 700; color: var(--ink-2); }
.schrow[data-status="failed"] { border-color: var(--apple); }

/* お知らせを足す欄: スマホで横の余白を詰める */
@media (max-width: 520px) {
	#board-add.card { padding: 18px 12px; }
	.bdwhen { padding: 6px 10px 10px; }
	.bdwhen__note { margin-left: 0; }
	.bdwhen__at { padding-left: 0; }
}
/* スマホでは、日付と時刻を縦に並べる（横に並べると、Android の「9:30 AM」や予約を直す欄の時刻が切れる） */
@media (max-width: 520px) { .bdwhen__pick { grid-template-columns: 1fr; } }
