/* ローディング画面のスタイル */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #eedade; /* 背景色（変更可能） */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* ハートのアニメーション */
#heart {
    width: 100px;  /* ハートのサイズ */
    height: auto;
    animation: fillHeart 3s steps(3) forwards;
}

/* ハートがだんだん満たされるアニメーション */
@keyframes fillHeart {
    0% {
        content: url('https://matochi-gallery.com/image/heart_empty.png');  /* 空のハート */
    }
    33% {
        content: url('https://matochi-gallery.com/image/heart_half.png');  /* 半分満たされたハート */
    }
    66% {
        content: url('https://matochi-gallery.com/image/heart_almost.png'); /* ほぼ満たされたハート */
    }
    100% {
        content: url('https://matochi-gallery.com/image/heart_full.png');  /* 満たされたハート */
    }
}

/* ページの本体は最初非表示 */
#content {
    display: none;
}

body {
    font-family:  "DotGothic16", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
	width:100%
}

body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;
}

.header {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    width: 100%;
max-width: 100vw;
    height: 700px; 
    background-color: #eedade;
overflow-x: hidden;
}

.header-left {
    flex: 3;
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
    overflow: hidden;
}

.header-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}


.header-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 20px;
}


.header-right .title {
    font-family: DotGothic16;
    font-size: 35px;
    color: #666;
}

.header-right .name-jp {
    font-size: 50px;
    color: #383838;
}

.header-right .name-en {
    font-size: 50px;
    color: #666;
}


.contact{
    text-align: center;
    display: block;
    margin-top: 50px;
}

.contact a{
    font-size: 20px;
    text-decoration: none;
    color: #3f3f3f;
}
.contact img {
    width: 20px;
}

.gallery {
    display: flex;
flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    overflow-x: hidden;
    gap: 20px;
    margin-top: 50px;
padding: 0 10px;
}

.gallery img{
	max-width: 100%;
    height: 70%;
}

.thumbnail {
    margin-bottom: 100px;
    width: 200px;
    height: auto;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.1);
}

/* モーダルのスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    text-align: center;
    position: relative;
    max-width: 30%;
}

.modal h2{
    margin: 10px;
}

.modal img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
}

.modal a {
    font-size:20px; 
    display: block;
    margin-top: 10px;
    padding: 8px;
    background: #c590be;
    color: white;
    text-decoration: none;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
}

#modal-description {
    margin-top: 10px;
    font-size: 16px;
    color: #666;
}

@media (max-width: 768px) {
    .header {
        height: 500px; /* スマホでは少し高さを小さく */
    }

    .header-left {
        flex: 3; /* 🔥 スマホでは左側をさらに広げる */
    }

    .header-right {
        flex: 2; /* 右側の幅を少し狭くする */
        padding-left: 10px; /* スマホで余白を小さく */
    }
}

@media (max-width: 768px) {
    .header-right .title {
        font-size: 20px;  /* タイトルを小さく */
    }

    .header-right .name-jp {
        font-size: 40px;  /* 日本語の名前を少し小さく */
    }

    .header-right .name-en {
        font-size: 40px;  /* 英語の名前も小さく */
    }
}


footer {
position: absolute;
bottom: 0
    height: 150px;
width:100%;
    text-align: center;
    background-color: #d0dfdf;
    color: #686868;
  }

footer a{
    text-decoration: none;
    color: #686868;
}

footer img{
    width: 20px;
    margin: 10px;
}

