:root {
    --brand: #00b3e3;
    --bg: #f5f7fb;
    --card: #ffffff;
    --border: #e6edf3;
    --text: #1f2937;
    --muted: #6b7280;
}

* {
    box-sizing: border-box;
}

body {
    line-height: 1.75;
    font-size: 14px;
    margin: 0;
    font-family: "BIZ UDPGothic",
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--bg);
    color: var(--text);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.topbar__inner {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0px 16px;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand__logo {
    height: 36px;
    max-height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}

.topbar__right {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.page {
    max-width: 1024px;
    margin: 0 auto;
    padding: 18px 16px 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    padding: 10px 18px;
    font-size: 14px;
}

.btn--primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

@media (max-width: 640px) {
    .btn--primary {
        width: 100%;
        justify-content: center;
    }
}

.btn--secondary {
    background: #e5e7eb;
    color: #374151;
    border: none;
}

.btn--secondary:hover {
    background: #d1d5db;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
    padding: 20px 22px;
}

.card__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 18px;
    margin-top: unset;
}

.card__title::before {
    content: "";
    width: 6px;
    height: 26px;
    border-radius: 999px;
    background: var(--brand);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field > label {
    font-size: 14px;
    font-weight: 800;
    color: #374151;
    line-height: 1.6;
}

label {
    font-weight: 400;
}

.input,
.select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 14px;
}

.input:focus,
.select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 179, 227, 0.18);
}

.errorbox {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
}

.img-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.img-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.img-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.img-modal__content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.img-modal__content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.img-modal__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
}

.img-modal.is-open .img-modal__backdrop {
    opacity: 1;
}

.img-modal.is-open .img-modal__content {
    transform: scale(1);
    opacity: 1;
}

.top-actions {
    position: relative;
}

.top-actions__desktop {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hamburger,
.hamburger-menu {
    display: none;
}

@media (max-width: 640px) {
    .top-actions__desktop {
        display: none;
    }

    .hamburger {
        display: block;
        font-size: 22px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .hamburger-menu {
        display: none;
        position: absolute;
        top: 44px;
        right: 0;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        min-width: 160px;
        z-index: 2000;
    }

    .hamburger-menu a,
    .hamburger-menu button {
        display: block;
        width: 100%;
        padding: 10px 14px;
        text-align: left;
        background: none;
        border: none;
        font-size: 14px;
        cursor: pointer;
    }

    .hamburger-menu a:hover,
    .hamburger-menu button:hover {
        background: #f3f4f6;
    }

    .hamburger-menu.is-open {
        display: block;
    }
}

/* 下固定フッター */
.footerbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 14px 16px;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08);
}

.footerbar__inner {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footerbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 1000;
}

.footerbar__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footerbar__inner .btn {
    width: 220px;
    height: 44px;
    text-align: center;
    white-space: nowrap;
}

.footerbar__inner[style*="--footer-cols:1"] {
    justify-content: right;
}

.footerbar__inner[style*="--footer-cols:2"] {
    justify-content: space-between;
}

.footerbar__inner[style*="--footer-cols:3"] {
    justify-content: space-between;
}

.footerbar__inner[style*="--footer-cols:4"] {
    justify-content: space-between;
}

@media (max-width: 640px) {
    .footerbar__inner {
        display: grid;
        grid-template-columns: repeat(var(--footer-cols, 1), 1fr);
        gap: 8px;
    }

    .footerbar__inner .btn {
        width: 100%;
        min-width: 0;
        height: 48px;
        font-size: clamp(12px, 3.5vw, 16px);
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.page-description {
    /* margin-top: 8px; */
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================
   全体：幅を広く + 文字を大きく
========================== */
html {
    font-size: 18px;
}

body {
    font-size: 18px;
    line-height: 1.85;
}

.page,
.topbar__inner,
.footerbar__inner {
    max-width: 1200px;
}

.card {
    padding: 26px 28px;
    border-radius: 12px;
}

.card__title {
    font-size: 26px;
    margin-bottom: 20px;
}
.page-title {
    font-size: 26px;
}
.page-description {
    font-size: 16px;
}

.btn {
    font-size: 18px;
    padding: 14px 22px;
    border-radius: 10px;
}

.input,
.select {
    font-size: 18px;
    padding: 16px 18px;
    border-radius: 10px;
}

.field > label {
    font-size: 18px;
}
.field__title {
    font-size: 18px;
}
.section-subtitle {
    font-size: 18px;
}

.hint {
    font-size: 14px;
}
.errorbox {
    font-size: 15px;
}

.topbar__inner {
    min-height: 74px;
}


.img-modal__content {
    max-width: 96vw;
    max-height: 96vh;
}
