:root {
    --ink: #202a36;
    --ink-soft: #566372;
    --ink-faint: #8a97a4;
    --line: #d8dee4;
    --line-soft: #e9edf1;
    --bg: #eef1f4;
    --panel: #ffffff;
    --accent: #34568b;
    --accent-deep: #263f68;
    --accent-soft: #eaf0f8;
    --ok: #1a7a4c;
    --ng: #b3261e;
    --ng-bg: #fdeceb;
    --req-bg: #fff6e5;
    --req-line: #e7c893;
    --select: #0f766e;
    --select-deep: #0b5952;
    --select-soft: #e6f4f1;
    --radius: 5px;
    --shadow: 0 1px 3px rgba(20, 40, 60, .05), 0 6px 20px rgba(20, 40, 60, .06);

    /* ---- 入力行のものさし（Ver.8.9）----------------------------
       項目名（グレーの列）の幅と、セルの余白をここだけで決める。
       全幅の行（.rowfull）・2列の行（.cols2）・表（table.grid）が
       同じ値を参照するので、入力欄の開始位置が縦にそろう。
       幅を変えたいときは --label-w の1か所だけを直す。 */
    --label-w: 170px;
    --cell-pad-y: 9px;
    --cell-pad-x: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 14px;
}

/* ---- トップバー ---- */
.topbar {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar .left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar .logo {
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.topbar .sys-name {
    font-size: 14px;
    font-weight: 700;
}

.topbar .sys-sub {
    font-size: 11px;
    color: var(--ink-faint);
}

.topbar .right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-box {
    text-align: right;
}

.user-box .name {
    font-size: 13px;
    font-weight: 600;
}

.user-box .aff {
    font-size: 11px;
    color: var(--ink-faint);
}

.logout-btn {
    font-size: 12px;
    color: var(--ink-soft);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}

.logout-btn:hover {
    background: #f5f7f9;
}

.proxy-banner {
    background: #fbf1dd;
    color: #8a5a00;
    border-bottom: 1px solid #ecd9a8;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    padding: 7px 16px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

.crumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    margin-bottom: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 8px 14px;
    box-shadow: var(--shadow);
}

.crumb a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius);
    transition: background .12s;
}

.crumb a:hover {
    background: var(--accent-soft);
    text-decoration: none;
}

.crumb .sep {
    color: var(--ink-faint);
}

.crumb .current {
    color: var(--ink);
    font-weight: 700;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.page-head h1 {
    font-size: 20px;
    margin: 0 0 2px;
}

.page-head .sub {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin: 0;
}

.legend {
    font-size: 11.5px;
    color: var(--ink-soft);
}

.legend .req-mark {
    display: inline-block;
    background: var(--req-bg);
    border: 1px solid var(--req-line);
    color: #9a6a00;
    border-radius: var(--radius);
    padding: 0 6px;
    font-weight: 700;
    margin-right: 4px;
}

.errors {
    background: var(--ng-bg);
    border: 1px solid #f2c4c1;
    color: #7f1a15;
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
}

.errors ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.note-top {
    font-size: 12.5px;
    color: var(--ink-soft);
    background: var(--accent-soft);
    border-radius: var(--radius);
    padding: 9px 14px;
    margin-bottom: 16px;
}

/* ---- セクション ---- */
.form-section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    overflow: hidden;
}

.form-section>h2 {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .03em;
    color: #fff;
    background: var(--accent);
    margin: 0;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section>h2 .tag {
    font-size: 10.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, .22);
    padding: 1px 7px;
    border-radius: var(--radius);
}

/* ---- 2カラム テーブル ---- */
table.grid {
    width: 100%;
    border-collapse: collapse;
}

table.grid th,
table.grid td {
    border-bottom: 1px solid var(--line-soft);
    padding: var(--cell-pad-y) var(--cell-pad-x);
    text-align: left;
    vertical-align: middle;
}

table.grid tr:last-child th,
table.grid tr:last-child td {
    border-bottom: none;
}

table.grid th {
    width: var(--label-w);
    background: #f7f9fb;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    white-space: nowrap;
}

table.grid th .req-mark {
    display: inline-block;
    background: var(--req-bg);
    border: 1px solid var(--req-line);
    color: #9a6a00;
    border-radius: var(--radius);
    padding: 0 5px;
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

table.grid th .hint {
    display: block;
    font-weight: 400;
    font-size: 10.5px;
    color: var(--ink-faint);
    margin-top: 2px;
}

/* 見出し（.k）内で使う必須バッジ */
.k .req-mark {
    display: inline-block;
    background: var(--req-bg);
    border: 1px solid var(--req-line);
    color: #9a6a00;
    border-radius: var(--radius);
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 5px;
    vertical-align: middle;
    white-space: nowrap;
}

/* 編集ボタン付き入力欄（読み取り→編集） */
.edit-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-field>input {
    flex: 1;
    min-width: 0;
}

/* 読み取り状態の見た目（枠を薄く・背景を淡く） */
.edit-field>input[readonly] {
    background: #f7f9fb;
    color: var(--ink);
    cursor: default;
}

/* 必須バッジと同じ形・背景色だけ変えた編集ボタン */
.edit-btn {
    flex-shrink: 0;
    display: inline-block;
    background: var(--accent-soft);
    border: 1px solid #b9cbe4;
    color: var(--accent);
    border-radius: var(--radius);
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: background .12s, border-color .12s;
}

.edit-btn:hover {
    background: #dbe6f5;
    border-color: var(--accent);
}

/* 編集中はボタンを非表示 */
.edit-field.editing>.edit-btn {
    display: none;
}

/* 横に2組並べる行
   minmax(0, 1fr) にしているのは、中身（長い項目名や入力欄）に押されて
   片側だけ広くならないようにするため。1fr だけだと最小幅が中身に引っ張られ、
   左右の入力欄の大きさがそろわなくなる。 */
.cols2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-content: start;
    gap: 0;
    grid-auto-rows: min-content;
}

.cols2>.cell {
    display: flex;
    align-items: stretch;
    min-width: 0;
    border-bottom: 1px solid var(--line-soft);
}

.cols2>.cell:nth-last-child(-n+2) {
    border-bottom: none;
}

.cols2>.cell>.k {
    width: var(--label-w);
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    background: #f7f9fb;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    padding: var(--cell-pad-y) var(--cell-pad-x);
    border-right: 1px solid var(--line-soft);
}

.cols2>.cell>.v {
    flex: 1;
    min-width: 0;
    padding: var(--cell-pad-y) var(--cell-pad-x);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cols2>.cell:nth-child(odd) {
    border-right: 1px solid var(--line-soft);
}

/* 郵便番号｜所在地 のように、左が短く右が長い組み合わせ。
   左右の「入力欄」がちょうど 1:2 になるように左セルを狭める。
   項目名の幅（--label-w）を変えても比率が崩れないよう計算式で指定する。 */
.cols2-zip {
    --cell-lab: calc(var(--label-w) + var(--cell-pad-x) * 2);
    grid-template-columns:
        calc((100% - var(--cell-lab) * 2) / 3 + var(--cell-lab))
        minmax(0, 1fr);
}

/* cols2グリッド内に置く全幅セル（見出し列を途切れさせない） */
.cols2>.cell-full {
    grid-column: 1 / -1;
    border-right: none;
    align-self: stretch;
    align-items: stretch;
}

.cols2>.cell-full>.k {
    border-right: 1px solid var(--line-soft);
    align-self: stretch;
    align-items: center;
}

.cols2>.cell-full>.v {
    display: flex;
    align-items: center;
}

/* 報酬の内訳を上段トラックへ密着させ、見出し列のグレーを連続させる */
#payDetail {
    border-top: none;
    margin-top: 0;
}

/* 兼業の期間の行: 左を広く・右を狭くして日付を1行に収める */
.cols2-period {
    grid-template-columns: 1.75fr 1fr;
}

.cols2-period .period-range {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.cols2-period .period-range input[type="date"] {
    width: auto;
    min-width: 150px;
    flex: 0 1 auto;
}

.cols2-period .period-range .sep {
    flex: 0 0 auto;
    color: var(--ink-faint);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="password"],
textarea,
select {
    width: 100%;
    font: inherit;
    font-size: 13.5px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 7px 9px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
    resize: vertical;
    min-height: 56px;
    line-height: 1.55;
}

.inline {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.inline .sep {
    color: var(--ink-faint);
}

.inline input[type="text"],
.inline input[type="number"] {
    width: auto;
    max-width: 110px;
}

.w-narrow {
    max-width: 82px !important;
}

.w-time {
    max-width: 120px !important;
}

/* 「開始 〜 終了」のように2つで1組の入力。
   2列の枠に入って幅が狭くなっても折り返さず、1行に収まるまで縮める。 */
.inline.pair {
    flex-wrap: nowrap;
}

.inline.pair>input {
    flex: 1 1 0;
    min-width: 0;
}

.inline.pair>.sep {
    flex: 0 0 auto;
}

.w-date {
    max-width: 160px !important;
}

/* 頻度・時間（平均）: 各グループを縦積みにし、先頭の入力ボックス左端を揃える */
.freq-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.freq-grp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.freq-grp input[type="text"],
.freq-grp input[type="number"] {
    width: 68px;
}

.freq-lbl {
    color: var(--ink-soft);
    font-size: 12.5px;
}

/* ---- ラベル式ボタン（選択） ---- */
.btn-choices {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-choices label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 7px 13px;
    cursor: pointer;
    font-size: 13px;
    background: #fff;
    transition: border-color .12s, background .12s, color .12s;
    user-select: none;
}

.btn-choices label:hover {
    border-color: #9fc9c3;
    background: #f2faf8;
}

.btn-choices input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.btn-choices label.on {
    border-color: var(--select);
    background: var(--select);
    color: #fff;
    font-weight: 700;
}

.btn-choices label.on:hover {
    background: var(--select-deep);
    border-color: var(--select-deep);
}

.btn-choices.compact label {
    padding: 6px 11px;
    font-size: 12.5px;
}

/* 理由：各1行チェックボックス */
.reason-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.reason-list>li {
    padding: 9px 2px;
    border-bottom: 1px solid var(--line-soft);
}

.reason-list>li:last-child {
    border-bottom: none;
}

.reason-list label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
    font-size: 13.5px;
    line-height: 1.5;
}

.reason-list input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--select);
    flex-shrink: 0;
}

.reason-list .conditional {
    margin-top: 8px;
    margin-left: 26px;
}

.conditional {
    margin-top: 9px;
}

.conditional[hidden] {
    display: none;
}

.cond-box {
    padding: 11px 13px;
    background: #f7f9fb;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.cond-box .cond-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

/* ---- 授業コマ 明細テーブル ---- */
.class-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.class-table th,
.class-table td {
    border: 1px solid var(--line);
    padding: 6px 8px;
}

.class-table th {
    background: #eef2f6;
    font-size: 11.5px;
    color: var(--ink-soft);
    font-weight: 700;
    white-space: nowrap;
}

.class-table td input,
.class-table td select {
    padding: 6px 7px;
    font-size: 12.5px;
}

.class-table td.num {
    text-align: center;
    color: var(--ink-faint);
    width: 30px;
}

.class-table td.act {
    width: 44px;
    text-align: center;
}

.row-del {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ng);
    border-radius: var(--radius);
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.row-del:hover {
    background: var(--ng-bg);
}

.add-row {
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid #cbd9ec;
    border-radius: var(--radius);
    padding: 7px 14px;
    cursor: pointer;
}

.add-row:hover {
    background: #dde8f6;
}

.add-row:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.class-hint {
    font-size: 11px;
    color: var(--ink-faint);
    margin-top: 6px;
}

.full-cell {
    padding: var(--cell-pad-y) var(--cell-pad-x);
}

.full-cell>.k {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

/* 全幅の「見出し左｜入力右」1行（textarea・ボタン群向け） */
.rowfull {
    display: flex;
    align-items: stretch;
}

.rowfull>.k {
    width: var(--label-w);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background: #f7f9fb;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    padding: var(--cell-pad-y) var(--cell-pad-x);
    border-right: 1px solid var(--line-soft);
    line-height: 1.4;
}

.rowfull>.v {
    flex: 1;
    padding: var(--cell-pad-y) var(--cell-pad-x);
    min-width: 0;
}

.rowfull>.k .sub {
    display: block;
    font-weight: 400;
    font-size: 10.5px;
    color: var(--ink-faint);
    margin-top: 2px;
}

.rowfull.top>.k {
    align-items: flex-start;
    padding-top: 11px;
}

/* 郵便番号から住所を自動入力するときの小さな案内（lib/zip_address.js.php） */
.zip-note {
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--ink-faint);
    margin-top: 5px;
}

.zip-note.is-ok {
    color: var(--ok);
}

.zip-note.is-warn {
    color: #8a6100;
}

.zip-note.is-ask {
    color: var(--ink-soft);
}

.zip-note button {
    font: inherit;
    font-size: 11px;
    color: var(--accent-deep);
    background: var(--accent-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1px 7px;
    margin: 2px 2px 0 0;
    cursor: pointer;
}

.zip-note button:hover {
    background: #dbe6f5;
    border-color: var(--accent);
}

.field-hint {
    font-size: 11px;
    font-weight: 400;
    color: var(--ink-faint);
    margin-bottom: 6px;
}

/* ---- 送信 ---- */
.actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius);
    padding: 10px 24px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: .15s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-deep);
}

.btn-ghost {
    background: #fff;
    color: var(--ink-soft);
    border-color: var(--line);
}

.btn-ghost:hover {
    background: #f5f7f9;
}

.btn-link {
    background: transparent;
    color: var(--ink-soft);
    border: none;
    text-decoration: none;
    padding: 10px 8px;
}

.btn-link:hover {
    color: var(--ink);
}

.foot {
    margin-top: 26px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--ink-faint);
    text-align: center;
}

@media (max-width: 760px) {

    /* 画面が狭いときは項目名の列を詰める（1か所直せば全行に効く） */
    :root {
        --label-w: 130px;
    }

    .cols2,
    .cols2-zip {
        grid-template-columns: minmax(0, 1fr);
    }

    .cols2>.cell:nth-child(odd) {
        border-right: none;
    }

    .cols2>.cell {
        border-bottom: 1px solid var(--line-soft);
    }

    .actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* 資料の提出 */
.upload-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.upload-btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--accent);
    border-radius: 5px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.upload-btn:hover {
    background: #dce6f5;
}

.upload-hint {
    font-size: 11.5px;
    color: var(--ink-soft);
    line-height: 1.5;
}

.file-preview {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-preview>li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 5px;
    background: #fafbfc;
    font-size: 13px;
}

.file-preview .fp-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview .fp-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
}

.file-preview .fp-size {
    flex: 0 0 auto;
    color: var(--ink-faint);
    font-size: 11.5px;
}

.file-preview .fp-remove {
    flex: 0 0 auto;
    border: none;
    background: none;
    color: var(--ng);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.file-preview .fp-remove:hover {
    background: var(--ng-bg);
}

.file-preview-empty {
    margin-top: 10px;
    font-size: 12px;
    color: var(--ink-faint);
}

/* =========================================================
   事業者向けフォーム（prereg.php / apply.php）追加スタイル
   ========================================================= */

/* 完了画面 */
.done-box {
    background: #eaf6ef;
    border: 1px solid #b7e0c6;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: #12603a;
    padding: 28px 24px;
    text-align: center;
    margin-top: 8px;
}

.done-box h2 {
    font-size: 17px;
    margin: 0 0 12px;
    color: #12603a;
}

.done-box p {
    margin: 6px 0;
    font-size: 13.5px;
    line-height: 1.7;
}

.done-box .done-note {
    margin-top: 16px;
    font-size: 12px;
    color: #3c6b52;
}

/* 種別などで条件表示する行 */
.toggle-row[hidden] {
    display: none !important;
}

/* 授業コマの追加ボタン（apply.php） */
.add-row-btn {
    margin-top: 8px;
    display: inline-block;
    background: var(--accent-soft);
    border: 1px solid #b9cbe4;
    color: var(--accent);
    border-radius: var(--radius);
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.add-row-btn:hover {
    background: #dbe6f5;
    border-color: var(--accent);
}

/* =========================================================
   依頼先教員 オートコンプリート（apply.php）
   ========================================================= */
.ac-wrap {
    position: relative;
}

.ac-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 4px 0;
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(20, 40, 60, .12);
    max-height: 260px;
    overflow-y: auto;
}

.ac-item {
    padding: 8px 12px;
    font-size: 13.5px;
    color: var(--ink);
    cursor: pointer;
    line-height: 1.4;
}

.ac-item:hover,
.ac-item.active {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

/* =============================================================
   Ver.4.6 見やすさの調整（学外の事業者向け：切替ボタンは付けず、標準を一段大きく）
   ― 処理には影響しない見た目だけの上書き。既存の定義より後ろに置く。
   ============================================================= */
body {
    font-size: 15px;
    line-height: 1.65;
}

.page-head h1 {
    font-size: 23px;
}

.page-head .sub,
.note-top,
.legend {
    font-size: 14px;
}

.errors {
    font-size: 14.5px;
}

/* 区画の見出し：番号付きの帯を太く、左に濃い縁 */
.form-section>h2 {
    font-size: 15px;
    padding: 11px 16px;
    border-left: 6px solid var(--accent-deep);
    letter-spacing: .02em;
}

.form-section>h2 .tag {
    font-size: 12px;
}

/* 項目名（表・2カラム・全幅）を濃く、必須の印を大きく */
table.grid th,
.cols2>.cell>.k,
.cols2>.cell-full>.k,
.full-cell>.k,
.rowfull>.k {
    font-size: 14px;
    color: var(--accent-deep);
    background: var(--accent-soft);
}

table.grid th .hint,
.rowfull>.k .sub {
    font-size: 12px;
}

table.grid th .req-mark,
.k .req-mark {
    font-size: 11.5px;
    padding: 1px 6px;
    background: #f4a30f;
    border-color: #f4a30f;
    color: #fff;
}

.field-hint,
.class-hint,
.upload-hint,
.cond-box .cond-title {
    font-size: 12.5px;
}

select,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"] {
    font-size: 15px;
}

.btn-choices label,
.reason-list label,
.freq-lbl {
    font-size: 14.5px;
}

.btn-choices.compact label {
    font-size: 14px;
}

.class-table,
.class-table td select {
    font-size: 14px;
}

.class-table th {
    font-size: 12.5px;
}

.btn {
    font-size: 15px;
    padding: 11px 22px;
}

.upload-btn,
.file-preview>li,
.ac-item {
    font-size: 14.5px;
}

.done-box h2 {
    font-size: 19px;
}

.done-box p {
    font-size: 15px;
}

.done-box .done-note {
    font-size: 13px;
}

/* 確認画面：値を濃く、項目名との差をはっきり */
.cols2>.cell>.v,
.cols2>.cell-full>.v,
.rowfull>.v,
table.grid td {
    color: var(--ink);
}

/* 見出しの下に短い帯（学内の画面と同じ意匠） */
.page-head h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.page-head h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: var(--accent);
}

/* 背景を薄いグレーに（学内の画面と統一） */
body {
    background: #e9ecef;
}
