body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Noto Sans JP', sans-serif;
}

.background-container {
    position: relative;
    width: 100%;
    height: 100vh; /* 背景の高さを画面いっぱいにする */
    overflow: hidden; /* 背景部分だけスクロールバーを隠す */
    z-index: -1; /* 背景を他のコンテンツの背面に配置 */
}

.full-bg {
    background-image: url("mainbg.jpg");
    background-size: 110%; /* 初期サイズを少し大きめに設定 */
    background-position: center;
    width: 100%;
    height: 100%;
    transform: scale(1.1); /* 初期状態をズームイン */
    animation: zoomout 0.8s ease-out forwards; /* アニメーションの時間を0.8秒に設定 */
}

.logo-text-container {
    position: absolute;
    top: 30%; /* ロゴを画面中央より少し上に配置 */
    left: 50%;
    transform: translate(-50%, 0); /* 左右センター合わせ */
    text-align: center;
    z-index: 1; /* 背景よりも前に表示 */
}

.logo {
    font-size: 80px; /* ロゴテキストのサイズを設定 */
    font-weight: 700; /* ロゴを太字に設定 */
    color: #fff; /* ロゴの色を設定（必要に応じて変更） */
    line-height: 60px;
    text-shadow: #000 1px 0 10px;
    margin: 0 0 50px; /* テキストと他の要素との間隔を維持 */
    opacity: 0; /* 初期状態で透明に */
    transform: translateY(20px); /* 初期位置をやや下にずらす */
    animation: fadeInUp 0.8s ease-out forwards; /* ロゴのアニメーションを適用 */
    animation-delay: 1s; /* 背景ズームアウトが終わるタイミングに合わせて表示 */
    text-align: center; /* テキストを中央揃えに設定 */
    letter-spacing: .2rem;
}

.logo span{
    font-size: 40px; /* ロゴテキストのサイズを設定 */
}

.text {
    width: 340px;
    height: 160px;
    opacity: 0; /* 初期状態で透明に */
    transform: translateY(20px); /* 初期位置をやや下にずらす */
    animation: fadeInUp 0.8s ease-out forwards; /* テキストのアニメーション */
    animation-delay: 1.5s; /* ロゴ表示より少し遅れて表示 */
}

/* マップを配置するコンテナ */
.map-container {
    max-width: 1170px; /* コンテナの最大幅を指定 */
    margin: 180px auto 10px; /* 上下の余白とセンター合わせ */
    padding: 0 15px; /* 画面サイズが狭い場合に備えた左右の余白 */
    box-sizing: border-box; /* パディングを含んだボックスサイズに設定 */
    opacity: 0; /* 初期状態は透明 */
    transform: translateY(30px); /* 初期位置をやや下に設定 */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* アニメーションの設定 */
}

.map-container iframe {
    width: 100%;
    height: 400px; /* 固定の高さを設定 */
    filter: grayscale(100%); /* マップをグレースケール表示 */
}

.address-text {
    font-size: 18px; /* フォントサイズを18pxに設定 */
    text-align: center; /* テキストをセンター揃え */
    margin: 0 auto; /* マップの下に10pxの余白 */
    text-decoration: underline; /* 下線を追加 */
    opacity: 0; /* 初期状態は透明 */
    transform: translateY(30px); /* 初期位置をやや下に設定 */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* アニメーションの設定 */
}

.tel-image {
    text-align: center;
    margin-bottom: 150px; /* マージンの設定 */
    padding-top: 50px;
    display: block;
}

.tel-image img {
    max-width: 100%; /* 画像の横幅をコンテナ内に収める */
    height: auto; /* 画像のアスペクト比を保持 */
}

.footer{
	background-color: #000;
	color: #fff;
	padding: 3px 0;
	font-size: 12px;
	text-align: center;
	width: 100%;
}

/* 表示する際のアニメーション用クラス */
.show-element {
    opacity: 1; /* 透明度を戻す */
    transform: translateY(0); /* 元の位置に戻す */
}

/* ズームアウトのアニメーション */
@keyframes zoomout {
    0% {
        transform: scale(1.1); /* 最初は少しズームイン */
    }
    100% {
        transform: scale(1); /* 元のサイズに戻る */
    }
}

/* フェードイン＋上方向へ少し移動するアニメーション */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px); /* 初期位置をやや下にずらす */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* 最終位置を元の位置に設定 */
    }
}


@media screen and (max-width: 768px) {
    .background-container {
        height: 100vh; /* 背景の高さを100vhに設定 */
    }

    .full-bg {
        background-size: cover; /* 背景を高さに合わせて拡大 */
        background-position: center center; /* 背景画像の中央を表示 */
        background-repeat: no-repeat; /* 背景画像のリピートをなしに設定 */
        transform: scale(1.1); /* 初期のズームを強調 */
    }

    .logo {
        margin-bottom: 30px; /* マージンを調整 */
        font-size: 40px; /* ロゴテキストのサイズを設定 */
    	font-weight: 700; /* ロゴを太字に設定 */
    	color: #fff; /* ロゴの色を設定（必要に応じて変更） */
    	text-shadow: #000 1px 0 10px;
    }
	.logo span{
		font-size: 30px; /* ロゴテキストのサイズを設定 */
	}

    .text {
        width: 90vw; /* テキストの幅を調整し、画面幅に対応 */
        height: auto; /* 高さを自動調整 */
    }

    .map-container {
        max-width: 90%; /* マップの最大幅を縮小 */
        margin: 100px auto 10px; /* 上下マージンを調整 */
    }

    .map-container iframe {
        height: 300px; /* マップの高さを調整 */
    }

    .address-text {
        font-size: 16px; /* フォントサイズを縮小 */
        margin-bottom: 100px; /* マージンボトムを調整 */
    }

    .tel-image {
        margin-bottom: 100px; /* マージンボトムを調整 */
    }

    .footer {
        font-size: 10px; /* フォントサイズを縮小 */
        padding: 10px 0; /* パディングを調整 */
    }
}
