.scr03-page {
    background: #eef2f6;
}

.scr03-page .site-header {
    background: transparent;
    border-bottom: 0;
}

.scr03-page .site-header-inner,
.scr03-page .main {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
}

.scr03-page .site-header-inner {
    align-items: flex-start;
    background: #1a3a5c;
    gap: 8px;
    padding: 12px 16px;
}

.scr03-page .site-title {
    color: #ffffff;
    font-size: 19px;
    line-height: 1.35;
}

.scr03-page .site-subtitle {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
}

.scr03-page .site-header nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.scr03-page .nav-logout-btn {
    width: 26px;
    height: 26px;
    font-size: 17px;
}

.scr03-page .main {
    padding: 0 12px 24px;
}

.scr03-wrap {
    width: 100%;
}

.progress-block {
    padding: 12px 0 10px;
}

.progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: #405166;
    font-size: 12px;
    font-weight: 700;
}

.progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #d7e0eb;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: #1f5f8b;
}

.message-area {
    position: fixed;
    left: 50%;
    top: calc(var(--header-height, 64px) + 12px);
    z-index: 500;
    display: grid;
    gap: 8px;
    width: min(560px, calc(100% - 32px));
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -10px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.message-area.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.message-area-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.08);
    color: #405166;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.message-area-close:hover {
    background: rgba(15, 23, 42, 0.16);
}

.message-box {
    position: relative;
    border-radius: 10px;
    padding: 12px 40px 12px 14px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.message-box p {
    margin: 0;
}

.message-box p + p {
    margin-top: 4px;
}

.message-box--error {
    border: 1px solid #ef4444;
    background: #fef2f2;
    color: #b91c1c;
}

.message-box--warning {
    border: 1px solid #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

.scr03-section {
    margin-top: 14px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.section-title {
    margin: 0 0 8px;
    padding: 8px 10px;
    background: #1a3a5c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.section-head .section-title {
    flex: 1;
}

.section-count {
    min-width: 54px;
    margin-bottom: 8px;
    color: #405166;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.section-note {
    margin: -2px 0 8px;
    color: #6b7280;
    font-size: 12px;
}

.basic-table {
    border: 1px solid #1a3a5c;
    background: #ffffff;
}

.basic-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 48px;
}

.basic-row + .basic-row {
    border-top: 1px solid #d6dde6;
}

.basic-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #1a3a5c;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.basic-value {
    display: grid;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 6px;
    background: #ffffff;
}

.basic-row--highlight .basic-value {
    background: #f7c600;
}

.basic-value input,
.basic-value select,
.modal-filter input,
.modal-filter select,
.scr03-section textarea {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    border: 1px solid #aeb8c4;
    border-radius: 2px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
    font-size: 14px;
    padding: 7px 9px;
    box-sizing: border-box;
}

/* iOS Safari は input[type=date]/[type=time] の内部表示部分(shadow DOM)が
   ネイティブの見た目のまま独自の最小幅で描画され、width:100%を指定しても
   それを無視して右側にはみ出すことがある。ネイティブ外観を無効化して
   通常のボックスモデルに従わせることで、はみ出しを解消する。 */
.basic-value input[type="date"],
.basic-value input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
}

.basic-value input[readonly] {
    border-color: transparent;
    background: transparent;
    font-weight: 700;
}

.lock-note {
    color: #3f3310;
    font-size: 11px;
    font-weight: 700;
}

.time-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    min-width: 0;
    gap: 8px;
}

.time-range label {
    display: grid;
    gap: 3px;
    min-width: 0;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
}

.time-range input {
    min-width: 0;
}

.range-separator {
    padding-bottom: 8px;
    color: #405166;
    font-weight: 700;
}

.member-table-wrap {
    overflow-x: hidden;
    border: 1px solid #d6dde6;
    background: #ffffff;
}

.member-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
}

.member-table th,
.member-table td {
    border-bottom: 1px solid #d6dde6;
    padding: 5px 1px;
    font-size: 10px;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: hidden;
    min-width: 0;
    text-align: center;
}

.member-table td {
    font-size: 11px;
}

.member-table th {
    background: #edf2f7;
    color: #374151;
    font-weight: 700;
    line-height: 1.25;
}

.member-table tbody tr:last-child td {
    border-bottom: 0;
}

.member-name-btn {
    width: 100%;
    min-width: 0;
    min-height: 28px;
    padding: 2px;
    border: none;
    border-radius: 3px;
    background: none;
    color: #1f2937;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
    cursor: pointer;
}

.member-name-btn:hover {
    background: #eff6ff;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #d6dde6;
    border-radius: 3px;
    background: #ffffff;
    color: #4b5563;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.icon-btn--danger {
    border-color: #fecaca;
    color: #dc2626;
}

/* 対象隊員テーブル内の削除アイコンは、狭い列に収まるよう枠を外して
   アイコンのみのシンプルな見た目にする（他画面の.icon-btnには影響しない）。 */
.member-table .icon-btn {
    width: auto;
    height: auto;
    min-width: 0;
    padding: 1px;
    border: none;
    background: none;
    font-size: 15px;
    line-height: 1;
}

.member-table-note {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 12px;
}

.add-member-btn {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    border: 1px dashed #1f5f8b;
    border-radius: 4px;
    background: #ffffff;
    color: #1f5f8b;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.checklist {
    display: grid;
    gap: 8px;
}

.check-item {
    border: 1px solid #d6dde6;
    background: #ffffff;
}

.check-title {
    display: flex;
    gap: 8px;
    padding: 10px;
    color: #1f2937;
    font-weight: 700;
}

.check-no {
    flex: 0 0 auto;
    color: #1f5f8b;
}

.choice-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #d6dde6;
}

.choice-btn {
    min-height: 42px;
    border: 0;
    border-right: 1px solid #d6dde6;
    background: #ffffff;
    color: #6b7280;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.choice-btn:last-of-type {
    border-right: 0;
}

.choice-btn.is-selected {
    color: #ffffff;
}

.choice-btn--conform.is-selected {
    background: #16a34a;
}

.choice-btn--nonconform.is-selected {
    background: #dc2626;
}

.choice-btn--unchecked.is-selected {
    background: #6b7280;
}

.choice-btn--not_inspected.is-selected {
    border: 2px solid #6b7280;
    background: #ffffff;
    color: #374151;
}

.check-other-toggle,
.exclusive-checks {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 10px 10px;
    font-weight: 700;
}

.check-other-toggle {
    gap: 8px;
}

.scr03-section textarea {
    display: block;
    min-height: 96px;
    resize: vertical;
}

.check-item textarea {
    width: calc(100% - 20px);
    margin: 0 10px 10px;
}

.scr03-section textarea:disabled {
    border-color: #d1d5db;
    background: #e5e7eb;
    color: #6b7280;
}

.footer-actions {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding-bottom: 10px;
}

.footer-actions--single {
    grid-template-columns: minmax(0, 1fr);
}

.next-btn {
    min-height: 46px;
}

.member-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.member-modal.is-open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
}

.modal-panel {
    position: absolute;
    inset: 20px;
    display: flex;
    flex-direction: column;
    max-width: 720px;
    margin-inline: auto;
    overflow: hidden;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #1a3a5c;
    color: #ffffff;
}

.modal-header h2 {
    margin: 0;
    font-size: 16px;
}

.modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 3px;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.modal-filter {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #d6dde6;
    background: #f8fafc;
}

.modal-filter label {
    display: grid;
    gap: 4px;
    color: #405166;
    font-size: 12px;
    font-weight: 700;
}

.filter-note {
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
}

.kana-filter {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 4px;
}

.kana-btn {
    min-height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    background: #ffffff;
    color: #374151;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.kana-btn.is-active {
    border-color: #1f5f8b;
    background: #1f5f8b;
    color: #ffffff;
}

.modal-staff-list {
    flex: 1;
    overflow: auto;
    padding: 10px 12px 12px;
}

.staff-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e9ee;
}

.staff-option:first-child {
    padding-top: 0;
}

.staff-option-name {
    margin: 0 0 2px;
    color: #1f2937;
    font-weight: 700;
}

.staff-option-meta {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
}

.staff-option-select {
    min-width: 72px;
    min-height: 36px;
    border: 1px solid #1f5f8b;
    border-radius: 3px;
    background: #1f5f8b;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.staff-empty {
    margin: 12px 0;
    color: #6b7280;
    text-align: center;
}

@media (max-width: 900px) {
    .scr03-page .site-header-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 560px) {
    .scr03-page .site-header-inner {
        padding-inline: 12px;
    }

    .basic-row {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .basic-label {
        padding-inline: 6px;
        font-size: 11px;
    }

    .time-range {
        gap: 5px;
    }

    .choice-btn {
        min-height: 40px;
        padding-inline: 4px;
        font-size: 11px;
    }

    .footer-actions {
        grid-template-columns: 1fr;
    }

    .modal-panel {
        inset: 10px;
    }

    .kana-filter {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
