/* --------------------------------
 * Gallery List Page (gallery.html)
 * -------------------------------- */
.gallery-list-container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto 80px;
    font-family: "Noto Serif JP", serif;
}

.gallery-list-item {
    border-top: 1px solid #555;
    border-bottom: 1px solid #555;
    margin-top: -1px; /* 罫線の重なりを防ぐ */
}

.gallery-list-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    transition: background-color 0.3s ease;
    color: #333; /* リンク色を親要素から継承させない */
}

.gallery-list-item a:hover {
    background-color: #f0f0f0; /* ホバー色 */
}

.gallery-list-item .author-info {
    font-size: 1.2rem;
}

.gallery-list-item .author-info span {
    font-size: 0.8rem;
    color: #555;
    margin-left: 10px;
}

.gallery-list-item .gallery-title {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

/* ギャラリーリスト スマホ対応 */
@media (max-width: 899px) {
    .gallery-list-container {
        width: 100%;
    }
    .gallery-list-item a {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 15px;
    }

    .gallery-list-item .author-info {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .gallery-list-item .gallery-title {
        font-size: 1.0rem;
        align-self: flex-end; /* タイトルを右下に */
    }
}

/* --------------------------------
 * Gallery Back Link (shared)
 * -------------------------------- */
.gallery-back-link {
    text-align: center;
    margin: -20px auto 30px; /* タイトルの上下マージン調整 */
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.9rem;
}
.gallery-back-link a {
    color: #007acc; /* リンク色 */
    text-decoration: none;
    transition: opacity 0.3s;
}
.gallery-back-link a:hover {
    opacity: 0.7;
    text-decoration: underline;
}
.gallery-back-link a::before {
    content: '« '; /* 戻る矢印 */
}


/* --------------------------------
 * Gallery Detail Page (gallery_shinozaki.html)
 * -------------------------------- */
.gallery-detail-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
}
.gallery-detail-title span {
    font-size: 1.2rem;
    margin-left: 10px;
    color: #333;
}

/* メインスライダーの枠 (画面に収まるように変更) */
#main-slider {
    margin-bottom: 20px;
    border: 10px solid #222;
    background: #222;
    position: relative;
    
    /* ▼▼▼ 修正箇所：固定比率をやめ、画面高さ基準に変更 ▼▼▼ */
    padding-top: 0; 
    height: 70vh;      /* 画面の高さの70%に制限 */
    min-height: 400px; /* スマホなどで小さくなりすぎないよう最小値を確保 */
    /* ▲▲▲ 修正箇所ここまで ▲▲▲ */
    
    overflow: hidden;
}

#main-slider .splide__track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#main-slider .splide__slide {
    width: 100%;
    height: 100%;
}

#main-slider .gallery-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#main-slider .gallery-image-wrapper img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    cursor: default;
    object-fit: contain; /* 枠内に画像をきれいに収める */
}


/* メインスライダーの矢印 */
#main-slider .splide__arrow {
    background: rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    width: 3em;
    height: 3em;
    z-index: 10; /* 画像より手前に */
}
#main-slider .splide__arrow svg {
    fill: #fff;
    width: 1.2em;
    height: 1.2em;
}
#main-slider .splide__arrow:hover {
    opacity: 1;
}
#main-slider .splide__arrow--prev {
    left: 20px;
}
#main-slider .splide__arrow--next {
    right: 20px;
}

/* 作品情報 */
#photo-info-container {
    width: 100%;
    padding: 10px 0 20px;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    color: #333;
    min-height: 100px; /* スライド切り替え時のガタつき防止 */
}
.photo-info-item .title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.photo-info-item .spec {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* サムネイルスライダー */
#thumbnail-slider {
    margin: 0 auto 40px;
    max-width: 90%; /* サムネイルコンテナの最大幅 */
}
#thumbnail-slider .splide__slide {
    opacity: 0.6;
    cursor: pointer;
    border: 3px solid transparent;
    transition: opacity 0.3s, border-color 0.3s;
    overflow: hidden; /* 画像のはみ出し防止 */
}
#thumbnail-slider .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をトリミングしてフィット */
}
#thumbnail-slider .splide__slide.is-active {
    opacity: 1;
    border-color: #333;
}
#thumbnail-slider .splide__arrow {
    background: #f0f0f0;
}
#thumbnail-slider .splide__arrow svg {
    fill: #333;
    width: 1em;
    height: 1em;
}

/* コメント欄 (ギャラリー03) */
#photo-comment-container {
    width: 100%;
    background: #2b2b2b; /* モックアップの背景色 */
    color: #ddd;
    padding: 50px 0;
    margin-top: 50px;
}
.photo-comment-box {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
}
.photo-comment-box h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}
.photo-comment-box p {
    margin-bottom: 1.5em;
}

.comment-top-link {
    text-align: center;
    margin-top: 40px;
}
.comment-top-link a {
    display: inline-block;
    color: #ddd;
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s;
}
.comment-top-link a:hover {
    opacity: 1;
}
.comment-top-link a::before {
    content: '';
    display: block;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #ddd;
    width: 0;
    height: 0;
    margin: 0 auto 5px;
}
.comment-top-link span {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* ギャラリー詳細 スマホ対応 */
@media (max-width: 899px) {
    .gallery-detail-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    .gallery-detail-title span {
        font-size: 1.0rem;
    }

    #main-slider {
        border: 5px solid #222;
    }
    #main-slider .splide__arrow {
        width: 2.5em;
        height: 2.5em;
    }
    #main-slider .splide__arrow--prev {
        left: 10px;
    }
    #main-slider .splide__arrow--next {
        right: 10px;
    }
    
    #photo-info-container {
        min-height: 80px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .photo-info-item .title {
        font-size: 1.1rem;
    }
    .photo-info-item .spec {
        font-size: 0.8rem;
    }

    #thumbnail-slider {
        max-width: 100%;
        padding: 0 10px; /* 左右に少し余白 */
    }

    #photo-comment-container {
        padding: 30px 0;
    }
    .photo-comment-box {
        width: 90%;
        font-size: 0.9rem;
    }
}
/* --------------------------------
 * ギャラリーリストのサムネイル追加修正
 * -------------------------------- */
.gallery-list-item a {
    display: flex;
    justify-content: flex-start; /* 左寄せに変更 */
    align-items: center;
    gap: 20px; /* 画像とテキストの間隔 */
}

/* サムネイル画像のスタイル */
.gallery-thumb {
    width: 100px;  /* PCでのサイズ */
    height: 100px; /* 正方形 */
    flex-shrink: 0; /* 縮まないように固定 */
    overflow: hidden;
    background: #eee;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせてトリミング */
    display: block;
}

/* テキスト部分をグループ化して配置調整 */
.gallery-text-group {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* スマホ対応 */
@media (max-width: 899px) {
    .gallery-list-item a {
        padding: 15px;
        gap: 15px;
    }

    .gallery-thumb {
        width: 70px;  /* スマホでのサイズ */
        height: 70px;
    }

    .gallery-text-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gallery-list-item .gallery-title {
        align-self: flex-start; /* スマホ時は左寄せに戻す */
        margin-top: 5px;
    }
}

/* --------------------------------
 * Gallery List Page (gallery.html)
 * -------------------------------- */
.gallery-list-container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto 80px;
    font-family: "Noto Serif JP", serif;
}

.gallery-list-item {
    border-top: 1px solid #555;
    border-bottom: 1px solid #555;
    margin-top: -1px; /* 罫線の重なりを防ぐ */
}

.gallery-list-item a {
    display: flex;
    align-items: center; /* 上下中央揃え */
    padding: 20px;       /* 内側の余白をたっぷりとる */
    gap: 30px;           /* 画像とテキストの間隔 */
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.gallery-list-item a:hover {
    background-color: #f5f5f5; /* ホバー時の背景色 */
}

/* サムネイル画像（正方形） */
.gallery-thumb {
    width: 120px;  /* PCでのサイズ */
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    background: #eee;
    /* 画像のみ少しだけ角丸にする場合 */
    /* border-radius: 2px; */
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease; /* ズームアニメーション */
}

/* ホバー時に画像を少し拡大してスタイリッシュに */
.gallery-list-item a:hover .gallery-thumb img {
    transform: scale(1.08);
}

/* テキストグループ（名前とタイトル） */
.gallery-text-group {
    display: flex;
    flex-direction: row; /* PCは横並び */
    align-items: center; /* 上下中央 */
    flex-grow: 1;
    /* 左右に離れすぎないよう、justify-content: space-between は削除 */
    gap: 40px; /* 名前とタイトルの間の適度な距離 */
}

/* 作者名 */
.author-info {
    font-size: 1.3rem;
    font-weight: 500;
    white-space: nowrap; /* 名前が折り返されないようにする */
    min-width: 240px;    /* 名前の幅をある程度確保して、タイトル位置を縦に揃える */
}

.author-info span {
    font-size: 0.8rem;
    color: #666;
    margin-left: 10px;
    font-weight: normal;
}

/* 作品タイトル */
.gallery-title {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: #333;
}

/* ギャラリーリスト スマホ対応 */
@media (max-width: 899px) {
    .gallery-list-container {
        width: 95%; /* 画面幅を広く使う */
        margin: 30px auto 60px;
    }

    .gallery-list-item a {
        padding: 15px;
        gap: 15px; /* 画像とテキストの間隔を少し詰める */
    }

    .gallery-thumb {
        width: 80px;  /* スマホでのサイズ */
        height: 80px;
    }

    .gallery-text-group {
        flex-direction: column;  /* 縦並びに変更 */
        align-items: flex-start; /* 左揃え */
        gap: 5px;                /* 名前とタイトルの行間 */
        justify-content: center;
    }

    .author-info {
        font-size: 1.0rem;
        min-width: auto; /* 幅固定を解除 */
        white-space: normal;
    }
    
    .author-info span {
        font-size: 0.75rem;
    }

    .gallery-title {
        font-size: 0.95rem;
        margin-top: 0;
    }
}
/* --------------------------------
 * 詳細ページ：プロフィール欄（スタイリッシュ版）
 * -------------------------------- */

/* 全体のコンテナ：ダークグレーの背景で引き締める */
#photo-profile-container {
    width: 100%;
    background-color: #2b2b2b; /* 濃いグレー背景 */
    color: #f5f5f5;            /* オフホワイトの文字 */
    padding: 70px 0;           /* 上下にたっぷり余白 */
    margin-top: 80px;          /* 上のコンテンツとの距離 */
    font-family: "Noto Serif JP", serif; /* 品のある明朝体 */
    letter-spacing: 0.05em;
}

/* 中央寄せ・幅制限のボックス */
.profile-box {
    width: 88%;
    max-width: 800px; /* 読みやすい横幅に制限 */
    margin: 0 auto;
}

/* 見出しエリア */
.profile-header {
    text-align: center;
    border-bottom: 1px solid #555; /* 薄い区切り線 */
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.profile-title {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.4;
}

.profile-name {
    font-size: 1.1rem;
    color: #ccc; /* タイトルより少しトーンを落とす */
    font-family: "Noto Sans JP", sans-serif; /* 名前は視認性重視 */
}

/* 本文エリア */
.profile-body p {
    font-size: 1.05rem;
    line-height: 2.2; /* 行間を広く取って読みやすく */
    margin-bottom: 2rem;
    text-align: justify; /* 両端揃えで整然とさせる */
}

/* 略歴・所属エリア */
.profile-history {
    margin-top: 50px;
    padding: 30px;
    background-color: #333; /* 本文より少し明るい背景で区別 */
    border-left: 4px solid #777; /* 左にアクセントライン */
    font-size: 0.95rem;
    line-height: 1.8;
    color: #ddd;
}

.profile-history p {
    margin-bottom: 1rem;
    text-align: left; /* 履歴は左寄せ */
}

.profile-history p:last-child {
    margin-bottom: 0;
}

/* TOPに戻るリンク */
.comment-top-link {
    text-align: center;
    margin-top: 50px;
}

.comment-top-link a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 10px 30px;
    border: 1px solid #777;
    transition: all 0.3s ease;
}

.comment-top-link a:hover {
    background: #fff;
    color: #2b2b2b;
    border-color: #fff;
}

/* スマホ対応 */
@media (max-width: 899px) {
    #photo-profile-container {
        padding: 50px 0;
        margin-top: 50px;
    }
    
    .profile-title {
        font-size: 1.3rem;
    }
    
    .profile-body p {
        font-size: 0.95rem;
        line-height: 1.9;
        text-align: left; /* スマホでは左寄せの方が自然 */
    }

    .profile-history {
        padding: 20px;
        margin-top: 30px;
    }
}