/*
Theme Name: 出会い掲示板テーマ
Theme URI: https://example.com
Description: 中高年の出会い掲示板サイト専用テーマ（LINEグリーン版）
Author: Custom
Version: 2.0.0
Text Domain: deai-theme
*/

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", sans-serif;
    background: #f0f0f0;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}
a { color: #06C755; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ===== Layout ===== */
#page-wrapper {
    max-width: 740px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 12px rgba(0,0,0,.08);
}

/* ===== Site Header（固定） ===== */
#site-header {
    background: #06C755;
    padding: 8px 16px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 740px;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(6,199,85,.3);
}
/* タイトル行 */
.header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-bottom: 4px;
}
/* カテゴリーナビ */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    width: calc(100% + 32px);
    margin-left: -16px;
    background: rgba(0,0,0,.15);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    padding: 0 8px;
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a {
    display: inline-block;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 7px 12px;
    opacity: .9;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,.2);
    transition: background .15s;
}
.header-nav a:last-child { border-right: none; }
.header-nav a:hover { background: rgba(255,255,255,.15); opacity: 1; text-decoration: none; }
.header-nav a.current-cat,
.header-nav a.current_page_item { background: rgba(255,255,255,.2); opacity: 1; }
#site-header .site-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
    line-height: 1.2;
}
@media (max-width: 480px) {
    #site-header .site-title { font-size: 18px; }
}
#site-header .site-home-link {}
.home-btn {
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.6);
    padding: 2px 10px;
    border-radius: 4px;
    display: inline-block;
    transition: background .15s;
}
.home-btn:hover { background: rgba(255,255,255,.2); text-decoration: none; }

/* ===== エリア選択バー（固定） ===== */
#area-bar {
    background: #e8f9f0;
    border-bottom: 2px solid #06C755;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: fixed;
    top: 0px; /* JSで動的計算 */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 740px;
    z-index: 199;
}
.area-selects {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
#area-bar select {
    padding: 5px 10px;
    border: 1px solid #06C755;
    border-radius: 5px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    color: #333;
    min-width: 130px;
}
#area-bar select:disabled { opacity: .5; cursor: not-allowed; }
/* 登録ボタン（右端固定） */
.entry-btn {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(26,115,232,.4);
    border: none;
    cursor: pointer;
    letter-spacing: .3px;
    transition: transform .15s, box-shadow .15s;
}
.entry-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(26,115,232,.5);
    text-decoration: none;
    color: #fff;
}
.entry-btn:active { transform: translateY(0); }

@media (max-width: 480px) {
    #area-bar { flex-wrap: wrap; }
    .area-selects { flex: 1; min-width: 0; }
    .area-selects select { min-width: 0; flex: 1; font-size: 12px; }
    .entry-btn {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
        padding: 10px;
        font-size: 14px;
        justify-content: center;
    }
}

/* ===== メインコンテンツ ===== */
#main-content {
    padding: 18px 20px 40px;
    padding-top: 160px;
}

/* ===== パンくず ===== */
.site-breadcrumb {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.site-breadcrumb a { color: #06C755; }
.site-breadcrumb .sep { color: #ddd; font-size: 11px; }
.site-breadcrumb .current { color: #555; }

/* ===== ページタイトル ===== */
.entry-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
    border-bottom: 2px solid #06C755;
    padding-bottom: 8px;
}

/* ===== 本文 ===== */
.entry-content { line-height: 1.8; }
.entry-content p { margin-bottom: 1em; }
.entry-content h2 { font-size: 17px; font-weight: 700; margin: 1.4em 0 .7em; border-left: 4px solid #06C755; padding-left: 10px; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1em; }

/* ===== フッター ===== */
#site-footer {
    background: #f9f9f9;
    border-top: 1px solid #eee;
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #aaa;
}

/* ===== SNSシェア ===== */
.share-wrap { margin: 30px 0 10px; text-align: center; }
.share-label { font-size: 12px; color: #bbb; letter-spacing: 2px; margin-bottom: 12px; }
.share-icons { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.share-icon-link { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; font-size: 11px; color: #666; }

/* ===== Responsive ===== */
@media (max-width: 480px) {
    #main-content { padding: 14px 12px 30px; }
    .entry-title { font-size: 16px; }
    #area-bar select { min-width: 110px; font-size: 12px; }
}

/* ===== フロントページ ===== */
.db-front-bc {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 12px;
}
.db-front-bc a {
    color: #06C755;
    text-decoration: none;
}
.db-front-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 14px;
    border-bottom: 2px solid #06C755;
    padding-bottom: 8px;
}
