* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    color: #1f2c38;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(70, 130, 180, 0.16), transparent 34rem),
        linear-gradient(180deg, #eef6ff 0%, #ffffff 52%, #edf5ff 100%);
    line-height: 1.75;
    overflow-x: hidden;
}

a {
    color: inherit;
}

img,
table {
    max-width: 100%;
}

.site-wrap {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: 16px;
}

.hero {
    border: 2px solid #418ab4;
    border-radius: 18px;
    background: linear-gradient(120deg, #4682b4 0%, #4169e1 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(27, 78, 134, 0.18);
    overflow: hidden;
}

.hero-inner {
    padding: 28px 22px;
    background: radial-gradient(circle at right top, rgba(255,255,255,0.20), transparent 24rem);
}

.eyebrow {
    margin: 0 0 6px;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    opacity: 0.9;
}

h1,
h2,
h3,
h4 {
    line-height: 1.35;
}

h1 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.lead {
    max-width: 760px;
    margin: 12px 0 0;
    font-size: 1rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 18px;
    border: 2px solid rgba(255,255,255,0.75);
    border-radius: 100vh;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.btn.primary {
    background: #fff;
    color: #2c5fb7;
}

.global-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 14px 0;
}

.global-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 8px;
    border: 2px solid #418ab4;
    border-radius: 100vh;
    background: #fff;
    color: #245a92;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
}

.global-nav a.active,
.global-nav a:hover {
    background: linear-gradient(90deg, #4682b4 40%, #4169e1 100%);
    color: #fff;
}

.content {
    display: grid;
    gap: 16px;
}

.card,
.job-card,
.menu-card,
.topic-card,
.detail-box,
.faq-item {
    border: 2px solid #418ab4;
    border-radius: 16px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 8px 18px rgba(65, 138, 180, 0.12);
}

.card {
    padding: 18px;
    overflow: hidden;
}

.card > h2,
.job-head {
    margin: -18px -18px 16px;
    padding: 12px 16px;
    border-radius: 13px 13px 0 0;
    background: linear-gradient(90deg, #4682b4 40%, #4169e1 100%);
    color: #fff;
}

.card > h2 {
    font-size: 1.28rem;
}

.card > h3 {
    margin-top: 20px;
    color: #245a92;
}

.card p {
    overflow-wrap: anywhere;
}

.grid {
    display: grid;
    gap: 12px;
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.menu-card {
    display: block;
    padding: 16px;
    text-decoration: none;
}

.menu-card h3 {
    margin: 0 0 6px;
    color: #245a92;
}

.menu-card p {
    margin: 0;
}

.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
    border: 2px solid #418ab4;
    background: #418ab4;
}

.info-table th,
.info-table td {
    padding: 10px;
    background: #fff;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.info-table th {
    width: 180px;
    background: #e6f2ff;
    color: #245a92;
    text-align: left;
    white-space: nowrap;
}

.info-table.center th,
.info-table.center td {
    text-align: center;
    vertical-align: middle;
}

.info-table.compact th,
.info-table.compact td {
    padding: 8px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.table-scroll .info-table {
    min-width: 560px;
}

.table-scroll-hint {
    display: none;
    margin: 8px 0 0;
    color: #3b5870;
    font-size: 0.88rem;
}

.steps,
.basic-list {
    padding-left: 1.4em;
}

.steps li,
.basic-list li {
    margin: 0.45em 0;
}

.job-list {
    display: grid;
    gap: 14px;
}

.job-card {
    overflow: hidden;
}

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

.job-head h3 {
    margin: 0;
    font-size: 1.18rem;
}

.job-head span {
    font-size: 0.86rem;
    opacity: 0.9;
    white-space: nowrap;
}

.job-card .summary,
.job-card .info-table,
.job-card .pill-list,
.detail-boxes {
    margin: 14px;
}

.job-card .info-table {
    width: calc(100% - 28px);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.pill-list li {
    padding: 4px 10px;
    border: 1px solid #87add4;
    border-radius: 100vh;
    background: #f0f7ff;
    color: #245a92;
    font-weight: 700;
    font-size: 0.92rem;
}

.left {
    text-align: left !important;
}

.topic-grid,
.detail-boxes,
.faq-list {
    display: grid;
    gap: 12px;
}

.topic-grid {
    grid-template-columns: repeat(2, 1fr);
}

.topic-card,
.detail-box,
.faq-item {
    padding: 14px;
    background: #fff;
}

.topic-card h3,
.detail-box h4,
.faq-item h3 {
    margin: 0 0 8px;
    color: #245a92;
}

.detail-box p,
.topic-card p,
.faq-item p {
    margin: 0.35em 0;
}

.responsive-table a {
    color: #245a92;
    font-weight: 700;
}

.note {
    color: #3b5870;
    font-size: 0.95rem;
}

.mobile-only-cards {
    display: none;
}

.mobile-data-card {
    border: 2px solid #8bbde5;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.mobile-data-card h3 {
    margin: 0;
    padding: 9px 12px;
    background: #e6f2ff;
    color: #245a92;
    font-size: 1rem;
}

.mobile-data-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.mobile-data-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-top: 1px solid #d2e6f8;
}

.mobile-data-card dt {
    color: #245a92;
    font-weight: 700;
}

.mobile-data-card dd {
    margin: 0;
    font-weight: 700;
}

.mobile-card-type {
    display: inline-block;
    margin: 10px 12px 0;
    padding: 3px 9px;
    border-radius: 100vh;
    background: #f0f7ff;
    color: #245a92;
    font-weight: 700;
    font-size: 0.86rem;
}

.mobile-card-body {
    margin: 8px 12px 12px;
    line-height: 1.65;
}

.footer {
    margin: 18px 0 0;
    padding: 14px;
    border-top: 1px solid #b7d2ed;
    color: #506579;
    font-size: 0.9rem;
    text-align: center;
}

.footer p {
    margin: 4px 0;
}

@media (max-width: 760px) {
    body {
        line-height: 1.68;
    }

    .site-wrap {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }

    .hero {
        border-radius: 16px;
    }

    .hero-inner {
        padding: 20px 16px;
    }

    .lead {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn,
    .btn,
    .menu-card {
        width: 100%;
    }

    .global-nav,
    .cards-3,
    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .global-nav a {
        min-height: 48px;
        padding: 10px 8px;
        font-size: 1rem;
    }

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

    .card > h2 {
        margin: -12px -12px 12px;
        padding: 12px 14px;
        font-size: 1.2rem;
    }

    .card > p,
    .card li,
    .note {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .desktop-only-table {
        display: none;
    }

    .mobile-only-cards {
        display: grid;
        gap: 10px;
    }

    .table-scroll-hint {
        display: block;
    }

    .info-table th,
    .info-table td {
        padding: 8px;
        font-size: 0.94rem;
    }

    /* 横に広い表は、表そのものを横スクロールにする */
    .info-table.responsive-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    .info-table.responsive-table tbody {
        display: table;
        width: 100%;
        min-width: 560px;
    }

    .info-table.responsive-table th,
    .info-table.responsive-table td {
        white-space: nowrap;
    }

    .info-table.responsive-table td.left {
        min-width: 220px;
        white-space: normal;
    }

    /* 通常の2列表はスマホでは縦積みカードにする */
    .info-table:not(.responsive-table) {
        display: block;
        width: 100%;
        border: 2px solid #418ab4;
        border-radius: 12px;
        border-spacing: 0;
        background: #fff;
        overflow: hidden;
    }

    .info-table:not(.responsive-table) tbody,
    .info-table:not(.responsive-table) tr,
    .info-table:not(.responsive-table) th,
    .info-table:not(.responsive-table) td {
        display: block;
        width: 100%;
    }

    .info-table:not(.responsive-table) tr {
        border-bottom: 2px solid #418ab4;
    }

    .info-table:not(.responsive-table) tr:last-child {
        border-bottom: 0;
    }

    .info-table:not(.responsive-table) th {
        padding: 7px 10px 5px;
        background: #e6f2ff;
        color: #245a92;
        white-space: normal;
    }

    .info-table:not(.responsive-table) td {
        padding: 8px 10px 10px;
        background: #fff;
    }

    .job-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .job-head h3 {
        font-size: 1.12rem;
    }

    .job-card .summary,
    .job-card .info-table,
    .job-card .pill-list,
    .detail-boxes {
        margin: 10px;
    }

    .job-card .info-table {
        width: calc(100% - 20px);
    }

    .pill-list {
        gap: 6px;
    }

    .pill-list li {
        width: 100%;
        border-radius: 12px;
        line-height: 1.45;
    }

    .detail-box,
    .topic-card,
    .faq-item {
        padding: 12px;
    }
}

@media (max-width: 420px) {
    .site-wrap {
        padding: 8px;
    }

    .global-nav,
    .cards-3,
    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .global-nav a {
        min-height: 46px;
        font-size: 0.96rem;
    }

    .card {
        padding: 12px;
    }

    .card > h2 {
        margin: -12px -12px 12px;
    }

    .job-card .summary,
    .job-card .info-table,
    .job-card .pill-list,
    .detail-boxes {
        margin: 8px;
    }

    .job-card .info-table {
        width: calc(100% - 16px);
    }
}
