:root {
    --text: #111827;
    --muted: #5b6472;
    --line: #e5e7eb;
    --soft: #f5f6f8;
    --white: #ffffff;
    --accent: #b33a3a;
    --accent-dark: #922d2d;
    --ink: #1f2937;
    --shadow: 0 14px 34px rgba(17, 24, 39, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--soft);
    font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px clamp(18px, 4vw, 56px);
    color: #ffffff;
}

.site-header.solid {
    position: sticky;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.brand {
    text-decoration: none;
    font-size: 22px;
    font-weight: 900;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 700;
}

.site-nav a {
    text-decoration: none;
    opacity: 0.9;
}

.site-nav a:hover {
    opacity: 1;
}

.home-hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 112px clamp(20px, 6vw, 88px) 72px;
    background:
        linear-gradient(90deg, rgba(5, 8, 14, 0.78), rgba(5, 8, 14, 0.38)),
        url("/images/homepage.png") center / cover no-repeat;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.cta-band .eyebrow {
    color: #f3b2b2;
}

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

h1 {
    margin-bottom: 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.16;
    font-weight: 900;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.25;
    font-weight: 900;
}

p {
    color: var(--muted);
    line-height: 1.8;
}

.hero-copy p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.btn-outline {
    background: #ffffff;
    border-color: var(--line);
    color: var(--text);
}

.btn-outline:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.site-header.solid ~ .page-main .btn-secondary,
.service-hero .btn-secondary {
    background: #ffffff;
    color: var(--text);
    border-color: var(--line);
}

.section {
    padding: 72px 20px;
}

.section-white {
    background: #ffffff;
}

.section-soft {
    background: var(--soft);
}

.section-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.service-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.service-card img {
    display: block;
    width: 100%;
    height: 178px;
    object-fit: cover;
}

.service-card span {
    display: block;
    padding: 18px 18px 8px;
    font-size: 18px;
    font-weight: 900;
}

.service-card p {
    padding: 0 18px 20px;
    font-size: 14px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 34px;
    align-items: start;
}

.stat-list {
    display: grid;
    gap: 12px;
}

.stat-list div,
.feature-list li,
.process-list li,
.related-grid a {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
}

.stat-list div {
    padding: 18px;
}

.stat-list strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 28px;
    line-height: 1.2;
}

.stat-list span {
    color: var(--muted);
    font-weight: 700;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.process-list li {
    padding: 18px;
}

.process-list strong {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 18px;
}

.process-list span {
    color: var(--muted);
    line-height: 1.7;
}

.cta-band {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 72px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 34px;
    border-radius: 8px;
    background: #1f2937;
    color: #ffffff;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.76);
}

.site-footer {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 24px 20px;
    border-top: 1px solid var(--line);
    background: #ffffff;
    color: #5b6472;
    font-size: 14px;
}

.site-footer a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
}

.page-main {
    min-height: calc(100vh - 80px);
}

.page-title {
    padding: 72px 20px 36px;
    background: #ffffff;
    text-align: center;
}

.page-title p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.service-hero {
    width: min(1180px, calc(100% - 40px));
    margin: 42px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
    gap: 32px;
    align-items: center;
    padding: 28px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.service-hero h1 {
    color: var(--text);
    font-size: clamp(34px, 5vw, 56px);
}

.service-hero p {
    font-size: 16px;
}

.service-hero img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    border-radius: 8px;
}

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

.feature-list li {
    padding: 16px 18px;
    color: var(--ink);
    font-weight: 800;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.related-grid a {
    padding: 16px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 900;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.info-grid article {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
}

.info-grid h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.4;
}

.info-grid p {
    margin-bottom: 0;
    font-size: 14px;
}

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

.number-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
}

.number-list strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fef2f2;
    color: var(--accent);
    font-size: 16px;
}

.number-list span {
    color: var(--ink);
    font-weight: 800;
}

.feature-list.compact li {
    padding: 14px 16px;
}

.contact-layout {
    width: min(1180px, calc(100% - 40px));
    margin: 42px auto 72px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 30px;
    align-items: start;
}

.contact-copy,
.contact-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.contact-copy {
    padding: 28px;
}

.contact-copy h1 {
    color: var(--text);
    font-size: clamp(34px, 5vw, 52px);
}

.contact-direct {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.contact-direct strong,
.contact-direct span {
    display: block;
}

.contact-direct strong {
    margin-bottom: 6px;
}

.contact-note {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.contact-note h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

.contact-note ul {
    display: grid;
    gap: 8px;
    padding-left: 18px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 24px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 900;
}

.contact-form .full,
.field-error,
.recaptcha-wrap,
.alert {
    grid-column: 1 / -1;
}

.contact-form b {
    color: var(--accent);
    font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd5df;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
    line-height: 1.7;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(179, 58, 58, 0.12);
}

.contact-form small,
.field-error {
    color: var(--accent);
    font-size: 12px;
    line-height: 1.5;
}

.consent {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    font-weight: 700 !important;
}

.consent input {
    width: 18px;
    min-height: 18px;
    margin-top: 3px;
}

.consent a {
    color: var(--accent-dark);
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1.6;
}

.alert.success {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.alert.error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.recaptcha-wrap {
    min-height: 78px;
}

.thanks-panel {
    width: min(760px, calc(100% - 40px));
    margin: 72px auto;
    padding: clamp(28px, 6vw, 54px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    text-align: center;
}

.thanks-panel h1 {
    color: var(--text);
    font-size: clamp(34px, 5vw, 52px);
}

.thanks-panel p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.thanks-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

@media (max-width: 860px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-hero {
        min-height: 88vh;
        padding-top: 148px;
    }

    .split,
    .service-hero,
    .contact-layout,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .cta-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-hero img {
        height: 240px;
    }
}

@media (max-width: 520px) {
    .site-nav {
        gap: 10px;
        font-size: 13px;
    }

    .home-hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .service-card img {
        height: 150px;
    }

    .contact-layout,
    .service-hero,
    .cta-band {
        width: min(100% - 24px, 1180px);
    }

    .contact-form,
    .contact-copy,
    .service-hero,
    .cta-band {
        padding: 18px;
    }
}
