/* 塾オーナー管理画面（/owner/）— デザインキャンバスの Owner* 画面に合わせる */
.ow-body { background: #FFFFFF; color: var(--ink); font-size: 15px; line-height: 1.7; }
.ow-body a { color: var(--link); }
.ow-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ow-s { margin: 0; font-size: 13px; color: var(--sub); }
.ow-b { margin: 0; font-weight: 700; }
.ow-ink { color: var(--ink); }
.ow-body .pre { white-space: pre-wrap; margin: 0; }

/* ヘッダー */
.ow-hd { background: #008299; color: #FFFFFF; }
.ow-hd-in { max-width: 1240px; margin: 0 auto; box-sizing: border-box; padding: 8px clamp(16px, 3.2vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; min-height: 60px; }
.ow-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.ow-brand img { display: block; height: 26px; width: auto; }
.ow-who { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.ow-who .ow-jn { font-weight: 700; }
.ow-hd a { color: #FFFFFF; display: inline-flex; align-items: center; min-height: 44px; }
.ow-prev { margin: 0; padding: 8px clamp(16px, 3.2vw, 40px); background: #FFF4D6; color: #5B4300; font-size: 13px; text-align: center; }
.ow-prev a { color: #5B4300; margin-left: 8px; }

/* 枠とメニュー */
.ow-wrap { max-width: 1240px; margin: 0 auto; box-sizing: border-box; padding: clamp(20px, 3vw, 32px) clamp(16px, 3.2vw, 40px) 64px; display: flex; gap: 40px; align-items: flex-start; }
.ow-nav { flex: 0 0 200px; display: flex; flex-direction: column; border-top: 1px solid var(--accent-line); position: sticky; top: 16px; }
.ow-nav a { display: flex; align-items: center; gap: 8px; min-height: 48px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ow-nav a:hover { color: var(--link); }
.ow-nav a[aria-current="page"] { color: var(--link); font-weight: 700; }
.ow-nav .sp { display: none; }
.ow-cnt { background: #B42318; color: #FFFFFF; font-size: 11px; line-height: 18px; padding: 0 6px; font-weight: 700; }
.ow-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: clamp(24px, 3.4vw, 36px); }
@media (max-width: 860px) {
	.ow-wrap { display: block; padding-top: 0; }
	.ow-nav { position: static; flex-direction: row; overflow-x: auto; white-space: nowrap; border-top: 0; border-bottom: 1px solid var(--accent-line); margin: 0 calc(-1 * clamp(16px, 3.2vw, 40px)) 20px; padding: 0 8px; }
	.ow-nav a { min-height: 48px; padding: 0 10px; border-bottom: 3px solid transparent; flex: 0 0 auto; }
	.ow-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent-line); }
	.ow-nav .pc { display: none; }
	.ow-nav .sp { display: inline; }
	.ow-main { gap: 28px; }
}

/* 見出し・共通部品 */
.ow-h1 { margin: 0; font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 700; font-size: clamp(22px, 5.6vw, 28px); line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.ow-h2, .ow-sec h2 { margin: 0; font-size: 18px; line-height: 1.5; }
.ow-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.ow-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ow-sec { display: flex; flex-direction: column; gap: 10px; }
.ow-sh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.ow-sh a { font-size: 14px; }
.ow-ruled { border-top: 1px solid var(--accent-line); padding-top: 18px; }
.ow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ow-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ow-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--pale); padding: 0 8px; line-height: 22px; white-space: nowrap; }
.ow-tag.on { color: #005B6B; background: #DDF2F6; }
.ow-tag.off { color: #5B4300; background: #FFF4D6; }
.ow-tag.warn { color: #FFFFFF; background: #B42318; }
.ow-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid #008299; background: #008299; color: #FFFFFF !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border-radius: 2px; box-sizing: border-box; }
.ow-btn:hover { background: #006F82; }
.ow-btn.ol { background: #FFFFFF; color: var(--link) !important; border-color: var(--link); }
.ow-btn.ol:hover { background: var(--pale); }
.ow-btn.del { background: #FFFFFF; color: #B42318 !important; border-color: #B42318; }
.ow-btn.lg { min-height: 52px; padding: 0 36px; }
.ow-btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.ow-lk { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 14px; align-self: flex-start; }
.ow-lkbtn { background: none; border: 0; padding: 0; min-height: 36px; font: inherit; font-size: 13px; font-weight: 700; color: var(--link); cursor: pointer; text-decoration: underline; }
.ow-lkbtn.del { color: #B42318; }
.ow-msg { margin: 0; padding: 12px 14px; background: #E7F5EC; color: #14532D; font-size: 14px; border-left: 4px solid #1E7A45; }
.ow-msg.err { background: #FDECEA; color: #8A1C12; border-left-color: #B42318; }
.ow-empty { margin: 0; padding: 18px 0; color: var(--sub); font-size: 14px; }
.ow-note { margin: 0; padding: 14px 16px; background: var(--pale); font-size: 14px; }
.ow-box { background: var(--pale); padding: 20px clamp(16px, 2.4vw, 24px); display: flex; flex-direction: column; gap: 12px; }
.ow-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; background: var(--pale); padding: 20px clamp(16px, 2.4vw, 24px); }
.ow-up { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: var(--pale); padding: 20px clamp(16px, 2.4vw, 24px); }
.ow-big { margin: 0; font-size: 20px; font-weight: 700; }
.ow-big span { font-size: 15px; font-weight: 400; }
.ow-ul { margin: 0; padding-left: 1.2em; }

/* 数値 */
.ow-stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); border-top: 1px solid var(--accent-line); }
.ow-stats > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.ow-stats dt { font-size: 13px; color: var(--sub); }
.ow-stats dd { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 30px; line-height: 1.4; }
.ow-stats dd.ow-s { font-family: inherit; font-weight: 400; font-size: 13px; }
.ow-stats small { font-family: 'BIZ UDPGothic', sans-serif; font-size: 14px; margin-left: 4px; font-weight: 400; }
.ow-stats.sm dd { font-size: 24px; }
.ow-chart { margin: 0; border-top: 1px solid var(--accent-line); padding-top: 12px; }
.ow-chart svg { display: block; width: 100%; max-width: 640px; height: auto; font-family: 'BIZ UDPGothic', sans-serif; }

/* 問い合わせ */
.ow-list { border-top: 1px solid var(--accent-line); }
.ow-inq, .ow-det summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 14px 0; }
.ow-inq { border-bottom: 1px solid var(--line); margin: 0; }
.ow-dt { flex: 0 0 96px; }
.ow-who2 { flex: 1 1 200px; min-width: 0; }
.ow-st { min-height: 40px; border: 1px solid #7F969C; padding: 0 8px; font: inherit; font-size: 14px; color: var(--ink); background: #FFFFFF; border-radius: 2px; }
.ow-st.new { border-color: #B42318; color: #B42318; }
.ow-det { border-bottom: 1px solid var(--line); }
.ow-det summary { cursor: pointer; list-style: none; padding-right: 28px; position: relative; }
.ow-det summary::-webkit-details-marker { display: none; }
.ow-det summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: translateY(-70%) rotate(45deg); }
.ow-det[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.ow-det[open] { padding-bottom: 16px; display: block; }
.ow-det[open] > *:not(summary) { margin-bottom: 10px; }
.ow-dl { margin: 0; display: grid; gap: 0; }
.ow-dl > div { display: grid; grid-template-columns: 8em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ow-dl dt { color: var(--sub); font-size: 14px; }
.ow-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .ow-dl > div { grid-template-columns: 1fr; gap: 2px; } }
.ow-subtabs { display: flex; overflow-x: auto; white-space: nowrap; border-bottom: 1px solid var(--accent-line); font-size: 15px; }
.ow-subtabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; flex: 0 0 auto; }
.ow-subtabs a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--accent-line); }

/* ToDo */
.ow-todo { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--accent-line); }
.ow-todo li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ow-todo .ok { color: var(--link); margin-right: 8px; }
.ow-todo .no { color: var(--sub); margin-right: 8px; }
.ow-todo a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; }
.ow-code { margin: 0; padding: 12px 14px; background: #12313B; color: #FFFFFF; font-size: 12px; line-height: 1.6; overflow-x: auto; white-space: pre; }

/* フォーム */
.ow-form { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.ow-form.tight { gap: 10px; margin-top: 8px; }
.ow-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ow-f > label, .ow-lb, .ow-fs legend { font-weight: 700; }
.ow-f small, .ow-fs legend small { font-size: 12px; color: var(--sub); font-weight: 400; margin-left: 6px; }
.ow-up1 { margin-top: -14px; }
.ow-in { min-height: 48px; border: 1px solid #7F969C; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: #FFFFFF; border-radius: 2px; box-sizing: border-box; width: 100%; }
textarea.ow-in { padding: 12px 14px; resize: vertical; line-height: 1.7; }
select.ow-in { width: auto; padding-right: 32px; }
.ow-in:focus, .ow-st:focus { outline: 2px solid #0097B2; outline-offset: 1px; }
.ow-cn { align-self: flex-end; font-size: 12px; }
.ow-cn.over { color: #B42318; font-weight: 700; }
.ow-2 { display: flex; flex-wrap: wrap; gap: 16px; }
.ow-2 .n { flex: 1 1 140px; }
.ow-2 .w { flex: 3 1 260px; }
.ow-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.ow-fs legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; }
.ow-checks { clear: both; display: flex; flex-wrap: wrap; gap: 0 22px; }
.ow-checks.col { flex-direction: column; }
.ow-checks label, .ow-agree { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.ow-checks input, .ow-agree input { width: 20px; height: 20px; accent-color: #00798F; margin: 0; }
.ow-save { position: sticky; bottom: 0; background: #FFFFFF; border-top: 1px solid var(--line); padding: 14px 0 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; z-index: 2; }
.ow-file { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.ow-file input { font: inherit; font-size: 14px; max-width: 100%; }
.ow-face { width: 96px; height: 96px; object-fit: cover; display: block; background: var(--photo); }
.ow-noimg { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--sub); }

/* 写真 */
.ow-pics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.ow-pics li { display: flex; flex-direction: column; gap: 6px; }
.ow-pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--photo); height: auto; }
.ow-pa { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.ow-pa form { margin: 0; }
.ow-up2 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px; border: 1px dashed #7F969C; }

/* 口コミ */
.ow-score { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 22px; color: var(--star); }
.ow-score small { font-family: 'BIZ UDPGothic', sans-serif; font-size: 14px; color: var(--sub); margin-left: 6px; font-weight: 400; }
.ow-rv { border-top: 1px solid var(--accent-line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ow-star { color: var(--star); }
.ow-reply { background: var(--pale); padding: 12px 14px; border-left: 3px solid var(--accent-line); display: flex; flex-direction: column; gap: 4px; }
.ow-mini summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; color: var(--link); font-size: 14px; }

/* お知らせ */
.ow-nl { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--accent-line); }
.ow-nl li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ow-nl .ow-dt { flex: 0 0 84px; }
.ow-nt { flex: 1 1 200px; min-width: 0; }
.ow-nl a { font-weight: 700; display: inline-flex; align-items: center; min-height: 40px; }

/* プラン */
.ow-plans { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--accent-line); }
.ow-plans li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ow-plans li > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; }
.ow-plans li.cur { background: var(--pale); padding-left: 14px; padding-right: 14px; }
.ow-plans p { margin: 0; }
.ow-plans form { margin: 0; }

@media (max-width: 640px) {
	.ow-who .ow-jn { display: none; }
	.ow-btn.lg { width: 100%; }
}
.ow-main p { margin: 0; }
.ow-band.warn { background: #FFF4D6; }
.ow-rule { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; color: var(--sub); display: flex; flex-wrap: wrap; gap: 2px 16px; }
.ow-rule li::before { content: "－"; margin-right: 6px; }
.ow-rule li.ok { color: #1E7A45; }
.ow-rule li.ok::before { content: "✓"; }
.ow-in:disabled { background: var(--pale); }
.ow-ro { display: inline-flex; align-items: center; width: auto; flex: 1 1 260px; background: var(--pale); color: var(--ink); overflow-wrap: anywhere; }
