.main {
    padding: 0;
}

input,
textarea,
select {
    background-color: var(--color-white);
    border: 1px solid var(--color-font-gray);
    border-radius: 3px;
    outline: none;
    color: var(--color-font-black);
    font-size: 1.5rem;
    font-weight: 400;
}

input[type="radio"],
input[type="checkbox"] {
    cursor: pointer;
    user-select: none;
}


select:focus,
textarea:focus {
    border-color: var(--color-font-orange);
}

.frame {
    position: relative;
    margin-top: 40px;
    margin-bottom: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.frame::before,
.frame::after {
    display: block;
    position: absolute;
    content: "";
    background: url(../images/line_sp.png) no-repeat center / cover;
    height: 12px;
    width: var(--hero-width);
    left: calc(var(--cut-in) * -1);
}

.frame::before {
    top: 0;
}

.frame::after {
    bottom: 0;
}


.title {
    font-size: 2.4rem;
    line-height: 1.5;
    margin-top: 10px;

    & span::before {
        display: inline;
        content: "|";
        margin: 0 0.4em;
        font-size: 0.9em;
        vertical-align: 2px;
    }
}

.form-title {
    font-size: 2.2rem;
    line-height: 1.3;
    font-weight: 600;
    margin-top: 32px;
}

.section {
    margin-top: 32px;

    & .s-notes {
        font-size: 1.3rem;
        line-height: 1.4;
        font-weight: 600;
        text-align: left;
        margin-top: 20px;
        position: relative;
        display: block;
        width: fit-content;
    }

    & .s-notes::before {
        display: inline-block;
        content: "";
        width: 18px;
        height: 18px;
        background: url(../images/icon_question.png) no-repeat center / cover;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    & .error {
        font-size: 1.3rem;
        line-height: 1.5;
        font-weight: 700;
        color: var(--color-font-orange);
        margin-top: -18px;
    }
}

.section::before {
    display: inline;
    content: "";
    background: url(../images/icon_check-w.png) no-repeat center / cover;
    width: 28px;
    height: 28px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.section::after {
    display: inline-block;
    content: "";
    background-image: url(../images/bg.jpeg);
    background-color: rgba(var(--color-bg-rgb), 0.9);
    background-blend-mode: lighten;
    width: 28px;
    height: 48px;
    position: absolute;
    top: 0;
    left: 0;
}

.section-inner {
    border-left: 1.5px solid var(--color-font-black);
    padding-left: 32px;
    margin-left: 14px;
}

.section.black::before {
    background-image: url(../images/icon_check-b.png);
}

.section.err::before {
    background-image: url(../images/icon_check-o.png);
}

section.err {
    & .section-inner {
        border-color: var(--color-font-orange);
    }
}

.section-title {
    font-size: 1.7rem;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 20px;
}

.flex {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 1.5%;

}

.select-title {
    font-weight: 600;
    line-height: 1.3;
    margin-top: 15px;
    padding-left: 12px;
    position: relative;
}

.select-list {
    margin-top: 8px;
}

summary.select-title {
    padding-left: 0;
}

summary.select-title::before {
    display: none;
}

summary::marker {
    color: var(--color-font-gray);
}

.select-item {
    width: 140px;
    height: 100%;
    border: 1px solid var(--color-white);
    border-radius: 5px;
    padding: 6px;

    & img {
        width: 100%;
        height: auto;
        margin-bottom: 6px;
        object-fit: cover;
        aspect-ratio: 4 / 3;
    }
}

.section01,
.section05 {

    & input,
    & select {
        text-align: right;
    }

    & input:focus {
        border-color: var(--color-font-orange);
    }
}

.section02,
.section04,
.section07,
.section08 {
    & label {
        position: relative;
    }

    & input[type="radio"] {
        display: none;
    }

    & .select-item:has(input[type="radio"]:checked) {
        border-color: var(--color-font-black);
    }
}

.btn-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;

    & label {
        font-weight: 600;
        height: 22px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    & input {
        accent-color: var(--color-font-black);
        width: 20px;
        height: 20px;
    }
}

/* top-area */
.images {
    margin-top: 20px;
}

.desc {
    & .desc-title {
        font-size: 1.3rem;
        line-height: 1.4;
        color: var(--color-font-gray);
    }

    & p:nth-of-type(2) {
        margin-top: 8px;
    }

    & p:nth-of-type(n+3) {
        margin-top: 20px;
    }
}

/* section01 */
.section01 {
    & .size-list {
        width: min(77.5vw, 302px);
    }

    & label {
        display: flex;
        font-weight: 600;
        justify-content: space-between;
        position: relative;
        align-items: center;
        margin-top: 20px;
    }

    & label:has(input:not([type="checkbox"]))::after {
        display: inline-block;
        content: "mm";
        font-size: 1.3rem;
        line-height: 1.5;
        color: var(--color-font-gray);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 12px;
    }

    & label:has(select)::after {
        content: "";
        width: 9px;
        height: 9px;
        border-top: 2px solid var(--color-font-gray);
        border-right: 2px solid var(--color-font-gray);
        transform: rotate(135deg);
        position: absolute;
        right: 15px;
        top: 15px;
        pointer-events: none;
    }

    & input,
    & select {
        width: 66.9%;
        height: 40px;
        border: 1px solid var(--color-font-black);
        padding: 10px 40px 10px 12px;
    }

    & input.small {
        width: 53%;
    }

    & .s-notes::before {
        /* right: 95px; */
        left: -20px;
    }

}

.section.row,
.section.column {
    display: none;

    & .size-list-item {
        display: none;

        & label:has(input[type="checkbox"]) {
            justify-content: flex-end;
            gap: 3px;
            margin-top: 5px;
        }

        & label:has(input[type="checkbox"])::after {
            display: none;
        }

        & input[type="checkbox"] {
            width: 10%;
            height: 20px;
        }
    }

}

/* section02 */
.section02 {
    & .section-title {
        letter-spacing: -0.04em;
    }
}

/* section03 */
.section03 {
    & .s-notes:hover {
        cursor: pointer;
    }

    & .s-notes::before {
        right: 57px;
    }
}

.section03 .s-notes:hover::after,
.section03 .s-notes:focus::after {
    content: '幕板があることにより天板を安定させ、使用中に揺れたりするのを防ぎます。（足を組んだ状態で椅子に座ると幕板にあたってしまったり、子供用のテーブルチェアを取り付けられない場合もありますのでご注意ください）';
    position: absolute;
    top: 2rem;
    right: -0.8rem;
    width: 200px;
    background-color: var(--color-white);
    padding: 0.8rem;
    z-index: 9;
    font-size: 92%;
    text-align: left;
}

@media (max-width: 1024px) {

    .section03 .s-notes:hover::after,
    .section03 .s-notes:focus::after {
        left: -0.8rem;
        right: unset;
    }
}


/* section04 */
.section04 {
    .flex {
        margin-top: 8px;
    }

    & .select-item {
        width: 290px;
        padding: 10px;
    }

    & label {
        /* width: 270px; */
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        font-size: 1.3rem;
        line-height: 1.5;
        color: var(--color-font-gray);
        border-radius: 5px;

        & span {
            font-size: 1.5rem;
            color: var(--color-font-black);
        }

        & img {
            width: 84px;
            height: 60px;
            margin-bottom: 10px;
        }

        & label:has(input[type="radio"]:checked) {
            border-color: var(--color-font-black);
        }
    }

    & .select-title {
        margin-top: 15px;

        & span::before {
            display: inline;
            content: "|";
            margin: 0 0.5em;
            font-size: 1.2rem;
            vertical-align: 2px;
        }
    }
}
@media (max-width: 340px) {
    .section02, .section08 {
        & .select-item {
            width: 113px;
        }
    }
    .section04 {
        & .select-item {
            width: 100%;
        }
        & label {
            width: 100%;
        }
    }
}
/* section05 */
.section05 {
    .section-title {
        letter-spacing: -0.05em;
    }

    & .flex {
        margin: 15px 0 0;
    }

    & .flex-item {
        width: 48%;
        position: relative;
    }

    & .flex-item::before {
        display: inline-block;
        content: "";
        background: url(../images/category/icon_u_left.png) no-repeat top / cover;
        width: 14px;
        height: 14px;
        position: absolute;
        top: 10px;
        left: 10px;
    }

    & .flex-item:nth-of-type(2)::before {
        background-image: url(../images/category/icon_u_right.png);
    }

    & .flex-item:nth-of-type(3)::before {
        background-image: url(../images/category/icon_b_left.png);
    }

    & .flex-item:nth-of-type(4)::before {
        background-image: url(../images/category/icon_b_right.png);
    }

    & .flex-item::after {
        display: inline-block;
        content: "mm";
        font-size: 1.3rem;
        line-height: 1.5;
        color: var(--color-font-gray);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 12px;
    }

    & input {
        width: 100%;
        height: 36px;
        padding: 10px 41px 10px 12px;
    }
}

/* section06 */
.section06 {
    .flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* section07 */
.section07,
.section08 {
    display: none;

    & label {
        display: grid;
        grid-template-areas: "image";

        & .usage,
        & .material {
            grid-area: image;
        }

        & .usage {
            display: none;
        }
    }

    & label:hover {
        & .usage {
            display: block;
            z-index: 10;
        }
    }
}

/* section08 */
.section08 {
    & .select-list {
        margin-top: 15px;
    }
}

/* section09 */
.section09 {
    & p {
        margin-top: 15px;
    }
}

/* section10 */
.section10 {
    margin-bottom: 32px;

    .section-title {
        margin-bottom: 15px;
    }

    textarea {
        width: 100%;
        height: 160px;
        padding: 12px;
    }
}

/* check-area */
.check-area {
    & .btn-area {
        width: 100%;
        height: 92px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-image: url(../images/bg.jpeg);
        background-color: rgba(var(--color-bg-rgb), 0.9);
        background-blend-mode: lighten;
        border-top: 1px solid var(--color-font-black);
        padding: 20px 5.1% 24px;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 50;
    }

    & .e-price {
        width: 48%;
        height: 48px;
        font-size: 1.3rem;
        line-height: 1.4;
        font-weight: 300;

        & p+p {
            margin-top: 4px;
        }

        & .number {
            font-family: "Inter", sans-serif;
            color: var(--color-font-orange);
            font-size: 2.6rem;
            font-weight: 600;
            margin-right: 2px;
        }
    }

    & .btn-submit {
        display: inline-block;
        width: 52%;
        height: 48px;
        border-radius: 5px;
        background-color: var(--color-font-black);
        color: var(--color-white);
        font-weight: 600;
        text-align: center;
    }

    & .btn-submit:hover {
        background-color: var(--color-font-gray);
    }

    & .chk-type,
    & .chk-shape,
    & .chk-row,
    & .chk-clm {
        display: none;
    }
}

/* links */
.links {
    line-height: 1.3;
    font-weight: 600;
    display: flex;
    align-items: center;

    &>* {
        width: 49%;
    }

    & a {
        display: inline-block;
        padding-left: 30px;
        position: relative;
        width: 100%;
    }

    & a::before {
        display: inline-block;
        content: "";
        background: url(../images/icon_arrow.png) no-repeat center / cover;
        width: 28px;
        height: 28px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
    }
}

.display {
    display: block;
}

/* notes-area */
.notes-area {

    & .notes-title {
        font-size: 1.3rem;
        line-height: 1.4;
        font-weight: 300;
        color: var(--color-font-gray);
    }

    & .notes-list {
        margin-top: 8px;

        & li {
            text-indent: -1.2em;
            padding-left: 1.2em;
        }

        & li::before {
            display: inline;
            content: "・";
            font-size: 1.2em;
            vertical-align: -0.02em;
        }
    }
}

/* footer */
.footer {
    padding-bottom: 92px;
}



.two-column {
    display: block;
    padding-top: var(--well);
    padding-bottom: var(--well);

    &>* {
        margin-right: var(--gutter);
        margin-left: var(--gutter);
    }
}

.check-list li:hover::before {
    background-image: url(../images/icon_check-b.png);
}


@media (min-width: 1024px) {
    .category-detail {
        padding: 0;
    }

    .two-column {
        display: grid;
        grid-template-columns: 62.5Fr 37.5Fr;
        position: relative;

        &::before {
            content: "";
            display: block;
            position: absolute;
            top: 0;
            left: 62.5%;
            width: 1px;
            height: 100%;
            border-left: 1px solid var(--color-font-black);
        }

        &>* {
            position: sticky;
            align-self: start;
            top: 0;
        }

        &>.side-r {
            margin-left: 40px;
        }

        &>.side-l {
            margin-right: 40px;
        }
    }

    .frame::before,
    .frame::after {
        background: url(../images/Line02.png) no-repeat center / cover;
        height: 20px;
        width: calc(var(--cut-in) + 100% + 40px);
    }

    .side-r .frame::before,
    .side-r .frame::after {
        left: -40px;
    }

    /* top-area */
    .images {
        overflow: hidden;
        display: flex;
        justify-content: space-between;

        & .top-image {
            width: 83.3%;
        }

        & .thumbnail {
            width: 15.4%;
            display: flex;
            flex-direction: column;
            gap: 0.7vw;
            cursor: pointer;
            overflow-y: scroll;
            /* スクロールバー非表示 */
            -ms-overflow-style: none;
            /*IE(Internet Explorer)・Microsoft Edgeへの対応*/
            scrollbar-width: none;
            /*Firefoxへの対応*/
        }

        /* スクロールバー非表示（Google Chrome、Safariへの対応） */
        & .thumbnail::-webkit-scrollbar {
            display: none;
        }
    }

    /* form */
    .form-title {
        margin-top: 40px;
    }

    .section {
        margin-top: 32px;

        & .s-notes {
            position: absolute;
            top: 0;
            right: 0;
            margin: 0;
            text-align: right;
        }
        & .s-notes.s-notes-bottom {
            top: 30px;
        }


        .error {
            margin-top: -13px;
            /* display: none; */
        }
    }

    .section-inner {
        padding-left: 44px;
    }

    .section-title {
        margin-bottom: 15px;
    }

    .select-list {
        margin-top: 8px;
    }

    .select-item {
        width: 229px;
        padding: 10px;

        & img {
            width: 100%;
            height: auto;
            margin-bottom: 10px;
            aspect-ratio: 4 / 3;
            object-fit: cover;
        }
    }

    /* section01 */
    .section01 {
        position: relative;

        & .size-list {
            width: 280px;
        }

        & label {
            margin-top: 15px;
        }

        & input,
        & select {
            width: 180px;
        }
    }

    /* section04 */
    .section04 {
        .select-item {
            width: 229px;

            & label {
                width: 209px;
            }
        }
    }

    /* section05 */
    .section05 {
        & .flex {
            width: 335px;
            gap: 15px;
        }

        & .flex-item {
            width: 160px;
        }
    }

    /* section10 */
    .section10 {
        margin-bottom: 0;

    }

    /* check-area */
    .check-area {
        .btn-area {
            height: 89px;
            background-image: none;
            background-color: transparent;
            background-blend-mode: normal;
            padding: 20px 0;
            margin-top: 20px;
            position: static;
        }

        .btn-submit {
            width: 39.5%;
        }
    }

    .check-list {
        top: 0;
        margin-top: 20px;

        & li {
            font-weight: 600;
            line-height: 1.5;
            padding-left: 36px;
            margin-top: 15px;
            position: relative;
        }

        & li::before {
            display: inline-block;
            content: "";
            background: url(../images/icon_check-w.png) no-repeat center / cover;
            width: 28px;
            height: 28px;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 0;
            cursor: pointer;
        }

        a {
            display: inline;
        }

        .notes {
            font-size: 1.3rem;
            font-weight: 700;
            padding-left: 10px;
            color: var(--color-font-orange);
            /* display: none; */
        }
    }

    /* links */
    .links {
        display: block;

        &>* {
            width: 99%;
        }

        &>*:not(:first-child) {
            margin-top: 20px;
        }
    }

    /* notes-area */
    .notes-area {
        padding: 0;
    }

    /* footer */
    .footer {
        padding-bottom: 0;
    }
}

.text-underline {
    text-decoration: underline;
}

/* bookshelf 02 */
.table-shelf {
    table-layout: fixed;
    width: 100%;
    border-spacing: 0;
    margin-top: 20px;
    margin-bottom: 20px;

    input[type="number"] {
        width: 100%;
        height: 40px;
        border: 1px solid var(--color-font-black);
        padding: 10px;
    }

    tr:nth-child(even) {
        &>td {
            background-color: rgba(var(--color-white-rgb), 0.85);
        }
    }

    th {
        text-align: center;
        padding-bottom: 4px;
        font-size: 120%;
    }

    td {
        border: 2px solid var(--color-font-gray);
        padding: 4px;

        @media (max-width: 768px) {
            label {
                font-size: 80%;
            }
        }
    }

    @media (min-width: 600px) {
        td {
            padding: 2%;
        }
    }
}

#help-notes {
    /* position: absolute;
    right: 0;
    top: 25px; */
    vertical-align: sub;
}
.readonly-input {
    background-color: #eee;
    opacity: 0.5;
    cursor: not-allowed;
}

.notice_text {
    font-size: 1.2rem;
    opacity: 0.8; 
    color: var(--color-font-orange);
}
.section01 {
    & .size_range {
        justify-content: right; 
        margin-top: 0;
        transition: opacity .2s;
    }
}