/* -----------------------------------『共通設定』-----------------------------------*/



/* 既存のCSSコード */
.container {
    position: relative;
}



#mainPhoto {
    transition: opacity 0.3s ease;
}

.subPhoto {
    width: 50px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}


/* 追加CSSコード */
.image_container {
    transition: background-image 0.3s ease;
}

.subPhoto:hover {
    opacity: 0.7;
}

.subPhoto.active {
    opacity: 0.7;
    transition-delay: 0.1s;
}

.image_container.active {
    background-size: cover;
    background-position: center top;
    border-radius: 50px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;

}

.mainPhotoModal img {
    max-width: 100%;
    max-height: 90%;
}

/* -----------------------------------『PC中用設定』-----------------------------------*/
@media(min-width: 600px){

    .photo_book{
        width:100%;
        /* background: #a1a1a1; */

    }
    .photo_book h1{
        font-size: 24px;
        text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    }

    .image_container{
        background-size: cover;
        background-position: center top; /* 背景画像の横位置を中央、上下位置を上に配置 */
    
        border-radius: 20px;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); 
        overflow: hidden;
    
    
        width:100%;
        padding-top: 130%
        
    
    }

/* PCサイズ コンテンツ枠 基本画面比90%だが、900以上にはならない*/
.container .content{
    width:min(80vw,700px);
    padding: 8px;
    /* background: #000000; */
    }





    .sub{
    display: flex;
    justify-content: space-evenly;
    
    flex-wrap: wrap;


    }
    .sub div{
        width: 15%;
        height: auto;
        display: flex;
        align-items: center;
        margin-top: 10px;
    }
    .sub img{
        width: 90%;

    }

    .text{
        margin-top: 30px;
        margin-bottom: 30px;
        border-radius: 10px;
        background: #FFF7E9;
        box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.4);
        width: 100%;
        padding: 30px;
        font-size: 20px;
    }





}
/* -----------------------------------『スマホ用設定』-----------------------------------*/
  @media(max-width: 599px){
    .photo_book{
        width:100%;
        /* background: #a1a1a1; */

    }
    .photo_book h1{
        font-size: 24px;
        text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    }

    .image_container{
        background-size: cover;
        background-position: center top; /* 背景画像の横位置を中央、上下位置を上に配置 */
    
        border-radius: 20px;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); 
        overflow: hidden;
    
    
        width:100%;
        padding-top: 130%
        
    
    }
    .sub{
    display: flex;
    justify-content: space-evenly;
    
    flex-wrap: wrap;


    }
    .sub div{
        width: 15%;
        height: auto;
        display: flex;
        align-items: center;
        margin-top: 10px;
    }
    .sub img{
        width: 90%;

    }

    .text{
        margin-top: 30px;
        margin-bottom: 30px;
        border-radius: 10px;
        background: #FFF7E9;
        box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.4);
        width: 100%;
        padding: 30px;
        font-size: 20px;
    }

}


