@charset "utf-8";

/* --- 1. ページ全体の共通レイアウト設定 --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.archive-page {
    background-color: #fdfdfd;
    display: flex;
    flex-direction: column; /* フッターを下に押し出す設定 */
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: 'Kosugi Maru', sans-serif;
}

/* 背景の丸い装飾 */
body.archive-page::before,
body.archive-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

body.archive-page::before {
    top: 200px; left: 15%; width: 60px; height: 60px;
    background: rgba(159, 213, 165, 0.2);
}

body.archive-page::after {
    top: 250px; right: 10%; width: 40px; height: 40px;
    background: rgba(255, 249, 196, 0.3);
}

/* --- 2. ヘッダーを透明化して固定する --- */
.sticky-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent !important; /* 透明化 */
    box-shadow: none !important;              /* 影を消す */
    z-index: 9999 !important;
}

.sh-inner, .sh-row-top {
    background-color: transparent !important;
}

/* --- 3. メインコンテンツの調整 --- */
main {
    flex: 1; /* コンテンツが少なくてもフッターを下に */
    padding-top: 150px; /* ヘッダーのロゴに被らないよう余白を確保 */
    width: 100%;
    box-sizing: border-box;
}

.archive-container {
    max-width: 900px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

/* ページタイトル */
.page-header { margin-bottom: 60px; position: relative; text-align: center; }
.page-title {
    color: #5a3f2e; font-size: 1.8rem; font-weight: 900;
    display: inline-block; position: relative; padding-bottom: 15px;
}
.page-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100px; height: 5px; background-color: #9fd5a5; border-radius: 3px;
}
.palette-decor { position: absolute; top: -15px; right: -30px; color: #f7a0c1; font-size: 1.8rem; opacity: 0.7; }
.page-lead { color: #888; font-size: 1rem; margin-top: 10px; }

/* --- 4. アーカイブリスト（一行に並べる） --- */
.archive-list {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 0;
}

.archive-item {
    display: flex !important;
    align-items: center !important;
    padding: 20px 25px;
    border-bottom: 1px dotted #e6e6e6;
    text-decoration: none !important;
    color: #333;
    transition: background-color 0.3s;
}

.archive-item:last-child { border-bottom: none; }
.archive-item:hover { background-color: #fafafa; }

.date-label {
    background-color: #9fd5a5 !important;
    color: #fff !important;
    font-weight: bold; font-size: 0.85rem; padding: 5px 12px; border-radius: 5px;
    margin-right: 20px; white-space: nowrap; line-height: 1;
}

.item-title {
    flex: 1;
    font-weight: bold; font-size: 1.05rem; color: #333;
    margin: 0 !important; line-height: 1.5; text-align: left;
}

.item-arrow { color: #ccc; font-size: 1.3rem; margin-left: 15px; transition: 0.3s; }
.archive-item:hover .item-arrow { transform: translateX(5px); color: #9fd5a5; }

/* --- 5. ページネーション & 戻るボタン --- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 40px; }
.page-btn {
    width: 45px; height: 45px; display: flex; justify-content: center; align-items: center;
    text-decoration: none; border-radius: 50%; font-weight: bold; color: #5a3f2e;
    background: #fff; border: 1px solid #eee; transition: 0.3s;
}
.page-btn.active { background-color: #9fd5a5; color: #fff; border-color: #9fd5a5; }
.page-btn.prev-next { width: auto; padding: 0 20px; border-radius: 25px; }

.btn-back-top {
    display: inline-block; margin-top: 30px; text-decoration: none; color: #5a3f2e;
    font-weight: bold; padding: 10px 20px; border-radius: 20px;
}

/* --- 6. フッターの固定修正 --- */
#footer {
    width: 100%;
    background: #fff;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #eee;
    box-sizing: border-box;
}

/* --- 7. レスポンシブ（スマホ対応） --- */
@media (max-width: 768px) {
    main { padding-top: 100px; }
    .archive-item { flex-direction: column; align-items: flex-start; padding: 20px; }
    .date-label { margin-bottom: 12px; }
    .item-arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
    .archive-item:hover .item-arrow { transform: translateY(-50%) translateX(5px); }
}