@charset "utf-8";

/* --- 全体・リセット --- */
body {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
    font-size: 16px;
    color: #030133;
    background-color: #ffffcc;
    margin: 0;
    padding: 0;
}

h1,h2,h3,h4,h5,h6,p,div,ul,li { margin: 0; padding: 0; }

/* --- 全体調整 --- */
#container {
    width: 100%;       /* 固定幅をやめて100%にするのが現代的です */
    max-width: 782px;  /* ただしPCでは782pxで止める */
    margin: 0 auto;
    background-color: #e0f7fa;
    border: 1px solid #B8C1B3;
    box-sizing: border-box; /* paddingを含めて幅を計算させる重要設定 */
}

/* ヘッダー全体の余白を調整 */
#header {
    background-color: #f0f0f0;
    padding-bottom: 0x; /* ここを10pxから5pxに減らすで */
    overflow: hidden;
}

/* 住所エリアの調整 */
#header div[style*="padding: 10px"] {
    padding-top: 5px !important;  /* 上側の余白を少し削る */
    padding-bottom: 5px !important; /* 下側の余白も削る */
    margin-bottom: 0 !important;  /* 下の隙間をゼロにする */
}

.header-logo {
    float: left;
    font-size: 32px;
    color: #000099;
    font-weight: bold;
    line-height: 1.5;
    padding: 10px;
}

#header h4 {
    float: right;
    text-align: right;
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
    line-height: 1.6;
}

/* --- メインビジュアル --- */
#main-visual {
    position: relative;
    width: 782px;
    height: 400px;
    overflow: hidden;
    margin-bottom: 10px;
}

#main-visual img { width: 100%; height: 100%; object-fit: cover; }

#visual-text-container {
    position: absolute;
    top: 70%;
    left: 60%;
    transform: translateY(-50%);
    z-index: 15;
}

.fade-text {
    line-height: 1.2;
    font-size: 22px;
    color: #ffffff;
    font-weight: bold;
    padding: 10px;
    background-color: rgba(3, 1, 51, 0.7);
    border-radius: 5px;
    opacity: 0;
    animation: textFadeSlide 15s infinite;
}

@keyframes textFadeSlide {
    0% { opacity: 0; }
    5% { opacity: 1; }
    30% { opacity: 1; }
    35% { opacity: 0; }
    100% { opacity: 0; }
}

.fade-text:nth-child(1) { animation-delay: 0s; }
.fade-text:nth-child(2) { animation-delay: 5s; }
.fade-text:nth-child(3) { animation-delay: 10s; }

/* --- コンテンツ --- */
#maincontent {
    padding: 20px;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

#maincontent h2 { color: #008800; font-size: 16px; margin-bottom: 10px; }

/* 練習曲リストのコンテナを白にする */
.practice-list-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    background-color: #ffffff; /* ★ここを白にするで！ */
}

.video-wrapper {
    width: 100%;
    max-width: 560px; /* PCでの最大幅 */
    margin: 0 auto;  /* これで中央寄せになります */
}

.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9; /* これだけでアスペクト比が固定されます */
    display: block;      /* 余計な隙間を消すために重要 */
}
/* --- フッターの修正 --- */
#footer {
    clear: both;
    background-color: #030133; /* 紺色 */
    width: 100%;             /* 画面幅いっぱい */
    max-width: 782px;        /* コンテナと同じ最大幅 */
    margin: 0 auto;          /* 中央寄せ */
    padding: 20px 0;         /* 高さを作るために上下にパディングを追加 */
    text-align: center;      /* 中の文字を中央へ */
    color: #ffffff;          /* 白文字を明示的に指定 */
}

#footer p { 
    color: #ffffff; 
    font-size: 16px; 
    margin: 0; 
}


