:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #eef4f8;
    --text: #15202b;
    --muted: #61707f;
    --line: #dce5ec;
    --primary: #0b5c7a;
    --primary-dark: #073d54;
    --accent: #23a6b8;
    --shadow: 0 24px 70px rgba(13, 39, 56, .12);
    --radius: 22px;
    --container: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    letter-spacing: .02em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 12px 18px;
    background: var(--primary);
    color: #fff;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 248, 251, .88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(220, 229, 236, .7);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-inner {
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .03em;
}

.global-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
    font-weight: 700;
    color: #314351;
}

.global-nav a {
    transition: color .2s ease;
}

.global-nav a:hover,
.global-nav a:focus-visible {
    color: var(--primary);
}

.nav-contact {
    padding: 10px 16px;
    color: #fff !important;
    background: var(--primary);
    border-radius: 999px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--primary-dark);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 78px;
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    width: 520px;
    height: 520px;
    border-radius: 999px;
    opacity: .18;
    filter: blur(4px);
}

.hero::before {
    right: -190px;
    top: -180px;
    background: var(--accent);
}

.hero::after {
    left: -230px;
    bottom: -280px;
    background: var(--primary);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 58px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.16;
    letter-spacing: -.03em;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.25;
    letter-spacing: -.02em;
}

h3 {
    margin-bottom: 14px;
    font-size: 21px;
    line-height: 1.45;
}

.lead {
    max-width: 660px;
    color: #405260;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 16px 35px rgba(11, 92, 122, .22);
}

.button.secondary {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, .7);
    border-color: var(--line);
}

.button.full {
    width: 100%;
    border: 0;
    font-size: 16px;
}

.hero-panel {
    display: grid;
    gap: 18px;
}

.panel-card,
.service-card,
.work-card,
.company-card,
.contact-form,
.result-card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(220, 229, 236, .85);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel-card {
    padding: 24px;
}

.main-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(35, 166, 184, .9), transparent 40%),
        linear-gradient(145deg, var(--primary-dark), var(--primary));
    border: 0;
}

.main-card span {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    font-size: 13px;
    font-weight: 800;
}

.main-card strong {
    display: block;
    margin-bottom: 14px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.18;
    letter-spacing: -.03em;
}

.main-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .86);
}

.mini-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.mini-cards .panel-card {
    padding: 18px;
    box-shadow: none;
}

.mini-cards strong,
.mini-cards span {
    display: block;
}

.mini-cards strong {
    color: var(--primary-dark);
    font-size: 16px;
}

.mini-cards span {
    color: var(--muted);
    font-size: 13px;
}

.section {
    padding: 86px 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-head p:last-child {
    color: var(--muted);
}

.section-head.split {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    gap: 30px;
    align-items: end;
    max-width: none;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    padding: 30px;
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card-label,
.work-number {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
}

.service-card > p:not(.card-label),
.work-card > p {
    color: var(--muted);
}

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

.tag-list li {
    padding: 6px 10px;
    color: var(--primary-dark);
    background: var(--surface-soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.works-section {
    background: #fff;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.work-card {
    padding: 30px;
    background: #f9fbfd;
    box-shadow: none;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--primary);
    font-weight: 900;
}

.text-link::after {
    content: "→";
}

.cost-note {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 24px;
    margin-top: 22px;
    padding: 26px 30px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius);
}

.cost-note strong {
    font-size: 19px;
    line-height: 1.55;
}

.cost-note p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .86);
}

.support-section {
    padding: 62px 0;
}

.support-box {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 42px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.support-box p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.company-grid {
    display: grid;
    grid-template-columns: minmax(260px, .65fr) minmax(0, 1.15fr);
    gap: 44px;
    align-items: start;
}

.sticky-head {
    position: sticky;
    top: 110px;
}

.company-card {
    overflow: hidden;
    box-shadow: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

tr:last-child th,
tr:last-child td {
    border-bottom: 0;
}

th {
    width: 170px;
    color: var(--primary-dark);
    background: #f3f8fb;
    font-size: 14px;
    white-space: nowrap;
}

td {
    color: #354756;
}

.contact-section {
    color: #fff;
    background:
        radial-gradient(circle at 20% 0, rgba(35, 166, 184, .35), transparent 32%),
        linear-gradient(140deg, #072f42, #0b5c7a);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
    gap: 44px;
    align-items: start;
}

.contact-section .eyebrow {
    color: #7ee4ef;
}

.contact-section p {
    color: rgba(255, 255, 255, .82);
}

.contact-methods {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.contact-methods a {
    display: inline-flex;
    width: fit-content;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-weight: 800;
}

.contact-form {
    padding: 30px;
    color: var(--text);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.form-row {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

label span {
    color: #c44242;
    font-size: 12px;
}

input,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cfdbe4;
    border-radius: 12px;
    font: inherit;
    background: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(35, 166, 184, .13);
}

textarea {
    resize: vertical;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer {
    padding: 28px 0;
    background: #fff;
    border-top: 1px solid var(--line);
}

.footer-brand {
    color: var(--primary-dark);
}

.footer-inner small {
    color: var(--muted);
}

.result-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
    background:
        radial-gradient(circle at 20% 0, rgba(35, 166, 184, .18), transparent 30%),
        var(--bg);
}

.result-card {
    width: min(100%, 620px);
    padding: 42px;
    text-align: center;
}

.result-card h1 {
    margin-top: 18px;
    font-size: clamp(28px, 5vw, 42px);
}

.result-card p {
    color: var(--muted);
}

@media (max-width: 860px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .header-inner {
        min-height: 68px;
    }

    .nav-toggle {
        display: block;
    }

    .global-nav {
        position: fixed;
        inset: 68px 14px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .global-nav.is-open {
        display: flex;
    }

    .global-nav a {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .nav-contact {
        text-align: center;
    }

    .hero {
        padding: 62px 0 56px;
    }

    .hero-grid,
    .service-grid,
    .works-grid,
    .support-box,
    .company-grid,
    .contact-grid,
    .section-head.split,
    .cost-note {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 32px;
    }

    .section {
        padding: 64px 0;
    }

    .support-section {
        padding: 48px 0;
    }

    .sticky-head {
        position: static;
    }

    .mini-cards {
        grid-template-columns: 1fr;
    }

    .support-box,
    .contact-form,
    .service-card,
    .work-card,
    .result-card {
        padding: 24px;
    }

    th,
    td {
        display: block;
        width: 100%;
        padding: 14px 18px;
    }

    th {
        border-bottom: 0;
    }

    td {
        padding-top: 0;
    }
}

@media (max-width: 520px) {
    .brand span {
        font-size: 15px;
    }

    h1 {
        font-size: 36px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .main-card {
        min-height: 260px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
