/*全体の設定*/
body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif; /*こだわりのフォント*/
    background-color: #ffffff;
    color: #000000;
    position: relative;
}

main {
    padding: 50px;
    transition: 0.3s;
    position: relative;
    z-index: 2;
}

.content {
    border-bottom:1px solid #000;
}

/*サイドバーが開いたとき、mainを左に寄せる*/
main.shifted {
    transform: translateX(-250px);
}

/*円*/
.bg-shapes {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-shapes::before,
.bg-shapes::after {
    content:"";
    position: absolute;
    border-radius: 50%;
    background: #eaeaea;
}

.bg-shapes::before {
    width: 600px;
    height: 600px;
    top: -150px;
    left: -150px;
}

.bg-shapes::after {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 15%;
}

/*円を浮遊させる*/
@keyframes float {
    0% {transform: translateY(0);}
    50% {transform: translateY(-20px);}
    100% {transform: translateY(0);}
}

.bg-shapes::before {
    animation:
        fadeInFloat 2s ease forwards,
        float 12s ease-in-out infinite;
}

.bg-shapes::after {
    animation:
        fadeInFloat 2s ease forwards,
        float 18s ease-in-out infinite reverse;
}

@keyframes fadeInFloat {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*幾何学的な装飾（背景にうっすらグリッド)*/
.bg-grid {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#ccc 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none; /*クリックイベントを透過*/
}

/*ヘッダー*/
header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(197, 217, 233, 0.6);
    padding: 20px 40px;
}

header h1 {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

header::after {
    content: "";
    display: block;
    width: 480px;
    height: 1px;
    background: rgba(0, 0, 0, 1);
    margin-top: 2px;
}

/*音楽プレイヤーのカード*/
.music-card {
    border: 1px solid #000;
    padding: 20px;
    margin-top: 10px;
    display: inline-block;
    background-color: #fff; /*背景を白に*/
    position: relative; 
    z-index: 2;
    bottom: 10px;
}

/*右端のメニューボタン*/
#menu-toggle {
    position: fixed;
    top: 25px;
    right: 25px;
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 999;

    transition: opacity 0.1s ease; /*フェードアウト*/
}

#menu-toggle.hidden {
    opacity: 0;
    pointer-events: none; /* 消えている間クリック不可 */
}


/*サイドバー（最初は隠れている）*/
#sidebar {
    position: fixed;
    top: 0;
    right: -250px; /*右に隠す*/
    width: 250px;
    height: 100%;
    background: #000;
    color: #fff;
    transition: right 0.3s ease;
    padding-top: 60px;
    z-index: 1000;
    overflow-y: auto; /*スクロール可能に*/
}

/*メニューが開いた時のクラス*/
#sidebar.active {
    right: 0;
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar ul li a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: background 0.2s; /*スムーズに*/
}

#sidebar ul li a:hover {
    background: #333;
}

/*オーバーレイ(オプション：背景を暗く)*/
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 998;
}

#overlay.active {
    opacity: 1;
    visibility: visible;
}

/*Log*/
/*Log全体*/
.log {
    position: relative;
    z-index: 2;
}

/*記事*/
.log-entry {
    padding: 4px 0;
    border-bottom: 1px solid #000;
}

/*タイトル*/
.log-title,
.log-date {
    padding: 2px 20px;
}

.log-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
}

/*日付*/
.log-date {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

/*本文*/
.log-body {
    padding: 2px 40px;
    max-width: 600px;
    font-size: 14px;
    line-height: 1.5;
}

.log-entry.latest {
    background: rgba(0,0,0,0.08);
}

/*ブログ用*/
.log-iframe {
    display: block;
    padding: 0px;
    width: 100%;
    max-width: 100vw;
    height: 80px;
    min-height: 150px;
    margin: 0;
    border: none;
}