/* components.css */

/*----------------------------------------
  1. Header & Navigation (Mobile First)
----------------------------------------*/

.site-header {
    background-color: #aad0d1;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    text-align: center;
}

/* セクションのスタイル */
.section-heading {
    text-align: center;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 40px;
    font-size: 1.8rem;
    font-weight: 700;
}

.section-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #d4e9e2;
    border-radius: 2px;
    margin: 0 auto;
}

.sub-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2em;
    text-align: center; /* H3専用のクラスに中央揃えを適用 */
}

/* --- ハンバーガーメニューアイコン --- */
.hamburger-btn {
    display: block;
    position: relative;
    width: 40px;
    height: 40px;
    z-index: 100;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger-icon {
    display: block;
    height: 3px;
    width: 25px;
    background-color: #FFFFFF;
    position: relative;
    transition: 0.3s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    background-color: #FFFFFF;
    position: absolute;
    transition: 0.3s ease-in-out;
}

.hamburger-icon::before {
    bottom: 8px;
}

.hamburger-icon::after {
    top: 8px;
}

.hamburger-btn.is-active .hamburger-icon {
    background-color: rgb(255, 255, 255);
}

.hamburger-btn.is-active .hamburger-icon::before {
    background-color: #F5D2D8;
    bottom: 0;
    transform: rotate(45deg);
}

.hamburger-btn.is-active .hamburger-icon::after {
    background-color: #F5D2D8;
    top: 0;
    transform: rotate(-45deg);
}

/* --- ナビゲーションメニュー --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background-color: #FDFCF7;
    transition: all 0.5s ease;
    padding-top: 60px;
    box-sizing: border-box;
}

.site-nav.is-active {
    left: 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.nav-link {
    color: #555555; /* モバイル版の色を最初に定義 */
    display: block;
    padding: 15px 0;
}


.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background-color: #F5D2D8;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/*----------------------------------------
  2. Other Components
  - 他の再利用可能なコンポーネント
----------------------------------------*/
/* PC版のナビゲーションスタイル (769px以上) */
@media (min-width: 769px) {
    .site-nav {
        display: block !important;
        position: static;
        width: auto;
        height: auto;
        background: none;
        padding-top: 0;
        box-sizing: content-box;
    }

    .site-nav.is-active {
        left: 0;
    }

    .nav-list {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    .nav-link {
        color: #FFFFFF; /* PC版では白に上書き */
    }



    .hamburger-btn {
        display: none;
    }
  
    /* モバイル版ゲーム画面の調整 */
    .aframe-container {
        height: 350px; /* モバイルでの表示に適切な高さに調整 */
        max-width: 95%; /* 画面幅に合わせて調整 */
    }
}


/*----------------------------------------
  2. Content Sections
----------------------------------------*/

.hero-section {
    text-align: center;
    padding: 40px 0;
    background-color: #FDFCF7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    max-width: 500px;
    text-align: center;
}

.hero-image {
    text-align: center;
    width: 100%;
}
.hero-image img {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.links-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #555555;
    transition: transform 0.3s ease;
}

.link-item:hover {
    transform: translateY(-5px);
}

.link-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.link-item:hover img {
    transform: scale(1.1);
}


/* プロフィールリストのスタイル */
.profile-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 40px auto;
}
.profile-list li {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #EEEEEE;
}
.profile-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

/*----------------------------------------
  3. A-Frame & Play Page
----------------------------------------*/

.aframe-container {
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.a-enter-vr,
.a-exit-vr,
.a-enter-vr-button,
.a-vr-camera-button,
.a-ar-camera-button {
    display: none !important;
}

#game-start-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    padding: 20px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 12px;
}

/*----------------------------------------
  4. Footer
----------------------------------------*/

.site-footer {
    background-color: #D3D3D3;
    color: #FDFCF7;
    text-align: center;
    padding: 40px 20px 20px;
    margin-top: 80px;

}
