:root {
    --contact-ink: #0f172a;
    --contact-muted: #52647a;
    --contact-teal: #0071b7;
    --contact-teal-dark: #0f3f8c;
    --contact-aqua: #8edbff;
    --contact-cream: #f3f8fd;
    --contact-gold: #67c6ef;
    --contact-line: rgba(15, 23, 42, .13);
    --contact-white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--contact-ink);
    background: #fff;
    font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.contact-shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.contact-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .96);
}
.contact-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 30px; }
.contact-brand { display: block; width: 245px; }
.contact-brand img { width: 100%; height: auto; }
.contact-nav { display: flex; align-items: center; gap: 28px; }
.contact-nav a { color: #344b70; font-size: .82rem; font-weight: 700; text-decoration: none; }
.contact-nav a:hover { color: var(--contact-teal); }
.contact-nav .contact-nav-cta { padding: 10px 18px; border-radius: 999px; color: #fff; background: var(--contact-teal); }

.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 118px;
    color: #fff;
    background: linear-gradient(130deg, #0f172a 0%, #103f82 55%, #0071b7 100%);
}
.contact-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 70px;
    background: #fff;
    clip-path: polygon(0 68%, 100% 0, 100% 100%, 0 100%);
}
.contact-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.contact-orb-one { width: 500px; height: 500px; right: -170px; top: -210px; border: 1px solid rgba(255,255,255,.13); background: rgba(142,219,255,.08); }
.contact-orb-two { width: 290px; height: 290px; left: 38%; bottom: -190px; border: 1px solid rgba(255,255,255,.09); }
.contact-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 78px; align-items: center; }
.contact-eyebrow, .contact-section-label { margin: 0 0 15px; color: var(--contact-gold); font-size: .73rem; font-weight: 800; letter-spacing: .24em; }
.contact-hero h1 { margin: 0 0 28px; color: #fff; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(3rem, 5vw, 4.8rem); line-height: 1.23; letter-spacing: .03em; }
.contact-hero h1 span { color: #8edbff; }
.contact-hero-lead { max-width: 630px; margin: 0 0 30px; color: rgba(255,255,255,.79); font-size: 1rem; }
.contact-response-note { display: inline-flex; align-items: center; gap: 14px; padding: 13px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.07); }
.contact-response-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; color: #0f3f8c; background: var(--contact-aqua); }
.contact-response-note strong, .contact-response-note small { display: block; }
.contact-response-note strong { font-size: .86rem; }
.contact-response-note small { color: rgba(255,255,255,.62); font-size: .72rem; }

.contact-hero-card { padding: 33px; border: 1px solid rgba(255,255,255,.17); border-radius: 24px; background: rgba(255,255,255,.1); box-shadow: 0 30px 70px rgba(0,0,0,.22); backdrop-filter: blur(16px); }
.contact-hero-card > p { margin: 0 0 5px; color: var(--contact-aqua); font-size: .65rem; font-weight: 800; letter-spacing: .18em; }
.contact-hero-card h2 { margin: 0 0 22px; color: #fff; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.6rem; }
.contact-channel { display: grid; grid-template-columns: 82px 1fr 22px; align-items: center; gap: 9px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.contact-channel span { color: rgba(255,255,255,.5); font-size: .62rem; font-weight: 800; letter-spacing: .13em; }
.contact-channel strong { font-size: .88rem; }
.contact-channel i { color: var(--contact-aqua); font-style: normal; }

.contact-section { padding: 100px 0; }
.contact-form-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 82px; align-items: start; }
.contact-form-intro { position: sticky; top: 30px; }
.contact-form-intro h2, .contact-guide-card h2 { margin: 0 0 20px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.45; }
.contact-form-intro > p:not(.contact-section-label) { margin: 0; color: var(--contact-muted); font-size: .91rem; }
.contact-section-label { color: var(--contact-teal); }
.contact-steps { margin: 36px 0 0; padding: 0; list-style: none; }
.contact-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: #708096; border-top: 1px solid var(--contact-line); }
.contact-steps li:last-child { border-bottom: 1px solid var(--contact-line); }
.contact-steps li > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #c8d6e8; border-radius: 50%; font-family: Georgia, serif; font-size: .8rem; }
.contact-steps li strong, .contact-steps li small { display: block; }
.contact-steps li strong { font-size: .86rem; }
.contact-steps li small { color: #91a0b5; font-size: .69rem; }
.contact-steps li.is-current { color: var(--contact-teal-dark); }
.contact-steps li.is-current > span { color: #fff; border-color: var(--contact-teal); background: var(--contact-teal); }

.contact-form-card, .contact-confirm-card, .contact-result-card { padding: 48px; border: 1px solid var(--contact-line); border-radius: 24px; background: #fff; box-shadow: 0 22px 70px rgba(15, 63, 140, .10); }
.contact-field { margin-bottom: 24px; }
.contact-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-field label { display: block; margin-bottom: 8px; color: var(--contact-ink); font-size: .83rem; font-weight: 700; }
.contact-field label span { margin-left: 5px; color: #0071b7; font-size: .66rem; }
.contact-field input, .contact-field select, .contact-field textarea {
    width: 100%;
    border: 1px solid #c9d7e8;
    border-radius: 12px;
    color: var(--contact-ink);
    background: #fbfdff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-field input, .contact-field select { min-height: 54px; padding: 0 16px; }
.contact-field textarea { min-height: 185px; padding: 15px 16px; resize: vertical; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { border-color: var(--contact-teal); background: #fff; box-shadow: 0 0 0 4px rgba(0,113,183,.11); }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #9aaabd; }
.contact-field > small { display: block; margin-top: 7px; color: #72849a; font-size: .7rem; }
.contact-consent { display: flex; align-items: flex-start; gap: 11px; margin: 3px 0 25px; color: #4d627c; font-size: .79rem; cursor: pointer; }
.contact-consent input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--contact-teal); }
.contact-submit, .contact-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 58px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--contact-teal-dark), var(--contact-teal)); box-shadow: 0 14px 30px rgba(15,63,140,.22); font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.contact-submit { width: 100%; padding: 0 26px; }
.contact-button { padding: 0 27px; }
.contact-submit:hover, .contact-button:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(15,63,140,.28); }
.contact-submit i { font-style: normal; }
.contact-form-footnote { margin: 11px 0 0; color: #78889c; font-size: .71rem; text-align: center; }
.contact-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.contact-guide { padding: 0 0 100px; }
.contact-guide-card { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; padding: 45px 50px; border-radius: 22px; background: var(--contact-cream); }
.contact-guide-card h2 { margin-bottom: 0; font-size: 2rem; }
.contact-guide-card ul { margin: 0; padding: 0; list-style: none; }
.contact-guide-card li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid rgba(15,23,42,.1); color: #50647d; font-size: .85rem; }
.contact-guide-card li::before { content: "✓"; position: absolute; left: 3px; color: var(--contact-teal); font-weight: 800; }

.contact-footer { color: #fff; background: #0f172a; }
.contact-footer-inner { display: flex; justify-content: space-between; gap: 40px; padding-top: 48px; padding-bottom: 42px; }
.contact-footer strong { font-family: Georgia, serif; font-size: 1.35rem; }
.contact-footer p { margin: 7px 0 0; color: rgba(255,255,255,.58); font-size: .78rem; }
.contact-footer-links { display: flex; align-items: center; gap: 22px; }
.contact-footer-links a { color: rgba(255,255,255,.75); font-size: .78rem; text-decoration: none; }
.contact-copyright { margin: 0 !important; padding: 17px 20px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; }

.contact-process-page { min-height: 100vh; background: #f3f8fd; }
.contact-process { min-height: calc(100vh - 160px); padding: 72px 0 92px; }
.contact-process-shell { max-width: 900px; }
.contact-process-heading { margin-bottom: 34px; text-align: center; }
.contact-process-heading h1 { margin: 0 0 28px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2rem, 4vw, 3.2rem); }
.contact-steps-horizontal { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 660px; margin: 0 auto; }
.contact-steps-horizontal li { justify-content: center; border-top: 0; border-bottom: 1px solid var(--contact-line); }
.contact-confirm-lead { margin: 0 0 26px; color: var(--contact-muted); text-align: center; }
.contact-confirm-list { margin: 0; }
.contact-confirm-list > div { display: grid; grid-template-columns: 180px 1fr; padding: 19px 0; border-top: 1px solid var(--contact-line); }
.contact-confirm-list > div:last-child { border-bottom: 1px solid var(--contact-line); }
.contact-confirm-list dt { color: #6d7e94; font-size: .78rem; font-weight: 700; }
.contact-confirm-list dd { margin: 0; color: var(--contact-ink); }
.contact-confirm-message dd { white-space: normal; overflow-wrap: anywhere; }
.contact-confirm-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.contact-button-secondary { color: var(--contact-teal-dark); border: 1px solid #bfd1e8; background: #fff; box-shadow: none; }
.contact-result-card { max-width: 720px; margin: 0 auto; text-align: center; }
.contact-result-mark { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; color: #fff; background: var(--contact-teal); font-size: 1.8rem; font-weight: 800; }
.contact-result-card h2 { margin: 0 0 14px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 2rem; }
.contact-result-card > p:not(.contact-section-label) { color: var(--contact-muted); }
.contact-result-card .contact-button { margin-top: 20px; }
.contact-result-error .contact-result-mark { background: #b14f5d; }
.contact-result-note { padding: 12px 16px; border-radius: 10px; background: #eef6fd; font-size: .8rem; }

@media (max-width: 900px) {
    .contact-hero-grid, .contact-form-grid, .contact-guide-card { grid-template-columns: 1fr; }
    .contact-hero-grid { gap: 44px; }
    .contact-hero-copy { max-width: 720px; }
    .contact-hero-card { max-width: 650px; }
    .contact-form-grid, .contact-guide-card { gap: 42px; }
    .contact-form-intro { position: static; }
    .contact-steps:not(.contact-steps-horizontal) { display: grid; grid-template-columns: repeat(3, 1fr); }
    .contact-steps:not(.contact-steps-horizontal) li { border-bottom: 1px solid var(--contact-line); }
}

@media (max-width: 680px) {
    .contact-shell { width: min(100% - 30px, 1160px); }
    .contact-header-inner { min-height: 67px; }
    .contact-brand { width: 155px; }
    .contact-nav > a:not(.contact-nav-cta) { display: none; }
    .contact-nav { gap: 0; }
    .contact-nav .contact-nav-cta { padding: 8px 14px; font-size: .72rem; }
    .contact-hero { padding: 74px 0 95px; }
    .contact-hero h1 { font-size: 2.55rem; }
    .contact-hero-lead { font-size: .9rem; }
    .contact-response-note { width: 100%; }
    .contact-hero-card { padding: 25px 21px; }
    .contact-channel { grid-template-columns: 70px 1fr 18px; }
    .contact-section { padding: 75px 0; }
    .contact-form-intro h2 { font-size: 1.9rem; }
    .contact-steps:not(.contact-steps-horizontal) { grid-template-columns: 1fr; margin-top: 25px; }
    .contact-form-card, .contact-confirm-card, .contact-result-card { padding: 28px 20px; border-radius: 18px; }
    .contact-field-row { grid-template-columns: 1fr; gap: 0; }
    .contact-guide { padding-bottom: 75px; }
    .contact-guide-card { padding: 30px 22px; border-radius: 18px; }
    .contact-footer-inner { display: block; padding-top: 37px; padding-bottom: 34px; }
    .contact-footer-links { flex-wrap: wrap; margin-top: 24px; gap: 12px 18px; }
    .contact-process { padding: 50px 0 70px; }
    .contact-steps-horizontal { gap: 6px; }
    .contact-steps-horizontal li { display: block; padding: 10px 2px; text-align: center; }
    .contact-steps-horizontal li > span { margin: 0 auto 6px; }
    .contact-steps-horizontal li strong { font-size: .7rem; }
    .contact-confirm-list > div { grid-template-columns: 1fr; gap: 5px; }
    .contact-confirm-actions { display: grid; }
    .contact-confirm-actions .contact-button { width: 100%; }
}
