body{
    margin-top: 5%;
    background-image: url("./img/back_image.jpg");
    background-color: rgba(255,255,255,0.9);
    background-blend-mode: lighten;
}

.top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: -1%;
}

/* menu list */
.header{
    position: relative;
    /* z-index: 1; */
}

.header-nav{
    position: absolute;
    top: 0;
    right: 0;
}

.header-nav-list{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.header-nav-item{
    margin-left: 10px;
    position: relative; /*疑似要素の配置基準*/
    min-width: 120px;
    text-align: center;
}

.header-nav-item:not(:first-child):before{
    content: "/";
    position: absolute;
    left: -8px; /*位置指定*/
}

.header-nav-item a{
    text-decoration: none;
    color: #333;
    white-space: nowap;
}

.container {
    position: relative;
    width: 100%;
}

.main-image{
    width: 100%;
    height: auto;
    object-position: center;
    object-fit: contain;
    position: relative;
    z-index: -1;
}


.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/top_main_image-cutout.png');
    background-size: cover;
    background-position: center;
}

.overlay-image {
    position: absolute;
    width: 12%;
    height: auto;
    cursor: pointer;
    z-index: 1;
}

/* .overlay-image の中の img 要素にスタイルを適用 */
.overlay-image img {
    width: 60%; /* 親要素 (overlay-image) の幅いっぱいに表示 */
    height: auto; /* 高さは自動調整して縦横比を維持 */
    display: block; /* imgの下にできる余白をなくす */
}

.menu1 {
    top:24%;
    left: 7%;
    transform: scale(1.3);
    background-size: contain;
    background-repeat: no-repeat;
    
}

.menu2 {
    top:55%;
    left: 7%;
    transform: scale(1.3);
    background-size: contain;
    background-repeat: no-repeat;
}

.menu3 {
    top:85%;
    left: 7%;
    transform: scale(1.3);
    background-size: contain;
    background-repeat: no-repeat;
}

.menu4 {
    top:115%;
    left: 7%;
    transform: scale(1.3);
    background-size: contain;
    background-repeat: no-repeat;
}

.menu5 {
    top:145%;
    left: 7%;
    transform: scale(1.3);
    background-size: contain;
    background-repeat: no-repeat;
}

.overlay-image1 {
    position: absolute;
    width: 18%;
    height: auto;
    cursor: pointer;
    z-index: 1;
}

/* .overlay-image の中の img 要素にスタイルを適用 */
.overlay-image1 img {
    width: 60%; /* 親要素 (overlay-image) の幅いっぱいに表示 */
    height: auto; /* 高さは自動調整して縦横比を維持 */
    display: block; /* imgの下にできる余白をなくす */
}

.image1 {
    top:39%;
    right: -7%;
    background-size: contain;
    background-repeat: no-repeat;
}

.image2 {
    top: 66%;
    right: 1%;
    background-size: contain;
    background-repeat: no-repeat;
}

.image3 {
    top: 91%;
    right: -7%;
    background-size: contain;
    background-repeat: no-repeat;
}

.image4 {
    top: 122%;
    right: 1%;
    background-size: contain;
    background-repeat: no-repeat;
}

/* .image5 {
    top: 175%;
    right: 2%;
    background-size: contain;
    background-repeat: no-repeat;
}

.image6 {
    top: 215%;
    right: 2%;
    background-size: contain;
    background-repeat: no-repeat;
}

.image7 {
    top: 255%;
    right: 2%;
    background-size: contain;
    background-repeat: no-repeat;
}

.image8 {
    top: 295%;
    right: 2%;
    background-size: contain;
    background-repeat: no-repeat;
} */

.image-logo {
    top: 154%;
    right: -6%;
    background-size: contain;
    background-repeat: no-repeat;
}

.sentence{
    width: 54%;
    /* margin-top: -6%;
    margin-left: 15%; */
    margin: -6% auto 0;
    position: relative; /* z-indexを有効にするために追加 */
    z-index: 2;         /* 画像(z-index:1)より手前に表示するために追加 */
}

.sentence2{
    width: 56%;
    margin-top: 0%;
    margin-left: 15%;
    /*position: relative;  z-indexを有効にするために追加 */
    /* z-index: 2;         画像(z-index:1)より手前に表示するために追加 */
}

.subheading{
    font-size: 2em;
    color: #74addf;
}

.introduction{
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 700;
    line-height: 2;
    padding-left: 2%;
    margin-bottom: -0.8em;
}

.text-box {
    border: 2px solid #ccc; /* 枠線のスタイル、太さ、色を指定 */
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); /* 影のスタイル、水平方向のオフセット、垂直方向のオフセット、ぼかし、色を指定 */
    padding: 10px; /* 内側の余白を指定 */
    width: 55%; /* ボックスの幅を指定（必要に応じて調整） */
    border-radius: 5px; /* 角丸にする（必要に応じて調整） */
  }
  
  .text-box p {
    margin: 0; /* pタグのデフォルトの余白を削除 */
  }

.link_image{
    display: flex;
    margin: 0 auto;
}

footer{
    margin: 3% auto;
    text-align: center;
    width: 90%;
}

/* リンクサイトの画像を制御 */
.link_image div {
    width: 80%;
    padding: 0 10px; /* 画像の間に少し余白を持たせる */
    box-sizing: border-box; /* paddingを含めて幅を計算する */
}

.link_image img {
    width: 100%;
    height: auto;
}

footer img {
    max-width: 100%;
    height: auto;
}

/* --- ハンバーガーメニュー --- */
.hamburger {
    display: none; /* デフォルトは非表示 */
    position: fixed;
    top: 20px;
    right: 7%;
    width: 42px;
    height: 42px;
    background: #7c72724e;
    border-radius: 5px;
    border: none;
    z-index: 1000;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    left: 10px;
    width: 22px;
    height: 2px;
    background-color: #333;
    transition: 0.3s;
}

.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 28px; }

.hamburger.is-active span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* モバイル用のナビゲーション設定 */
@media screen and (max-width: 970px) {
    /* PC用のナビゲーション(.header-nav)のスタイルを上書き */
    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #a1f6f0;
        z-index: 999; /* 元に戻す */

        /* ブレンドモードの影響をリセット */
        isolation: isolate;
        mix-blend-mode: normal;

        /* 初期状態では非表示にする */
        display: none;
    }
    
    /* is-activeになったら表示 */
    .header-nav.is-active {
        display: block;
    }

    /* ハンバーガーアイコンを表示 */
    .hamburger {
        display: block;
    }
    
    /* メニューリストのスタイルをモバイル用に変更 */
    .header-nav-list {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .header-nav-item {
        margin: 20px 0;
    }

    /* 区切り線を削除 */
    .header-nav-item:not(:first-child):before {
        content: "";
    }
}