.lbox .close-btn {
    width: 2.5em;
    height: 2.5em;
    background-color: #df803a;
    border-radius: 50%;
    z-index: 10;
}

.lbox .close-btn::before,
.lbox .close-btn::after {
    content: '';
    display: block;
    width: 60%;
    height: 2px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background-color: #fff;
}

.lbox .close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.lbox-wrp {
    width: min(980px, 90%);
    margin: 2em auto;
    padding: min(2em, 4vw);
    text-align: left;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.lbox-wrp.floor,
.lbox-wrp.wall {
    width: min(720px, 90%);
    margin: 20% auto;
}

@media screen and (max-width:767.9px) {
    .lbox-wrp {
        margin: 4em auto !important;
    }
}

.lbox-wrp img {
    width: 100%;
    vertical-align: top;
}


/* title-container */
.title-container {
    width: 12em;
/*     width: 280px; */
    display: flex;
    font-size: min(1.2em, 4vw);
    font-weight: bold;
    text-align: center;
    border: 2px solid #df803a;
    color: #fff;
    background-color: #df803a;
    border-radius: 4px;
    position: relative;
    overflow: clip;
    z-index: 2;
}

.title-container :where(.bgorange, .bgwhite) {
    display: inline-block;
    width: 50%;
    padding: .3em;
}

.title-container .bgwhite {
    background-color: #fff;
    color: #df803a;
}

/* main-fig */
.main-fig {
    width: min(655px, 101%);
    margin-top: 2em;
    position: relative;
    z-index: 0;

}

.main-fig .absolute {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-100%);
    z-index: 1;
}

/* frame */
.frame {
    border: 3px solid #df803a;
    margin-top: 2em;
    padding: 1em;
    position: relative;
}

.frame-title {
    margin-top: -.25em;
    margin-bottom: 1em;
    font-size: min(1.25em, 4vw);
    font-weight: bold;
    letter-spacing: .05em;
}

.frame-title::before {
    content: '';
    display: inline-block;
    width: .8em;
    height: .8em;
    margin-right: .25em;
    vertical-align: 0;
    background-color: currentColor;
}

.frame .side-by-side {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width:767.9px) {
    .frame .side-by-side {
        flex-wrap: wrap;
        gap: 1.5em 0;
    }
}

.frame figure p.dotnote {
    margin-top: 1em;
    padding-left: 1em;
    padding-top: 0;
    font-size: min(.9em, 3vw);
    line-height: 1.6;
    /* font-weight: bold; */
    position: relative;
}

.frame figure p.dotnote::before {
    content: '';
    display: inline-block;
    width: .75em;
    height: .75em;
    background-color: #222;
    position: absolute;
    left: 0;
    top: .35em;
    border-radius: 100%;
}

/* note */
/* .lbox-wrp .note {
    margin-top: 1em;
    font-size: .9em;
}

.lbox-wrp .note.text-right {
    text-align: right;
}*/

.lbox-wrp p.note::before {
    content: '※';
}

/*
ul.note {
    --note-line-hieght: 1.6em;
    line-height: var(--note-line-hieght);
}

ul.note li {
    padding-left: 1.1em;
    position: relative;
}

ul.note li:not(:last-child) {
    margin-bottom: .3em;
}

ul.note li::before {
    content: '※';
    display: inline-block;
    position: absolute;
    left: 0;
}

ul.numnote {
    counter-reset: numnote;
}

ul.numnote li {
    padding-left: 2em;
}

ul.numnote li::before {
    content: '※'counter(numnote);
    counter-increment: numnote;
} */


/* ceiling ===================== */
.ceiling .frame .right-box {
    width: 100%;
    padding: 1em;
    background-color: #f1f0f3;
}

@media screen and (min-width:768px) {
    .ceiling .frame .frame-title {
        position: absolute;
    }

    .ceiling .frame .side-by-side {
        align-items: flex-end;
    }

    .ceiling .frame .left-box {
        width: 54%;
    }

    .ceiling .frame .right-box {
        width: 42%;
    }
}

.ceiling .frame figure figcaption {
    margin-bottom: 1em;
    padding-top: 0;
    padding-left: 1em;
    font-size: min(1.1em, 3.2vw);
    font-weight: bold;
    position: relative;
}


.ceiling .frame figure figcaption::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: #222;
    position: absolute;
    left: 0;
    top: .15em;
    /* vertical-align: baseline; */
    /* top: auto; */
    /* top: .5em; */
    border-radius: 100%;
    transform: scale(.8);
    transform-origin: left center;

}

.ceiling .frame figure p.dotnote {
    margin-left: 1em;
    margin-top: 1em;
}

/* open-window ===================== */
.open-window .window-container {
    margin-top: 2em;
}

@media screen and (min-width:768px) {
    .open-window .window-container {
        display: grid;
        grid-template-areas: 'title1 title1 title2' 'item1-1 item1-2 item2' 'note note note';
        grid-template-columns: repeat(3, 1fr);
        gap: 0 min(3em, 4vw);
    }
}

@media screen and (max-width:767.9px)  {
    .open-window .window-container {
        display: grid;
        grid-template-areas: 'title1 title1' 'item1-1 item1-2' 'note note' 'title2 title2' 'item2 null';
        grid-template-columns: repeat(2, 1fr);
        gap: 0 1em;
    }
}

.open-window .title-wrp {
    margin-bottom: 1em;
}

@media screen and (max-width:767.9px) {
    .open-window .title-wrp~.title-wrp {
        margin-top: 2em;
    }
}

.open-window .title-wrp.title1 {
    grid-area: title1;
}

.open-window .title-wrp.title2 {
    grid-area: title2;
}

.open-window .orange-title {
    font-size: min(1.3em, 4vw);
    color: #df803a;
    font-weight: bold;
}

.open-window .sub-text {
    font-size: min(1.2em, 2vw);
    font-weight: bold;
    line-height: 1.4;
}

@media screen and (max-width:767.9px) {
    .open-window .sub-text {
        font-size: min(1.2em, 3.2vw);
    }
}

.open-window .item-box.item1-1 {
    grid-area: item1-1;
}

.open-window .item-box.item1-2 {
    grid-area: item1-2;
}

.open-window .item-box.item2 {
    grid-area: item2;
}

/* @media screen and (max-width:600px) {
    .open-window .item-box+.item-box {
        margin-top: 2em;
    }
} */

.open-window .caption-container {
    margin-top: 1em;
}

.open-window .caption-container .caption-title {
    font-weight: bold;
    font-size: min(1em, 3.4vw);
}

.open-window .caption-container .caption-title .hd {
    display: inline-block;
    margin-right: .75em;
    padding: .15em 1em;
    background-color: #df803a;
    color: white;
    font-size: .8em;
    border-radius: 2em;
    vertical-align: .15em;
}

@media screen and (max-width:640px) {
    .open-window .caption-container .caption-title .hd {
        display: block;
        width: fit-content;
    }
}

.open-window .caption-container .caption2 {
    margin-top: .25em;
    margin-left: -.5em;
    font-size: min(1em, 3vw);
}

.open-window .caption-container .caption2 sup {
    margin-left: -.5em;
}

.open-window .window-container .note {
    grid-area: note;
    margin-top: 1em;
    font-size: min(.9em, 3vw);
}

@media screen and (min-width:641px) {
    .open-window .side-by-side {
        justify-content: space-around;
    }

    .open-window .frame .left-box,
    .open-window .frame .right-box {
        width: min(370px, 48%);
    }
}

@media screen and (max-width:640.9px) {
    .open-window .side-by-side {
        gap: 3em 0;
    }
}

/* base ===================== */
@media screen and (min-width:768px) {
    .base .frame .left-box {
        width: 52%;
    }

    .base .frame .right-box {
        width: 45.5%;
    }
}


@media screen and (max-width:767.9px) {
    .base .frame :where(.left-box, .right-box){
        width: 100%;
    }
}

.base .frame :where(.left-box, .right-box) figure {
    position: relative;
    text-align: center;
}

@media screen and (max-width:767.9px) {
    .base .frame :where(.left-box, .right-box) figure img {
        height: min(200px, 35vw);
        width: auto;
    }
}

.base .frame figure .fig-title {
    display: inline-block;
    padding: .25em .75em;
    color: #fff;
    background-color: #1c2f53;
    border: solid 1px #1c2f53;
    border-radius: 3px;
    position: absolute;
    left: 0;
    top: 0;
    font-size: min(.95em, 3.2vw);
    font-weight: bold;
    letter-spacing: .05em;

}

.base .frame .right-box figure .fig-title {
    color: #1c2f53;
    background-color: #fff;
}

/* wall ===================== */
@media screen and (min-width:641px) {
    .wall .main-fig {
        margin-top: -3em;
    }
}

/* @media screen and (max-width:640.9px) {
    .wall .main-fig .absolute {
        display: none;
    }
} */