/* 新システムの基本スタイル（2026-10-25 版のデザイン）。
   旧サイトのロゴ・青（#0785f2）・フッターの濃い色（#263238）をそのまま使い、スマホで押しやすい大きさにした。
   ボタンの青は、白い文字が読みやすいように少し濃い #0569c8。 */
:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --text: #1c2733;
  --muted: #5b6878;
  --line: #dde4ec;
  --line-strong: #c9d6e4;
  --brand: #0569c8;
  --brand-dark: #044f97;
  --brand-bright: #0785f2;
  --brand-soft: #e3effc;
  --brand-ink: #ffffff;
  --accent: #d4380d;
  --footer: #263238;
  --ok-bg: #e6f4ea;
  --ok-text: #1e5b32;
  --err-bg: #fdecec;
  --err-text: #8a1c1c;
  --radius: 14px;
  --tabbar-h: 64px;
  --font: "Noto Sans JP", "Noto Sans Thai", "Noto Sans KR", "Noto Sans SC", "Noto Sans TC", "Hiragino Sans", "Yu Gothic UI", "Malgun Gothic", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1 { font-size: 1.6rem; line-height: 1.35; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 600px; }

/* ヘッダー（旧 header.jsp：ロゴ・メニュー） */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 2px; line-height: 1.2; flex: none; }
.brand-logo { height: 28px; width: auto; display: block; }
.brand-name { font-size: 1.25rem; font-weight: 700; color: var(--brand-bright); }
.brand small { font-weight: 400; color: var(--muted); font-size: .75rem; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text); padding: 0 9px; min-height: 44px; white-space: nowrap; display: flex; align-items: center; border-bottom: 3px solid transparent; font-size: .95rem; }
.nav a:hover { color: var(--brand); }
.nav a.current { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); }
.nav-desktop { flex: 1; flex-wrap: nowrap; }
.nav-desktop a { font-size: .9rem; }
.account { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.langs { display: flex; gap: 8px; font-size: .85rem; padding-left: 10px; border-left: 1px solid var(--line); }
.langs a { color: var(--muted); }
.mobile-menu { display: none; margin-left: auto; }
.mobile-menu summary { list-style: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(20, 40, 70, .12); padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu-panel .nav { flex-direction: column; align-items: stretch; gap: 0; }
.mobile-menu-panel .nav a { border-bottom: 1px solid var(--line); min-height: 52px; padding: 0 4px; }
.mobile-menu-panel .nav a.current { border-bottom-color: var(--line); }
@media (max-width: 1180px) {
  .nav-desktop, .account-desktop { display: none; }
  .mobile-menu { display: block; }
}
/* 画面の上の写真（旧の各画面と同じ写真） */
.page-hero { height: 140px; background-size: cover; background-position: center; background-color: var(--brand-soft); }
@media (max-width: 640px) { .page-hero { height: 88px; } }

/* フッター（旧 footer.jsp の濃い色と4つの列） */
.site-footer { margin-top: 48px; background: var(--footer); color: #d6dde3; font-size: .9rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 8px; }
.footer-cols div { display: flex; flex-direction: column; gap: 6px; }
.footer-cols a { color: #d6dde3; text-decoration: none; }
.footer-cols a:hover { color: #ffffff; text-decoration: underline; }
.footer-head { font-weight: 700; color: #ffffff; margin: 0 0 4px; }
.footer-copy { padding-top: 16px; padding-bottom: 24px; color: #9fb0bc; font-size: .8rem; }

/* スマホの下のメニュー（生徒がログインしているとき） */
.tabbar { display: none; }
@media (max-width: 960px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; color: var(--muted); text-decoration: none; }
  .tabbar a.current { color: var(--brand); font-weight: 700; }
  body:has(.tabbar) { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
}

.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 2rem; margin-top: .5rem; }
.note { color: var(--muted); font-size: .9rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
@media (max-width: 640px) { .card { padding: 16px; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 4px; }
.stat-label { color: var(--muted); font-size: .85rem; }
.stat-value { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .9rem; font-weight: 400; color: var(--muted); }

/* ボタン：スマホで押しやすいよう高さ 44px 以上 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; background: var(--brand); color: var(--brand-ink); border: 1px solid var(--brand); border-radius: 12px; padding: 8px 20px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.3; text-align: center; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--brand-ink); }
.btn-small { min-height: 40px; padding: 6px 14px; font-size: .9rem; border-radius: 10px; }
.btn-ghost { background: var(--surface); color: var(--brand); border: 1px solid var(--line-strong); font-weight: 500; }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--line-strong); }
.inline { display: inline; margin: 0; }
.link-danger { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }

.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 600; font-size: .9rem; margin-top: 8px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form input[type=radio], .form input[type=checkbox] { min-height: 0; width: auto; }
.form button[type=submit] { margin-top: 14px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.grid-2, .grid-3 { display: grid; gap: 12px; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.field-error { color: var(--err-text); font-size: .85rem; margin: 0; }

.alert { padding: 12px 14px; border-radius: 10px; }
.alert-error { background: var(--err-bg); color: var(--err-text); }
.alert-ok { background: var(--ok-bg); color: var(--ok-text); }
.alert-info { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #b9d5f3; margin-bottom: 16px; line-height: 1.7; }

.news { list-style: none; padding: 0; margin: 0; }
.news li { padding: 10px 0; border-top: 1px solid var(--line); }
.news li:first-child { border-top: 0; }
.news time { color: var(--muted); font-size: .85rem; margin-right: 8px; font-variant-numeric: tabular-nums; }
.news-body { margin: 4px 0 0; color: var(--muted); font-size: .92rem; white-space: pre-line; }
.news-more { display: inline; }
.news-more summary { display: inline; cursor: pointer; color: var(--link, #0785F2); }
.news-more[open] .news-body { display: block; margin-top: 6px; }
.badge { background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-right: 6px; }

.title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.title-row > h1 { flex: 1 1 auto; }
@media (max-width: 640px) { .title-row > .btn { flex: 1 1 100%; } .title-row h1 { margin-bottom: .25rem; } }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.table td.actions { display: flex; gap: 12px; }

/* 予約画面 */
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.date-chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 60px; min-height: 64px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; line-height: 1.3; }
.date-chip .dow { font-size: .8rem; color: var(--muted); }
.date-chip .dnum { font-weight: 700; font-variant-numeric: tabular-nums; }
.date-chip.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.date-chip.active .dow { color: var(--brand-ink); }
.band-tabs { display: flex; gap: 8px; margin: 4px 0 8px; }
.band-tab { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--text); background: var(--surface); }
.band-tab.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.teacher-list { display: grid; gap: 12px; }
.teacher-row { display: grid; gap: 10px; margin-bottom: 0; }
@media (min-width: 720px) { .teacher-row { grid-template-columns: 200px 1fr; align-items: start; } }
.teacher-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.teacher-photo-link { display: inline-flex; margin-right: 4px; }
.tag { font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: var(--accent); color: #fff; }
.tag-quiet { background: var(--line); color: var(--text); }
.slots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.slot { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 44px; padding: 6px 12px; border-radius: 10px; font-weight: 700; background: #428bca; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; font-size: .92rem; }
/* 予約の枠の色は旧の画面と同じ：予約できる＝青（#428bca）、予約済み＝赤（#d9534f）、受付終了＝薄い灰色 */
a.slot:hover { background: #3071a9; color: #fff; }
.slot-taken { background: #d9534f; color: #fff; font-weight: 700; }
.legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0 0 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.slot-expired { background: #eef1f4; color: var(--muted); font-weight: 400; }

/* 予約中のレッスン（会員ホーム）・キャンセル */
.btn-danger { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.btn-danger:hover { background: #a82c0a; border-color: #a82c0a; }
.lessons { list-style: none; margin: 0; padding: 0; }
.lesson { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.lesson:first-child { border-top: 0; padding-top: 0; }
.lesson-when { font-weight: 700; font-size: 1.1rem; }
.lesson-meta { color: var(--muted); font-size: .92rem; }
.lesson-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 640px) { .lesson-actions { width: 100%; } .lesson-actions .btn { flex: 1 1 auto; } }
.quota { margin: 0 0 12px; }
.quota strong { color: var(--accent); }

/* アカウントの状態（会員ホーム） */
.account-status h3 { font-size: 1rem; margin: 0 0 .6rem; color: var(--brand-dark); }
.status-block { padding: 16px 0; border-top: 1px solid var(--line); }
.account-status h2 + .status-block { border-top: 0; padding-top: 0; }
.status-block > :last-child { margin-bottom: 0; }
.status-links { padding-top: 16px; border-top: 1px solid var(--line); margin-bottom: 0; }
.trial-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; margin-bottom: 16px;
  border-radius: 10px; background: var(--ok-bg); color: var(--ok-text); font-weight: 600; }
.trial-banner-label { font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--ok-text); color: #fff; }
.course-choice { margin-bottom: 16px; }
.course-choice-lead { font-weight: 700; margin: 0 0 12px; }
.course-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.course-option { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line-strong);
  border-top: 4px solid var(--brand); border-radius: var(--radius); background: var(--surface); color: var(--text);
  text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.course-option + .course-option { border-top-color: var(--brand-bright); }
.course-option:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(5, 105, 200, .12); }
.course-option-name { font-weight: 700; font-size: 1.08rem; color: var(--brand-dark); }
.course-option-desc { color: var(--muted); font-size: .92rem; flex: 1; }
.course-option .btn { text-align: center; }
.cycle-chart { margin-top: 8px; }
.bars { display: flex; gap: 16px; align-items: flex-end; height: 140px; padding-top: 18px; }
.bar { flex: 1; max-width: 90px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar-fill { width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-value { font-weight: 700; font-size: .9rem; }
.bar-label { color: var(--muted); font-size: .8rem; margin-top: 4px; }

/* 受講履歴・ポイントの履歴 */
.history-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2rem; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td:last-child { white-space: normal; }
.scores { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: .5rem 0 0; font-size: .9rem; }
.scores dt { color: var(--muted); }
.scores dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.score-bar { display: inline-block; width: 120px; max-width: 40vw; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.score-bar > span { display: block; height: 100%; background: var(--brand); }

/* 講師ポータルのトップ（予約の一覧は列が多いので、幅を広く） */
.wrap.wide { max-width: 1400px; }
.teacher-lessons td, .teacher-lessons th { font-size: .85rem; padding: 6px 8px; }
.teacher-lessons th { white-space: normal; min-width: 4.5em; }
.teacher-lessons tr.is-today td { color: #c62828; font-weight: 600; }
.teacher-lessons tr.is-houjin td { background: #fff59d; }
.legend { display: inline-block; margin-right: 12px; padding: 0 6px; border-radius: 4px; }
.legend-today { color: #c62828; font-weight: 600; }
.legend-houjin { background: #fff59d; }
.flag-yes { color: #1565c0; }

/* 講師の報告（Finish の評価のラジオボタンなど） */
.form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 10px 0 0; }
.form legend { font-weight: 600; font-size: .9rem; padding: 0 4px; }
.form label.inline { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-top: 4px; }
.form label.inline input { width: auto; }

/* 講師の日ごとのスケジュール */
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.day-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.day-picker a { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: inherit; }
.day-picker a.is-weekend { background: #fff8e1; }
.day-picker a.is-selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; font-weight: 600; }
.slot-table th, .slot-table td { text-align: center; font-size: .85rem; min-width: 5.5em; vertical-align: top; }
.slot-table .full { color: #c62828; }
.slot-choice { display: block; text-align: left; white-space: nowrap; font-weight: 400; }
.comments { margin: 0; padding-left: 1.2rem; }
.comments li { margin: .4rem 0; white-space: pre-wrap; }

/* 講師の応募フォーム（teacher/register.html） */
.req { color: var(--err-text); }
.form .check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; }
.form .check input { width: auto; margin-top: 4px; }
.radios { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.radios.stacked { flex-direction: column; gap: 4px; }
.form h2 { font-size: 1.05rem; margin: 22px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 体験レッスンの一覧（teacher/triallesson.html） */
textarea.reminder { width: 100%; min-width: 320px; font: inherit; font-size: .85rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
dl.student-card { margin: 0; }

.flag-mail { color: var(--err-text); }

.payroll-facts { margin: 4px 0 10px; padding-left: 18px; }
/* お気に入りの講師 */
.favorite-list { list-style: none; padding: 0; margin: 0; }
.favorite-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.favorite-list li a { flex: 1; }
.favorite-list img { border-radius: 50%; object-fit: cover; }
/* お支払履歴・購入履歴 */
.payment { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 8px; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; }
.tabs-inline { display: flex; gap: 16px; margin: 8px 0 12px; flex-wrap: wrap; }
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.text-alert { color: var(--accent); }
.unit-list { margin: 0; padding-left: 1.6em; columns: 2; column-gap: 24px; }
.unit-list li { break-inside: avoid; margin: 2px 0; }
@media (max-width: 640px) { .unit-list { columns: 1; } }
.badge { display: inline-block; font-size: .75rem; padding: 0 6px; border-radius: 8px; background: var(--line); }
/* 講師の紹介 */
.teacher-grid { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.teacher-grid li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.teacher-grid h3 { margin: 0 0 4px; font-size: 1rem; }
.teacher-photo { border-radius: 50%; object-fit: cover; background: var(--line); flex: none; }
.teacher-profile { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.meter { position: relative; background: var(--line); border-radius: 6px; height: 22px; overflow: hidden; font-size: .8rem; }
.meter-bar { position: absolute; inset: 0 auto 0 0; background: var(--brand); opacity: .25; }
.meter span { position: relative; padding: 0 6px; line-height: 22px; }
.comment-list { padding-left: 1.2em; }
.comment-list li { margin: 6px 0; }
.teacher-day h3 { font-size: .95rem; margin: 12px 0 4px; }
audio { max-width: 100%; vertical-align: middle; }
/* 旧の内容だけの画面（templates/school/static） */
.legacy-content img { max-width: 100%; height: auto; }
.legacy-content table { width: 100%; border-collapse: collapse; margin: 8px 0; display: block; overflow-x: auto; }
.legacy-content td, .legacy-content th { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.legacy-content .legacy-pane { margin: 16px 0; }
.legacy-content .legacy-pane > h2 { border-left: 4px solid var(--brand); padding-left: 8px; }
.legacy-content .pricing .col-md-4, .legacy-content .pricing .col-sm-6 { display: inline-block; vertical-align: top; width: 100%; max-width: 320px; }

/* 法人管理画面（左にメニュー、右に内容） */
.portal { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 16px; align-items: start; }
.portal-menu p { margin: 6px 0; }
@media (max-width: 720px) { .portal { grid-template-columns: 1fr; } }

/* トップ（旧 index.jsp） */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-center { text-align: center; }
/* トップの写真（旧 img/th-4-ribbon.jpg から上の白い帯と左上のリボンを切ったもの）。
   「17周年」はリボンの代わりに丸いバッジ（.years-badge）で出す */
.top-hero { position: relative; background: #0b1640 url('/images/top-hero.jpg') center 20% / cover no-repeat;
  height: clamp(380px, 32vw, 460px); }
.top-hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 12, 40, .78) 0%, rgba(5, 12, 40, .45) 45%, rgba(5, 12, 40, .1) 75%); }
.top-hero-inner { position: relative; height: 100%; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.top-hero-text { color: #ffffff; flex: 1 1 320px; display: flex; align-items: center; gap: 20px; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.top-hero-text h1 { margin: 0 0 8px; font-size: 2.2rem; line-height: 1.25; }
.top-hero-text p { margin: 0; font-size: 1.1rem; }
.top-hero-form { flex: 0 1 380px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.top-hero-form input { width: 100%; font: inherit; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; }
.top-hero-lead { margin: 0; font-weight: 700; }
/* 「運営17周年・実績No.1」の丸いバッジ（旧のリボンと同じオレンジ） */
.years-badge { flex: 0 0 auto; width: 108px; height: 108px; border-radius: 50%; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  background: radial-gradient(circle at 30% 25%, #ffb347 0%, #f39200 55%, #d96f00 100%); color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35); text-shadow: 0 1px 2px rgba(120, 50, 0, .5); }
.years-badge::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .8); }
.years-badge-top { font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.years-badge-num { font-family: "Montserrat", var(--font); font-size: 2.3rem; font-weight: 700; }
.years-badge-num small { font-family: var(--font); font-size: .8rem; font-weight: 700; margin-left: 1px; }
.years-badge-bottom { font-size: .68rem; font-weight: 700; margin-top: 2px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .22); }
/* スマホ：写真は低めの帯にして、文字と申し込み欄はその下の紺色の帯に出す */
@media (max-width: 760px) {
  .top-hero { height: auto; background: #0b1640; }
  .top-hero::before { position: static; display: block; height: 190px; background: url('/images/top-hero.jpg') 20% 30% / cover no-repeat; }
  .top-hero-inner { height: auto; padding-top: 20px; padding-bottom: 24px; background: #0b1640; }
  .top-hero-text { gap: 14px; }
  .top-hero-text h1 { font-size: 1.45rem; }
  .top-hero-text p { font-size: .98rem; }
  .years-badge { width: 84px; height: 84px; }
  .years-badge-num { font-size: 1.8rem; }
  .years-badge-top { font-size: .62rem; }
  .years-badge-bottom { font-size: .58rem; }
  .top-hero-form { flex-basis: 100%; }
}
.top-section { padding: 40px 0 8px; }
.top-section h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.top-grid { display: grid; gap: 16px; margin-top: 20px; text-align: left; }
.top-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.top-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.top-grid h3 { font-size: 1.05rem; margin: 0 0 6px; }
.top-grid .card { margin: 0; }
.price-card { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.price-card-active { border: 2px solid var(--brand); }
.price-value { font-size: 2rem; font-weight: 700; margin: 0; color: var(--brand); }
.price-value small { font-size: .85rem; color: var(--muted); font-weight: 400; margin-left: 4px; }
.feature { text-align: center; }
.feature img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; }
.voice img { width: 64px; height: 64px; border-radius: 50%; }
.top-band { background-size: cover; background-position: center; position: relative; color: #ffffff; padding: 48px 0; margin-top: 40px; }
.top-band::before { content: ""; position: absolute; inset: 0; background: rgba(10, 30, 55, .55); }
.top-band .wrap { position: relative; }
.top-band h2 { font-size: 1.5rem; }
.top-mail { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.top-mail img { flex: 0 1 360px; }
.top-mail > div { flex: 1 1 300px; }

/* 会員ホーム（home.jsp）：PC は左に予約中のレッスン、右にご利用状況・お知らせ・メニュー */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 24px 0 20px; }
.home-head h1 { margin: 0; font-size: 1.75rem; }
.home-eyebrow { margin: 0 0 2px; color: var(--muted); font-size: .9rem; }
.home-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-large { min-height: 52px; padding: 8px 22px; font-size: 1rem; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.home-grid > * , .home-side > .card { margin-bottom: 0; }
.home-side { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-actions { width: 100%; }
  .home-actions .btn { flex: 1 1 auto; }
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.home-lessons .lessons { display: flex; flex-direction: column; gap: 12px; }
.home-lessons .lesson { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; align-items: start;
  padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.home-lessons .lesson:first-child { padding-top: 14px; border-top: 1px solid var(--line); }
.home-lessons .lesson-actions { grid-column: 2; margin-top: 8px; }
@media (max-width: 640px) { .home-lessons .lesson-actions { grid-column: 1 / -1; } }
.lesson-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem;
  position: relative; overflow: hidden; flex: none; }
.lesson-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* パソコン：予約の画面と同じく、写真は元の大きさのまま丸く（拡大・切り取りをしない） */
@media (min-width: 768px) {
  .home-lessons .lesson { grid-template-columns: auto minmax(0, 1fr); }
  .lesson-avatar { width: auto; height: auto; min-width: 52px; min-height: 52px; background: none; overflow: visible; }
  .lesson-avatar span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--brand-soft); }
  .lesson-avatar img { position: relative; inset: auto; width: auto; height: auto; max-width: 100px; object-fit: fill;
    border-radius: 50%; display: block; }
}
.btn-cancel { background: var(--surface); color: #b02a00; border: 1px solid #f0c2b3; font-weight: 500; }
.btn-cancel:hover { background: #fdf0eb; color: #8a2200; border-color: #e8a892; }
.empty { text-align: center; padding: 24px 12px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.empty p { margin: 0 0 12px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile { background: var(--bg); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile-main { background: var(--brand-soft); }
.tile-label { font-size: .78rem; color: var(--muted); }
.tile-value { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile-main .tile-value { color: var(--brand-dark); }
.tile-value small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.points-rules summary { cursor: pointer; color: var(--brand); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.points-rules[open] summary { margin-bottom: 8px; }
.points-rules p, .points-rules ul { font-size: .92rem; }
.menu-list { padding: 8px 20px; }
.menu-list h2 { margin: 12px 0 4px; font-size: 1rem; color: var(--muted); }
.menu-list a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; color: var(--text);
  text-decoration: none; border-top: 1px solid var(--line); }
.menu-list h2 + a { border-top: 0; }
.menu-list a:hover { color: var(--brand); }
.menu-list .chev { color: var(--muted); font-size: 1.3rem; }

/* 講師ポータルの管理画面（入金の登録・定額制・講師の管理・評価など） */
.mail-preview { white-space: pre-wrap; font: inherit; font-size: .92rem; line-height: 1.6; }
.text-alert { color: var(--accent); font-weight: 700; }
.input-small { width: 6em !important; min-height: 38px; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 8px; }
.teacher-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.audio-cell audio { height: 32px; max-width: 220px; vertical-align: middle; }
.row-muted td { color: var(--muted); background: #f7f8fa; }
.comment-row { padding: 10px 0; border-top: 1px solid var(--line); }
.comment-row:first-of-type { border-top: 0; }
.comment-text { white-space: pre-wrap; margin: 4px 0 8px; }
.table.open-stat td { vertical-align: top; }
.table.open-stat .note { white-space: normal; max-width: 260px; font-size: .8rem; }

/* ===== 予約画面（旧 reservehoudai.jsp に近い見た目。2026-10-27）=====
   パソコン：2 か月のカレンダー・講師は灰色の箱を 1 行に 2〜3 人・枠は小さいラベル（旧と同じ）
   スマホ　：日付の帯・講師は 1 人ずつ・枠は指で押しやすい大きさ（色と形は旧と同じ） */
.reserve-date { font-size: 1.1rem; margin: 8px 0 10px; }
.reserve-calendar { display: none; }
.cal-month table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: center; font-variant-numeric: tabular-nums; }
.cal-month caption { font-weight: 600; padding-bottom: 6px; }
.cal-month th { background: #808080; color: #fff; font-weight: 400; font-size: .85rem; padding: 4px 0; }
.cal-month td { padding: 5px 0; color: #9aa3ad; }
.cal-month td a { display: inline-block; min-width: 2.2em; padding: 3px 0; border-radius: 4px; color: #0785f2; font-weight: 700; text-decoration: none; }
.cal-month td a:hover { background: #e3f0ff; }
.cal-month td.selected a { background: #428bca; color: #fff; }
@media (min-width: 768px) {
  .reserve-calendar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: #f5f8f8; border: 1px solid #e9ebeb; border-radius: 6px; padding: 16px 20px; margin-bottom: 14px; }
  .date-strip.has-calendar { display: none; }
}

/* 平日昼（水色）・夜（青） */
.band-tab.band-noon, .band-tab.band-evening { color: #fff; font-weight: 700; opacity: .55; }
.band-tab.band-noon { background: #5bc0de; border-color: #5bc0de; }
.band-tab.band-evening { background: #428bca; border-color: #428bca; }
.band-tab.band-noon.active, .band-tab.band-evening.active { opacity: 1; box-shadow: 0 0 0 3px rgba(66, 139, 202, .25); }

/* 時刻の表示（時間帯は赤）とお知らせ */
.reserve-zone b { color: #e00000; }
/* 時刻を出している時間帯（日本時間・タイ時間）。会員ホーム・予約の画面。ブランドの青のラベル（運用者の依頼 2026-10-29） */
.zone-label { display: inline-block; color: var(--brand-dark); background: var(--brand-soft); border: 1px solid #b9d5f3;
  font-weight: 700; padding: 0 8px; border-radius: 999px; line-height: 1.6; margin: 0 2px; white-space: nowrap; }
.reserve-news { list-style: none; margin: 0 0 14px; padding: 0; font-size: .92rem; }
.reserve-news li { margin: 3px 0; }
.reserve-news time { color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.reserve-news li.important a, .reserve-news li.important span:not(.badge) { color: #d9534f; font-weight: 700; }

/* 講師の箱 */
.teacher-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.teacher-card { display: flex; flex-direction: column; gap: 8px; background: #f5f8f8; border: 1px solid #e9ebeb; border-radius: 6px; padding: 10px; }
.teacher-card-head { display: flex; align-items: center; gap: 10px; }
.teacher-card .teacher-photo { width: 48px; height: 48px; }
.teacher-card-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.teacher-card-name a { color: var(--text); text-decoration: none; }
.teacher-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.teacher-badge { height: 18px; width: auto; }
/* スマホ：枠は指で押しやすく */
.teacher-card .slots { gap: 6px; }
.teacher-card .slot { min-width: 64px; min-height: 40px; padding: 4px 10px; border-radius: 6px; font-size: .95rem; }
@media (min-width: 768px) {
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-card { flex-direction: row; align-items: flex-start; min-height: 150px; }
  .teacher-card-head { flex-direction: column; flex: none; min-width: 92px; max-width: 132px; text-align: center; gap: 4px; }
  /* パソコン：旧と同じく写真は元の大きさのまま丸く（旧 .circlepic）。拡大・切り取りをしない */
  .teacher-card .teacher-photo { width: auto; height: auto; max-width: 120px; object-fit: fill; }
  .teacher-card-name { flex-direction: column; justify-content: center; }
  /* パソコン：旧と同じ小さいラベル */
  .teacher-card .slots { gap: 4px; align-content: flex-start; }
  .teacher-card .slot, .legend .slot { min-width: 0; min-height: 0; padding: .3em .6em; border-radius: .25em; font-size: .8rem; line-height: 1.2; }
}
@media (min-width: 1080px) { .teacher-grid { grid-template-columns: repeat(3, 1fr); } }

/* 予約・キャンセルの確認の画面の講師の写真（旧 .circlepic：元の大きさのまま丸く） */
.confirm-photo { margin: 0 0 8px; text-align: center; }
.confirm-photo img { display: inline-block; max-width: 120px; height: auto; border-radius: 50%; }

/* マイページのお問合せ先（旧の水色の枠） */
.home-contact { background: #e6f3fa; border-color: #b4c5d6; }
.home-contact p { margin: 4px 0; }
.inline-icon { vertical-align: middle; display: inline-block; }

/* 評価の画面：ポイント付与の確認のお知らせ */
.evaluate-point-check { background: #fff8e1; border: 1px solid #f0d68a; margin: 12px 0; font-size: .92rem; }

.pay-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* 講師の写真：旧（.circlepic）と同じく元の大きさのまま丸く。拡大・切り取りをしない（講師一覧・プロフィール・お気に入り。運用者の依頼 2026-10-28） */
.photo-natural { width: auto; height: auto; max-width: 120px; object-fit: fill; border-radius: 50%; display: block; }
.photo-natural.photo-big { max-width: min(100%, 260px); margin: 0 auto 8px; }
.photo-natural.photo-small { max-width: 72px; }

/* 料金プラン（price.jsp）：スマホでも読みやすく（運用者の依頼 2026-10-28） */
.price-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 12px; }
.price-nav a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface, #fff); color: var(--brand); text-decoration: none; font-weight: 600; font-size: .95rem; }
.legacy-content .pricing > div > .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 12px 0; }
.legacy-content .pricing .row > a { color: inherit; text-decoration: none; display: contents; }
.legacy-content .pricing .pricing-option { box-sizing: border-box; width: 100%; max-width: 320px; padding: 16px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); }
.legacy-content .pricing .pricing-option.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.legacy-content .pricing .pricing-option h6 { margin: 0 0 6px; font-size: .95rem; }
.legacy-content .pricing .pricing-option a:not(.btn) { color: inherit; text-decoration: none; }
.legacy-content .pricing .price-container { font-size: 1.6rem; font-weight: 700; color: var(--brand); margin: 4px 0 6px; }
.legacy-content .pricing .pricing-option p { margin: 6px 0 10px; }
.legacy-content .pricing .pricing-option .btn { margin: 4px 2px 0; }
@media (min-width: 768px) { .legacy-content .pricing .pricing-option { width: calc(50% - 12px); } }
@media (min-width: 1080px) { .legacy-content .pricing .col-md-4.pricing-option { width: calc(33.333% - 12px); } }

/* 長い URL（Google Drive・Teams など）が枠からはみ出さないように折り返す（運用者の依頼 2026-10-28） */
.facts dd { min-width: 0; overflow-wrap: anywhere; }
.card a[href^="http"], .facts a, .table td a[href^="http"] { overflow-wrap: anywhere; word-break: break-word; }

/* 新規登録：体験レッスンの希望日（カレンダー）と時間（運用者の依頼 2026-10-29） */
.trial-wish { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 12px; margin: 8px 0; }
.trial-wish legend { font-weight: 700; padding: 0 4px; }
.trial-wish-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.trial-field { display: flex; flex-direction: column; gap: 4px; margin: 0; font-weight: 400; }
.trial-field > span { font-size: .85rem; color: var(--muted); }
.trial-field input, .trial-field select { width: 100%; min-width: 0; box-sizing: border-box; }
.trial-today { color: #b02a00; }

/* お知らせの記事（WordPress から移したもの）：どの画面でも読みやすく（運用者の依頼 2026-10-29） */
.news-article h1 { font-size: 1.35rem; line-height: 1.5; margin: 4px 0 16px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; margin: 0; }
.news-content { line-height: 1.85; overflow-wrap: anywhere; }
.news-content p { margin: 0 0 1em; }
.news-content h2, .news-content h3, .news-content h4 { margin: 1.4em 0 .6em; line-height: 1.5; }
.news-content h2 { font-size: 1.15rem; border-left: 4px solid var(--brand); padding-left: 8px; }
.news-content h3 { font-size: 1.05rem; }
.news-content img, .news-content video { max-width: 100%; height: auto; }
.news-content iframe { max-width: 100%; }
.news-content figure { margin: 1em 0; }
.news-content figcaption { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.news-content .aligncenter, .news-content .wp-block-image.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.news-content .wp-block-gallery, .news-content .blocks-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding: 0; list-style: none; }
.news-content .wp-block-gallery figure { margin: 0; }
.news-content hr, .news-content .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.news-content table { display: block; overflow-x: auto; border-collapse: collapse; margin: 1em 0; }
.news-content td, .news-content th { border: 1px solid var(--line); padding: 6px 8px; }
.news-content ul, .news-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.news-content blockquote { margin: 1em 0; padding: 8px 12px; border-left: 4px solid var(--line); background: var(--brand-soft); }
.news-content a { overflow-wrap: anywhere; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
