@charset "utf-8";




/* 全体レイアウト */
body {
    background-color: white;
    color: black;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* ヘッダー */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px; /* 左右の余白を設定 */
    width: 100%;
    margin-top: 10px;
}
.logo {
    width: 150px;
    height: 50px;
    
}
.nav {
    display: flex;
    gap: 10px; /* リンク間のスペース */
    margin-right: 10px; /* 右端から30px */
}
.nav a {
    color: blue;
    text-decoration: none;
    font-family: "neuropol-nova", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3rem;
}


/* メインコンテンツ */
.container {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
}

/* 左側のメイン画像 */
.main-image {
    width: 500px; /* 最大サイズ */
    height: 500px; /* 最大サイズ */
    max-width: 60%; /* 画面幅に応じて縮小 */
    max-height: 60vw; /* 正方形を維持しながら縮小 */
    background-color: lightgray;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右側のコンテンツ */
.content {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

/* サムネイル（1〜5の画像） */
.thumbnail-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center; /* 600px以下で中央揃え */
}

/* サムネイル画像 */
.thumbnail {
    width: 60px;
    height: 60px;
    cursor: pointer;
    background-color: lightgray;
    object-fit: cover;
    border: 2px solid transparent;
}

/* 選択されたサムネイルのスタイル */
.thumbnail.active {
    border: 2px solid blue;
}

/* 作品情報ボックス */
.info-box {
    /* background-color: cornflowerblue; */
    padding: 20px;
    width: 100%;
    max-width: 400px; /* 中央揃え時の最大幅 */
    align-self: flex-end; /* 600px以上で .main-image の下端に合わせる */
}

/* 600px以下で縦レイアウトに変更 */
@media (max-width: 675px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .main-image {
        width: 90vw;
        height: 90vw;
        max-width: 500px;
        max-height: 500px;
        min-width: 300px;
        min-height: 300px;
    }

    .thumbnail-container {
        justify-content: center;
        margin-top: 20px;
    }

    .content {
        width: 100%;
        align-items: center;
    }

    .info-box {
        width: 80%;
        max-width: 400px;
        text-align: center;
        margin: 0 auto; /* 600px以下で中央揃え */
        align-self: center; /* 位置調整 */
    }
}
