/* ========================================
   Design Tokens (from Figma)
   ======================================== */
:root {
    --color-black: #000;
    --color-text: #222;
    --color-body: #454545;
    --color-grey: #c8c8c8;
    --color-line: #e5e5e5;
    --color-textlink: #2d9fff;
    --color-blue-500: #0065c8;
    --color-error: #f23030;
    --color-required: #eb3131;
    --color-bg: #f9f9f9;
    --color-bg-footer: #fbfbfb;
    --color-white: #fff;
    --gradient-brand: linear-gradient(90deg, #255c9e 0%, #2d9fff 25%, #8ed5ff 44%, #ffa59e 65%, #ff8b84 80%, #ff6f92 92%);
    --font-sans: "A1 Gothic R", Amiko, Helvetica, "游ゴシック Medium", "Yu Gothic Medium", 游ゴシック体, YuGothic, a-otf-midashi-go-mb31-pr6n, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    --font-yugothic: "A1 Gothic R", Amiko, Helvetica, "游ゴシック Medium", "Yu Gothic Medium", 游ゴシック体, YuGothic, a-otf-midashi-go-mb31-pr6n, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.6;
}

main {
    flex: 1;
}

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

/* ========================================
   Header
   ======================================== */
.header {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-phone-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-body);
}

.header-phone-number {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-blue-500);
    letter-spacing: 0.8px;
    text-decoration: none;
}

.header-phone-icon {
    width: 20px;
    height: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    width: 160px;
    height: 53px;
}

.header-subtitle {
    font-family: var(--font-yugothic);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: 1px;
}

/* ========================================
   Hero / Top Page
   ======================================== */
.hero {
    padding: 40px 120px;
}

.hero-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
}

.hero-left {
    flex: 1;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-right {
    flex-shrink: 0;
}

.hero-badge {
    display: inline-block;
    width: fit-content;
    background: var(--gradient-brand);
    color: var(--color-white);
    font-family: var(--font-yugothic);
    font-size: 18px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
}

.hero-text {
    font-family: var(--font-yugothic);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--color-black);
}

.text-accent {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Card */
.form-card {
    background: var(--color-bg);
    border-radius: 10px;
    padding: 30px 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.16);
    width: 480px;
}

.form-title {
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.form-desc {
    font-family: var(--font-yugothic);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1.8;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-text);
    letter-spacing: 2px;
}

.badge-required {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-required);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 3px;
    border-radius: 4px;
    line-height: 1;
}

.form-group input {
    width: 100%;
    padding: 10px 16px;
    font-family: var(--font-yugothic);
    font-size: 16px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    outline: none;
    background: var(--color-white);
    transition: border-color 0.2s;
    letter-spacing: 2px;
}

.form-group input:focus {
    border-color: #999;
}

.form-group input::placeholder {
    color: var(--color-grey);
    font-size: 16px;
    letter-spacing: 2px;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    background: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 1.6px;
    margin-top: 40px;
}

.btn-submit:hover {
    background: #333;
}

.btn-submit:disabled {
    background: var(--color-grey);
    cursor: not-allowed;
}

/* ========================================
   CTA (お問い合わせ)
   ======================================== */
.cta-section {
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

.btn-outline-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 330px;
    height: 60px;
    border: 2px solid var(--color-body);
    border-radius: 10px;
    font-family: var(--font-yugothic);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-body);
    letter-spacing: 1.6px;
    transition: background 0.2s;
}

.btn-outline-cta:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* ========================================
   Result Pages
   ======================================== */
.result-section {
    padding: 40px 120px 0;
}

.result-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-yugothic);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    width: 100%;
}

.breadcrumb a {
    color: #324de5;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    width: 4px;
    height: 8px;
}

.breadcrumb-current {
    color: #999;
}

.result-title {
    font-family: var(--font-sans);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    line-height: 1.6;
    padding: 16px 0;
}

.result-body {
    width: 100%;
    max-width: 1080px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 80px;
}

.result-body-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.result-detail-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.result-status-text {
    font-family: var(--font-yugothic);
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    color: var(--color-body);
    line-height: 1.8;
    width: 100%;
}

/* Alert Banner (red full-width) */
.result-alert-banner {
    background: var(--color-error);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
}

.alert-icon {
    width: 46px;
    height: 40px;
}

.result-alert-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    color: var(--color-white);
}

.result-alert-title {
    font-family: var(--font-yugothic);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.8;
}

.result-alert-subtitle {
    font-family: var(--font-yugothic);
    font-size: 16px;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 1px;
}

.result-status-text--danger {
    color: #e02323;
}

.result-note {
    font-family: var(--font-yugothic);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: var(--color-black);
    letter-spacing: 1px;
    line-height: 2;
}

/* Info rows */
.result-info {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-row dt {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-grey);
    letter-spacing: 2px;
}

.info-row dd {
    font-family: var(--font-yugothic);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: 2px;
    padding: 10px 16px;
    border-radius: 8px;
    line-height: 1.8;
}

/* Detail / Remarks */
.result-remark {
    font-family: var(--font-yugothic);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    color: var(--color-black);
    letter-spacing: 1px;
    line-height: 2;
    width: 100%;
}

.result-detail-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    width: 560px;
}

.detail-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-list-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-list-label {
    font-family: var(--font-yugothic);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: 1px;
    line-height: 2;
}

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: var(--color-error);
    color: var(--color-white);
    font-family: var(--font-yugothic);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 35px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-line);
}

.detail-date {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: 0.56px;
    width: 90px;
}

.detail-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-unpaid {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    padding: 0 10px;
    background: var(--color-error);
    color: var(--color-white);
    font-family: var(--font-yugothic);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

.detail-amount {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-error);
    text-align: right;
    letter-spacing: 0.56px;
    width: 90px;
}

.detail-row--total .detail-date {
    font-weight: 700;
}

.detail-tax-note {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-align: right;
    letter-spacing: 0.48px;
    line-height: 1.8;
    width: 100%;
}

/* Risk Section */
.risk-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.risk-warning-text {
    font-family: var(--font-yugothic);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-error);
    letter-spacing: 1px;
    line-height: 1.7;
}

.risk-heading {
    background: #f2e6e6;
    border-left: 6px solid var(--color-error);
    padding-left: 20px;
    width: 100%;
    display: flex;
    align-items: center;
}

.risk-heading-text {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-error);
    line-height: 1.8;
}

.risk-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}

.risk-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.risk-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.risk-text {
    font-family: var(--font-yugothic);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: 1px;
    line-height: 1.7;
}

/* Payment Section */
.payment-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.payment-instruction {
    font-family: var(--font-yugothic);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: 1px;
    line-height: 1.7;
}

.payment-card {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(12, 12, 13, 0.1), 0 1px 4px rgba(12, 12, 13, 0.05);
    overflow: hidden;
}

.payment-card-header {
    background: var(--color-blue-500);
    padding: 6px 10px;
    text-align: center;
}

.payment-card-header p {
    font-family: var(--font-yugothic);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.6;
}

.payment-card-body {
    background: var(--color-white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-row {
    display: flex;
    flex-direction: column;
    line-height: 1.7;
}

.payment-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    color: var(--color-body);
    letter-spacing: 0.48px;
}

.payment-value {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: 0.64px;
}

.payment-fee-note {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-align: right;
    letter-spacing: 0.48px;
    line-height: 1.8;
    width: 100%;
}

/* ========================================
   Error Pages (system error / validation error)
   ======================================== */
.error-section {
    padding: 40px 120px 0;
}

.error-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.error-title {
    font-family: var(--font-sans);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    line-height: 1.6;
    padding: 16px 0;
}

.error-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.error-message {
    font-family: var(--font-yugothic);
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    color: var(--color-black);
    line-height: 1.8;
}

/* Back button (error pages) */
.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 400px;
    height: 60px;
    background: var(--color-body);
    color: var(--color-white);
    font-family: var(--font-yugothic);
    font-size: 20px;
    font-weight: 700;
    border-radius: 10px;
    letter-spacing: 1.6px;
    transition: opacity 0.2s;
}

.btn-back:hover {
    opacity: 0.85;
}

.btn-back-arrow {
    width: 16px;
    height: 16px;
}

/* Simple footer (result pages) */
.footer-simple {
    background: var(--color-bg);
    padding: 40px 120px 20px;
}

.footer-simple .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-simple .footer-logo-img {
    height: 46px;
}

.footer-simple .footer-copy {
    font-family: var(--font-yugothic);
    font-size: 12px;
    color: var(--color-grey);
    line-height: 1.8;
}

/* ========================================
   Buttons (shared)
   ======================================== */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 330px;
    height: 60px;
    border: 2px solid var(--color-body);
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-body);
    letter-spacing: 1.6px;
    transition: background 0.2s;
}

.btn-outline:hover {
    background: rgba(0, 0, 0, 0.04);
}

.btn-dark {
    display: block;
    max-width: 320px;
    margin: 0 auto 16px;
    padding: 14px;
    background: #444;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    transition: background 0.2s;
    letter-spacing: 0.04em;
}

.btn-dark:hover {
    background: #666;
}

/* ========================================
   Privacy
   ======================================== */
.privacy-section {
    padding: 48px 24px;
}

.privacy-inner {
    max-width: 640px;
    margin: 0 auto;
}

.privacy-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.privacy-inner p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* ========================================
   Footer (matching tadaden.jp)
   ======================================== */
.footer {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 64px;
}

.footer-inner {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.footer-brand {
    flex-shrink: 0;
}

.footer-logo-img {
    width: 150px;
    height: auto;
}

.footer-nav {
    display: contents;
}

.footer-nav-col {
    list-style: none;
}

.footer-nav-col li + li {
    margin-top: 0.625rem;
}

.footer-nav-col a {
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.footer-nav-col a:hover {
    text-decoration: underline;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2D9FFF;
    color: #fff;
    font-family: YuGothic, sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 4px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1;
}

.footer-contact {
    flex-shrink: 0;
}

.footer-contact-label {
    font-size: 15px;
}

.footer-contact-email {
    font-size: 15px;
}


/* Result page buttons wrapper */
.result-actions {
    text-align: center;
    margin-top: 36px;
}

.result-actions .btn-dark {
    margin-bottom: 24px;
}

.result-actions .btn-outline {
    margin-bottom: 0;
}

/* ========================================
   Responsive: SP
   ======================================== */
@media (max-width: 1199px) {
    /* --- SP Header --- */
    .header {
        padding: 8px 12px;
    }

    .logo-img {
        width: 121px;
        height: 40px;
    }

    .header-subtitle {
        display: none;
    }

    .header-phone-label {
        display: none;
    }

    .header-phone-number {
        font-size: 16px;
    }

    .header-phone-icon {
        width: 16px;
        height: 16px;
    }

    /* --- SP Hero --- */
    .hero {
        padding: 0 16px;
    }

    .hero-layout {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
    }

    .hero-left {
        padding-top: 30px;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero-badge {
        font-size: 18px;
    }

    .hero-text {
        font-size: 26px;
        line-height: 1.7;
        text-align: center;
        letter-spacing: 1px;
    }

    .hero-right {
        width: 100%;
    }

    /* --- SP Form Card --- */
    .form-card {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        padding: 30px 20px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.16);
        background: var(--color-bg);
        border-radius: 10px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-desc {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .btn-submit {
        height: 60px;
        font-size: 20px;
    }

    /* --- SP Error pages --- */
    .error-section {
        padding: 40px 16px 0;
    }

    .error-inner {
        gap: 40px;
    }

    .error-title {
        font-size: 24px;
        padding: 20px 0;
    }

    .error-message {
        font-size: 19px;
    }

    .error-content .btn-back {
        width: 100%;
    }

    /* --- SP CTA (home page only: hidden) --- */
    .cta-section--home {
        display: none;
    }

    /* --- SP Result --- */
    .result-section {
        padding: 0 16px;
    }

    .result-inner {
        gap: 40px;
    }

    .result-body {
        padding-bottom: 40px;
    }

    .result-body-inner {
        gap: 40px;
    }

    .result-title {
        font-size: 24px;
        padding: 20px 0 0;
    }

    .result-status-text {
        font-size: 20px;
    }

    /* SP: unpaid variant overrides */
    .result-section--unpaid {
        padding: 0;
    }

    .result-section--unpaid .result-inner {
        gap: 0;
    }

    .result-section--unpaid .result-body {
        padding-bottom: 0;
    }

    .result-section--unpaid .result-body-inner {
        gap: 0;
    }

    .result-alert-title {
        font-size: 24px;
    }

    .result-alert-subtitle {
        font-size: 15px;
        line-height: 1.7;
    }

    .result-note {
        font-size: 16px;
    }

    .result-detail-container {
        width: 100%;
        padding: 0 16px;
        gap: 30px;
    }

    .result-detail-section {
        padding-top: 40px;
    }

    .result-remark {
        text-align: left;
    }

    .result-info {
        width: 100%;
        max-width: 100%;
    }

    .detail-list {
        width: 100%;
    }

    .result-remark {
        width: 100%;
    }

    .risk-text {
        font-size: 15px;
    }

    .btn-back {
        width: 100%;
    }

    .breadcrumb {
        display: none;
    }

    /* --- SP Footer (simple) --- */
    .footer-simple {
        padding: 40px 20px 20px;
        text-align: center;
    }

    .footer-simple .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-simple .footer-copy {
        font-size: 10px;
        text-align: center;
    }

    /* --- SP Footer --- */
    .footer {
        padding: 32px 0 40px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        padding: 0 20px;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }


    .btn-outline {
        width: 100%;
        max-width: 330px;
        height: 50px;
        font-size: 16px;
    }

    .btn-outline-cta {
        width: 330px;
        max-width: 100%;
    }
}

/* ========================================
   PC narrow (1200–1439px): footer compact
   ======================================== */
/* (1200-1439px: no special footer adjustments needed) */

/* ========================================
   PC (min-width 1200px)
   ======================================== */
@media (min-width: 1200px) {
    .logo-img {
        width: 160px;
        height: 53px;
    }
}
