@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

.howtobuy-main {
    padding-top: 15px; /* 他ページと同じくヘッダーとパンくずの間を空ける */
    color: #20252b;
    font-family: "Noto Sans JP", sans-serif;
}

.howtobuy-main .section-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 auto 72px;
}

.howtobuy-main .content-wrapper {
    flex: 1;
    min-width: 0;
}

.howtobuy-main .main-content {
    max-width: 900px;
    width: 100%;
}

.howto-header {
    position: relative;
    overflow: hidden;
    padding: 38px 42px 40px;
    border-top: 5px solid #0868a8;
    background-color: #f3f7fa;
    background-image: linear-gradient(90deg, rgba(8, 104, 168, 0.06) 1px, transparent 1px), linear-gradient(rgba(8, 104, 168, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.howto-header::after {
    content: "01  02  03";
    position: absolute;
    right: 24px;
    bottom: -14px;
    color: rgba(8, 104, 168, 0.09);
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.howto-header_label {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: #087a72;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.howto-header_title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 34px;
    line-height: 1.4;
    letter-spacing: 0;
}

.howto-header_text {
    position: relative;
    z-index: 1;
    max-width: 610px;
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.8;
}

.howto-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #d9e0e5;
    margin-bottom: 64px;
}

.howto-quick_link {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    border-right: 1px solid #d9e0e5;
    color: #20252b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.howto-quick_link:last-child {
    border-right: 0;
}

.howto-quick_link:hover {
    color: #0868a8;
    background: #f7fafc;
}

.howto-quick_number {
    color: #087a72;
    font-size: 12px;
}

.howto-section {
    margin-bottom: 78px;
    scroll-margin-top: 20px;
}

.howto-section_heading {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid #20252b;
}

.howto-section_index {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    background: #087a72;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.howto-section_title {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: 0;
}

.howto-section_lead {
    margin: 4px 0 0;
    color: #59636c;
    font-size: 14px;
    line-height: 1.7;
}

.howto-step_list,
.howto-flow_list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.howto-step {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    gap: 34px;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #dfe4e8;
}

.howto-step:first-child {
    padding-top: 4px;
}

.howto-step_kicker {
    margin: 0 0 7px;
    color: #087a72;
    font-size: 12px;
    font-weight: 700;
}

.howto-step_title {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: 0;
}

.howto-step_text {
    margin: 0;
    color: #4b555e;
    font-size: 14px;
    line-height: 1.8;
}

.howto-text_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: #0868a8;
    font-size: 14px;
    font-weight: 600;
}

.howto-text_link::after {
    content: "›";
    font-size: 20px;
}

.howto-screen {
    overflow: hidden;
    margin: 0;
    border: 1px solid #cbd4da;
    background: #fff;
    box-shadow: 0 10px 24px rgba(37, 56, 69, 0.09);
}

.howto-screen figcaption {
    padding: 8px 12px;
    background: #f5f7f8;
    color: #5d6870;
    font-size: 11px;
    text-align: center;
}

.howto-screen img {
    display: block;
    width: 100%;
    height: auto;
}

.howto-screen_wide {
    margin-bottom: 26px;
}

.howto-screen_inline {
    max-width: 560px;
    margin-top: 14px;
}

/* 汎用の .howto-note より後で読まれても余白が上書きされないよう詳細度を上げる */
.howto-note.howto-note_progress {
    margin: -24px 0 56px;
}

.howto-tabs_lead {
    margin: 0 0 12px;
    color: #4b555e;
    font-size: 14px;
}

.howto-payment_notes {
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px solid #dfe4e8;
    background: #fafbfc;
}

.howto-payment_notes h3 {
    margin: 0 0 10px;
    font-size: 15px;
    letter-spacing: 0;
}

.howto-payment_notes ul {
    margin: 0;
    padding-left: 1.2em;
    color: #4b555e;
    font-size: 13px;
    line-height: 1.8;
}

.howto-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 0;
}

.howto-tab {
    min-height: 58px;
    padding: 10px;
    border: 1px solid #cbd4da;
    border-bottom: 3px solid #0868a8;
    border-radius: 4px 4px 0 0;
    background: #fff;
    color: #333b42;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.howto-tab:hover,
.howto-tab:focus-visible {
    background: #f2f7fa;
}

.howto-tab.is-active {
    border-color: #0868a8;
    background: #0868a8;
    color: #fff;
}

.howto-panel {
    padding: 34px 36px 38px;
    border: 1px solid #cbd4da;
    border-top: 0;
    background: #fff;
}

.howto-method_intro {
    display: grid;
    grid-template-columns: minmax(210px, 0.7fr) 1fr;
    gap: 30px;
    align-items: center;
    padding-bottom: 26px;
    border-bottom: 1px solid #dfe4e8;
}

.howto-method_intro h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0;
}

.howto-method_intro p {
    margin: 0;
    color: #535e66;
    font-size: 14px;
    line-height: 1.8;
}

.howto-method_label {
    display: inline-block;
    margin: 0 0 7px !important;
    padding: 3px 8px;
    background: #e2f2ef;
    color: #087a72 !important;
    font-size: 11px !important;
    font-weight: 700;
}

.howto-flow_list {
    margin: 8px 0 28px;
}

.howto-flow_list li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 16px;
    position: relative;
    padding: 20px 0;
}

.howto-flow_list li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 58px;
    bottom: -2px;
    left: 18px;
    width: 1px;
    background: #b9d3d0;
}

.howto-flow_list li > span {
    display: grid;
    z-index: 1;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #087a72;
    border-radius: 50%;
    background: #fff;
    color: #087a72;
    font-size: 13px;
    font-weight: 700;
}

.howto-flow_list h4 {
    margin: 0 0 5px;
    font-size: 16px;
    letter-spacing: 0;
}

.howto-flow_list p,
.howto-registration p,
.howto-after_item p {
    margin: 0;
    color: #59636c;
    font-size: 13px;
    line-height: 1.75;
}

.howto-registration {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-left: 4px solid #087a72;
    background: #f1f8f7;
}

.howto-registration h4 {
    margin: 0 0 6px;
    font-size: 15px;
    letter-spacing: 0;
}

.howto-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #0868a8;
    border-radius: 4px;
    background: #0868a8;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.howto-button:hover {
    background: #fff;
    color: #0868a8;
}

.howto-button_inline {
    margin-top: 2px;
}

.howto-note {
    margin: 8px 0 0;
    padding: 12px 14px;
    border-left: 3px solid #d4a72c;
    background: #fff9e9;
    color: #594d2c;
    font-size: 13px;
    line-height: 1.7;
}

.howto-after_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #d9e0e5;
    border-bottom: 1px solid #d9e0e5;
}

.howto-after_item {
    padding: 25px 22px;
    border-right: 1px solid #d9e0e5;
}

.howto-after_item:last-child {
    border-right: 0;
}

.howto-after_item > span {
    color: #087a72;
    font-size: 12px;
    font-weight: 700;
}

.howto-after_item h3 {
    margin: 8px 0 10px;
    font-size: 16px;
    letter-spacing: 0;
}

.howto-related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 26px;
}

.howto-related_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 8px 14px;
    border: 1px solid #cbd4da;
    color: #263038;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.howto-related_link::after {
    content: "›";
    color: #0868a8;
    font-size: 20px;
}

@media screen and (max-width: 1400px) {
    .howtobuy-main .content-wrapper {
        padding: 0 24px;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 991px) {
    .howtobuy-main .section-content {
        display: block;
    }

    .howtobuy-main .content-wrapper {
        padding: 0 13px;
    }

    .howtobuy-main .main-content {
        max-width: none;
    }
}

@media screen and (max-width: 700px) {
    .howto-header {
        padding: 28px 22px 30px;
    }

    .howto-header::after {
        font-size: 44px;
    }

    .howto-header_title {
        font-size: 27px;
    }

    .howto-quick {
        margin-bottom: 48px;
    }

    .howto-note.howto-note_progress {
        margin: -20px 0 44px;
    }

    .howto-quick_link {
        flex-direction: column;
        gap: 2px;
        min-height: 68px;
        font-size: 12px;
    }

    .howto-section {
        margin-bottom: 58px;
    }

    .howto-section_title {
        font-size: 21px;
    }

    .howto-step {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .howto-screen {
        width: 100%;
        box-sizing: border-box;
    }

    .howto-tab {
        min-height: 54px;
        padding: 7px 4px;
        font-size: 13px;
    }

    .howto-panel {
        padding: 26px 18px 28px;
    }

    .howto-method_intro {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .howto-payment_notes {
        padding: 18px 16px;
    }

    .howto-registration {
        align-items: stretch;
        flex-direction: column;
    }

    .howto-after_grid,
    .howto-related {
        grid-template-columns: 1fr;
    }

    .howto-after_item {
        border-right: 0;
        border-bottom: 1px solid #d9e0e5;
    }

    .howto-after_item:last-child {
        border-bottom: 0;
    }
}