:root {
    --main-color: #3e8c98;
    --sub-color: #f2c9a1;
    --text-color: #454545;
    --bg-color: #f5f5f0;
    --accent-color: #ff730c;
    --error-color: #e53935;
    --white: #ffffff;
    --gray-light: #e8e8e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==========================================
   Base Styles (カスタム設定)
========================================== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}


/* ==========================================
   header
========================================== */
.header {
    background: linear-gradient(135deg, rgba(62, 140, 152, 0.9), rgba(80, 160, 170, 0.85));
    background-image: url(https://hbop.jp/hr/career/pharmacist/lp01/img/pc/form_bg.jpg);
    background-size: cover;
    background-position: center;
    max-height: 374px;
    height: 374px;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 35%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

.tagline {
    color: #fff60c;
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    flex-wrap: wrap;
}

.tagline .highlight-5 {
    font-family: 'Afacad', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.tagline .highlight-30 {
    font-family: 'Afacad', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.header-title {
    color: var(--white);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.step-badge {
    display: inline-block;
    background: var(--white);
    border-radius: 50px;
    padding: 0 30px;
    font-family: 'Afacad', sans-serif;
}

.step-badge .step-text {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--main-color);
}

.step-badge .step-total {
    font-size: 28px;
    color: var(--main-color);
}

.step-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.3s ease;
}

.step-dot.active {
    background: #e9ab6f;
}


@media (max-width: 760px) {
    .header {
        background-image: url(https://hbop.jp/hr/career/pharmacist/lp01/img/sp/form_bg.jpg);
        max-height: 359px;
        height: calc(309px - 80px);
        padding: 40px 15px;
    }

    .tagline {
        font-size: 14px;
        margin-bottom: 0;
    }

    .tagline .highlight-5,
    .tagline .highlight-30 {
        font-size: 32px;
    }

    .header-title {
        font-size: 18px;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .step-dots {
        margin-top: 15px;
    }

    .step-badge .step-text {
        font-size: 32px;
    }

    .step-badge .step-total {
        font-size: 22px;
    }
}


/* ==========================================
   form
========================================== */
.main-content {
    padding: 40px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-title {
    text-align: center;
    color: var(--main-color);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--main-color);
}

.form-subtitle {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 25px;
}

.error-message {
    color: var(--error-color);
    text-align: center;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.option-item {
    background: var(--gray-light);
    border-radius: 8px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-item:hover {
    background: #e0e0dc;
}

.option-item.selected {
    background: var(--sub-color);
}

.option-radio {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: var(--white);
}

.option-item.selected .option-radio {
    border-color: var(--accent-color);
}

.option-radio-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-item.selected .option-radio-inner {
    opacity: 1;
}

.option-label {
    color: var(--text-color);
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.form-label {
    width: 150px;
    color: var(--text-color);
    flex-shrink: 0;
}

.form-input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: var(--text-color);
    transition: border-color 0.3s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--main-color);
}

.form-input::placeholder {
    color: #aaa;
}

.form-select {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: var(--text-color);
    background: var(--white);
    cursor: pointer;
    min-width: 120px;
}

.form-select:focus {
    outline: none;
    border-color: var(--main-color);
}

.input-error-message {
    color: var(--error-color);
    margin-top: 5px;
    display: none;
}

.input-error-message.show {
    display: block;
}

.form-input-wrapper {
    flex: 1;
}

.btn-next {
    display: block;
    width: 280px;
    margin: 30px auto 0;
    padding: 18px 40px;
    background: var(--main-color);
    color: var(--white);
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next:hover {
    background: #357a85;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(62, 140, 152, 0.3);
}

.btn-submit {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 20px auto 0;
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-submit:hover {
    background: #e56600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 115, 12, 0.3);
}

.btn-submit-text {
    font-size: 0.8em;
    font-weight: normal;
    margin-bottom: 3px;
}

.terms-notice {
    text-align: center;
    font-size: 14px;
    color: var(--text-color);
    margin-top: 25px;
    margin-bottom: 10px;
}

.terms-link {
    display: block;
    text-align: center;
    color: var(--main-color);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    margin-bottom: 5px;
}

.terms-link:hover {
    text-decoration: none;
}


/*----- thank you page -----*/
.thank-you-content {
    text-align: center;
    padding: 20px 0;
}

.thank-you-title {
    color: var(--main-color);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 30px;
}

.thank-you-text {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.thank-you-email {
    color: var(--main-color);
}


/* ==========================================
   PC用スタイル（761px以上）
========================================== */
@media (min-width: 761px) {
    body {
        max-width: 1500px;
        margin: 0 auto;
    }
}


/* ==========================================
   SP用スタイル（最大760px）
========================================== */
@media (max-width: 760px) {
    html {
        font-size: 14px;
    }
}


/* ==========================================
   Footer（フッター）
========================================== */
/* PC only */
.pc-only {
    display: none;
}

@media (min-width: 761px) {
    .pc-only {
        display: block;
    }
}

/* SP only */
.sp-only {
    display: block;
    overflow: hidden;
}

@media (min-width: 761px) {
    .sp-only {
        display: none;
    }
}

.footer {
    background-color: var(--bg-color);
    padding: 60px 20px 40px;
    text-align: center;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* ボトムセクション */
.footer__bottom {
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.footer__nav {
    margin-bottom: 20px;
}

.footer__nav a {
    color: #999;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer__nav a:hover {
    opacity: 0.7;
}

.footer__copyright {
    font-size: 12px;
    color: #999;
}


/* ==========================================
   Footer PC版レイアウト
========================================== */
@media (min-width: 761px) {
    .footer {
        padding: 10px 40px 20px;
    }
    .footer__inner {
        display: flex;
        flex-direction: column;
        /* gap: 40px; */
    }
    /* 最下部：左右配置 */
    .footer__bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
    }
    .footer__nav {
        margin-bottom: 0;
    }
    .footer__nav a {
        text-align: right;
        margin-right: 50px;
    }
    .footer__nav a:last-of-type {
        margin: unset;
    }
    .footer__copyright {
        text-align: left;
    }
}


/* ==========================================
   Footer SP版レイアウト
========================================== */
@media (max-width: 760px) {
    .footer {
        padding: 0 20px;
    }
    .footer__logo {
        margin-bottom: 30px;
    }
    .footer__logo-icon {
        width: 50%;
        display: inline-block;
    }

    .footer__logo-text {
        font-size: 20px;
    }
    .footer__content {
        margin-bottom: 30px;
    }
    .footer__label {
        font-size: 14px;
    }
    .footer__company-name {
        width: 65%;
        margin: 0 auto 10px;
    }
    .footer__tagline {
        margin-bottom: 20px;
    }
    .footer__button {
        font-size: 14px;
    }
    .footer__button span {
        letter-spacing: 0.2rem;
        text-decoration: underline;
    }
    .footer__button img {
        display: unset;
        vertical-align: text-bottom;
        margin: 0 0 0.1rem 0.2rem;
        height: 14px;
    }
    .footer__license {
        margin-bottom: 10px;
    }
    .footer__license p {
        font-size: 11px;
        letter-spacing: 0;
    }
    .footer__bottom {
        padding-top: 10px;
    }
    .footer__nav {
        margin-bottom: 15px;
        display: flex;
        justify-content: space-evenly;
    }
    .footer__nav a {
        font-size: 13px;
    }
    .footer__copyright {
        font-size: 11px;
        margin-bottom: 15px;
    }
}




/* .footer {
    border-top: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 15px;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
}

.footer-link:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    color: #888;
} */

.step {
    display: none;
}

.step.active {
    display: block;
    background-color: var(--bg-color);
}

@media screen and (max-width: 760px) {
    .main-content {
        padding: 30px 15px 50px;
    }

    .form-card {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 18px;
    }

    .option-item {
        padding: 15px 18px;
    }

    .option-label {
        font-size: 15px;
    }

    .form-group {
        gap: 0;
    }

    .form-label {
        width: 45%;
    }

    .form-input,
    .form-select {
        width: 100%;
        padding: 10px;
    }

    .btn-next {
        width: 100%;
        max-width: 280px;
    }

    .btn-submit {
        max-width: 100%;
        padding: 15px 20px;
    }

    .footer-links {
        gap: 20px;
        flex-wrap: wrap;
    }

    .thank-you-title {
        font-size: 22px;
    }

    .thank-you-text {
        font-size: 13px;
        line-height: 2;
    }

    .footer {
        margin-top: 20px;
    }
}

.btn-submit.loading {
    opacity: 0.7;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step.active .form-card {
    animation: fadeIn 0.4s ease-out;
}