body {
    font-family: 'Dancing Script', cursive; /* 柔らかい印象のフォントに変更 */
    font-weight: 300;
    margin: 0;
    padding: 0;
    background-color: #fff; /* 背景色 */
    color: #3a3a3a; /* テキストカラー */
}

header {
    background-color: #000; /* メインカラー */
    color: #fff;
    margin-top:0;
    padding: 10px 0;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    margin-top: 40px;
    margin-left: 25px; /* 左に20pxのマージンを追加 */
    margin-bottom: 20px;
    border-bottom: 2px solid #a2d5c6; /* 区切り線の色を設定 */
    padding-bottom: 10px;
    font-size: 1.2em; /* フォントサイズをさらに小さく調整 */
    font-weight: normal;
　　letter-spacing: 1px; /* 文字間隔を調整 */
}

.site-title a {
    color: inherit; /* リンクの色を親要素の色に継承 */
    text-decoration: none; /* デフォルトの下線を削除 */
}

.site-title a:hover {
    text-decoration: none; /* ホバー時に下線を表示しない */
}

/* リスト全体のスタイル */
/* お知らせリスト */
.latest-announcements {
    list-style: none;
    padding: 0;
    margin: 0 20px; /* 左右に少し余白 */
}

.latest-announcements li {
    display: flex;
    flex-direction: row; /* 通常は横並び */
    align-items: center; /* 上揃え */
    padding: 5px 0; /* 上下の余白を少なめに */
    border-bottom: 1px dotted #a2d5c6;
}

.latest-announcements li span {
   flex: 0 0 100px;
    width: 80px; /* 日付の幅 */
    text-align: left;
    margin-right: 10px;
    white-space: nowrap; /* 折り返さない */
}

.latest-announcements li a {
   flex: 1 1 auto; /* 残りスペースを使う */
    word-break: break-word; /* 長い文字列は改行して収める */
}

.latest-announcements li a:hover {
    text-decoration: underline;
}


#announcements {
    background-color: #f9f9f9; /* 背景色をより明るく */
    padding: 20px;
    margin-top: 40px; /* 上に余白を追加 */
    border-radius: 10px; /* 角を丸くする */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 影を追加して立体感を出す */
    margin: 0 auto; /* 中央に配置 */
    border: 1px solid #e0e0e0; /* ボーダーを追加してアクセントをつける */
}

#announcements h2 {
    margin-top: 0; /* 上の余白をなくす */
    margin-left: 25px; /* 左に25pxのマージンを追加 */
    margin-right: 25px;
    border-bottom: 2px solid #a2d5c6; /* 区切り線を追加 */
    font-size: 1.2em; /* フォントサイズをさらに小さく調整 */
    font-weight: normal;
    font-family: 'Dancing Script', cursive; /* 柔らかい印象のフォントに変更 */
    display: flex; /* フレックスボックスを使って配置 */
    justify-content: space-between; /* スペースを均等に配置 */
    align-items: center; /* 垂直方向に中央揃え */
}


#announcements p {
    margin-left: 20px; /* 左に20pxのマージンを追加 */
    font-family: 'Dancing Script', cursive; /* 柔らかい印象のフォントに変更 */
    font-size: 0.9em; /* フォントサイズを小さく調整 */
}

#announcements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 20px; /* 左に20pxのマージンを追加 */
}

#announcements ul li {
    margin: 10px 0; /* 上下のマージンを調整 */
    font-size: 0.9em; /* フォントサイズを小さく調整 */
    display: flex;
    align-items: center; /* アイテムを中央揃え */
    padding: 5px 0; /* 上下のパディングを調整 */
    justify-content: space-between; /* 内容とリンクを左右に配置 */
    border-bottom: 1px dotted #a2d5c6; /* 点線を追加 */
}

#announcements ul li:last-child {
    border-bottom: none; /* 最後の項目の点線を削除 */
}

#announcements ul li span {
    width: 80px; /* 日付の幅を固定 */
    text-align: left; /* 日付を左揃え */
    margin-right: 10px; /* 日付と内容の間のスペース */
}

#announcements ul li a {
    color: #3a3a3a; /* リンクのテキストカラーを黒に */
    text-decoration: none;
    flex: 1; /* リンクの幅を広げる */
}

#announcements ul li a:hover {
    text-decoration: underline; /* ホバー時に下線を表示 */
}

#announcements ul li a:visited {
    color: #3a3a3a; /* クリック後も色を変えない */
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#intro {
    display: flex;               /* フレックスボックスを利用 */
    justify-content: center;     /* 水平方向に中央揃え */
    align-items: center;         /* 垂直方向に中央揃え */
    height: 100vh;               /* ビューポート全体の高さを確保 */
    background-color: #000;      /* 背景色を黒に設定 */
    color: #fff;                 /* テキスト色を白に設定 */
    text-align: center;          /* テキストを中央揃え */
    flex-direction: column;      /* 子要素を上下に並べる */
}


.intro-title {
    font-size: 2em; /* フォントサイズを小さく調整 */
    font-weight: 300;
　　align-items: center;         /* 垂直方向に中央揃え */
}

.fancy {
    font-size: 1.2em;
    color: #f7cac9; /* 強調色 */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* 項目を中央に配置 */
    max-width: 700px; /* メニューの最大幅を設定 */
}

nav ul li {
    text-align: center; /* テキストを中央揃え */
    position: relative; /* 区切り線を追加するために相対位置に設定 */
}

nav ul li a {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* メニュー全体を筆記体ではないフォントに変更 */
    font-size: 0.9em; /* フォントサイズを小さく調整 */
    color: #fff;
    text-decoration: none;
    display: block; /* リンク全体をクリック可能にする */
    padding: 10px 15px; /* 上下と左右のパディングを追加 */
}

nav ul li a:hover {
    background-color: #a2d5c6; /* ホバー時の背景色 */
    color: #fff; /* ホバー時のテキストカラー */
    border-radius: 3px; /* 角を丸くする */
    transition: background-color 0.3s, color 0.3s; /* トランジション効果 */
}

nav ul li:not(:last-child)::after {
    content: ''; /* 区切り線を追加 */
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 50%;
    background-color: #a2d5c6; /* 区切り線の色 */
    transform: translateY(-50%);
}

.menu-icon {
    display: none;
    cursor: pointer;
}

#content {
    text-align: center;
    padding: 20px;
    font-family: 'Merriweather', serif; /* 活字が見やすい書体に変更 */
}

#content h1 {
    font-size: 1.4em; /* タイトルのフォントサイズを調整 */
　　margin: 0;
}

#content p {
    font-size: 1em; /* タイトルの下の内容のフォントサイズを小さく調整 */
}

/* レッスン内容のセクション全体 */
#lessons {
    margin-left: 20px; /* 左側の余白 */
    margin-right: 20px; /* 右側の余白 */
    padding-left: 20px; /* 左側の内側余白 */
    padding-right: 20px; /* 右側の内側余白 */
}

/* レッスン内容のタイトル */
#lessons h2 {
    margin-left: 10px; /* 左側に少し余白を追加 */
    margin-right: 10px; /* 右側に少し余白を追加 */
    text-align: left; /* テキストを左揃え */
}

/* レッスン内容の文章 */
#lessons p {
    margin-left: 15px; /* 左側に余白を追加 */
    margin-right: 15px; /* 右側に余白を追加 */
    line-height: 1.6; /* 読みやすくするために行間を調整 */
　　font-size: 1em; /* タイトルの下の内容のフォントサイズを小さく調整 */
}

.lesson-link,
.announcements-link {
    float: right;
    padding: 5px 10px; /* パディングを調整 */
    border-radius: 5px;
    background-color: #a2d5c6; /* リンクボタンの背景色 */
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 0.9em; /* フォントサイズを小さく調整 */
    transition: background-color 0.3s;
}


.lesson-link:hover,
.announcements-link:hover {
    background-color: #000; /* ホバー時の背景色 */
　　 color: #88c4b5; /* ホバー時のテキストカラー */
    text-decoration: none; /* ホバー時の下線を非表示 */
}

.lesson-link:visited,
.announcements-link:visited {
    color: #fff; /* クリック後も白い文字色を固定 */
    background-color: #a2d5c6; /* 背景色も変えずに固定 */
    text-decoration: none; /* 下線を表示しない */
}


.pianist-photos {
    display: flex;
    justify-content: center; /* 画像を中央に配置 */
    gap: 40px; /* 写真間のスペースを広げる */
    margin-top: 30px; /* 写真の上に余白を追加 */
}

.pianist-photos img {
    width: 38%; /* 各写真の幅を調整*/
}

.social-icons {
    color: #fff;
    display: flex;
    justify-content: center;
    padding: 20px 0; /* 余白を増やす */
    margin-top: 20px; /* SNSアイコンの上に余白を追加 */
}

.social-icons a {
    color: #fff;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #a2d5c6;
}

.social-icons a:visited {
    color: #fff;
}

footer {
    text-align: center;
    padding: 20px 0;
    background-color: #000;
    color: #fff;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #a2d5c6; /* ボタンの背景色 */
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.back-to-top:hover {
    background-color: #7bb49f; /* ホバー時の背景色 */
    transform: scale(1.1);
}
    

@media (max-width: 768px) {
    #intro {
        height: 80vh; /* ビューポートの高さを少し縮小 */
        font-size: 14px; /* フォントサイズを小さく調整 */
        padding: 10px;
    }

    .intro-title {
        font-size: 1.5em; /* タイトルのサイズを調整 */
    }

/* スマートフォン（画面幅768px以下）の場合 */

    @media (max-width: 768px) {
    .latest-announcements li {
        flex-direction: column; /* 縦並び */
        align-items: flex-start;
        gap: 2px; /* 日付と内容の間の空白を小さく */
        padding: 4px 0; /* 上下余白もさらに小さく */
    }

    .latest-announcements li span {
        margin-bottom: 0; /* 日付下の余白をなくす */
        font-size: 12px;
    }

    .latest-announcements li a {
        font-size: 14px;
    }
}
    nav ul {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    nav ul.show {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li:not(:last-child)::after {
        content: none; /* 右側の区切り線を表示しない */
    }

    .pianist-photos {
        flex-direction: column;
        align-items: center; /* 画像を中央に配置 */
    }

    .pianist-photos img {
        width: 70%; /* 小さい画面では各写真の幅を大きく設定 */
    }

.social-icons {
    display: flex;
    justify-content: center;
    padding: 20px 0; /* 余白を増やす */
    margin-top: 20px; /* SNSアイコンの上に余白を追加 */
}

.social-icons a {
    margin: 0 20px; /* アイコン間のスペースを広げる */
    color: #3a3a3a; /* メインカラー */
    font-size: 30px; /* アイコンサイズを大きくする */
    text-decoration: none;
    transition: color 0.3s, transform 0.3s; /* トランジション効果を追加 */
}

.social-icons a:hover {
    color: #a2d5c6; /* 他の部分で使っているホバー時のカラー */
    transform: scale(1.2); /* ホバー時に拡大する */
}