/** @format */

:root {
    --base-text-color: #222;
    --gray-dark: #444;
    --border-gray: #ddd;
    --bg-gray: #f7f7f7;
    --white: #fff;

    --font-gothic: "Hiragino Kaku Gothic ProN", "Meiryo", "Noto Sans Japanese",
        "YuGothic", "游ゴシック", "ヒラギノ角ゴ ProN W3", sans-serif;
    --font-mincho: "リュウミン R-KL", "Ryumin Regular KL", "YuMincho",
        "Yu Mincho", serif;
    --font-marugothic: "ヒラギノ丸ゴ Pro W4", "ヒラギノ丸ゴ Pro",
        "Hiragino Maru Gothic Pro", "HG丸ｺﾞｼｯｸM-PRO", "HGMaruGothicMPRO";
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-gothic);
}

* {
    word-break: break-all;
}

ul,
h1,
h2,
h3,
p {
    margin: 0;
    padding: 0;
}

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

.header {
    padding: 15px 20px;

    @media screen and (min-width: 768px) {
        padding: 20px 40px;
    }
}

.siteTitle {
    font-size: 22px;
}

.siteTitle-link {
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    color: var(--base-text-color);

    &:hover {
        color: var(--base-text-color);
        opacity: 0.8;
    }
}

.pageTitle {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    padding: 50px 30px;
    margin: 0;

    @media screen and (min-width: 768px) {
        padding: 166px 50px;
        font-size: 30px;
    }
}

img,
iframe {
    max-width: 100%;
}

.main {
    max-width: calc(740px + 15px * 2);
    width: 100%;
    margin: 0 auto;
    padding: 30px 15px 50px 15px;
    box-sizing: border-box;

    @media screen and (min-width: 768px) {
        padding: 45px 15px 120px 15px;
    }
}

.step-nav {
    margin-bottom: 30px;

    @media screen and (min-width: 768px) {
        margin-bottom: 50px;
    }
}

.step-nav__list {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    list-style: none;
    padding: 0;

    @media screen and (min-width: 768px) {
        gap: 35px;
    }
}

.step-nav__item {
    position: relative;
    border: 1px solid #cccccc;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    font-size: 12px;

    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    flex: 1;

    &.is-active {
        &::before {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            height: 4px;
            width: 100%;
            /* fixMe: 変数化 */
        }
    }

    &:not(:last-of-type):after {
        content: "";
        position: absolute;
        bottom: 38%;
        right: -17px;
        width: 0;
        height: 0;
        border-style: solid;
        border-right: 0;

        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 11px solid #dddddd;
    }

    @media screen and (min-width: 768px) {
        padding: 14px 35px;
        font-size: 16px;
        flex-direction: row;

        &:not(:last-of-type):after {
            border-top: 9px solid transparent;
            border-bottom: 9px solid transparent;
            border-left: 14px solid #dddddd;
            bottom: 29%;
            right: -12%;
        }
    }
}

.step-nav__num {
    margin-right: 0.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.step-nav__name {
    flex-grow: 1;
}

.description {
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 14px;

    @media screen and (min-width: 768px) {
        margin-bottom: 45px;
        font-size: 16px;
    }
}

.items {
    margin-bottom: 20px;

    @media screen and (min-width: 768px) {
        margin-bottom: 30px;
    }
}

.items__item {
    background-color: #f7f7f7;
    border: 4px solid #f7f7f7;
    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 15px;

    &:not(:last-of-type) {
        margin-bottom: 20px;
    }

    &.has-value {
        border: 4px solid #ffeb00;

        @media screen and (min-width: 768px) {
            border-width: 4px;
        }
    }

    @media screen and (min-width: 768px) {
        flex-direction: row;
        gap: 20px;

        padding: 20px;

        &:not(:last-of-type) {
            margin-bottom: 10px;
        }
    }
}

.items__empty {
    padding: 50px 0 10px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.items__image-container {
    flex: 0 0 1rem;
    margin-bottom: 0;

    @media screen and (min-width: 768px) {
        flex: 0 0 200px;
    }
}

.items__image {
    width: 100%;
    overflow: hidden;
    object-fit: contain;
    max-height: 133px;
}

.item__body {
    @media screen and (min-width: 768px) {
        width: 100%;
    }
}

.items-details__title {
    font-size: 1rem;
    font-weight: bold;

    @media screen and (min-width: 768px) {
        font-size: 1.25rem;
    }
}

.items__details {
    margin-bottom: 10px;

    display: flex;
    flex-direction: column;
    gap: 3px;

    @media screen and (min-width: 768px) {
        margin-bottom: 15px;
    }
}

.items-details__size {
    font-size: 0.875rem;
    font-weight: bold;
    line-height: 1.5;

    @media screen and (min-width: 768px) {
        font-size: 1rem;
    }
}

.items-details__price {
    font-size: 0.875rem;
    font-weight: bold;

    @media screen and (min-width: 768px) {
        font-size: 1rem;
    }
}

.items-details__description {
    font-size: 0.875rem;
    line-height: 1.3;
    margin-top: 5px;

    @media screen and (min-width: 768px) {
        line-height: 1.7;
    }
}

.item-quantity {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
}

.item-quantity__label {
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0;

    @media screen and (min-width: 768px) {
        font-size: 1rem;
    }
}

/* Chrome, Safari, Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.item-quantity__input {
    width: 60px;
    height: 40px;
    font-size: 1rem;
    appearance: none;
    border: 1px solid #dddddd;
    border-radius: 5px;
    text-align: center;
    outline: none;

    @media screen and (min-width: 768px) {
        width: 90px;
        height: 60px;
    }
}

.item-quantity__count-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: center;

    margin-bottom: 12px;
    margin-right: 15px;
}

.item-quantity__coustom-btn {
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
    color: #666666;
    width: 12px;
    height: 10px;
    font-size: 13px;

    @media screen and (min-width: 768px) {
        width: 14px;
        height: 12px;
        font-size: 1rem;
    }
}

.contact {
    display: flex;
    flex-direction: column;

    @media screen and (min-width: 768px) {
        flex-direction: row;
    }
}

.contact__title {
    flex: 0 0 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    @media screen and (min-width: 768px) {
        flex: 0 0 200px;
        min-height: 200px;
    }
}

.contact__message {
    font-size: 14px;
    padding: 7px;
    background-color: #ddd;
    flex: 1 0 200px;
    margin-bottom: 0;

    @media screen and (min-width: 768px) {
        flex: 1;

        font-size: 16px;
    }
}

.contact__textarea {
    border-radius: 5px;
    width: 100%;
    height: 100%;
    border: none;
    padding: 10px;
    outline: none;
}

.contact__btn-container {
    margin: 50px auto 0;

    display: flex;
    justify-content: center;
}

.footer {
    text-align: center;
    font-size: 13px;
    font-weight: 300;
    padding: 50px 15px;
    margin-top: 20px;

    @media screen and (min-width: 768px) {
        font-size: 14px;
        padding: 90px 20px;
    }
}

.button {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 13px;
    border: none;
    border-radius: 25px;
    color: var(--base-text-color);
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 220px;

    &:hover {
        opacity: 0.8;
    }

    @media screen and (min-width: 768px) {
        font-size: 1rem;
    }
}

.button--secondary {
    background-color: #fff;

    &:hover {
        opacity: 0.8;
    }

    @media screen and (min-width: 768px) {
        font-size: 1rem;
    }
}

.required-mark {
    font-size: 14px;
    margin-bottom: 10px;

    @media screen and (min-width: 768px) {
    }
}

.customer_form {
    width: 100%;
    border-collapse: collapse;

    @media screen and (min-width: 768px) {
    }

    & tr {
        display: block;
        margin-bottom: 10px;

        @media screen and (min-width: 768px) {
            display: flex;
        }
    }

    & th {
        width: 100%;
        display: block;
        padding: 8px 8px 8px 12px;
        font-size: 14px;

        display: flex;
        gap: 10px;

        & br {
            display: none;
        }

        @media screen and (min-width: 768px) {
            width: 200px;
            text-align: center;
            justify-content: center;
            align-items: center;
            position: relative;
            padding: 0px 8px 0px 12px;
            font-size: 16px;

            & br {
                display: block;
            }
        }
    }

    & td {
        background-color: #f7f7f7;
        width: 100%;
        display: block;
        padding: 8px;
        font-size: 14px;

        &.age {
            display: flex;
            align-items: center;
            gap: 15px;

            & input {
                width: 100px;
            }
        }

        @media screen and (min-width: 768px) {
            width: calc(740px - 200px);
            padding: 5px 8px;
            font-size: 16px;

            &.age {
                display: flex;
                align-items: center;
                gap: 15px;

                width: 130px;

                & input {
                    width: 100%;
                }
            }

            &.field-radio {
                display: flex;
                align-items: center;
                /* 縦中央 */
                min-height: 60px;
            }
        }
    }

    & input[type="text"] {
        width: 100%;
        outline: none;
        border: 1px solid #dddddd;
        padding: 8px;

        @media screen and (min-width: 768px) {
            padding: 12px;
        }
    }
}

.customer_form .captchaArea {
    margin: 0 auto;
    margin-top: 30px;
}

.customer_form .captchaArea .captcha {
    padding: 30px 15px !important;

    @media screen and (min-width: 768px) {
        padding: 0;
    }
}

.customer_form .captcha__image-container {
    display: inline-block;
    margin-bottom: 26px;
}

.customer_form .captchaArea .refresh {
    margin-bottom: 0;
}

.customer_form .captchaArea .imgcaptcha {
    border: 3px solid #ddd;
}

.validation_span {
    @media screen and (min-width: 768px) {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* 入力本体は視覚的に隠す（キーボード操作/スクリーンリーダー可） */
input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ラベルを基準に丸を描く */
.coustomer_form__radio {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* 文字との間隔 */
    padding-left: 37px;
    /* 丸の分の余白 */
    line-height: 20px;
    cursor: pointer;
    user-select: none;
    font-size: 15px;
}

/* 外側の丸 */
.coustomer_form__radio::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 1px solid #999;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
}

.coustomer_form__radio::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00af3a;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
}

input[type="radio"]:checked + .coustomer_form__radio::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

input[type="radio"]:focus + .coustomer_form__radio::before {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

input[type="radio"]:disabled + .coustomer_form__radio {
    opacity: 0.5;
    cursor: not-allowed;
}

input[type="radio"] {
    position: absolute;
    z-index: -1;
    visibility: hidden;
}

input[type="radio"]:checked + .coustomer_form__radioinput-radio::after {
    opacity: 1;
}

input[type="radio"] {
    position: absolute;
    z-index: -1;
    visibility: hidden;
}

.customer_form__btns {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;

    margin-top: 15px;

    @media screen and (min-width: 768px) {
        flex-direction: row;
        justify-content: center;

        margin-top: 60px;
    }
}

.sale__completed {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    padding: 50px 0;

    @media screen and (min-width: 768px) {
        font-size: 30px;

        padding: 50px 0 200px 0;
    }
}

.no-items {
    margin-top: 100px;
}

.no-items__error {
    text-align: center;
    font-weight: bold;
}

.no-items__top {
    text-align: center;
    margin-top: 35px;
}

.no-items__link {
    font-size: 14px;
    color: #444;
}

.no-items__link:hover {
    text-decoration: none;
    color: #444;
    opacity: 0.8;
}

.no-items__link::before {
    content: url("/images/ico-lnk_001.svg");
    margin-right: 14px;
    vertical-align: middle;
    display: inline-block;
}

#main.form table .captchaArea {
    padding: 0 !important;
}
.comment {
    padding-bottom: 60px !important;
}
.captcha {
    border: 4px solid #cccccc;
    padding: 30px 0;
    text-align: center;
    width: 100%;
}
.captcha .inputArea {
    width: 230px !important;
    margin: 0 auto 0 !important;
}
.captchaWarning {
    font-size: 14px;
    margin-bottom: 20px;
}
.captchaInputArea {
    position: relative;
}
.captchaInputformError {
    left: 26px;
    width: 326px;
    top: -26px;
}
.refresh {
    transition: transform 0.2s ease-out;
    height: 30px;
}
.refresh:hover {
    cursor: pointer;
    transform: rotate(20deg);
}
#captchaInput {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ",
        Meiryo, "ＭＳ Ｐゴシック", sans-serif;
}
