.mediaViewInfo {
    --web-view-name: HOME;
    --web-view-id: HOME;
    --web-scale-on-resize: true;
    --web-enable-deep-linking: true;
}
:root {
    --web-view-ids: HOME;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
}
#HOME {
    position: absolute;
    width: 100%;
    height: auto;
    overflow: hidden;
    cursor: pointer;
    --web-view-name: HOME;
    --web-view-id: HOME;
    --web-scale-on-resize: true;
    --web-enable-deep-linking: true;
}
@keyframes slide-right {
    0% {
        transform: translateX(-100%);
    }
}
@keyframes fadein {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes slide-left {
    0% {
        transform: translateX(100%);
    }
}

body {
    background-color: #faef42;
}

#home-top-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 8%;
    flex-wrap: wrap;
}

#home-top-logo-container {
    display: flex;
    align-items: flex-start;
    flex-flow: column;
    gap: 20px;
    margin: 20px;
}

#home-top-logo {
    width: 360px;
    height: auto;
    max-width: 100%;
}

#home-top-logo-text {
    font-size: 30px;
}

#home-top-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#home-top-image {
    width: 540px;
    height: auto;
    max-width: 100%;
}

.video-section-container {
    width: 100%;
    overflow: hidden; /* スクロールバーが表示されないようにする */
    position: relative;
}

.scroll-hint {
    display: none;
    text-align: center;
    font-size: 14px;
    margin: 5px auto 15px;
    opacity: 0.8;
    width: 100%;
    font-weight: 500;
}

#home-video {
    display: flex;  
    padding: 20px 0; /* 左右のパディングを削除して全体表示 */
    margin: 0 8%; /* 代わりにマージンで間隔調整 */
    justify-content: center;
    flex-wrap: nowrap; /* 折り返さないように設定 */
    position: relative;
    z-index: 2;
    gap: 20px;
    overflow-x: auto; /* 横スクロール可能に */
    -webkit-overflow-scrolling: touch; /* スムーズなスクロール */
    scroll-snap-type: x mandatory; /* スクロールスナップ */
    padding-bottom: 15px; /* スクロールバー用の余白 */
}

#home-video iframe {
    margin-bottom: 20px;
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.5);
    width: 320px;
    height: 180px;
    min-width: 320px; /* 最小幅を設定 */
    scroll-snap-align: center; /* スクロールスナップ位置 */
    border-radius: 8px;
}

.yt-subscriber-container {
    text-align: center;
    padding: 20px;
    max-width: 500px;
    width: 100%;
    background-color: #faef42;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 70px auto;
}

.yt-subscriber-logo {
    width: 120px;
    margin-bottom: 10px;
    max-width: 100%;
}

.yt-subscriber-title {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.yt-subscriber-current {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    font-size: 24px;
    flex-wrap: wrap;
}

.yt-subscriber-current .yt-subscriber-label {
    margin-right: 10px;
}

.yt-subscriber-count {
    font-size: 48px;
    font-weight: bold;
}

.yt-subscriber-arrow {
    font-size: 36px;
    margin: 5px 0;
}

.yt-subscriber-target {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    font-size: 24px;
    flex-wrap: wrap;
}

.yt-subscriber-target .yt-subscriber-label {
    margin-right: 10px;
}

.yt-subscriber-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 10px 0 20px 0;
    width: 100%;
}

.yt-subscriber-message-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* 折り返さないように設定 */
}

.yt-subscriber-character {
    width: 80px;
    margin-right: 20px;
    flex-shrink: 0; /* サイズを維持 */
}

.yt-subscriber-message {
    background-color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 20px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* サイズを維持 */
}

#info-section-container {
    background-color: #FFED00;
    padding: 40px 0 60px;
    width: 100%;
    position: relative;
}

.info-section-inner {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.info-section-box {
    border: 8px solid #000;
    position: relative;
    padding: 25px;
    box-shadow: 0 0 0 3px #FFED00, 0 0 0 15px #000;
    background-color: #ffed00;
}

.info-sections {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.info-section {
    width: 48%;
}

.info-section h2 {
    font-size: 36px;
    font-weight: Normal;
    margin-bottom: 15px;
    font-family: 'Erica One', cursive;
}

.info-item {
    margin-bottom: 15px;
}

.info-item h3 {
    font-size: 18px;
    font-weight: bold;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.character-peek {
    position: relative;
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
}

.character-peek > div {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.peek-character {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.pudding-image {
    text-align: center;
    margin-top: 70px;
}

.pudding {
    width: 120px;
    height: auto;
}

/* レスポンシブデザイン対応 */
@media screen and (max-width: 1200px) {
    #home-top-logo {
        width: 300px;
    }
    
    #home-top-image {
        width: 450px;
    }
    
    #home-video {
        justify-content: center;
    }
}

@media screen and (max-width: 992px) {
    #home-top-container {
        padding: 60px 5%;
    }
    
    #home-top-logo {
        width: 260px;
    }
    
    #home-top-logo-text {
        font-size: 24px;
    }
    
    #home-top-image {
        width: 380px;
    }
    
    .yt-subscriber-count {
        font-size: 36px;
    }
    
    .info-section h2 {
        font-size: 30px !important;
    }
}

@media screen and (max-width: 768px) {
    #home-top-container {
        flex-direction: column;
        text-align: center;
        padding: 60px 8%;
    }
    
    #home-top-logo-container {
        align-items: center;
        margin-bottom: 40px;
    }
    
    #home-top-logo {
        width: 280px;
    }
    
    #home-video {
        margin: 0 5%;
        padding: 20px 0;
        justify-content: flex-start; /* 左揃えにする */
    }
    
    #home-video iframe {
        width: 250px; /* モバイル表示用に少し小さくする */
        height: 141px; /* 16:9のアスペクト比を維持 */
        min-width: 250px;
    }
    
    .info-section {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .info-sections {
        flex-direction: column;
    }
    
    .info-section-inner {
        width: 90%;
        padding: 0 15px;
    }
    
    .info-section-box {
        padding: 15px;
    }
    
    /* ここを削除：モバイルでも横並びを維持
    .yt-subscriber-message-box {
        flex-direction: column;
    }
    
    .yt-subscriber-character {
        margin-right: 0;
        margin-bottom: 10px;
    }
    */
    
    .yt-subscriber-message {
        font-size: 18px;
        padding: 12px 20px;
    }
    
    .character-peek {
        display: none; /* スマホ表示時はキャラクターをのぞかせない */
    }
    
    .pudding {
        width: 100px;
    }
    
    #info-section-container {
        padding: 40px 0;
        background-color: #FFED00;
    }
}

@media screen and (max-width: 576px) {
    #home-top-container {
        padding: 50px 6%;
    }
    
    #home-top-logo {
        width: 220px;
    }
    
    #home-top-logo-text {
        font-size: 24px;
    }
    
    #home-top-image {
        width: 300px;
    }
    
    #home-video {
        margin: 0 3%;
        padding: 20px 0;
    }
    
    #home-video iframe {
        width: 200px; /* スマホではさらに小さく */
        height: 113px; /* 16:9のアスペクト比を維持 */
        min-width: 200px;
    }
    
    .yt-subscriber-container {
        padding: 15px;
        margin: 40px auto;
    }
    
    .yt-subscriber-count {
        font-size: 32px;
    }
    
    .yt-subscriber-current, .yt-subscriber-target {
        font-size: 18px;
    }
    
    .yt-subscriber-message {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .yt-subscriber-character {
        width: 60px;
        margin-right: 10px;
    }
    
    .info-section h2 {
        font-size: 24px !important;
    }
    
    .info-item h3 {
        font-size: 16px !important;
    }
    
    .info-section-inner {
        width: 90%;
        padding: 0 10px;
    }
    
    .info-section-box {
        border-width: 5px;
        box-shadow: 0 0 0 2px #FFED00, 0 0 0 10px #000;
        padding: 12px;
    }
    
    /* スクロールヒントを表示 */
    .scroll-hint {
        display: block;
    }
}