/* @media (max-width:425px) ページ専用のスタイル */


@media (max-width:431px) {

    .main-content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: relative;
        padding: 10px;
        box-sizing: border-box;
        z-index: 3;
        margin-right: auto;
    }

    .top-header {
        display: none;
    }

    .map-placeholder {
        display: none;
    }

    .left-container {
        width: 100%;
        height: calc(0% + 55px);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        z-index: 3;
        box-sizing: border-box;
    }

    .sidebar {
        width: 60px;
        height: 100%;
        flex: 1;
        background-color: #1a1a1a;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin: 0px 0px 0px 0px;
        transition: background-color 0.3s ease-in-out;
    }

    .logo {
        width: 40px;
        padding: 10px 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo-image {
        width: 30px;
        height: auto;
        object-fit: contain;
    }

    .menu-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 3;
        box-sizing: border-box;
        width: 13%;
        height: 100%;
        padding: 0px 0px;
    }

    .hamburger-menu span {
        width: 25px;
        height: 3px;
        background-color: var(--color3);
    }

    .menu-popup.show {
        top: calc(60px);
        left: calc(10px);
    }

    .menu-popup-content {
        padding: 20px 20px;
        height: 100%;
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }

    .menu-popup {
        position: fixed;
        top: 0px;
        height: calc(100dvh - 150px);
        width: calc(100% - 20px);
        background-color: var(--color-orange);
        z-index: 5;
        transition: top 0.3s ease-in-out;
        overflow-y: auto;
        margin: 15px 0px 15px 0px;
    }

    .menu-text {
        display: none;
    }

    .bottom-container {
        position: fixed;
        top: calc(100% - 10px);
        height: 0%;
        right: 0px;
        width: calc(100% - 20px);
        margin: 0px 10px 0px 10px;
    }

    .footer-info {
        position: absolute;
        width: calc(100% - 20px);
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.9);
        color: #333;
        padding: 15px 10px;
        margin-bottom: 0px;
        display: flex;
        align-items: center;
        gap: 25px;
        font-size: 10px;
        font-weight: 700;
        white-space: nowrap;
    }

    .logo3 {
        margin: 0px 0px 0px 20px;
    }

    .contact-button-footer {
        background-color: #000;
        padding: 5px 20px;
        border-radius: 15px;
        /* 角丸 */
        text-decoration: none;
        font-weight: bold;
        margin-left: 0px;
        /* MEMBERとの間隔 */
    }

    .rotating-area {
        position: fixed;
        bottom:0%;
        top: calc(100% - 130px);
        left: calc(100% - 60px);
        width: 0;
        height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .rotating-area:hover .rotating-image {
        width: 80px;
        height: 80px;
    }

    .rotating-image {
        width: 100px;
        height: 100px;
        animation: rotate 20s linear infinite;
        transition: width 0.3s ease, height 0.3s ease;
    }

    .contact-slideout {
        position: fixed;
        top: 0;
        right: -100%;
        width: calc(100% - 20px);
        height: calc(100dvh - 20px);
        background-color: var(--color-orange);
        z-index: 6;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        margin: 10px;
    }
    
    .contact-slideout.show {
        right:calc(0px);
    }

    .overlay.show {
        display: none;
    }

    .privacy-popup-content {
        padding: 1em 0.5em;
        height: 100%;
        background-color: white;
        box-sizing: border-box;
        position: relative;
        flex: 1;
        border-bottom-right-radius: 10px;
    }

    .privacy-popup.show {
        left: calc(10px);
        height: calc(100dvh - 50px);
        width: calc(100% - 50px);
    }

    .privacy-popup {
        position: fixed;
        top: 0px;
        left: -500px;
        height: calc(100dvh - 60px);
        width: 70%;
        background-color: var(--color1);
        z-index: 1000;
        transition: left 0.5s ease-in-out;
        overflow-y: auto;
        margin: 10px 0px 10px 0px;
        display: flex;
        padding: 15px;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 10px;
    }

    .member-bar {
        box-sizing: border-box;
        width: calc(100% - 0vh);
        height: calc(100% - 60px);
        top: calc(0% - 5px);
        background-color: var(--color1);
        border-top-right-radius: 50px;
        border-bottom-right-radius: 0px;
        position: relative;
        z-index: 1000;
        transition: background-color 0.3s ease;
    }

    .member-popup {
        display: none;
        position: fixed;
        bottom: calc(0vh + 65px);
        right: 0%;
        width: calc(100% - 20px);
        height: 55%;
        background-color: #1a1a1a;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
        box-sizing: border-box;
        z-index: 999;
        margin-bottom: 0px;
        padding: 20px;
        margin: 10px;
        overflow: visible;
    }

    .member-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        width: 95%;
        height: 100%;
        padding: 0;
        z-index: 3;
        gap: 1rem;
        align-items: start;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .members-text {
        color: var(--color2);
        font-size: 2rem;
        font-weight: bold;
        text-align: left;
        position: absolute;
        top: 50%;
        left: 2rem;
        transform: translateY(-50%);
        z-index: 1;
        transition: color 0.3s ease;
        cursor: pointer;
    }

    .member-card {
        text-align: left;
        width: 95%;
        z-index: 3;
        min-width: 0;
    }

    .member-close {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        cursor: pointer;
        transition: opacity 0.3s ease;
        width: auto;
        height: auto;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .menu-items {
        display: flex;
        flex-direction: column;
        margin-bottom: 40px;
        gap: 15px;
    }

    .menu-nav {
        display: flex;
        flex-direction: column;
        padding-bottom: 20px;
    }

    .sphere {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 280px;
        height: 280px;
        transform-style: preserve-3d;
        z-index: 1;
    }

    .orbit {
        position: absolute;
        top: 35px;
        left: 4px;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        
    }

    .logo-link.verks {
        --rotation: 0deg;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(0deg) translateZ(140px);
    }
    
    .logo-link.vicinia {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(72deg) translateZ(140px);
    }
    
    .logo-link.face {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(144deg) translateZ(140px);
    }
    
    .logo-link.octagon {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(216deg) translateZ(140px);
    }
    
    .logo-link.ouron {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(288deg) translateZ(140px);
    }

    .logo2 {
        width: 62%;
        height: 62%;
        object-fit: contain;
        transform-style: preserve-3d;
        backface-visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .child {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* iOS向けの滑らかスクロール */
        touch-action: pan-y;
      }
}

@keyframes drawMenuLine {
    0% {
        width: 0;
    }

    100% {
        width: calc(100% - 4rem);
    }
}

@media (max-width:394px) {
    .footer-info {
        position: absolute;
        width: calc(100% - 20px);
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.9);
        color: #333;
        padding: 15px 10px;
        margin-bottom: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 40px;
        font-size: 10px;
        font-weight: 700;
        white-space: nowrap;
    }

    .logo3 {
        display: none;
        margin: 0px 0px 0px 20px;
    }

    .footer-info b {
        color: #333;
        text-decoration: none;
        font-weight: 700;
        cursor: pointer;
    }

    .sphere {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 240px;
        height: 240px;
        transform-style: preserve-3d;
        z-index: 1;
    }

    .orbit {
        position: absolute;
        top: 43px;
        left: 3px;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        
    }

    .logo-link.verks {
        --rotation: 0deg;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(0deg) translateZ(120px);
    }
    
    .logo-link.vicinia {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(72deg) translateZ(120px);
    }
    
    .logo-link.face {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(144deg) translateZ(120px);
    }
    
    .logo-link.octagon {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(216deg) translateZ(120px);
    }
    
    .logo-link.ouron {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(288deg) translateZ(120px);
    }

    .logo2 {
        width: 53%;
        height: 53%;
        object-fit: contain;
        transform-style: preserve-3d;
        backface-visibility: hidden;
        transition: opacity 0.3s ease;
    }
}

@media (max-width:376px) { 

    .main-content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: relative;
        padding: 7px;
        box-sizing: border-box;
        z-index: 3;
        margin-right: auto;
    }

    .left-container {
        width: 100%;
        height: calc(0% + 45px);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        z-index: 2;
        box-sizing: border-box;
    }

    .bottom-container {
        position: fixed;
        top: calc(100% - 57px);
        height: calc(0vh + 50px);
        right: 7px;
        width: calc(100% - 14px);
        margin: 0px 0px 0px 0px;
    }

    .sidebar {
        width: 60px;
        height: 100%;
        flex: 1;
        background-color: #1a1a1a;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin: 0px 0px 0px 0px;
        transition: background-color 0.3s ease-in-out;
    }

    .logo {
        width: 40px;
        padding: 10px 3px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo-image {
        width: 30px;
        height: auto;
        object-fit: contain;
        margin-top: 7px;
    }

    .menu-popup.show {
        top: calc(42px);
        left: calc(7px);
    }

    .menu-popup-content {
        padding: 15px 15px;
        height: 100%;
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }

    .menu-popup {
        position: fixed;
        top: 0px;
        height: calc(100dvh - 115px);
        width: calc(100% - 14px);
        background-color: var(--color-orange);
        z-index: 5;
        transition: top 0.3s ease-in-out;
        overflow-y: auto;
        margin: 15px 0px 15px 0px;
    }

    .menu-popup-content::after {
        content: '';
        position: absolute;
        top: 25px;
        left: 25px;
        height: 1px;
        width: 0;
        background-color: #1b1b1b;
        transform-origin: left center;
        transition: width 0s;
    }

    .menu-popup-copyright {
        position: absolute;
        top: 30px;
        right: 25px;
        font-size: 0.6em;
        color: #1b1b1b;
        opacity: 0.7;
    }

    .menu-item-text {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin: 0px 9px;
    }

    .menu-item-arrow {
        color: #1a1a1a;
        font-size: 1.3em;
        margin-left: 0px;
    }

    .menu-items {
        display: flex;
        flex-direction: column;
        margin-bottom: 40px;
        gap: 10px;
    }

    .menu-item-logo {
        width: 31px;
        height: 31px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .contact-slideout {
        position: fixed;
        top: 0;
        right: -100%;
        width: calc(100% - 14px);
        height: calc(100dvh - 14px);
        background-color: var(--color-orange);
        z-index: 6;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        margin: 7px;
    }

    .footer-info {
        position: absolute;
        width: calc(100% - 20px);
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.9);
        color: #333;
        padding: 10px 10px;
        margin-bottom: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        font-size: 10px;
        font-weight: 700;
        white-space: nowrap;
    }

    .privacy-popup.show {
        left: calc(7px);
        height: calc(100dvh - 44px);
        width: calc(100% - 44px);
    }

    .privacy-popup {
        position: fixed;
        top: -4px;
        left: -500px;
        height: calc(100dvh - 60px);
        width: 70%;
        background-color: var(--color1);
        z-index: 1000;
        transition: left 0.5s ease-in-out;
        overflow-y: auto;
        margin: 10px 0px 10px 0px;
        display: flex;
        padding: 15px;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 10px;
    }

    .rotating-area {
        display: none;
    }

    .sphere {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 200px;
        height: 200px;
        transform-style: preserve-3d;
        z-index: 1;
    }

    .orbit {
        position: absolute;
        top: 51px;
        left: 2px;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        
    }

    .base {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        object-fit: contain;
        z-index: 1;
    }

    .logo-link {
        position: absolute;
        width: 180px;
        height: 180px;
        transform-style: preserve-3d;
        text-decoration: none;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .logo-link.verks {
        --rotation: 0deg;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(0deg) translateZ(100px);
    }
    
    .logo-link.vicinia {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(72deg) translateZ(100px);
    }
    
    .logo-link.face {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(144deg) translateZ(100px);
    }
    
    .logo-link.octagon {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(216deg) translateZ(100px);
    }
    
    .logo-link.ouron {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotateY(288deg) translateZ(100px);
    }

    .logo2 {
        width: 44%;
        height: 44%;
        object-fit: contain;
        transform-style: preserve-3d;
        backface-visibility: hidden;
        transition: opacity 0.3s ease;
    }

    
}
