:root {
    --blue: #3182f6;
    --blue-deep: #1b64da;
    --blue-soft: #e8f3ff;
    --ink: #191f28;
    --ink-soft: #4e5968;
    --muted: #8b95a1;
    --line: #e5e8eb;
    --bg: #f2f4f6;
    --card: #ffffff;
    --danger: #f04452;
    --danger-soft: #ffecec;
    --ok: #3182f6;
    --radius: 20px;
    --shadow: 0 2px 8px rgba(25, 31, 40, 0.04);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.topbar__inner {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.topbar__nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.topbar__btn--primary {
    background: var(--blue);
    color: #fff;
}

.topbar__mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.topbar strong {
    font-size: 17px;
    font-weight: 700;
}

.visual {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
}

.visual img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.visual--contain img {
    max-height: 360px;
    width: auto;
    object-fit: contain;
}

.page {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 120px;
}

.hero {
    padding: 8px 0 20px;
}

.hero__eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero__lead {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
}

.stepper {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0 0 20px;
    padding: 0;
    border-bottom: 1px solid var(--line);
}

.stepper__item {
    flex: 1;
}

.stepper__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    text-align: center;
    cursor: pointer;
    color: var(--muted);
    font: inherit;
}

.stepper__num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--line);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.stepper__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stepper__text strong {
    font-size: 14px;
    font-weight: 700;
}

.stepper__text em {
    display: none;
}

.stepper__item.is-active .stepper__btn {
    color: var(--ink);
    border-bottom-color: var(--blue);
}

.stepper__item.is-active .stepper__num,
.stepper__item.is-done .stepper__num {
    background: var(--blue);
    color: #fff;
}

.survey {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.panel[hidden] {
    display: none;
}

.panel__head {
    margin-bottom: 16px;
}

.panel__head h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.panel__head p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.block {
    margin: 0 0 12px;
    padding: 20px 20px 8px;
    border: 0;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.block legend {
    position: absolute;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.block__legend-gap {
    height: 40px;
}
.block__lead,
.block__note {
    margin: 0 0 14px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
}

.block__note {
    color: var(--muted);
    font-size: 13px;
}

.block__detail {
    margin: 0 0 16px;
    padding: 16px 18px 14px;
    border-radius: 16px;
    background: var(--blue-soft);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 30%);
    gap: 16px 20px;
    align-items: start;
}

.block__detail-visual {
    margin: 0;
}

.block__detail-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(25, 31, 40, 0.06);
}

.block__detail-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 800;
    color: var(--blue-deep);
}

.block__detail-list {
    margin: 0;
    display: grid;
    gap: 8px;
}

.block__detail-list > div {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 8px 12px;
    align-items: start;
}

.block__detail-list dt {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-deep);
}

.block__detail-list dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.55;
}

.block__detail-addr {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
}

.briefing.is-invalid {
    outline: 2px solid var(--danger);
    outline-offset: 4px;
}

.briefing-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.choice--radio .choice__check {
    border-radius: 50%;
}

.choice--radio input:checked + .choice__box .choice__check::after {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    transform: none;
}

.need-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.need-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s, background 0.15s;
}

.need-item.is-hope {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.need-item__row {
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.need-item__name {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 16px 8px 16px 16px;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: var(--ink);
}

.need-item__name::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid #b0b8c1;
    border-bottom: 2px solid #b0b8c1;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.need-item.is-open .need-item__name::after {
    transform: rotate(-135deg);
}

.need-item__hope {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    cursor: pointer;
    white-space: nowrap;
}

.need-item__hope input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.need-item__hope input:focus-visible + .choice__check {
    box-shadow: 0 0 0 4px rgba(49, 130, 246, 0.16);
}

.need-item__hope input:checked + .choice__check {
    background: var(--blue);
    border-color: var(--blue);
}

.need-item__hope input:checked + .choice__check::after {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}

.need-item__detail {
    padding: 0 16px 16px 48px;
}

.need-item__detail[hidden] {
    display: none;
}

.need-item__detail p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
}

.choice__file--need {
    display: inline-block;
    margin: 10px 0 0;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.field--full {
    grid-column: 1 / -1;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

.req {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 11px;
    font-weight: 700;
    vertical-align: 1px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    font-size: 16px;
    background: var(--bg);
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

textarea {
    resize: vertical;
    min-height: 104px;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
}

input:focus,
textarea:focus {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(49, 130, 246, 0.12);
}

.field.is-invalid input,
.field.is-invalid textarea {
    border-color: var(--danger);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(240, 68, 82, 0.12);
}

.tech {
    padding: 0;
    border: 0;
    border-radius: 0;
}

.tech.is-invalid {
    outline: 2px solid var(--danger);
    outline-offset: 4px;
    border-radius: 16px;
}

.school-filter,
.tech__tabs,
.choice-grid,
.choice-list,
.tech__empty {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.school-filter {
    margin-bottom: 12px;
    padding: 18px 18px 14px;
}

.school-filter__label {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.school-filter__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.school-filter__btn,
.tech__tab {
    border: 0;
    background: var(--bg);
    border-radius: 999px;
    padding: 10px 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.school-filter__btn.is-active,
.tech__tab.is-active {
    background: var(--ink);
    color: #fff;
}

.school-filter__btn.is-active .tech__badge,
.tech__tab.is-active .tech__badge {
    background: var(--blue);
    color: #fff;
}

.tech__tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    margin-bottom: 12px;
    scrollbar-width: thin;
}

.tech__tab {
    flex: 0 0 auto;
}

.tech__panel-title {
    display: none;
    margin: 0 0 10px;
    padding: 4px 4px 0;
    font-size: 15px;
    font-weight: 800;
}

.tech.is-all-fields .tech__panel-title {
    display: block;
}

.tech.is-all-fields .tech__panel {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 12px 12px;
}

.tech.is-all-fields .tech__panel .choice-grid {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.tech__panel + .tech__panel {
    margin-top: 12px;
}

.tech__badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
}

.choice-grid,
.choice-list {
    list-style: none;
    margin: 0;
    padding: 12px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.choice-grid > li[hidden],
.tech__tab[hidden] {
    display: none;
}

.choice-list {
    display: grid;
    gap: 8px;
}

.choice {
    position: relative;
    display: block;
}

.choice--tech {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s, background 0.15s;
}

.choice--tech label {
    display: block;
}

.choice--tech .choice__box {
    border: 0;
    border-radius: 0;
    min-height: 120px;
    padding-bottom: 8px;
    background: transparent;
}

.choice--tech:has(input:checked) {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.choice--tech input:checked + .choice__box {
    border-color: transparent;
    background: transparent;
}

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

.choice__box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 148px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.choice__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.choice__no {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--bg);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
}

.choice--row .choice__box {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.choice input:focus-visible + .choice__box {
    box-shadow: 0 0 0 4px rgba(49, 130, 246, 0.16);
}

.choice input:checked + .choice__box {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.choice__check {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--gray, #d1d6db);
    border-radius: 6px;
    background: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.choice input:checked + .choice__box .choice__check {
    background: var(--blue);
    border-color: var(--blue);
}

.choice input:checked + .choice__box .choice__check::after {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}

.choice__school {
    font-size: 12px;
    color: var(--blue);
    font-weight: 700;
}

.choice strong,
.choice__title-link {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.4;
}

.choice__title-link {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.choice__title-link:hover {
    color: var(--blue-deep);
}

.choice--req .choice__box {
    min-height: 0;
}

.choice--req strong,
.choice--req .choice__file {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.choice__reg {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    word-break: break-all;
}

.choice__file {
    position: relative;
    z-index: 2;
    margin: 0 16px 16px;
    font-size: 12px;
    color: var(--blue);
    font-weight: 700;
    word-break: break-all;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.choice__file:hover {
    color: var(--blue-deep);
}

.tech__summary {
    margin: 12px 4px 0;
    font-size: 14px;
    color: var(--ink-soft);
}

.tech__empty {
    margin: 0;
    padding: 28px 18px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    display: flex;
    gap: 8px;
    padding: 12px max(16px, calc(50% - 430px)) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
}

.actions .btn {
    flex: 1;
}

.actions .btn--ghost {
    flex: 0 0 104px;
}

.btn {
    border: 0;
    border-radius: 16px;
    padding: 16px 18px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn--ghost {
    background: var(--bg);
    color: var(--ink);
}

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

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

.footnote {
    margin: 16px 4px 0;
    color: var(--muted);
    font-size: 13px;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 31, 40, 0.48);
}

.modal__dialog {
    position: relative;
    width: min(400px, calc(100% - 32px));
    margin: 22vh auto 0;
    background: #fff;
    border-radius: 24px;
    padding: 28px 24px 20px;
    box-shadow: 0 16px 40px rgba(25, 31, 40, 0.18);
}

.modal__kicker {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}

.modal__dialog h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.modal__desc {
    margin: 0 0 20px;
    color: var(--ink-soft);
    font-size: 15px;
}

.modal__dialog .btn {
    width: 100%;
}

.modal__dialog .btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.modal__dialog--wide {
    width: min(720px, calc(100% - 24px));
    max-height: 90vh;
    margin: 5vh auto;
    padding: 24px 20px 16px;
    overflow: auto;
}

.modal__dialog--wide .block {
    box-shadow: none;
    border: 1px solid var(--line);
}

.modal__dialog--wide .modal__desc {
    margin-bottom: 12px;
}

.modal__actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.modal__actions .btn {
    flex: 1;
    width: auto;
}

.block.is-invalid {
    outline: 2px solid var(--danger);
    outline-offset: 4px;
}

.summary {
    margin: 0 0 18px;
    padding: 14px;
    border-radius: 14px;
    background: var(--bg);
    font-size: 13px;
    white-space: pre-wrap;
    max-height: 220px;
    overflow: auto;
    color: var(--ink-soft);
}

@media (max-width: 760px) {
    .grid,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .stepper__text strong {
        font-size: 13px;
    }

    .block {
        padding: 16px 16px 6px;
    }

    .briefing-list {
        grid-template-columns: 1fr;
    }

    .block__detail {
        grid-template-columns: 1fr;
    }
}
