@import url('https://googleapis.com');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}


.hero-section{
    position: relative;
    width: 100%;
    height: 100vh;

    background-image: url('../img/main2.png');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center; 
    justify-content: flex-end;
    padding-right: 20%;
    overflow: hidden;
}

.hero-content {
    font-family: 'Montserrat', sans-serif;
    color: #1a252f;
    width: auto;
    max-width: 1200px;
    padding: 0;
    text-align: right;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.catchphrase {
    font-size: 3.5rem;  
    font-weight: 200;  
    line-height: 1.3;
    letter-spacing: 0.08em; 
    margin-bottom: 15px;
}

.sub-text {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #51595a;
    text-transform: uppercase; 
}






/*メニュー*/
.bubble {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);  /*背景のぼかし*/
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #1a252f;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1),inset 0 4px 10px rgba(255, 255, 255, 0.3);/*泡の内側の光*/

    /*変化を滑らかにする設定*/
    transition: transform 0.5s cubic-bezier(0.1745, 0.885, 0.32, 1.275),
    background 0.3s,
    box-shadow 0.3s;
    cursor: pointer;
    margin: 10px;
}

.bubble:hover {
    transform: translateY(-10px) scale(1.1, 0.95);

    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 20px rgba(255, 255, 255, 0.2), 
                inset 0 4px 15px rgba(255, 255, 255, 0.5);
}

.bubble:active {
    transform: translateY(-5px) scale(0.9, 1.05);
}

.bubble-menu-container {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    margin-top: 50px;
    margin-right: 0;
}

.bubble:nth-child(1) {animation: floatBubble 4s ease-in-out infinite;}
.bubble:nth-child(2) {animation: floatBubble 4.5s ease-in-out infinite 0.5s;}
.bubble:nth-child(3) {animation: floatBubble 5s ease-in-out infinite 0.2s;}

@keyframes floatBubble {
    0%, 100%{
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* ==========================================================================
   タブレット・中画面向けの対応 (画面幅 1024px 以下)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    body .hero-section {
        /* 20%だと文字が詰まり始めるので、余白を10%に縮小します */
        padding-right: 10px; /* フォールバック */
        padding-right: 10% !important; 
        background-position: left center !important;
    }

    .hero-section{
    justify-content: center;
    }

    .hero-content {
    text-align: center;
    align-items: center;
    }

    .bubble {
        margin: 0 auto;
    }

}

/* ==========================================================================
   スマホ向けの対応 (画面幅 768px 以下)
   ========================================================================== */
@media screen and (max-width: 768px) {
    
     .hero-section {
        padding-right: 5%;
        padding-left: 20px; 
        background-size: 220% 100%; 
        background-position: 15% center; 
    }

    body .catchphrase {
        /* スマホでも折り返して綺麗に収まる文字サイズに調整 */
        font-size: 2.2rem !important;
        letter-spacing: 0.05em !important;
        margin-bottom: 10px !important;
    }

    body .sub-text {
        font-size: 0.95rem !important;
        letter-spacing: 0.15em !important;
    }

    body .bubble-menu-container {
        /* 泡メニューも右寄せのまま、スマホの横幅に収まるよう等間隔に */
        justify-content: flex-end !important;
        gap: 12px !important; 
        margin-top: 35px !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    body .bubble {
        /* 3つの泡が横一列で右側に収まるよう、サイズを少しコンパクトに */
        width: 80px !important;
        height: 80px !important;
        font-size: 0.85rem !important;
        margin: 0 auto;
    }
}

/* ==========================================================================
   極端に幅が狭いスマホ向けの微調整 (画面幅 375px 以下)
   ========================================================================== */
@media screen and (max-width: 375px) {
    body .hero-section {
        /* 画面が小さすぎる場合は、文字潰れを防ぐため余白を固定値（15px）にします */
        padding-right: 15px !important;
    }

    body .catchphrase {
        font-size: 1.8rem !important;
    }
    
    body .bubble-menu-container {
        gap: 8px !important;
    }
    
    body .bubble {
        width: 70px !important;
        height: 70px !important;
        font-size: 0.75rem !important;
    }
}
