/* =========================================
   User guide page
========================================= */

.rotary-guide-page .rotary-guide-page__content {
    width: 100%;
    max-width: 920px;
    margin: 0 auto 56px;
    padding: 0 20px;
    box-sizing: border-box;
    color: #333;
}

.rotary-guide-page .ec-pageHeader {
    margin: 0 0 26px;
}

.rotary-guide-page .ec-pageHeader h1 {
    margin: 0;
}

.rotary-guide-page .rotary-guide-page__body {
    width: 100%;
}

.rotary-guide-page .rotary-guide-section {
    margin: 0 0 34px;
}

.rotary-guide-page .rotary-guide-section__title {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #dff2fb;
    color: #0097d8;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
}

.rotary-guide-page .rotary-guide-section__lead {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.8;
}

.rotary-guide-page .rotary-guide-order-flow {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: guide-step;
}

.rotary-guide-page .rotary-guide-order-flow__item {
    position: relative;
    display: flex;
    min-height: 104px;
    padding: 18px 12px;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
}

.rotary-guide-page .rotary-guide-order-flow__item::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -13px;
    z-index: 1;
    width: 13px;
    height: 2px;
    background: #c9d8ef;
}

.rotary-guide-page .rotary-guide-order-flow__item:last-child::after {
    display: none;
}

.rotary-guide-page .rotary-guide-order-flow__item:first-child {
    background: #f6f9ff;
}

.rotary-guide-page .rotary-guide-order-flow__item--finish {
    border-color: #2456a6;
    background: #eef5ff;
    color: #2456a6;
}

.rotary-guide-page .rotary-guide-order-flow__number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #2456a6;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.rotary-guide-page .rotary-guide-order-flow__label {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.rotary-guide-page .rotary-guide-note-block,
.rotary-guide-page .rotary-guide-text-card {
    padding: 20px 22px;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.rotary-guide-page .rotary-guide-note-block {
    margin-bottom: 18px;
    border-left: 4px solid #7BC9E1;
}

.rotary-guide-page .rotary-guide-note-block__heading {
    margin: 0 0 8px;
    color: #312E66;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.rotary-guide-page .rotary-guide-note-block p,
.rotary-guide-page .rotary-guide-text-card p,
.rotary-guide-page .rotary-guide-text-card li {
    margin: 0;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.rotary-guide-page .rotary-guide-text-card p + p {
    margin-top: 8px;
}

.rotary-guide-page .rotary-guide-text-card ul {
    margin: 0;
    padding-left: 1.3em;
}

.rotary-guide-page .rotary-guide-delivery-summary {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    margin: 0 0 18px;
    align-items: center;
}

.rotary-guide-page .rotary-guide-delivery-summary__badge {
    display: inline-flex;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #2456a6;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.rotary-guide-page .rotary-guide-delivery-summary p {
    min-width: 0;
    margin: 0;
    font-size: 18px;
    line-height: 1.75;
}

.rotary-guide-page .rotary-guide-delivery-summary strong {
    color: #C04161;
    font-size: 28px;
}

.rotary-guide-page .rotary-guide-delivery-summary__nowrap {
    white-space: nowrap;
}

.rotary-guide-page .rotary-guide-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0 0 28px;
    list-style: none;
}

.rotary-guide-page .rotary-guide-timeline::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 12px;
    border-radius: 999px;
    background: #c9d8ef;
}

.rotary-guide-page .rotary-guide-timeline__item {
    min-height: 104px;
    padding: 14px 8px;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
}

.rotary-guide-page .rotary-guide-timeline__item--holiday {
    background: #f7f9fb;
}

.rotary-guide-page .rotary-guide-timeline__item--holiday:nth-child(4) {
    background: #f7f9fb;
}

.rotary-guide-page .rotary-guide-timeline__item--holiday-alt {
    background: #f7f9fb;
}

.rotary-guide-page .rotary-guide-timeline__item--arrival {
    border-color: #C04161;
    background: #eef5ff;
    color: #2456a6;
}

.rotary-guide-page .rotary-guide-timeline__item--holiday::after,
.rotary-guide-page .rotary-guide-timeline__item--holiday-alt::after {
    content: "休業日";
    display: inline-flex;
    margin-top: 8px;
    padding: 2px 8px;
    border: 1px solid #7BC9E1;
    border-radius: 999px;
    background: #eef5ff;
    color: #312E66;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.rotary-guide-page .rotary-guide-timeline__label,
.rotary-guide-page .rotary-guide-timeline__text {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
}

.rotary-guide-page .rotary-guide-timeline__text {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
}

.rotary-guide-page .rotary-guide-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rotary-guide-page .rotary-guide-payment-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #dfe7f3;
    border-radius: 8px;
    background: #f7f9fb;
    box-sizing: border-box;
}

.rotary-guide-page .rotary-guide-payment-card__title {
    margin: 0 0 14px;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.rotary-guide-page .rotary-guide-payment-card__list {
    margin: 0;
}

.rotary-guide-page .rotary-guide-payment-card__list div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.rotary-guide-page .rotary-guide-payment-card__list dt,
.rotary-guide-page .rotary-guide-payment-card__list dd,
.rotary-guide-page .rotary-guide-payment-card__text,
.rotary-guide-page .rotary-guide-payment-card__attention,
.rotary-guide-page .rotary-guide-payment-card__note {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.rotary-guide-page .rotary-guide-payment-card__list dt {
    color: #333;
    font-weight: 700;
}

.rotary-guide-page .rotary-guide-payment-card__attention {
    margin-top: 12px;
    color: #2456a6;
}

.rotary-guide-page .rotary-guide-payment-card__note {
    margin-top: 8px;
    color: #333;
    text-align: right;
}

.rotary-guide-page .rotary-guide-table-wrap {
    width: 100%;
    margin-top: 12px;
    overflow-x: auto;
}

.rotary-guide-page .rotary-guide-fee-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
    line-height: 1.5;
}

.rotary-guide-page .rotary-guide-fee-table th,
.rotary-guide-page .rotary-guide-fee-table td {
    padding: 6px 8px;
    border: 1px solid #cfd6df;
    text-align: center;
    vertical-align: middle;
}

.rotary-guide-page .rotary-guide-fee-table th {
    background: #2d4654;
    color: #fff;
    font-weight: 700;
}

.rotary-guide-page .rotary-guide-payment-card__image {
    display: flex;
    margin-top: 16px;
    align-items: center;
    justify-content: center;
}

.rotary-guide-page .rotary-guide-payment-card__image img {
    display: block;
    width: auto;
    max-width: min(100%, 280px);
    height: auto;
}

@media (max-width: 1024px) {
    .rotary-guide-page .rotary-guide-order-flow {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .rotary-guide-page .rotary-guide-order-flow__item {
        min-height: auto;
        padding: 16px;
        align-items: flex-start;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .rotary-guide-page .rotary-guide-order-flow__item::after {
        top: auto;
        right: auto;
        bottom: -18px;
        left: 27px;
        display: block;
        width: 2px;
        height: 18px;
    }

    .rotary-guide-page .rotary-guide-order-flow__item:last-child::after {
        display: none;
    }

    .rotary-guide-page .rotary-guide-order-flow__number {
        flex: 0 0 34px;
        margin-right: 12px;
        text-align: center;
    }

    .rotary-guide-page .rotary-guide-order-flow__label {
        margin-top: 0;
        font-size: 15px;
    }

    .rotary-guide-page .rotary-guide-timeline {
        display: block;
        --rotary-guide-timeline-axis: 8px;
        --rotary-guide-timeline-line-width: 2px;
        --rotary-guide-timeline-dot-size: 20px;
        padding: 0 0 0 34px;
    }

    .rotary-guide-page .rotary-guide-timeline::after {
        top: 0;
        right: auto;
        bottom: 0;
        left: calc(var(--rotary-guide-timeline-axis) - (var(--rotary-guide-timeline-line-width) / 2));
        width: var(--rotary-guide-timeline-line-width);
        height: auto;
    }

    .rotary-guide-page .rotary-guide-timeline__item {
        position: relative;
        min-height: auto;
        margin-bottom: 10px;
        padding: 12px 14px;
        text-align: left;
    }

    .rotary-guide-page .rotary-guide-timeline__item::before {
        content: "";
        position: absolute;
        top: 50%;
        left: calc((var(--rotary-guide-timeline-axis) - 34px) - (var(--rotary-guide-timeline-dot-size) / 2));
        width: var(--rotary-guide-timeline-dot-size);
        height: var(--rotary-guide-timeline-dot-size);
        box-sizing: border-box;
        border: 3px solid #c9d8ef;
        border-radius: 50%;
        background: #fff;
        transform: translateY(-50%);
    }

    .rotary-guide-page .rotary-guide-timeline__item:last-child {
        margin-bottom: 0;
    }

    .rotary-guide-page .rotary-guide-payment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .rotary-guide-page .rotary-guide-page__content {
        max-width: none;
        padding: 0 14px;
    }

    .rotary-guide-page .ec-pageHeader {
        margin-bottom: 20px;
    }

    .rotary-guide-page .rotary-guide-section {
        margin-bottom: 28px;
    }

    .rotary-guide-page .rotary-guide-section__title {
        margin-bottom: 14px;
        padding: 10px 12px;
        font-size: 19px;
    }

    .rotary-guide-page .rotary-guide-section__lead,
    .rotary-guide-page .rotary-guide-note-block p,
    .rotary-guide-page .rotary-guide-text-card p,
    .rotary-guide-page .rotary-guide-text-card li {
        font-size: 14px;
    }

    .rotary-guide-page .rotary-guide-note-block,
    .rotary-guide-page .rotary-guide-text-card,
    .rotary-guide-page .rotary-guide-payment-card {
        padding: 16px;
    }

    .rotary-guide-page .rotary-guide-note-block__heading {
        font-size: 18px;
    }

    .rotary-guide-page .rotary-guide-delivery-summary {
        display: flex;
        min-width: 0;
        gap: 10px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .rotary-guide-page .rotary-guide-delivery-summary__badge {
        width: 64px;
        height: 64px;
        font-size: 19px;
    }

    .rotary-guide-page .rotary-guide-delivery-summary p {
        flex: 1 1 100%;
        min-width: 0;
        font-size: 15px;
        line-height: 1.75;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .rotary-guide-page .rotary-guide-delivery-summary strong {
        display: inline-block;
        font-size: 24px;
        white-space: nowrap;
    }

    .rotary-guide-page .rotary-guide-timeline::after {
        top: 8px;
        bottom: 8px;
    }

    .rotary-guide-page .rotary-guide-timeline__item::before {
        display: none;
    }

    .rotary-guide-page .rotary-guide-timeline__label,
    .rotary-guide-page .rotary-guide-timeline__text {
        font-size: 14px;
    }

    .rotary-guide-page .rotary-guide-payment-card__title {
        font-size: 18px;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .rotary-guide-page .rotary-guide-payment-card__list div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .rotary-guide-page .rotary-guide-fee-table {
        font-size: 12px;
    }

    .rotary-guide-page .rotary-guide-fee-table th,
    .rotary-guide-page .rotary-guide-fee-table td {
        padding: 5px 4px;
    }
}
