body {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    margin: 0;
    background-color: #dfdfd4;
    color: #201d0b;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 8vw;
    margin: 0 0 0.5em 0;
    line-height: 0.9em;
    color: #419762;
}

/* -----メニューボタン -----*/
.hamburger-menu {
    width: 30px;
    height: 25px;
    position: fixed;
    top: 60px;
    right: 60px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1000;
}

.line {
    width: 100%;
    height: 3px;
    background-color: #419762;
    transition: all 0.3s ease;
}

.line2{
	width: 50%;
}

/* -----ハンバーガーメニューの開閉 -----*/
.line1.active {
	transform: translateY(11px) rotate(45deg);
	background-color: white;
}

.line3.active {
	transform: translateY(-11px) rotate(-45deg);
	background-color: white;
}

.line2.active {
	opacity: 0;
}

/* -----メニュー -----*/

.menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(65, 151, 98, 0.8);
    color: white;
    padding: 100px;
    box-sizing: border-box;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0.6s;
    z-index: 999;
}

/* H2のサイズを全デバイスで大きめに調整 */
.menu h2 {
    font-size: 3rem; /* PC */
    font-weight: 900;
}

/* タブレットサイズ */
@media (max-width: 1024px) {
    .menu h2 {
        font-size: 2.5rem;
    }
}

/* スマホサイズ */
@media (max-width: 767px) {
    .menu h2 {
        font-size: 2rem;
    }
}


.menu p {
    line-height: 1.8em;
    font-size: 1.5rem;
}

/* pタグ内の日本語を小さく & 薄く */
.menu p span.jp {
	font-size: 0.6em; /* 英語より少し小さく */
	line-height: 1.8em;
    opacity: 0.7;  /* 文字を薄く */
    display: block;
}

.menu.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease-in-out;
}



/* -----画像グリッド -----*/
.image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;
    max-width: 100%;
    margin: 40px auto;
}

.image-wrapper {
    display: inline-block;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.3s ease-in-out;
}

/* -----オープニングスクリーン -----*/
#opening-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

#opening-screen.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}


#top-screen {
    display: none;
    margin: 60px;
}

#top-screen.show {
    display: block;
}

/* -----レスポンシブ対応 -----*/
@media (max-width: 767px) {
    #top-screen {
        margin: 40px 20px;
    }
    h1 {
        font-size: 11vw;
    }
    .image-wrapper {
        width: calc(33.33% - 5px);
    }
    .hamburger-menu {
        top: 40px;
        right: 20px;
    }
    .menu {
        padding: 40px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #top-screen {
        margin: 60px;
    }
    h1 {
        font-size: 9vw;
    }
    .image-wrapper {
        width: calc(16.66666667% - 5px);
    }
    .menu {
        padding: 60px;
    }
}

@media (min-width: 1025px) {
    #top-screen {
        margin: 60px;
    }
    h1 {
        font-size: 8vw;
    }
    .image-wrapper {
        width: calc(12.5% - 6px);
    }
}
