.section {
    padding-top: 5rem; /* 適切な余白を追加 */
}

#home,
#about,
#portfolio,
#contact {
    scroll-margin-top: 3rem; /* ナビゲーションメニューの高さ分のマージンを追加 */
}

#home {
    margin-top: 30px;
}

.hero.is-fullheight-with-navbar {
    padding-top: 3.25rem;
}

.hero-background {
    background: url('../image/RAYSER_Library_3840x1240.png') center center;
    background-size: cover;
}

.hero-text {
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
}

.profile-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.outlined-text {
    color: #333;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;
}

.skill:hover::after {
    content: attr(data-detail);
    display: block;
    padding: 5px;
    border: 1px solid #ccc;
    margin-top: 5px;
}

.custom-list li {
    position: relative;
    padding-left: 20px;
    list-style-type: none;
}

.custom-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #007acc; /* デフォルトのリストアイコンに見えないような色 */
    font-size: 1.2rem; /* 大きさを調整 */
}

/* スライドインの初期状態 */
.slide-in {
    opacity: 0;
    transform: translateY(100px); /* 下からスライドインするための変更 */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* スライドインの表示状態 */
.slide-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.game-container iframe {
    border: 0;
    width: 100%;
    height: 600px;
}

/* 全体テーマ */
body {
    background-color: #1b2838;
    color: #c7d5e0;
    font-family: "Roboto Condensed", sans-serif;
}

/* セクション調整 */
.store-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* タイトル */
.store-title {
    color: #66c0f4;
    text-align: center;
    margin-bottom: 2rem;
}

/* カード風デザイン */
.store-card {
    background-color: #2a475e;
    border: 1px solid #3e5d7e;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}

/* カード内タイトル */
.card-title {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

/* 小見出し */
.card-subtitle {
    color: #66c0f4;
    border-bottom: 1px solid #3e5d7e;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* 余白リセット */
.mt0 {
    margin-top: 0;
}

/* extra-margin クラス：About 以外に適用 */
.extra-margin {
    margin-top: 2rem;
}

/* About のテキストを白く */
.about-content {
    color: #ffffff;
}

/* 全体テーマ */
body {
    background-color: #1b2838;
    color: #c7d5e0;
    font-family: "Roboto Condensed", sans-serif;
}

/* セクション調整 */
.store-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* タイトル */
.store-title {
    color: #66c0f4;
    text-align: center;
    margin-bottom: 2rem;
}

/* カード風デザイン：よりエッジ感を */
.store-card {
    background-color: #2a475e;
    border: 1px solid #3e5d7e;
    border-radius: 3px; /* 5px よりやや鋭く */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
}

/* カード内タイトル */
.card-title {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

/* 小見出し */
.card-subtitle {
    color: #66c0f4;
    border-bottom: 1px solid #3e5d7e;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* リンク */
.store-link {
    color: #66c0f4;
    text-decoration: none;
    transition: color 0.3s ease;
}
.store-link:hover {
    color: #ffffff;
}

/* 左カラム：メインメディア */
.main-media-container {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
}
.main-media {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 3px;
    border: 1px solid #3e5d7e;
}

/* サムネイル */
.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.thumbnail-wrapper {
    cursor: pointer;
    transition: border 0.3s ease;
    flex: 1;
    max-width: 100px;
    overflow: hidden;
    border-radius: 3px;
    display: block;
    aspect-ratio: 16/9;
}
.thumbnail-wrapper.active {
    border: 2px solid #66c0f4;
}

/* ビデオ・プレイヤーコンテナ */
.video-container iframe,
.columns.is-marginless iframe {
    border: none;
    border-radius: 3px;
}

.profile-header .subtitle {
    line-height: 1.8;
    font-size: 1rem;
    color: #c7d5e0;
}

.tag.is-link.is-light {
    background-color: #e3f2fd;
    color: #0366d6;
    border: 1px solid #b3d8f7;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.tag.is-link.is-light:hover {
    background-color: #d1e7ff;
    color: #023d88;
}

.career ul {
    margin-bottom: 1rem;
}
.career ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .is-size-7 {
        font-size: 0.9rem !important;
    }
}

/* Lazy Loading Styles */
.lazy-image-container,
.lazy-video-container,
.lazy-iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.lazy-image,
.lazy-video,
.lazy-iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded,
.lazy-video.loaded,
.lazy-iframe.loaded {
    opacity: 1;
}

.lazy-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2a475e;
    border: 1px solid #3e5d7e;
    border-radius: 3px;
    min-height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #3e5d7e;
    border-top: 3px solid #66c0f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Main media specific styles */
.main-media-container .lazy-image-container,
.main-media-container .lazy-video-container {
    min-height: 400px;
}

.main-media-container .lazy-image,
.main-media-container .lazy-video {
    max-height: 400px;
    object-fit: contain;
}

/* Thumbnail lazy loading styles */
.thumbnail-wrapper .lazy-image-container,
.thumbnail-wrapper .lazy-video-container {
    width: 100%;
    height: 100%;
    display: block;
}

.thumbnail-wrapper .lazy-image,
.thumbnail-wrapper .lazy-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-wrapper .lazy-placeholder {
    width: 100%;
    height: 100%;
}

