
/* ==============================
   ページ全体
   ============================== */

body {
    background-color: #ffffff;
    color: #000000;
    text-align: center;
}


/* ==============================
   サイトタイトル
   ============================== */

h1 {
    color: #6b4aa5;
    font-size: 40px;
}


/* ==============================
   Contents：バナー一覧
   ============================== */

/* リストの黒い点を消す */
#contents ul {
    list-style: none;
    margin: 0;
    padding: 0;

    /* バナーを中央揃えで並べる */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* バナー1枚あたりの表示幅 */
#contents li {
    width: 400px;
    max-width: 100%;
}

/* バナー画像 */
#contents img {
    display: block;
    width: 100%;
    height: auto;

    /* 透過部分を除いた画像の形状に沿って影を付ける */
    filter: drop-shadow(2px 3px 6px rgba(0, 0, 0, 0.25));
}

/* Linksの黒点を消す */
#links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Contents・Linksの見出し */
#contents h2,
#links h2 {
    font-size: 28px;
}

/* 創作活動・VTuber活動・ご依頼はこちら */
#links h3 {
    font-size: 20px;
}

/* ==============================
   トップ画像
   ============================== */

#top-image img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
}

/* ===== イラストページ ===== */

.illustration-banners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.illustration-banner {
    display: block;
    width: calc(50% - 15px);
    max-width: 450px;
}

.illustration-banner img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.2s ease;

    /* 透過部分を除いた画像の形状に沿って影を付ける */
    filter: drop-shadow(2px 3px 6px rgba(0, 0, 0, 0.25));
}

.illustration-banner:hover img {
    opacity: 0.75;
}

@media (max-width: 600px) {
    .illustration-banner {
        width: 100%;
    }
}


/* ===== イラスト一覧ページ ===== */

.illustration-page {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto 60px;
}

.illustration-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
}

.illustration-thumb {
    width: 180px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.illustration-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.illustration-thumb:hover img {
    transform: scale(1.05);
}

/* ===== 拡大表示 ===== */

.illustration-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 60px;
    box-sizing: border-box;
}

.illustration-overlay.is-open {
    display: flex;
}

.illustration-large {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.illustration-nav,
.illustration-close {
    position: absolute;
    border: none;
    background: none;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 8px;
}

.illustration-nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.illustration-prev {
    left: 20px;
}

.illustration-next {
    right: 20px;
}

.illustration-close {
    top: 12px;
    right: 20px;
    font-size: 2.5rem;
    line-height: 1;
}

.illustration-nav:hover,
.illustration-close:hover {
    opacity: 0.7;
}

/* スマートフォン向け */

@media (max-width: 600px) {
    .illustration-thumb {
        width: calc((100% - 16px) / 2);
    }

    .illustration-overlay {
        padding: 45px 40px;
    }

    .illustration-prev {
        left: 0;
    }

    .illustration-next {
        right: 0;
    }
}


/* ===== グッズ販売ページ ===== */

.goods-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1310px;
    margin: 40px auto;
}

.goods-item {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 600px);
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.goods-image {
    display: block;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    justify-self: center;
}

.goods-info {
    min-width: 0;
    text-align: left;
    line-height: 1.8;
}

.goods-info h2 {
    margin-top: 0;
}

.goods-info a {
    color: #6699BB;
    text-decoration: none;
}

.goods-info a:hover {
    text-decoration: underline;
}

/* 画面が狭い場合 */
@media (max-width: 1330px) {
    .goods-item {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .goods-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .goods-image {
        max-width: 400px;
    }
}

/* ===== 配布素材ページ ===== */

/* UTAU音源：動画と説明を横並び */
.material-utau {
    display: grid;
    grid-template-columns: minmax(0, 640px) minmax(0, 640px);
    gap: 30px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 60px;
    align-items: center;
}

.material-utau-video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.material-utau-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.material-utau-info {
    min-width: 0;
    text-align: left;
    line-height: 1.8;
}

.material-utau-info h2 {
    margin-top: 0;
}

.material-utau-info a {
    color: #6699BB;
    text-decoration: none;
}

.material-utau-info a:hover {
    text-decoration: underline;
}

/* ゆっくり立ち絵素材 */
.material-yukkuri {
    margin: 0 auto 50px;
    text-align: center;
}

.material-yukkuri > h2 {
    margin-bottom: 30px;
    text-align: center;
}

.material-yukkuri-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 180px));
    justify-content: center;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
}

.material-yukkuri-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.material-yukkuri-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.material-yukkuri-item:hover img {
    opacity: 0.75;
}

.material-yukkuri-item span {
    font-size: 1rem;
}

.material-yukkuri-item:hover span {
    text-decoration: underline;
}

/* 画面が狭い場合 */
@media (max-width: 1330px) {
    .material-utau {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        width: calc(100% - 40px);
    }
}

@media (max-width: 700px) {
    .material-utau {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 20px;
    }

    .material-yukkuri-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}
