/* =============================================
   Order Page Styles (ご注文の流れ)
   Bootstrap 5 対応版
   ============================================= */

/* Order Introduction Section */
.order-intro-section {
    background: #fff;
}

.order-intro-title {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 32px;
    color: #00479d;
    line-height: 1.6;
}

.order-intro-description {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 18px;
    color: #333;
    line-height: 1.8;
}

/* Order Flow Section */
.order-flow-section {
    background: url("../images/fixed-body-bg.png") no-repeat top center / 100%;
    background-color: #eff5f8;
    padding-bottom: 80px;
}

/* Order Tabs */
.order-tabs {
    overflow: hidden;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
    margin: 0;
}

.order-tabs .nav-item {
    flex: 1;
}

.order-tabs .nav-link {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #aaa;
    background: #dbdbdb;
    border: none;
    border-radius: 15px;
    padding: 14px 40px;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.order-tabs .nav-link:hover {
    color: #00479d;
    background: #e8f4fc;
}

.order-tabs .nav-link.active {
    color: #00479d;
    background: #fff;
    border-bottom: 3px solid #00479d;
    border-radius: 15px 15px 0 0;
    padding: 20px 40px;
    overflow: hidden;
    margin-bottom: 0;
}

/* Order Tab Content */
.order-tab-content {
    background: #fff;
    padding: 40px;
    border-radius: 0 0 20px 20px;
}

/* Order Steps */
.order-steps {
    position: relative;
    padding-left: 60px;
}

.order-steps::before {
    content: "";
    position: absolute;
    left: 10.5%;
    top: 40px;
    bottom: 40px;
    width: 6px;
    background: #9cdbde;
}

/* Order Step */
.order-step {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

.order-step:last-child {
    margin-bottom: 0;
}

/* Step Icon */
.step-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 70px;
    height: 70px;
    background: #f1f6f9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-icon img {
    width: 38px;
    height: 38px;
}

/* Step Number */
.step-number {
    background: rgb(11 192 190/.5);
    border-radius: 50%;
    color: #fff;
    display: flex;
    padding: 1rem;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 90px;
    top: 0;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    z-index: 3;
}

/* Step Content */
.step-content {
    flex: 1;
    background: #fff;
    width: calc(100% - 100px);
    margin-left: 100px;
    margin-top: 1rem;
}

/* Step Header */
.step-header {
    background: #00479d;
    padding: 20px 25px 20px 60px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.step-title {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff !important;
    margin: 0 !important;
}

/* Step Body */
.step-body {
    padding: 25px;
    text-align: center;
}

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

/* Card Selection Section Override */
.order-page .card-selection-section {
    background: linear-gradient(to bottom, #0085dc 0%, #00479d 40%);
}

/* Order Info Section */
.order-info-section {
    background: #eff5f8;
}

.order-info-notice {
    display: inline-block;
    width: 100%;
}

.order-info-notice span {
    display: inline-block;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #dd4000;
    border: 2px solid #dd4000;
    padding: 12px 30px;
}

.order-info-title {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.order-info-item {
    align-items: stretch;
    background: #fff;
    display: flex;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
}

.order-info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    min-width: 80px;
    width: 25%;
    padding: 20px;
    border-right: 6px solid #eff5f8;
    overflow: hidden;
    border-radius: 10px 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    width: calc(100% - 100px);
    border-radius: 0 10px 0 10px;
    display: flex;
    align-items: center;
    justify-content: start;
}

/* Card Selection Section Simple */
.card-selection-section-simple {
    background: #eff5f8;
    border-radius: none;
}

.order-card-image {
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.order-card-title {
    background: #336cb1;
    color: #fff;
    padding: 1rem 50px 1rem 1.5rem;
    border-radius: 0 0 15px 15px;
    position: relative;
}

.order-card-title::before {
    content: "";
    background: url("../images/arrow-white.svg")no-repeat top center/100%;
    width: 35px;
    height: 35px;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translate(0, -50%);
}

/* =============================================
   Responsive Styles
   ============================================= */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .order-intro-title {
        font-size: 28px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .order-intro-title {
        font-size: 26px;
    }

    .order-intro-description {
        font-size: 16px;
    }

    .order-tabs .nav-link {
        font-size: 16px;
        padding: 15px 20px;
    }

    .step-title {
        font-size: 16px;
    }

    .order-steps {
        padding-left: 50px;
    }

    /* Step Content */
    .step-content {
        width: calc(100% - 50px);
        margin-left: 50px;
    }

    .step-icon {
        left: -60px;
    }

    .step-number {
        font-size: 20px;
        left: 40px;
    }

    .order-steps::before {
        left: 25px;
    }

    .order-info-item {
        flex-wrap: wrap;
    }

    .info-label {
        width: 100%;
        border-right: none;
        border-bottom: 6px solid #eff5f8;
        border-radius: 0;
    }

    .info-text {
        width: 100%;
        border-radius: 0 10px 0 10px;
        display: flex;
        align-items: center;
        justify-content: start;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .order-intro-title {
        font-size: 22px;
    }

    .order-intro-description {
        font-size: 14px;
    }

    .order-tabs .nav-link {
        font-size: 14px;
        padding: 12px 15px;
    }

    .order-tab-content {
        padding: 1rem;
    }

    /* Step Content */
    .step-content {
        width: calc(100% - 20px);
        margin-left: 20px;
    }

    .step-icon {
        left: -50px;
        width: 50px;
        height: 50px;
    }

    .step-icon img {
        width: 22px;
        height: 22px;
    }

    .step-header {
        padding: 12px 20px 12px 40px;
    }

    .step-title {
        font-size: 14px;
    }

    .step-body {
        padding: 20px 15px;
    }

    .order-steps {
        padding-left: 45px;
    }

    .step-number {
        font-size: 18px;
        left: 5px;
        /*top: 3px;*/
    }

    .order-steps::before {
        left: 22px;
    }

    .order-info-notice span {
        font-size: 14px;
        padding: 10px 20px;
    }

    .order-info-item {
        flex-direction: column;
    }

    .info-text {
        font-size: 13px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .order-intro-title {
        font-size: 20px;
    }

    .order-tabs .nav-link {
        font-size: 13px;
        padding: 10px 12px;
    }

    .step-title {
        font-size: 13px;
    }

    .order-steps {
        padding-left: 40px;
    }

    .step-number {
        /*font-size: 16px;
        left: -8px;*/
    }

    .order-steps::before {
        left: 12px;
    }

    .order-info-notice span {
        font-size: 12px;
        padding: 8px 15px;
    }

    .order-info-title {
        font-size: 18px;
    }
}