/* Webフォントの読み込み */
/* 見出し用: がっつり手書き風 */
@import url('https://fonts.googleapis.com/css2?family=Hachi+Maru+Pop&display=swap');
/* 本文用: タイプライター風に近い読みやすいゴシック体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Roboto+Mono:wght@400&display=swap');


/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif; /* 本文のフォント */
    line-height: 1.6; /* 行の高さ */
    color: #333; /* 基本の文字色 */
    background-color: #F8F8F8; /* 背景色（清潔感を出すために少しグレーがかった白） */
    margin: 0;
    padding: 0;
}

/* リンクのスタイル */
a {
    color: #87CEEB; /* 晴れた空の色 */
    text-decoration: none; /* 下線をなくす */
}

a:hover {
    text-decoration: underline; /* ホバー時に下線を出す */
}

/* ヘッダー */
header {
    background-color: #fff; /* 白い背景 */
    padding: 20px 0;
    border-bottom: 1px solid #eee; /* 下線で区切り */
    text-align: center;
}

header h1 {
    font-family: 'Hachi Maru Pop', cursive; /* 手書き風フォント */
    color: #333;
    margin: 0;
    font-size: 2.5em; /* タイトルを大きく */
}

header nav ul {
    list-style: none; /* リストの点をなくす */
    padding: 0;
    margin: 10px 0 0;
}

header nav ul li {
    display: inline-block; /* 横並びにする */
    margin: 0 15px;
}

header nav ul li a {
    font-weight: bold;
    color: #555; /* メニューの文字色 */
    padding: 5px 10px;
    transition: color 0.3s ease; /* ホバー時のアニメーション */
}

header nav ul li a:hover {
    color: #87CEEB; /* ホバー時にキーカラーに */
}

/* メインコンテンツの共通スタイル */
main {
    max-width: 960px; /* 最大幅を設定して中央に寄せる */
    margin: 20px auto; /* 上下左右の余白 */
    padding: 0 20px;
}

section {
    background-color: #fff; /* 各セクションの背景色 */
    padding: 40px;
    margin-bottom: 20px; /* セクション間の余白 */
    border-radius: 8px; /* 角を少し丸く */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 軽い影 */
}

section h2 {
    font-family: 'Hachi Maru Pop', cursive; /* 手書き風フォント */
    color: #87CEEB; /* セクションタイトルをキーカラーに */
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 2px solid #eee; /* 下線で区切り */
    padding-bottom: 10px;
}

/* Homeセクションの動画コンテナ */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9のアスペクト比を維持 */
    height: 0;
    overflow: hidden;
    margin: 30px auto;
    max-width: 800px; /* 動画の最大幅 */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px; /* 動画の角も丸く */
}

/* SNSリンクのスタイル */
.sns-links {
    list-style: none;
    padding: 0;
    text-align: center;
    margin-top: 30px;
}

.sns-links li {
    display: inline-block;
    margin: 0 10px;
}

.sns-links li a {
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 10px;
    border: 1px solid #87CEEB;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sns-links li a:hover {
    background-color: #87CEEB;
    color: #fff;
}

/* フッター */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #333; /* ダークな背景 */
    color: #fff; /* 白い文字 */
    font-size: 0.9em;
}

/* レスポンシブ対応の基本的な設定 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    header nav ul li {
        margin: 0 8px;
    }
    section {
        padding: 20px;
    }
    section h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    header nav ul li {
        display: block; /* スマホでは縦並び */
        margin: 5px 0;
    }
    section {
        padding: 15px;
    }
    .sns-links li {
        display: block;
        margin-bottom: 10px;
    }
}

/* Worksページ - 楽曲一覧表示のスタイル */
.works-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3列程度で自動調整 */
    gap: 20px; /* アイテム間の余白 */
    margin-top: 30px;
}

.music-item-summary {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden; /* 角丸に合わせて画像をクリップ */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* ホバー時のアニメーション */
    text-align: center;
}

.music-item-summary:hover {
    transform: translateY(-5px); /* 少し上に浮き上がる */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* 影を濃くする */
}

.music-item-summary a {
    display: block; /* リンク全体をブロック要素にする */
    text-decoration: none;
    color: inherit; /* 親要素の文字色を継承 */
    padding: 15px; /* 内側の余白 */
}

.music-item-summary .thumbnail-container {
    margin-bottom: 10px;
}

.music-item-summary .thumbnail-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px; /* サムネイルの角も少し丸く */
}

.music-item-summary h3 {
    font-family: 'Noto Sans JP', sans-serif; /* 本文と同じフォントで読みやすく */
    font-size: 1.2em;
    margin: 0 0 5px;
    color: #333; /* 楽曲タイトル色 */
}

.music-item-summary .music-release-date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 0;
}


/* モーダルウィンドウのスタイル */
.modal {
    display: none; /* デフォルトで非表示 */
    position: fixed; /* 固定位置 */
    z-index: 1000; /* 最前面に表示 */
    left: 0;
    top: 0;
    width: 100%; /* 全幅 */
    height: 100%; /* 全高 */
    overflow: auto; /* コンテンツがはみ出したらスクロール */
    background-color: rgba(0,0,0,0.7); /* 半透明の黒い背景 */
    display: flex; /* 中央寄せのため */
    align-items: center; /* 垂直方向中央寄せ */
    justify-content: center; /* 水平方向中央寄せ */
    opacity: 0; /* 最初は透明 */
    visibility: hidden; /* 最初は不可視 */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* 表示時のアニメーション */
}

.modal.active {
    opacity: 1; /* 表示時は不透明 */
    visibility: visible; /* 表示時は可視 */
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* flexアイテムの中央寄せ */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* 幅 */
    max-width: 900px; /* 最大幅 */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative; /* 閉じるボタンの配置用 */
    max-height: 90vh; /* 高さの最大値をビューポートの90%に制限 */
    overflow-y: auto; /* 内容がはみ出したらスクロール */
    transform: translateY(-20px); /* 最初は少し上に */
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0); /* 表示時は元に戻す */
}

.modal-content h3 {
    font-family: 'Hachi Maru Pop', cursive;
    color: #87CEEB;
    text-align: center;
    margin-top: 0;
    font-size: 1.8em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-content p, .modal-content h4 {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
}

.modal-content .video-container, .modal-content .audio-player {
    margin: 20px auto;
    max-width: 700px; /* モーダル内の動画/音声プレイヤーの最大幅 */
}

.modal-content .links {
    text-align: center;
    margin-top: 20px;
}

.modal-content .links p a {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 15px;
    border: 1px solid #87CEEB;
    border-radius: 5px;
    color: #87CEEB;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.modal-content .links p a:hover {
    background-color: #87CEEB;
    color: #fff;
}

.modal-content .lyrics {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 0.95em;
    /*white-space: pre-wrap; /* 歌詞の改行を保持 */
}


/* 閉じるボタン */
.close-button {
    color: #aaa;
    float: right; /* 右上に配置 */
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
}

/* レスポンシブ対応 - モーダル */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 20px;
    }
    .modal-content h3 {
        font-size: 1.5em;
    }
    .modal-content .video-container, .modal-content .audio-player {
        margin: 15px auto;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    .modal-content h3 {
        font-size: 1.3em;
    }
    .close-button {
        font-size: 24px;
        top: 5px;
        right: 10px;
    }
}

/*Profilrページ*/
#profile{
    text-align: center;
}

/*Contact*/
#contact{
    text-align: center;
}

/* Blogページ - 記事一覧表示のスタイル */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3列程度で自動調整 */
    gap: 20px; /* アイテム間の余白 */
    margin-top: 30px;
}

.blog-item-summary {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* ブログは左寄せが自然 */
}

.blog-item-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.blog-item-summary a {
    display: block; /* リンク全体をブロック要素にする */
    text-decoration: none;
    color: inherit; /* 親要素の文字色を継承 */
    padding: 15px; /* 内側の余白 */
}

.blog-item-summary h3 {
    font-family: 'Noto Sans JP', sans-serif; /* 本文と同じフォントで読みやすく */
    font-size: 1.2em;
    margin: 0 0 5px;
    color: #333; /* 記事タイトル色 */
}

.blog-item-summary .blog-date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

.blog-item-summary p {
    font-size: 1em;
    color: #555;
    margin-bottom: 0;
    /* 概要は省略される可能性があるので、高さを制限することも検討 */
    /* display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden; */
}

/* モーダル内のブログ記事コンテンツスタイル */
.modal-content .blog-post-content {
    margin-top: 20px;
    line-height: 1.8;
}

.modal-content .blog-post-content img {
    max-width: 100%;
    height: auto;
    display: block; /* 中央寄せのためにブロック要素に */
    margin: 20px auto; /* 上下20px、左右中央 */
    border-radius: 8px; /* 画像の角を丸く */
}

/* セクションのフェードインアニメーション */
/* セクションのフェードインアニメーション */
section {
    opacity: 0; /* 初期状態は透明 */
    transform: translateY(20px); /* 初期状態は少し下にずらす */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* 0.8秒かけてアニメーション */
}

section.fade-in {
    opacity: 1; /* フェードイン後は不透明 */
    transform: translateY(0); /* 元の位置に戻る */
}