/* ===== 勤務医実質時給診断ツール 専用CSS ===== */

/* 診断ページ専用ヘッダーCTA */
.dwd-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-color);
    color: #fff;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.dwd-header-cta:hover {
    background-color: #002244;
}

/* ===== HERO ===== */
.dwd-hero {
    position: relative;
    min-height: 680px;
    padding: 40px 0 100px;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    background-color: #e8f4fc;
    overflow: hidden;
}

.dwd-hero.lazyloaded {
    background-image: url('../image/tool_hero_doctor_pc.jpg');
}

@media (max-width: 768px) {
    .dwd-hero.lazyloaded {
        background-image: url('../image/tool_hero_doctor_mobile.png');
    }
}

.dwd-hero .container {
    position: relative;
    z-index: 2;
}

.dwd-hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2;
    line-height: 0;
}

.dwd-hero__wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.dwd-hero__content {
    max-width: 600px;
    padding-top: 0;
}

.dwd-hero__eyebrow {
    position: relative;
    display: inline-block;
    font-family: 'Klee One', cursive;
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transform: rotate(-2deg);
}

.dwd-hero__eyebrow-line {
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 110%;
    height: 14px;
    pointer-events: none;
}

.dwd-hero__title {
    font-size: 3.6rem;
    line-height: 1.25;
    color: var(--main-color);
    margin-bottom: 0;
    font-weight: 800;
}

.dwd-hero__title-ruby {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    margin-left: 0.2em;
    line-height: 1;
    color: var(--main-color);
}

.dwd-hero__title-line {
    display: block;
}

.dwd-hero__title-highlight {
    color: #337ae8;
}

.dwd-hero__card {
    position: absolute;
    right: 5%;
    bottom: 90px;
    width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 51, 102, 0.14);
    padding: 20px;
    border: 1px solid rgba(0, 51, 102, 0.08);
    z-index: 3;
}

.dwd-hero__card-title {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 500;
}

.dwd-hero__card-title-sub {
    font-size: 0.8em;
    color: #666;
}

.dwd-hero__card-value {
    text-align: center;
    margin-bottom: 16px;
    line-height: 1;
}

.dwd-hero__card-value .js-dwd-hero-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #337ae8;
}

.dwd-hero__card-value span:not(.js-dwd-hero-value) {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.dwd-hero__gauge {
    margin-bottom: 14px;
}

.dwd-hero__gauge-heading {
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.dwd-hero__gauge-label {
    font-size: 0.75rem;
    color: #555;
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
}

.dwd-hero__gauge-track {
    height: 10px;
    background: #e0e7ef;
    border-radius: 5px;
    position: relative;
}

.dwd-hero__gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #337ae8 0%, #003366 100%);
    border-radius: 5px;
    width: 65%;
    position: relative;
}

.dwd-hero__gauge-marker {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3px solid #337ae8;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 51, 102, 0.2);
}

.dwd-hero__gauge-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
}

.dwd-hero__breakdown {
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.dwd-hero__breakdown-title {
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.dwd-hero__breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.8rem;
}

.dwd-hero__breakdown-item:last-child {
    border-bottom: none;
}

.dwd-hero__breakdown-item i {
    margin-right: 10px;
    width: 22px;
    text-align: center;
    font-size: 1rem;
}

.dwd-hero__breakdown-item:nth-child(2) i { color: #f59e0b; }
.dwd-hero__breakdown-item:nth-child(3) i { color: #337ae8; }
.dwd-hero__breakdown-item:nth-child(4) i { color: #6366f1; }
.dwd-hero__breakdown-item:nth-child(5) i { color: #10b981; }

.dwd-hero__breakdown-label {
    display: flex;
    align-items: center;
    color: #555;
}

.dwd-hero__breakdown-value {
    color: #333;
    font-weight: 700;
}

.dwd-hero__benefits {
    display: flex;
    gap: 28px;
    margin-top: 30px;
    justify-content: flex-start;
}

.dwd-hero__benefit {
    text-align: center;
    max-width: 160px;
}

.dwd-hero__benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    color: #337ae8;
    font-size: 1.9rem;
    box-shadow: 0 4px 14px rgba(0, 51, 102, 0.1);
}

.dwd-hero__benefit-title {
    font-size: 1rem;
    color: var(--main-color);
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.4;
}

.dwd-hero__benefit-desc {
    font-size: 0.85rem;
    color: #555;
}

.dwd-hero__note {
    margin-top: 30px;
    font-size: 0.75rem;
    color: #777;
}

/* ===== PROBLEM SECTION ===== */
.dwd-problem {
    padding: 80px 0;
    background: #fff;
}

.dwd-problem h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 50px;
    line-height: 1.6;
}

.dwd-problem__list {
    max-width: 800px;
    margin: 0 auto;
}

.dwd-problem__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    margin-bottom: 20px;
    background: #f8fafc;
    border-left: 4px solid #337ae8;
}

.dwd-problem__item i {
    font-size: 1.5rem;
    color: #337ae8;
    margin-top: 3px;
}

.dwd-problem__item p {
    margin: 0;
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
}

/* ===== EXAMPLES SECTION ===== */
.dwd-examples {
    padding: 80px 0;
    background: #f8fafc;
}

.dwd-examples h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 50px;
}

.dwd-examples__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dwd-example-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.06);
    border-top: 4px solid #337ae8;
}

.dwd-example-card__number {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: var(--main-color);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.dwd-example-card p {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    margin: 0;
}

/* ===== MIDDLE CTA ===== */
.dwd-middle-cta {
    padding: 60px 0;
    background: var(--main-color);
    text-align: center;
}

.dwd-middle-cta h2 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.dwd-middle-cta .cta-button {
    background-color: #f6d719;
    color: #000;
    padding: 20px 50px;
    font-size: 1.2rem;
}

.dwd-middle-cta .cta-button:hover {
    background-color: #83ca23;
    color: #fff;
}

/* ===== FORM PAGE ===== */
.dwd-form-page {
    padding: 60px 0;
    background: #f8fafc;
}

.dwd-form-page h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 10px;
}

.dwd-form-page__lead {
    text-align: center;
    color: #555;
    margin-bottom: 40px;
}

.dwd-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border: 1px solid #ddd;
}

.dwd-form__errors {
    max-width: 800px;
    margin: 0 auto 20px;
    background: #fff3f3;
    border: 1px solid #d9534f;
    padding: 16px 20px;
}

.dwd-form__errors ul {
    margin: 0;
    padding-left: 20px;
    color: #d9534f;
}

.dwd-form__group {
    margin-bottom: 28px;
}

.dwd-form__group label {
    display: block;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.dwd-form__group .required {
    color: #d9534f;
    margin-left: 5px;
}

.dwd-form__group input[type="number"],
.dwd-form__group input[type="text"],
.dwd-form__group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.dwd-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dwd-form__unit {
    font-size: 0.9rem;
    color: #777;
    margin-left: 8px;
}

.dwd-form__note {
    font-size: 0.85rem;
    color: #777;
    margin-top: 6px;
}

.dwd-form__submit {
    width: 100%;
    background: var(--main-color);
    color: #fff;
    border: none;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dwd-form__submit:hover {
    background: #002244;
}

/* ===== RESULT PAGE ===== */
.dwd-result-page {
    padding: 60px 0;
    background: #f8fafc;
}

.dwd-result-page h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 10px;
}

.dwd-result-page__lead {
    text-align: center;
    color: #555;
    margin-bottom: 40px;
}

.dwd-result {
    max-width: 900px;
    margin: 0 auto 50px;
}

.dwd-result__main {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 51, 102, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.dwd-result__header {
    text-align: center;
    margin-bottom: 30px;
}

.dwd-result__label {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.dwd-result__value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #337ae8;
    line-height: 1;
}

.dwd-result__value span {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
}

.dwd-result__gap {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: #e0f2fe;
    color: var(--main-color);
    border-radius: 20px;
    font-weight: 700;
}

.dwd-result__gauge {
    margin-bottom: 30px;
}

.dwd-result__breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dwd-result__breakdown-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dwd-result__breakdown-item i {
    color: #337ae8;
    margin-right: 10px;
}

.dwd-result__breakdown-label {
    display: flex;
    align-items: center;
    color: #555;
}

.dwd-result__breakdown-value {
    font-weight: 700;
    color: #333;
}

.dwd-result__summary {
    background: #f0f9ff;
    border-left: 4px solid #337ae8;
    padding: 20px;
    margin-bottom: 30px;
}

.dwd-result__summary p {
    margin: 0 0 10px;
    color: #333;
    line-height: 1.7;
}

.dwd-result__summary p:last-child {
    margin-bottom: 0;
}

/* ===== SCENARIO CARDS ===== */
.dwd-scenarios {
    margin-bottom: 50px;
}

.dwd-scenarios h3 {
    text-align: center;
    font-size: 1.4rem;
    color: var(--main-color);
    margin-bottom: 25px;
}

.dwd-scenarios__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dwd-scenario-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.06);
    border-top: 4px solid #83ca23;
}

.dwd-scenario-card h4 {
    font-size: 1.05rem;
    color: var(--main-color);
    margin-bottom: 12px;
}

.dwd-scenario-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* ===== CONTACT SECTION IN RESULT PAGE ===== */
.dwd-contact {
    background: #fff;
    padding: 50px;
    border: 1px solid #ddd;
    max-width: 800px;
    margin: 0 auto;
}

.dwd-contact h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--main-color);
    margin-bottom: 10px;
}

.dwd-contact__copy {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

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

.dwd-contact label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.dwd-contact input[type="text"],
.dwd-contact input[type="email"],
.dwd-contact input[type="tel"],
.dwd-contact select,
.dwd-contact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.dwd-contact textarea {
    resize: vertical;
}

.dwd-contact .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.dwd-contact .radio-group input[type="radio"] {
    margin-right: 5px;
}

.dwd-contact button[type="submit"] {
    width: 100%;
    background: var(--main-color);
    color: #fff;
    border: none;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

.dwd-contact button[type="submit"]:hover {
    background: #002244;
}

/* ===== THANKS PAGE ===== */
.dwd-thanks {
    padding: 80px 0;
    background: #f8fafc;
    text-align: center;
}

.dwd-thanks__box {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border: 1px solid #ddd;
}

.dwd-thanks__box h2 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin-bottom: 25px;
}

.dwd-thanks__booking {
    background: #f0f9ff;
    border-left: 4px solid #337ae8;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.dwd-thanks__booking dt {
    font-weight: 700;
    color: #555;
    margin-bottom: 5px;
}

.dwd-thanks__booking dd {
    margin: 0;
    font-size: 1.2rem;
    color: var(--main-color);
    font-weight: 700;
}

.dwd-thanks__topics {
    text-align: left;
    margin: 30px 0;
}

.dwd-thanks__topics h3 {
    font-size: 1.1rem;
    color: var(--main-color);
    margin-bottom: 15px;
}

.dwd-thanks__topics ul {
    padding-left: 20px;
}

.dwd-thanks__topics li {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.6;
}

.dwd-thanks__message {
    text-align: left;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.dwd-thanks__cta {
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 700;
}

.dwd-thanks__cta:hover {
    background: #002244;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .dwd-hero {
        min-height: auto;
        padding: 60px 0 100px;
        background-position: right center;
    }

    .dwd-hero__content {
        max-width: 100%;
        text-align: center;
        padding-top: 0;
    }

    .dwd-hero__eyebrow-line {
        left: 50%;
        transform: translateX(-50%);
    }

    .dwd-hero__title {
        font-size: 2.4rem;
    }

    .dwd-hero__title-ruby {
        margin-left: 0;
    }

    .dwd-hero__card {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 420px;
        margin: 30px auto 0;
    }

    .dwd-hero__benefits {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 30px;
    }

    .dwd-hero::before {
        display: none;
    }

    .dwd-hero__wave {
        height: 70px;
    }

    .dwd-examples__grid,
    .dwd-scenarios__grid {
        grid-template-columns: 1fr;
    }

    .dwd-result__breakdown {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dwd-hero {
        min-height: auto;
        padding: 50px 0 90px;
        background-size: cover;
        background-position: center top;
    }

    .dwd-hero__eyebrow {
        font-size: 1.2rem;
    }

    .dwd-hero__title {
        font-size: 1.7rem;
    }

    .dwd-hero__card {
        padding: 20px;
        margin-top: 25px;
    }

    .dwd-hero__card-value .js-dwd-hero-value {
        font-size: 2.6rem;
    }

    .dwd-hero__benefits {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 25px;
    }

    .dwd-hero__wave {
        height: 50px;
    }

    .dwd-header-cta {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    header.header--diagnosis .contact-info,
    header.header--diagnosis .contact-info.is-active {
        display: flex !important;
        width: auto;
        margin: 0;
        order: 2;
    }

    header.header--diagnosis .hamburger {
        order: 3;
        margin-left: 10px;
    }

    header.header--diagnosis nav {
        order: 4;
    }

    header.header--diagnosis .logo {
        order: 1;
        flex-grow: 1;
    }

    .dwd-form__grid {
        grid-template-columns: 1fr;
    }

    .dwd-form,
    .dwd-contact,
    .dwd-thanks__box {
        padding: 25px;
    }

    .dwd-result__main {
        padding: 25px;
    }

    .dwd-result__value {
        font-size: 2.5rem;
    }
}
