body {
    background-color: #fff;
    overflow-x: clip;
    --c-light: #fff;
    --c-dark: #000;

    --glass-reflex-dark: 1;
    --glass-reflex-light: 1;

    --saturation: 150%;

    font-size: 20px;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    background: var(--c-bg);
    color: var(--c-content);

    transition: background 400ms cubic-bezier(1, 0, 0.4, 1),
        color 400ms cubic-bezier(1, 0, 0.4, 1);
}

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,100..1000&display=swap");

html {
    scroll-behavior: smooth;
}

/* Loading背景画面設定　*/
#splash {
    /*fixedで全面に固定*/
    overflow-y: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    margin: calc(50% - 50vw) calc(50% - 50vw);
    height: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    text-align: center;
    color: #fff;
}

/* Loading画像中央配置　*/
#splash_logo {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Loading アイコンの大きさ設定　*/
#splash_logo img {
    width: min(50vw, 200px);
    border-radius: 100%;
}

/* fadeUpをするアイコンの動き */
.fadeUp {
    animation-name: fadeUpAnime;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-area {
    display: flex;
    position: fixed;
    top: 60%;
    gap: 5px;
}

.loading-area span {
    display: inline-block;
    color: #666;
    text-align: center;
    font-family: 'ヒラギノ丸ゴ ProN W4';
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    font-size: min(5vw, 3rem);
    font-weight: bold;
    animation: rotate 1s infinite linear;
}

.loading-area span:nth-child(2) {
    animation-delay: 0.1s;
}

.loading-area span:nth-child(3) {
    animation-delay: 0.2s;
}

.loading-area span:nth-child(4) {
    animation-delay: 0.3s;
}

.loading-area span:nth-child(5) {
    animation-delay: 0.4s;
}

.loading-area span:nth-child(6) {
    animation-delay: 0.5s;
}

.loading-area span:nth-child(7) {
    animation-delay: 0.6s;
}

.loading-area span:nth-child(8) {
    animation-delay: 0.7s;
}

.loading-area span:nth-child(9) {
    animation-delay: 0.8s;
}

.loading-area span:nth-child(10) {
    animation-delay: 0.9s;
}

@keyframes rotate {
    10% {
        transform: scale(1.1);
    }

}

.header a {
    text-decoration: none;
}

.header a:hover {
    opacity: 0.7;
    /* 下線の代わりに視覚的反応 */
}

/* 全体設定 */
.css-carousel-slider8 {
    width: 100vw;
    height:100lvh;
    margin: calc(50% - 50vw) calc(50% - 50vw);
    display: flex;
    flex-direction: row;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 0px;
}

.star-frame {
    position: absolute;
    opacity: 80%;
    inset: 0; /* top:0; right:0; bottom:0; left:0; と同義 */
    z-index: 3;
    pointer-events: none; /* クリックやスワイプを邪魔しない */
}

.css-carousel-slider8 img {
    width: 100%;
    height: auto;
    vertical-align: top;
}

/* スライド設定 */
.css-carousel-slider8 .slide-wrap {
    width: 800%;
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    z-index: 0;
    animation: css-carousel-slider8 40s infinite;
    animation-delay: 2s;
}

.css-carousel-slider8 .slide-wrap-main {
    width: 100%;
    z-index: 1;
    animation: css-carousel-slider-main8 40s infinite;
    animation-delay: 2s;
}

.css-carousel-slider8 .slide {
    width: 100%;
}

.pc {
    display: flex;
}

.sp {
    display: none;
}

/* スライダーアニメーションの設定 */
@keyframes css-carousel-slider8 {
    0% {
        transform: translateX(0);
    }

    10.5% {
        transform: translateX(calc(1 / 8 * -100%));
    }

    12.5% {
        transform: translateX(calc(1 / 8 * -100%));
    }

    23% {
        transform: translateX(calc(2 / 8 * -100%));
    }

    25% {
        transform: translateX(calc(2 / 8 * -100%));
    }

    35.5% {
        transform: translateX(calc(3 / 8 * -100%));
    }

    37.5% {
        transform: translateX(calc(3 / 8 * -100%));
    }

    48% {
        transform: translateX(calc(4 / 8 * -100%));
    }

    50% {
        transform: translateX(calc(4 / 8 * -100%));
    }

    60.5% {
        transform: translateX(calc(5 / 8 * -100%));
    }

    62.5% {
        transform: translateX(calc(5 / 8 * -100%));
    }

    73% {
        transform: translateX(calc(6 / 8 * -100%));
    }

    75% {
        transform: translateX(calc(6 / 8 * -100%));
    }

    85.5% {
        transform: translateX(calc(7 / 8 * -100%));
    }

    87.5% {
        transform: translateX(calc(7 / 8 * -100%));
    }

    98% {
        transform: translateX(calc(8 / 8 * -100%));
    }

    100% {
        transform: translateX(calc(8 / 8 * -100%));
    }
}

@keyframes css-carousel-slider-main8 {
    0% {
        transform: translateX(100%);
    }

    87.5% {
        transform: translateX(100%);
    }

    98% {
        transform: translateX(0%);
    }
}

.map svg {
    width: 100%;
    height: 100vh;
    width: auto;
}

.map {
    position: relative;
    top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 100%;
}

/* ヒント文言 */
.map-hint {
    position: absolute;
    top: 65vh;
    left: 50vw;
    transform: translate(-50%, -50%);

    padding: 10px 10px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(5px);
    border-radius: 100px;

    font-size: min(2.5vw, 1.1rem);
    font-family: 'ヒラギノ丸ゴ ProN W4';
    text-align: center;

    opacity: 0;
    pointer-events: none;
    /* マップ操作を邪魔しない */
    z-index: 5;
}

/* やわらか点滅 */
.map-hint.is-active {
    animation: hintBlink 2.5s ease-in-out infinite;
}

@keyframes hintBlink {
    0% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.9;
    }

    100% {
        opacity: 0.25;
    }
}

section {
    width:auto;
    color: #666;
    font-style: normal;
    font-weight: 400;
    font-size: min(3vw, 1.3rem);
    line-height: min(4.5vw, 2.5rem);
    text-align: left;
    font-family: 'ヒラギノ丸ゴ ProN W4';
    padding-bottom: 50px;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    align-self: stretch;
}

.heading {
    width: auto;
    margin: 20vw auto 15vw auto;
}

.page-catalog .heading {
    margin: 250px auto 100px auto;
}

.page-catalog h1 {
    font-size: min(4vw, 2rem);
}

h1 {
    color: #666;
    text-align: center;
    font-family: 'ヒラギノ丸ゴ ProN W4';
    font-size: min(4vw, 3rem);
    text-decoration: none;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

h2 {
    color: #666;
    text-align: left;
    font-family: 'ヒラギノ丸ゴ ProN W4';
    font-size: min(3.5vw, 2rem);
    font-style: normal;
    font-weight: 400;
    line-height: min(4.5vw, 2.5rem);
}

h2 span {
    font-size: min(3vw, 1.3rem);
}

a {
    color: #C6C6C6;
    font-size: min(2.5vw, 1.3rem);
}

.parents {
    display: flex;
    width: auto;
    margin: 0 15vw;
    margin-bottom: 5vw;
    justify-content: center;
    align-items: center;
}

.children-left {
    object-fit: cover;
    display: flex;
    width: 26vw;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    flex-shrink: 0;
}

.children-right {
    display: flex;
    width: 41vw;
    padding: 0 0 0 3vw;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    flex-shrink: 0;
}

img[src$="image/museum-map.png"] {
    width:100%;
}

img[src$="image/md_sotsuten2026_X.png"] {
    width: min(30vw, 200px);
}

img[src$="image/md_sotsuten2026_Instagram.png"] {
    width: min(30vw, 200px);
}

.icon {
    margin-right: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.comment {
    width: auto;
    height: auto;
    justify-content: center;
    align-items: center;
    margin: 0 15vw;
    color: #666;
    font-style: normal;
    font-weight: 400;
    line-height: min(10vw, 80px);
    /* 384.615% */
}

.releasenote {
    display: inline-block;
    opacity: 0;
    transition: 1s ease-in;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    transition: 1s ease-in;
    padding: 5vw 0 7.5vw 0;
    margin: 0 5vw;
    border-bottom: solid #c6c6c6 1px;
}

.releasenote-left {
    text-align: center;
    width: 20vw;
    height: auto;
    position: relative;
    margin: 0 5vw 0 0;
}

.releasenote-right {
    width: 65vw;
    height: auto;
    position: relative;
    right: 0;
}

h3 {
    color: #666;
    display: inline-block;
    text-align: left;
    font-family: 'ヒラギノ丸ゴ ProN W4';
    font-size: min(4vw, 2rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-bottom: dotted;
}

.map a:hover {
    opacity: 0.5;
}

hr {
    border: 0;
    border-top: 1px solid #C6C6C6;
}

.footer {
    position: relative;
    bottom: 0;
    padding: 15vw 2vw 5vw 2vw;
    color: #C6C6C6;
    font-style: normal;
    font-weight: 400;
    font-size: min(2.5vw, 1.3rem);
    line-height: normal;
    text-align: left;
    font-family: 'ヒラギノ丸ゴ ProN W4';
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100vw - 60px);
    height: 100px;
    position: fixed;
    margin-top: 10px;
    top: 0;
    right: 30px;
    z-index: 100;
    border-radius: 500px;
}

.sotsuten {
    margin-left: 30px;
    color: #666;
    text-align: center;
    font-family: "Hiragino Maru Gothic ProN";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

img[src$="image/Instagram.svg"] {
    cursor: pointer;
    width: 75px;
    z-index: 99;
}

img[src$="image/X.svg"] {
    cursor: pointer;
    width: 75px;
    z-index: 99;
}

#pagetop {
    width: 100px;
    position: fixed;
    bottom: 265px;
    right: 30px;
    z-index: 4;
}

img[src$="image/map_icon.svg"] {
    width: 75px;
    mix-blend-mode: multiply;
}

img[src$="image/gallery_icon.svg"] {
    width: 75px;
    mix-blend-mode: multiply;
}

button,
.switcher {
    position: fixed;
    z-index: 10;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 105px;
    height: 220px;
    box-sizing: border-box;
    padding-top: 30px;
    margin: 0 auto;
    border: none;
    border-radius: 500px;
    font-size: var(--fz);
}

.header,
button,
.switcher {
    box-sizing: border-box;
    border: none;
    background-color: color-mix(in srgb, white 85%, transparent);
    backdrop-filter: blur(8px) url(#switcher) saturate(var(--saturation));
    -webkit-backdrop-filter: blur(8px) saturate(var(--saturation));
    box-shadow: inset 0 0 0 1px color-mix(in srgb,
            var(--c-light) calc(var(--glass-reflex-light) * 10%),
            transparent),
        inset 1.8px 3px 0px -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 90%), transparent),
        inset -2px -2px 0px -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 80%), transparent),
        inset -3px -8px 1px -6px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 60%), transparent),
        inset -0.3px -1px 4px 0px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 12%),
            transparent),
        inset -1.5px 2.5px 0px -2px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 20%),
            transparent),
        inset 0px 3px 4px -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent),
        inset 2px -6.5px 1px -4px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 10%),
            transparent),
        0px 1px 5px 0px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 10%),
            transparent),
        0px 6px 16px 0px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 8%),
            transparent);
    transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1),
        box-shadow 400ms cubic-bezier(1, 0, 0.4, 1);
}

.switcher__legend {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.switcher__input {
    clip: rect(0 0 0 0);
    clip-path: inset(100%);
    height: 1px;
    width: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
}

.switcher__filter {
    position: absolute;
    width: 0;
    height: 0;
    z-index: -1;
}

.switcher__option {
    --c: var(--c-content);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: auto;
    height: auto;
    box-sizing: border-box;
    border-radius: 500px;
    opacity: 1;
    transition: all 160ms;
}

.switcher__option:hover {
    --c: var(--c-action);
    cursor: pointer;
}

.switcher__option:hover .switcher__icon {
    scale: 1.15;
}

.switcher__option:has(input:checked) {
    --c: var(--c-content);
    cursor: auto;
}

.switcher__option:has(input:checked) .switcher__icon {
    scale: 1;
}

.switcher::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    display: block;
    width: calc(100% - 10px);
    height: 120px;
    border-radius: 500px;
    background-color: color-mix(in srgb, var(--c-glass) 36%, transparent);
    z-index: -1;
    box-shadow: inset 0 0 0 1px color-mix(in srgb,
            var(--c-light) calc(var(--glass-reflex-light) * 10%),
            transparent),
        inset 2px 1px 0px -1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 90%), transparent),
        inset -1.5px -1px 0px -1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 80%), transparent),
        inset -2px -6px 1px -5px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 60%), transparent),
        inset -1px 2px 3px -1px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 20%),
            transparent),
        inset 0px -4px 1px -2px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 10%),
            transparent),
        0px 3px 6px 0px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 8%),
            transparent);
}

.switcher:has(input[c-option="1"]:checked)::after {
    translate: 0 0px;
    transform-origin: top;
    transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1),
        box-shadow 400ms cubic-bezier(1, 0, 0.4, 1),
        translate 400ms cubic-bezier(1, 0, 0.4, 1);
    animation: scaleToggle 440ms ease;
}

.switcher:has(input[c-option="2"]:checked)::after {
    translate: 0 92px;
    transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1),
        box-shadow 400ms cubic-bezier(1, 0, 0.4, 1),
        translate 400ms cubic-bezier(1, 0, 0.4, 1);
    animation: scaleToggle2 440ms ease;
}

.switcher[c-previous="1"]:has(input[c-option="2"]:checked)::after {
    transform-origin: top;
}

.switcher[c-previous="2"]:has(input[c-option="1"]:checked)::after {
    transform-origin: bottom;
}

@keyframes scaleToggle {
    0% {
        scale: 1 1;
    }

    50% {
        scale: 1 1.1;
    }

    100% {
        scale: 1 1;
    }
}

@keyframes scaleToggle2 {
    0% {
        scale: 1 1;
    }

    50% {
        scale: 1 1.2;
    }

    100% {
        scale: 1 1;
    }
}

@keyframes scaleToggle3 {
    0% {
        scale: 1 1;
    }

    50% {
        scale: 1.1 1;
    }

    100% {
        scale: 1 1;
    }
}

/* スマホ */
@media screen and (max-width: 767px) {

    .header {
        width: calc(100vw - 30px);
        height: 80px;
        position: fixed;
        top: 0;
        right: 15px;
        z-index: 90;
    }

    .sotsuten {
        margin-left: 15px;
        font-size: 3.5vw;
    }

    img[src$="image/map_icon.svg"] {
        width: 50px;
        mix-blend-mode: multiply;
    }

    img[src$="image/gallery_icon.svg"] {
        width: 50px;
        mix-blend-mode: multiply;
    }

    button,
    .switcher {
        bottom: 30px;
        right: 15px;
        width: 75px;
        height: 160px;
        padding: 20px 15px;
        box-sizing: border-box;
        margin: 0 auto;
        border: none;
        border-radius: 500px;
        font-size: var(--fz);
    }

    .switcher::after {
        left: 2.5px;
        top: 2.5px;
        height: 85px;
        width: 75px;
    }

    .switcher:has(input[c-option="2"]:checked)::after {
        translate: 0 0;
    }

    .switcher:has(input[c-option="2"]:checked)::after {
        translate: 0 70px;
    }

    #pagetop {
        width: 75px;
        position: fixed;
        bottom: 200px;
        right: 15px;
        z-index: 4;
    }

    .pc {
        display: none;
    }

    .sp {
        display: flex;
    }

    .page-catalog .heading {
        margin: 150px auto 50px auto;
    }

    img[src$="image/Instagram.svg"] {
        cursor: pointer;
        width: 50px;
        z-index: 99;
    }

    img[src$="image/X.svg"] {
        cursor: pointer;
        width: 50px;
        z-index: 99;
    }

    .icon {
        margin-right: 15px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .parents {
        margin:0 auto;
        flex-direction: column;
        /* 縦並び */
        align-items: center;
        /* 左寄せ */
    }

    .children-left {
        object-fit: cover;
        display: flex;
        width: 75vw;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
    }

    .children-right {
        display: flex;
        width: 75vw;
        padding: 5vw 0 10vw 0;
        align-items: center;
    }

    .children-right span {
    font-size: 2.5vw;
    }

    .map {
        top: 0px;
    }

    .map-hint {
        top: 52vh
    }
}