/* 基本設定とモノクロテーマ */
body {
    background-color: #0a0a0a;
    /* より深い黒に近い背景 */
    color: #cccccc;
    /* 少し抑えた明るさのテキスト */
    font-family: 'Arial', 'Helvetica Neue', 'Hiragino Sans', 'メイリオ', Meiryo, sans-serif;
    /* フォント候補 */
    margin: 0;
    padding: 0;
    line-height: 1.7;
    overflow-x: hidden;
    /* 横スクロールバーが出ないように */
}

.main-content {
    padding: 40px;
    /* 上下の余白を多めに */
    padding-left: 100px;
    /* 左下ナビのスペースを多めに確保 (ナビの実際の幅に合わせて調整) */
    min-height: 100vh;
    /* 少なくとも画面の高さいっぱいに広がるように */
    box-sizing: border-box;
    /* paddingを含めて高さを計算 */
}

/* 左下固定ナビゲーション */
.global-nav {
    position: fixed;
    left: 15px;
    /* 画面左からの距離 */
    bottom: 15px;
    /* 画面下からの距離 */
    background-color: rgba(20, 20, 20, 0.6);
    /* 背景を少し透明に */
    padding: 8px 5px;
    /* 少しゆとりを持たせる */
    border-radius: 5px;
    z-index: 1000;
    backdrop-filter: blur(3px);
    /* 背景をぼかす効果 (対応ブラウザのみ) */
}

.global-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.global-nav li a {
    display: block;
    color: #bbbbbb;
    text-decoration: none;
    font-size: 11px;
    /* さらに小さく */
    padding: 4px 10px;
    letter-spacing: 0.5px;
    /* 文字間隔を少し空ける */
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 3px;
}

.global-nav li a:hover,
.global-nav li a.active {
    /* 現在のページを示すactiveクラス（後でJSで付与）*/
    color: #ffffff;
    background-color: rgba(200, 200, 200, 0.15);
}

/* 見出しなどの基本スタイル (仮) */
h1,
h2,
h3 {
    color: #e0e0e0;
    font-weight: normal;
    /* 少し軽めに */
    letter-spacing: 1px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.8em;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 0.6em;
}

p {
    margin-bottom: 1.2em;
}

a {
    color: #8ab4f8;
    /* リンク色を少し明るく */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ARCHIVES Page Styles */
.archive-grid {
    display: grid;
    /* 画面幅に応じて列数を変更 (レスポンシブ対応の第一歩) */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* 最小280px幅で、入るだけ列を作る */
    gap: 35px;
    /* アイテム間の溝 */
    padding-top: 20px;
}

.archive-item {
    background-color: #161616;
    /* カードの背景色を少し調整 */
    border: 1px solid #282828;
    /* 枠線を少しつける */
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #cccccc;
    display: flex;
    /* Flexboxを使って中の要素を縦に並べる */
    flex-direction: column;
    /* 縦方向に要素を配置 */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.archive-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: #444;
}

.archive-item img {
    width: 100%;
    height: 200px;
    /* サムネイルの高さを固定 (要調整) */
    object-fit: cover;
    /* アスペクト比を保ちつつ、はみ出す部分はトリミング */
    display: block;
}

.archive-item h3 {
    font-size: 1.1em;
    margin: 0;
    padding: 18px 20px;
    /* タイトルの上下左右の余白 */
    text-align: left;
    /* タイトルを左寄せに */
    color: #e0e0e0;
    flex-grow: 1;
    /* 画像以外の残りの高さをタイトル部分が埋めるように */
    display: flex;
    align-items: center;
    /* タイトルを垂直方向中央に (複数行の場合) */
}

/* ページ全体のフェードインアニメーション */
.fade-in {
    animation: fadeInPage 0.7s ease-out forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(15px);
        /* 少し下から現れる */
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ARCHIVE DETAIL Page Styles */
.detail-container {
    max-width: 760px; /* コンテンツ全体の幅を少し調整 */
    margin: 20px auto 40px auto; /* 上下の余白、左右中央寄せ */
    background-color: #101010; /* 背景色を少し変える */
    padding: 35px 45px; /* 内側の余白を多めに */
    border-radius: 10px; /* 角を少し丸く */
    border: 1px solid #222; /* 枠線 */
    box-shadow: 0 5px 25px rgba(0,0,0,0.3); /* 影を少しつける */
}

.detail-thumbnail-img {
    width: 100%;
    max-width: 450px; /* サムネイルの最大幅を調整 */
    height: auto; /* 高さは自動 */
    border-radius: 6px; /* 画像の角丸 */
    margin-bottom: 30px; /* 画像下の余白 */
    display: block; /* 中央寄せのため */
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #383838;
}

.detail-container h2 { /* 作品タイトル (#detail-title) */
    font-size: 2.4em; /* タイトルサイズを少し大きく */
    text-align: center; /* 中央寄せ */
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333; /* 下線 */
}

.detail-meta { /* 制作時期など (#detail-date を含むpタグ) */
    font-size: 0.95em;
    color: #b0b0b0; /* 文字色を少し調整 */
    text-align: center; /* 中央寄せ */
    margin-bottom: 25px;
}

.detail-description {
    margin-bottom: 30px;
}

.detail-description p { /* 説明文 (#detail-description-text) */
    font-size: 1.0em; /* 説明文のフォントサイズ */
    line-height: 1.9; /* 行間を少し広めに */
    color: #c5c5c5;
    white-space: pre-wrap; /* テキストデータ内の改行をそのまま表示 */
}

.detail-action-link { /* 作品へのリンクボタン (#detail-link) */
    display: block; /* ブロック要素にして幅いっぱいにする */
    width: fit-content; /* 中身のテキストに合わせた幅に */
    max-width: 300px; /* 最大幅 */
    margin: 30px auto 10px auto; /* 上下左右中央に配置 */
    background-color: #789bf0; /* ボタンの色を少し調整 */
    color: #000000;
    padding: 12px 25px;
    border-radius: 6px;
    text-align: center; /* ボタン内テキストを中央に */
    font-weight: bold;
    font-size: 1.0em;
    transition: background-color 0.2s ease-out, transform 0.2s ease-out;
}

.detail-action-link:hover {
    background-color: #8fb0ff;
    transform: scale(1.03); /* 少し拡大する */
    text-decoration: none;
}

.back-to-archives {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
}