/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 左セクションのスタイル */
.left-section {
    top: 0;
    width: 60%; /* 左セクションは画面の60%を占める */
    height: 100%; /* 画面全体を固定 */
    padding: 20px 0 20px 60px; /* 左側の余白を60pxに変更してさらに右に移動 */
    position: fixed; /* 固定 */
    background-color: #ffffff;
    overflow: hidden; /* スクロールを無効化 */
}

/* "Web作品"タイトルのスタイル */
.gallery-title {
    margin-top: 50px;
    font-family: sans-serif;
    font-size: 32px;
    font-weight: 300;
    color: #11536d;
    margin-bottom: 30px;
    padding-left: 30px; /* 10pxから30pxに変更して右に移動 */
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px; /* 10pxから30pxに変更して右に移動 */
    width: calc(100% - 30px); /* 30pxに合わせて調整 */
    height: 1px;
    background-color: #11536d;
}


/* ギャラリー画像のスタイル */
.gallery {
    margin-top: 20px; /* タイトル追加に伴い調整 */
    padding-left: 30px; /* 10pxから30pxに変更して右に移動 */ /* 追加の左余白 */
}

.gallery-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* 画像を横一列に表示 */
    justify-content: flex-start !important; /* 画像を左に揃えつつ、余白を適用 */
    align-items: flex-start !important;
    gap: 15px !important; /* 画像間のスペースを統一 */
}

/* ギャラリーアイテムのラッパー */
.gallery-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0; /* サイズを固定 */
}

.gallery img {
    width: 120px; /* 横並び用にサイズを少し小さく */
    height: 80px; /* 高さを固定 */
    object-fit: cover; /* 画像の縦横比を保持してフィット */
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* 影をつけて浮き出ているように */
    display: block;
}

/* 画像キャプションのスタイル */
.image-caption {
    font-family: sans-serif;
    font-size: 12px;
    color: #11536d;
    margin-top: 8px;
    font-weight: 400;
    letter-spacing: 1px;
}

/* 「ギャラリーを見る→」のスタイル */
.view-gallery {
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #11536d;
    text-decoration: none;
    margin-top: 20px;
    padding-left: 30px; /* 10pxから30pxに変更して右に移動 */
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
}

/* 下線をホバー時にアニメーションで表示 */
.view-gallery::after {
    content: ''; /* 疑似要素で下線を作成 */
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%; /* 下線をテキストの下にフル幅で表示 */
    background-color: #11536d; /* 下線の色 */
    transform: scaleX(0); /* 初期状態では下線を非表示（縮めた状態） */
    transform-origin: left; /* 左側から伸びる */
    transition: transform 0.3s ease; /* アニメーションの速度を設定 */
}

/* ホバー時に下線を左から右にアニメーションで表示 */
.view-gallery:hover::after {
    transform: scaleX(1); /* 下線が左から右に伸びる */
}

/* 矢印のスタイル */
.view-gallery::before {
    content: '→'; /* 矢印を追加 */
    position: absolute;
    right: -20px; /* 矢印をテキストの右隣に配置 */
    top: 0;
    opacity: 0; /* 初期状態で矢印は非表示 */
    transition: opacity 0.3s ease, right 0.3s ease; /* 矢印の表示と位置をアニメーション */
}

/* ホバー時に矢印が表示され、少し右に移動 */
.view-gallery:hover::before {
    opacity: 1; /* 矢印を表示 */
    right: -30px; /* 矢印を少し右にスライド */
}