/* 学校ウェブ出願システムの画面（参照HTML）に合わせたスタイル
 * ベース: Bulma 0.9.4 / テーマ色 #00796b / アイコン: Font Awesome 6 */
:root { --main-color: #00796b; --main-dark: #00695c; }
html, body { background: #fff; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 30; background: #fff; padding: 4px 8px; }

/* ヘッダーバー */
.header-bar {
  color: #fff; background-color: var(--main-color); font-weight: bold;
  display: flex; align-items: center; height: 40px; padding: 5px; font-size: 14px;
  position: relative; margin-bottom: .5em; justify-content: space-between;
}
.header-title { width: 100%; text-align: center; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-bar { box-sizing: border-box; height: 40px; padding: 5px; overflow: visible; }
.header-bar .button { height: 30px; width: 42px; min-width: 0; padding: 0; margin: 0; border: 0; flex: 0 0 auto; background-color: var(--main-color); box-shadow: none; }
.header-bar .button:hover, .header-bar .button:focus { background-color: #00695c; border: 0; box-shadow: none; }
.header-bar .button .icon { height: 1.25rem; width: 1.25rem; }
.header-bar .button.is-medium { font-size: 1rem; }
.header-spacer { width: 42px; flex: 0 0 auto; display: inline-block; }
.header-button-field { position: relative; flex: 0 0 auto; }

/* ヘッダー下の情報帯 */
.header-info { margin-bottom: 10px; font-size: 14px; }
.header-info__id { padding: 4px 6px; font-weight: bold; color: #363636; }
.header-info__user { list-style: none; margin: 0; padding: 0 6px; color: #4a4a4a; display: flex; flex-wrap: wrap; gap: 2px 16px; }

/* ハンバーガーメニュー（青） */
.menu-content {
  display: none; position: absolute; top: 40px; right: 0; z-index: 20;
  width: 300px; background-color: #3584bb; border-radius: 3px; box-shadow: 0 6px 14px rgba(0,0,0,.2);
}
.menu-content.is-open { display: block; }
.menu-content ul { list-style: none; margin: 0; padding: 0; }
.menu-content li { border-bottom: solid 1px #fff; }
.menu-content li:last-child { border-bottom: 0; }
.menu-content a { display: block; padding: .75em 1em; color: #fff; font-size: 14px; }
.menu-content a:hover { background: rgba(255,255,255,.15); color: #fff; }

/* 本文 */
.body-area { padding: 0 12px; }
.examinee { position: relative; margin: 2em 0; padding: .6em .8em .4em; border: solid 1px #95ccff; border-radius: 3px; }
.examinee > legend {
  position: absolute; display: inline-block; top: -13px; left: 10px; padding: 0 9px; line-height: 1;
  font-size: 19px; background: #fff; color: #95ccff; font-weight: bold; width: auto;
}
.examinee .table { margin-bottom: 0; }
.examinee .table th { width: 9em; white-space: nowrap; background: #fafafa; }
.examinee .field.is-horizontal { margin-bottom: .75rem; }
.examinee .field-label.is-normal { padding-top: .375em; }
.form-item { display: block; padding: 12px 14px; border-bottom: 1px solid #ededed; color: #363636; }
.form-item:last-child { border-bottom: 0; }
.form-item:hover { background: #f5fbfa; color: #363636; }
.form-item__title { font-size: 1.05rem; font-weight: bold; margin: 0 0 .25rem; }
.form-item__desc { margin: 0 0 .25rem; color: #4a4a4a; }
.form-item__meta { font-size: 13px; color: #7a7a7a; }
.form-item .tag { margin-right: 4px; }

/* 照会ログイン画面のボックス（参照画面と同じ配色） */
.login-box { background-color: lightcyan; border: 1px solid cyan; box-shadow: 2px 2px 2px 2px rgba(0,0,0,.2); border-radius: 6px; padding: 1.25rem; color: hsl(0,0%,29%); display: block; }
.login-title { text-align: center; font-weight: bold; color: #363636; margin-bottom: .5rem; }

/* 伝達事項 */
.note-box { background: #fffbe6; border: 1px solid #e8d98a; border-radius: 6px; padding: 10px 14px; }

/* Tom Select を Bulma の入力欄に近づける */
.ts-wrapper { width: 100%; }
.ts-wrapper.single .ts-control { border: 1px solid #dbdbdb; border-radius: 4px; min-height: 2.5em; box-shadow: none; padding: .35em .6em; background: #fff; }
.ts-wrapper.focus .ts-control { border-color: #485fc7; box-shadow: 0 0 0 .125em rgba(72,95,199,.25); }
.ts-dropdown { border: 1px solid #dbdbdb; border-radius: 4px; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.ts-dropdown .active { background: #e6fbf7; color: #00796b; }

/* 文字数・ファイル */
.counter-text { font-size: .8rem; color: #7a7a7a; text-align: right; margin-top: .25rem; }
.file-name-text { margin-left: .5rem; color: #4a4a4a; }

@media print {
  .no-print, .header-bar, .header-info, .menu-content { display: none !important; }
  .examinee { break-inside: avoid; }
}
@media (max-width: 768px) {
  .examinee .field.is-horizontal { display: block; }
  .examinee .field-label { text-align: left; margin-bottom: .25rem; }
  .examinee .field-body { display: block; }
  .examinee .table th { width: auto; white-space: normal; display: block; }
  .examinee .table td { display: block; }
}

/* ============================================================
 * 共通：主要ボタン・タブの色（Bulma 既定の #00d1b2 を上書き）
 * 白文字とのコントラスト比を 4.5:1 以上に確保する
 * ============================================================ */
.button.is-primary { background-color: var(--main-color); border-color: transparent; color: #fff; }
.button.is-primary:hover, .button.is-primary:focus { background-color: var(--main-dark); border-color: transparent; color: #fff; }
.button.is-primary:active { background-color: #004d43; border-color: transparent; color: #fff; }
.tabs li.is-active a, .tabs.is-boxed li.is-active a { color: var(--main-color); }
