html,
body {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "palt";
    font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", sans-serif;
    color: #000;
    font-weight: 600;
    position: relative;
    background-color: #f0f0f0;
    user-select: none; /* CSS3 */
    -moz-user-select: none; /* Firefox */
    -webkit-user-select: none; /* Safari、Chromeなど */
    height: 100%;
}

/* 画像がドラッグできないようにする */
img {
    user-drag: none; /* ドラッグ禁止 */
    -webkit-user-drag: none; /* Webkitブラウザ（ChromeやSafari）向け */
}

h2 {/*大分類*/
    width: 100%;
    text-align: center;
    font-size: 30px;
    padding-top: 60px;
    margin-bottom: 30px;
}

h3 {/*中分類*/
    width: 100%;
    box-sizing: border-box;
    padding: 0px 20px;
    font-size: 20px;
    margin-bottom: 20px;
}

h4 {/*細分類*/
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    margin-bottom: 10px;
    padding: 0px 20px;
    color: #707070;
}

li{
    margin-left: 1.5em;
}

model-viewer {
    display: none;
}

.center{
    text-align: center;
}
.right{
    text-align: right;
}

.header {
    width: 100%;
    height: 60px;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 100;
    top: 0;
}

.contents {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1920px;
    height: auto;
    min-height: fit-content;
    margin: 0px auto;
    padding: 60px 0px;
    box-sizing: border-box;
    position: relative;
    background-color: #fff;
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
}

.contents-index {
    height: 100%!important;
}

.leftarea {
    width: 50%;
    max-width: 960px;
    height: calc(100vh - 60px);
    position: fixed;
    top: 60px;
    z-index: 10;
    background-color: #fff;
}

.rightarea {
    position: relative;
    width: 50%;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0px 0px 0px 50%;
    padding: 40px 0px 80px 0px;
    box-sizing: border-box;
    /* background-color: rgba(255, 0, 0, 0.5); */
}

#rightarea2{
    display: none;
}

.horizontalScrollBox {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    column-gap: 16px;
    padding: 10px 20px 40px 20px;
    overflow-x: auto;
    /* scroll-behavior: smooth; */
    scrollbar-width: none; /* Firefox */
    cursor: grab;
}

.horizontalScrollBox:active {
    cursor: grabbing;
}

.horizontalScrollBox::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.box {
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
    border-width: 0px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    cursor: pointer;
    word-break: break-all;
}

.box > img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.selected {
    outline: 2px solid #707070;
}

.footer {
    width: 300px;
    left: calc(50vw - 150px);
    text-align: center;
    position: fixed;
    bottom: 0;
    z-index: 100;
    padding-bottom: 30px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    height: 100%;
    background-color: rgb(255 255 255 / 60%);
    overscroll-behavior-y: auto;
    backdrop-filter: blur(3px);
}

.modal.black {
    background-color: rgb(0 0 0 / 60%);
}

.naviButton {
    width: 300px;
    height: 60px;
    border: none;
    border-radius: 30px;
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "palt";
    font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", sans-serif;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.naviButton.black {
    background-color: black;
    color: white;
}

.naviButton.white {
    background-color: white;
    color: black;
    border: solid;
    border-color: #707070;
    border-width: 1px;
}

.naviButton:disabled {
    background-color: #707070;
}

.naviButton.short {
    width: 270px;
}

#nextButton{
    justify-content: space-evenly;
}

#nextButton-text{
    font-size: 16px;
}

#nextButton2{
    display: none;
}

.gradation {
    width: 100%;
    height: 20%;
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent); /* グラデーションの設定 */
    pointer-events: none; /* クリックイベントを無視 */
}

.smallButton {
    width: 100px;
    height: 30px;
    cursor: pointer;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "palt";
    font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", sans-serif;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 15px;
    white-space: nowrap;
}

.backButton {
    position: absolute;
    width: fit-content!important;
    padding: 0% 10px;
    flex: 0 0 auto;
    top: 20px;
    left: 15px;
    background-color: white;
    color: black;
    font-size: 14px;
    border: none;
}

.canvas {
    position: absolute;
    display: block;
    top: -50%;
    left: -50%;
    cursor: grab;
}
.canvas:active {
    cursor: grabbing;
}

.canvas-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

@media screen and (max-width:800px) {
    .header {
        position: relative;
    }
    .contents {
        padding: 0px;
        height: calc(100% - 60px);
    }
    .terms-wrapper {
        padding-top: 0px;
        height: calc(100vh - 60px);
    }
    .leftarea {
        width: 100%;
        height: 264px;
        position: sticky;
        top: 0px;
    }
    .rightarea {
        width: 100%;
        margin: 0px 0px 0px 0px;
        min-height: calc(100vh - 324px);
    }
    .naviButton {
        height: 50px;
        border-radius: 25px;
    }
}
