@charset "UTF-8";

/* =========================================
   Base & Reset
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* テーマカラー設定 */
    --bg-color: #faf8f8;        /* 少し温かみのある白 */
    --text-color: #4a4446;      /* 柔らかいチャコールグレー */
    --link-color: #a48c95;      /* 落ち着いたピンクブラウン */
    --link-hover: #FA88C1;      /* 元サイトのピンク */
    
    /* 各メニューのアクセントカラー（元サイトの色をパステル調に調整） */
    --color-pict: #a7d163;      /* yellowgreen系 */
    --color-book: #f3aa51;      /* orange系 */
    --color-memo: #f2d129;      /* yellow系 */
    --color-link: #5cb85c;      /* green系 */
    --color-mail: #87ceeb;      /* skyblue系 */
    --color-clap: #d8a0f5;      /* purple系 */
    
    --border-color: #e8dadd;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Shippori Mincho', serif; /* 明朝体で夢小説サイトらしさを */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* スマホの下部メニュー分の余白を確保 */
    padding-bottom: 70px; 
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--link-hover);
}

/* =========================================
   Layout & Components
   ========================================= */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header --- */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.hero-image {
    width: 100%;
    max-width: 760px; /* カウンター枠と幅を合わせる */
    margin: 0 auto 20px auto; /* 中央寄せ */
    border-radius: 12px; /* カウンター枠と同じ角丸 */
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.hero-image img {
    width: 100%;
    max-height: 400px; /* 高くなりすぎないように制限 */
    object-fit: cover;
    display: block;
}

.site-title-area h1 {
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    color: var(--text-color);
    margin-bottom: 5px;
}

.site-title-area .subtitle {
    font-size: 0.9rem;
    color: #999;
    letter-spacing: 0.2em;
}

/* --- Info Section (Update & Counter) --- */
.info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.counter-box {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #777;
}

.update-box {
    display: flex;
    gap: 15px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.badge-alert {
    border-color: #ffb3c6;
    color: #d15c7a;
    background: #fff0f3;
}
.badge-alert .material-symbols-outlined { color: #d15c7a; }

.badge-update {
    border-color: #bde0fe;
    color: #5c9ead;
    background: #f1f8ff;
}
.badge-update .material-symbols-outlined { color: #5c9ead; }

/* --- Desktop Navigation --- */
.desktop-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.nav-item .material-symbols-outlined {
    font-size: 2rem;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.nav-item:hover .material-symbols-outlined {
    transform: scale(1.1);
}

/* Nav Colors */
.color-pict .material-symbols-outlined { color: var(--color-pict); }
.color-book .material-symbols-outlined { color: var(--color-book); }
.color-memo .material-symbols-outlined { color: var(--color-memo); }
.color-link .material-symbols-outlined { color: var(--color-link); }
.color-mail .material-symbols-outlined { color: var(--color-mail); }
.color-clap .material-symbols-outlined { color: var(--color-clap); }

/* --- Links Section --- */
.links-section {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.rank-box {
    margin-bottom: 15px;
}

.rank-box h2 {
    font-size: 1rem;
    font-weight: normal;
    color: #777; /* 少し濃くして視認性アップ */
    margin-bottom: 5px;
}

/* ランクのリンクを分かりやすく */
.rank-box a {
    color: var(--link-hover);
    text-decoration: underline;
    text-decoration-color: #e8dadd;
    text-underline-offset: 4px;
    font-weight: bold;
}

.alliance-box {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 10px 20px 30px;
    font-size: 0.85rem;
    color: #999;
}

.footer .since {
    color: var(--link-hover);
    margin-bottom: 5px;
}

.footer .m { color: var(--color-link); }
.footer .r { color: var(--color-pict); }

/* --- News / Info Board --- */
.news-board {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border: 1px dashed var(--link-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
    line-height: 1.8;
}

/* =========================================
   Novel Book Page (カード型)
   ========================================= */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}
.page-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    background: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.novel-category {
    margin-bottom: 40px;
}
.genre-title {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
    margin-top: 20px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.novel-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}
.novel-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}
.novel-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* 共通：タグのスタイル */
.novel-tags {
    margin-bottom: 8px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: sans-serif;
}
.tag-completed { background: #eee; color: #666; border: 1px solid #ddd;}
.tag-writing { background: #e3f2fd; color: #1976d2; border: 1px solid #bbdefb;}
.tag-target { background: #fff0f3; color: #d15c7a; border: 1px solid #ffb3c6; }
.tag-closed { background: #fff; color: #d15c7a; border: 1px solid #ffb3c6; }

.no-link {
    opacity: 0.6;
    filter: grayscale(100%);
    cursor: default !important;
}

.orika-link {
    margin-top: 10px;
    padding-left: 5px;
    font-size: 0.85rem;
    color: #888;
}

.orika-link a {
    color: #F08080;
    text-decoration: underline;
}

.novel-desc {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.5;
}

/* =========================================
   Link Page
   ========================================= */
.link-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.section-title {
    font-size: 1.4rem;
    border-bottom: 2px dashed var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.link-list {
    list-style: none;
}
.link-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.link-list li a {
    font-weight: bold;
    color: var(--link-hover);
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-underline-offset: 4px;
    margin-right: 15px;
}
.link-desc {
    font-size: 0.9rem;
    color: #666;
}

.about-desc {
    line-height: 1.8;
    margin-bottom: 20px;
}
.about-desc small {
    color: #999;
}

.site-info-box {
    background: #faf8f8;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--color-pict);
}
.site-info-box p {
    margin-bottom: 5px;
}
.copy-url {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-family: monospace;
}

.banner-box {
    margin-top: 25px;
    text-align: center;
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
}
.warning-text {
    color: #d15c7a;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.banners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    line-height: 1.5;
}

.material-list {
    line-height: 1.8;
}
.material-list a {
    color: var(--color-mail);
    text-decoration: underline;
    text-decoration-color: #dcf2fa;
    text-underline-offset: 4px;
}

.sleep-section {
    opacity: 0.8;
}

/* =========================================
   Bottom Navigation (Mobile App Style)
   ========================================= */
.bottom-nav {
    display: none; /* デスクトップでは非表示 */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    /* iOSのセーフエリア対応 */
    padding-bottom: env(safe-area-inset-bottom);
}

.b-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: #888;
    font-size: 0.7rem;
    font-family: sans-serif; /* 小さい文字は視認性のためsans-serif */
}

.b-nav-item .material-symbols-outlined {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.b-nav-item:active {
    background-color: rgba(0,0,0,0.02);
}

/* =========================================
   Media Queries (Responsive)
   ========================================= */
@media (max-width: 768px) {
    /* PC用メニューを非表示 */
    .desktop-nav {
        display: none;
    }
    
    /* スマホ用ボトムナビを表示 */
    .bottom-nav {
        display: flex;
    }
    
    .hero-image {
        border-radius: 0 0 20px 20px;
        margin-top: -20px; /* 余白を詰める */
    }
}

/* =========================================
   Password Gate Page (クッションページ)
   ========================================= */
.gate-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 20px;
}

.gate-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.gate-icon {
    font-size: 3rem;
    color: var(--link-hover);
    margin-bottom: 20px;
}

.gate-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: normal;
}

.gate-hint {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
    text-align: left;
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--link-color);
}

.gate-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gate-input-wrapper {
    position: relative;
}

.gate-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--bg-color);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    text-align: center;
    letter-spacing: 0.1em;
}

.gate-input:focus {
    border-color: var(--link-hover);
    box-shadow: 0 0 0 3px rgba(250, 136, 193, 0.15);
    background: #fff;
}

.gate-submit {
    background: var(--link-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-family: 'Shippori Mincho', serif;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gate-submit:hover {
    background: var(--link-hover);
}

.gate-submit:active {
    transform: scale(0.98);
}

.gate-error {
    color: #d15c7a;
    font-size: 0.85rem;
    margin-top: 10px;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gate-error.show {
    opacity: 1;
}

/* 鍵付きカード用のバッジ/タグ追加 */
.tag-lock {
    background: #fff5f5;
    color: #e53e3e;
    border: 1px solid #fed7d7;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.tag-lock .material-symbols-outlined {
    font-size: 0.95rem;
}

