/* ============================================================
   Salary Assessment Diagnosis - Style Sheet
   ============================================================ */

/* ----------------------------------------------------------
   Design Tokens (CSS Custom Properties)
   ---------------------------------------------------------- */
:root {
    --dx-color-main:       #2980B9;
    --dx-color-cta:        #ffa80d;
    --dx-color-cta-shadow: rgba(188, 102, 25, 0.42);
    --dx-color-bg:         #FFFDF9;
    --dx-color-text:       #1a1a1a;
    --dx-color-border:     #c1bcb8;
    --dx-color-sub-text:   #4d4d4d;
    --dx-color-muted:      #9e938b;
    --dx-color-light-bg:   #f9f7f2;
    --dx-color-light-border: #e8e3d9;

    --dx-font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
                      "Hiragino Sans", Meiryo, sans-serif;
}

/* ----------------------------------------------------------
   Base Reset
   ---------------------------------------------------------- */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--dx-font-family);
    font-size: 1.8rem;
    line-height: 1.7;
    color: var(--dx-color-text);
    background: var(--dx-color-bg);
    margin: 0;
    padding: 0;
}

a {
    transition: 0.3s all;
    text-decoration: none;
    color: inherit;
}

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

button {
    cursor: pointer;
    font-family: inherit;
}

/* ----------------------------------------------------------
   Container
   ---------------------------------------------------------- */
.dx-container {
    max-width: 728px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ----------------------------------------------------------
   Section
   ---------------------------------------------------------- */
.dx-section {
    padding-top: 120px;
}

/* ----------------------------------------------------------
   Intro
   ---------------------------------------------------------- */
.dx-intro {
    text-align: center;
}

.dx-intro__hero {
    padding: 0 0 40px;
}

.dx-intro__badge {
    display: inline-block;
    background: var(--dx-color-main);
    color: #fff;
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 1.4rem;
}

.dx-intro__title {
    font-size: 3.6rem;
    font-weight: 900;
    margin: 20px 0;
}

.dx-intro__title-accent {
    color: var(--dx-color-main);
}

.dx-intro__subtitle {
    font-size: 2rem;
    color: var(--dx-color-sub-text);
}

.dx-intro__description {
    font-size: 1.6rem;
    color: var(--dx-color-sub-text);
    line-height: 2;
    margin: 20px 0;
}

/* Features */
.dx-intro__features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.dx-intro__feature-item {
    background: #fff;
    border: 2px solid var(--dx-color-light-border);
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    min-width: 120px;
}

.dx-intro__feature-icon {
    color: var(--dx-color-main);
    margin-bottom: 8px;
}

.dx-intro__feature-text {
    font-size: 1.4rem;
}

.dx-intro__feature-text strong {
    font-size: 2.4rem;
    display: block;
}

/* Types */
.dx-intro__types {
    margin: 40px 0;
}

.dx-intro__types-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.dx-intro__types-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.dx-intro__type-chip {
    background: var(--chip-color);
    color: #fff;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Start */
.dx-intro__start {
    margin: 40px 0;
}

.dx-intro__note {
    font-size: 1.3rem;
    color: var(--dx-color-muted);
    margin-bottom: 60px;
}

/* ----------------------------------------------------------
   Button
   ---------------------------------------------------------- */
.dx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: 0.3s all;
    font-family: inherit;
    text-decoration: none;
    line-height: 1.4;
}

.dx-btn:hover {
    opacity: 0.7;
}

.dx-btn--primary {
    background: var(--dx-color-cta);
    color: #fff;
    padding: 18px 40px;
    font-size: 2.2rem;
    box-shadow: 7px 7px 12px 0 var(--dx-color-cta-shadow);
}

.dx-btn--secondary {
    background: #fff;
    color: var(--dx-color-text);
    border: 2px solid var(--dx-color-border);
    padding: 12px 30px;
    font-size: 1.6rem;
}

.dx-btn--lg {
    padding: 20px 25px;
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.dx-btn__sub {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.dx-btn--outline {
    display: inline-block;
    background: transparent;
    color: var(--dx-color-muted);
    border: 1px solid var(--dx-color-border);
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 1.3rem;
    font-family: inherit;
    cursor: pointer;
    transition: 0.3s all;
}

.dx-btn--outline:hover {
    color: var(--dx-color-main);
    border-color: var(--dx-color-main);
}

/* ----------------------------------------------------------
   Progress
   ---------------------------------------------------------- */
.dx-progress {
    margin-bottom: 40px;
}

.dx-progress__bar {
    height: 8px;
    background: var(--dx-color-light-border);
    border-radius: 4px;
    overflow: hidden;
}

.dx-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #2980B9, #3498DB);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.dx-progress__text {
    text-align: center;
    font-size: 1.4rem;
    color: var(--dx-color-muted);
    margin-top: 8px;
}

/* ----------------------------------------------------------
   Questions
   ---------------------------------------------------------- */
.dx-questions {
    padding-bottom: 40px;
    min-height: 100vh;
}

.dx-questions .dx-container {
    max-width: 900px;
}

.dx-results .dx-container {
    max-width: 900px;
}

.dx-diagnosis-name {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dx-color-main);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

/* ----------------------------------------------------------
   Question Card
   ---------------------------------------------------------- */
.dx-question-card {
    background: #fff;
    border: 2px solid var(--dx-color-main);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

.dx-question-card__number {
    font-size: 3.6rem;
    color: var(--dx-color-main);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    line-height: 1;
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
}

.dx-question-card__number span {
    font-size: 5.6rem;
    font-weight: 500;
    line-height: 0.8;
}

.dx-question-card__text {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ----------------------------------------------------------
   Option Cards (multiple choice)
   ---------------------------------------------------------- */
.dx-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.dx-options .dx-option-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: 2px solid var(--dx-color-border);
    border-radius: 12px;
    background: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: 0.3s all;
    line-height: 1.4;
    min-width: 120px;
    width: auto !important;
}

@media (hover: hover) {
    .dx-options .dx-option-btn:hover {
        border-color: var(--dx-color-main);
        background: #e8f4fc;
    }
}

.dx-options .dx-option-btn.dx-option-btn--selected {
    background: var(--dx-color-main) !important;
    color: #fff !important;
    border-color: var(--dx-color-main) !important;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.3);
}

/* ----------------------------------------------------------
   Question Nav
   ---------------------------------------------------------- */
.dx-question-nav {
    margin-top: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dx-question-nav button[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ----------------------------------------------------------
   Results
   ---------------------------------------------------------- */
.dx-results {
    padding-bottom: 80px;
}

.dx-results__header {
    text-align: center;
    margin-bottom: 40px;
}

.dx-results__label {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--dx-color-text);
    margin-bottom: 16px;
}

/* ----------------------------------------------------------
   Salary Card
   ---------------------------------------------------------- */
.dx-results__salary-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease;
}

.dx-results__salary-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.dx-results__salary-num {
    font-size: 5.6rem;
    font-weight: 900;
    color: var(--dx-color-main);
    line-height: 1;
}

.dx-results__salary-sep {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dx-color-muted);
}

.dx-results__salary-unit {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dx-color-sub-text);
}

/* Rank Display */
.dx-results__rank-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.dx-results__rank-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--dx-color-light-bg);
    flex-shrink: 0;
}

.dx-results__rank-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dx-results__rank-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dx-results__rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--dx-color-main);
    color: #fff;
    font-size: 2.8rem;
    font-weight: 900;
    flex-shrink: 0;
}

.dx-results__rank-label {
    font-size: 2.4rem;
    font-weight: 900;
}

.dx-results__score-text {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--dx-color-muted);
    margin-top: 12px;
}

.dx-results__score-text strong {
    font-size: 1.8rem;
    color: var(--dx-color-text);
    line-height: 1;
}

/* ----------------------------------------------------------
   Score Gauge
   ---------------------------------------------------------- */
.dx-gauge {
    position: relative;
    margin: 50px 0 40px;
}

.dx-gauge__bar {
    display: flex;
    height: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.dx-gauge__segment {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dx-gauge__seg-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dx-gauge__pointer {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: left 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dx-gauge__pointer-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--dx-color-text);
}

.dx-gauge__pointer-value {
    background: var(--dx-color-text);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
    margin-top: -2px;
    transform: translateY(-100%);
    position: relative;
    top: -4px;
}

.dx-gauge__labels {
    position: relative;
    height: 20px;
    font-size: 1.1rem;
    color: var(--dx-color-muted);
    margin-top: 6px;
}

/* ----------------------------------------------------------
   Results Block
   ---------------------------------------------------------- */
.dx-results__block {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.dx-results__block[id] {
    scroll-margin-top: 100px;
}

.dx-results__section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--dx-color-light-border);
    position: relative;
}

.dx-results__section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--dx-color-main);
}

/* ----------------------------------------------------------
   Results Page Navigation
   ---------------------------------------------------------- */
.dx-results__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 32px;
    padding: 20px;
    background: var(--dx-color-light-bg);
    border-radius: 12px;
    border: 1px solid var(--dx-color-light-border);
}

.dx-results__nav-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dx-color-main);
    background: #fff;
    border: 1px solid var(--dx-color-main);
    border-radius: 100px;
    text-decoration: none;
    transition: 0.3s all;
    line-height: 1.4;
}

.dx-results__nav-item:hover {
    background: var(--dx-color-main);
    color: #fff;
}

/* ----------------------------------------------------------
   Analysis Content
   ---------------------------------------------------------- */
.dx-results__analysis-content {
    font-size: 1.6rem;
    line-height: 1.8;
}

.dx-results__analysis-content p {
    margin-bottom: 16px;
}

/* ----------------------------------------------------------
   Checklist
   ---------------------------------------------------------- */
.dx-checklist__theme {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dx-color-main);
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #e8f4fc;
    border-radius: 8px;
}

.dx-checklist__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dx-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--dx-color-light-bg);
    border-radius: 12px;
    border-left: 4px solid var(--dx-color-main);
    font-size: 1.5rem;
    line-height: 1.6;
}

.dx-checklist__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--dx-color-main);
    border: none;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.dx-checklist__check::after {
    content: '';
    width: 7px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.dx-checklist__item strong {
    color: var(--dx-color-text);
    display: block;
    margin-bottom: 4px;
}

/* ----------------------------------------------------------
   Job Links
   ---------------------------------------------------------- */
.dx-results__job-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.dx-results__job-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border: 2px solid;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

@media (hover: hover) {
    .dx-results__job-link:hover {
        background: #e8f4fc;
    }
}

/* ----------------------------------------------------------
   CTA Box
   ---------------------------------------------------------- */
.dx-cta-box {
    background: linear-gradient(135deg, #2980B9, #3498DB);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}

.dx-cta-box__lead {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.6;
}

.dx-cta-box .dx-btn--primary {
    background: #fff;
    color: var(--dx-color-text);
}

.dx-cta-box__note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    margin-top: 16px;
}

/* ----------------------------------------------------------
   Share Buttons
   ---------------------------------------------------------- */
.dx-share-buttons,
.dx-results__share-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.dx-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: 0.3s all;
}

.dx-share-btn svg {
    fill: #fff;
}

.dx-share-btn:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.dx-share-btn--x {
    background: #000;
}

.dx-share-btn--fb,
.dx-share-btn--facebook {
    background: #1877F2;
}

.dx-share-btn--instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

/* ----------------------------------------------------------
   Results Share / Retry / Notes
   ---------------------------------------------------------- */
.dx-results__share {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.dx-results__share-label {
    font-size: 1.3rem;
    color: #888;
    margin: 0 0 12px;
}

.dx-results__retry {
    text-align: center;
    margin: 40px 0;
}

.dx-results__notes {
    margin-top: 40px;
}

.dx-results__notes p {
    font-size: 1.3rem;
    color: var(--dx-color-text);
    margin-bottom: 8px;
    line-height: 1.8;
}

/* ----------------------------------------------------------
   Animations
   ---------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------------
   Utility: PC line break
   ---------------------------------------------------------- */
.dx-pc-br {
    display: inline;
}

/* ----------------------------------------------------------
   SEO Content Block
   ---------------------------------------------------------- */
.dx-seo-content {
    padding: 60px 0 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.dx-seo-content__heading {
    font-size: 2.0rem;
    font-weight: 700;
    color: #333;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--dx-color-main);
}

.dx-seo-content__heading:first-child {
    margin-top: 0;
}

.dx-seo-content__type {
    margin-bottom: 24px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.dx-seo-content__type h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
}

.dx-seo-content__catchphrase {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dx-color-main);
    margin: 0 0 8px;
}

.dx-seo-content__type p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #555;
    margin: 0 0 8px;
}

.dx-seo-content p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #555;
}

.dx-seo-content p a {
    color: var(--dx-color-main);
    text-decoration: underline;
}

/* ----------------------------------------------------------
   Responsive: SP (~768px)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        font-size: 1.6rem;
    }

    .dx-section {
        padding-top: 20px;
    }

    .dx-intro {
        padding-top: 80px;
    }

    /* Header z-index override */
    #header {
        z-index: 1000;
    }

    .dx-questions .dx-container {
        margin-top: 55px;
    }

    .dx-results {
        padding-top: 80px;
    }

    .dx-questions .dx-progress {
        margin-top: 0;
        padding: 4px 0 12px;
        margin-bottom: 20px;
    }

    .dx-intro__title {
        font-size: 2.8rem;
    }

    .dx-intro__features {
        flex-direction: row;
        gap: 12px;
    }

    .dx-intro__feature-item {
        padding: 16px 12px;
        min-width: 0;
        flex: 1;
    }

    .dx-intro__feature-text strong {
        font-size: 2rem;
    }

    .dx-question-card {
        padding: 24px 16px;
    }

    .dx-question-card__number {
        font-size: 3rem;
    }

    .dx-question-card__number span {
        font-size: 4.2rem;
    }

    .dx-question-card__text {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .dx-options .dx-option-btn {
        padding: 12px 16px;
        font-size: 1.5rem;
        min-width: 100px;
    }

    .dx-results__label {
        font-size: 2rem;
    }

    .dx-results__salary-num {
        font-size: 4rem;
    }

    .dx-results__salary-sep {
        font-size: 2.4rem;
    }

    .dx-results__salary-unit {
        font-size: 1.6rem;
    }

    .dx-results__salary-card {
        padding: 24px 16px;
    }

    .dx-results__rank-badge {
        width: 44px;
        height: 44px;
        font-size: 2.2rem;
    }

    .dx-results__rank-label {
        font-size: 2rem;
    }

    .dx-results__rank-image {
        width: 160px;
        height: 160px;
    }

    .dx-results__block {
        padding: 24px 16px;
    }

    .dx-results__job-links {
        flex-direction: column;
    }

    .dx-btn--primary {
        font-size: 1.9rem;
        padding: 14px 30px;
    }

    .dx-pc-br {
        display: none;
    }
}

/* ----------------------------------------------------------
   Responsive: XS (~490px)
   ---------------------------------------------------------- */
@media (max-width: 490px) {
    .dx-intro__title {
        font-size: 2.4rem;
    }

    .dx-results__salary-num {
        font-size: 3.2rem;
    }

    .dx-results__rank-display {
        flex-direction: column;
        gap: 12px;
    }

    .dx-question-card__number {
        font-size: 2.6rem;
    }

    .dx-question-card__number span {
        font-size: 3.6rem;
    }

    .dx-gauge__seg-label {
        font-size: 1rem;
    }
}

/* ----------------------------------------------------------
   Responsive: XXS (~390px)
   ---------------------------------------------------------- */
@media (max-width: 390px) {
    .dx-intro__feature-item {
        padding: 12px 8px;
    }

    .dx-results__salary-num {
        font-size: 2.8rem;
    }
}
