/* ======================================================
   共通CSS — PANDORA風デザイン
   ====================================================== */

/* --- テーマ変数（white = デフォルト） --- */
:root {
    --bg-color: #ffffff;
    --bg-secondary: #f7f8fa;
    --text-color: #2c2c2c;
    --text-secondary: #777777;
    --accent-color: #003040;
    --accent-hover: #004d66;
    --border-color: #e0e0e0;
    --header-bg: #003040;
    --header-text: #ffffff;
    --link-color: #005a78;
    --tag-bg: #e8f4f8;
    --tag-text: #003040;
    --highlight-bg: #fff9c4;
    --like-color: #e91e63;
    --badge-bg: #e91e63;
    --badge-text: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-hover: 0 6px 16px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
    --transition: 0.25s ease;
}

/* --- リセット --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
    background: var(--bg-secondary);
    color: var(--text-color);
    line-height: 1.8;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* --- ヘッダー（ロゴバー） --- */
.site-header {
    background: var(--bg-color);
    color: var(--text-color);
    border-top: 6px solid var(--accent-color);
}
.header-logo-bar {
    padding: 30px 0;
    text-align: center;
}
.site-logo {
    max-height: 80px;
    width: auto;
    display: block;
    margin: 0 auto;
}
.site-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
}
.site-title a {
    color: var(--accent-color);
    text-decoration: none;
}

/* --- グローバルメニュー --- */
.global-nav {
    background: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding-bottom: 2.5rem;
}
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}
.mobile-search-bar {
    display: none;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-color);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span {
    background: var(--text-color) !important;
}
.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.global-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
}
.global-nav a {
    display: block;
    padding: 0.5rem 1.8rem;
    color: var(--text-color);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.global-nav a i {
    color: #ccc;
}
.global-nav a:hover {
    color: var(--accent-color);
    background: var(--bg-secondary);
}
.nav-user-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.nav-user-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--border-color);
    vertical-align: middle;
}

/* グローバルメニュー内検索 */
.nav-search {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
}
.nav-search input {
    width: 140px;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.82rem;
    background: var(--bg-secondary);
    color: var(--text-color);
    transition: width var(--transition), border-color var(--transition);
}
.nav-search input:focus {
    width: 200px;
    outline: none;
    border-color: var(--accent-color);
}
.nav-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 0 0 4px;
    color: var(--text-secondary);
}

.badge {
    background: var(--badge-bg);
    color: var(--badge-text);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0 5px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    display: inline-block;
}

/* --- メインコンテンツ --- */
.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* --- フッター --- */
.site-footer {
    background: var(--header-bg);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.82rem;
    margin-top: 2rem;
}
.site-footer a { color: rgba(255,255,255,0.8); }

/* --- 広告ユニット --- */
.ad-unit {
    text-align: center;
    clear: both;
    margin: 1.5rem 0 !important;
}
.ad-unit:empty { display: none; }
.top-col-left > .ad-unit:first-child,
.top-col-right > .ad-unit:first-child {
    margin-top: 0 !important;
}

/* --- カード共通 --- */
.post-node, .post-item, .thread-list-item, .notification-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.post-node:hover, .post-item:hover {
    box-shadow: var(--shadow-hover);
}

/* --- 投稿ノード（ツリー表示） --- */
.post-node {
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.post-node.post-child {
    margin-left: 2rem;
    background: none;
    border: none;
    border-radius: 0;
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 0;
}
.post-node.post-child:hover {
    box-shadow: none;
}
.post-children {
    margin-top: 0.5rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

/* --- 投稿アイテム --- */
.post-item {
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}
.post-item.post-highlight {
    background: var(--highlight-bg);
    border-color: #f9a825;
}

/* --- 投稿共通パーツ --- */
.post-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.post-author {
    font-weight: 600;
    color: var(--text-color);
}
.post-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
    object-fit: cover;
}
.post-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.post-permalink {
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.poster-id {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: monospace;
    opacity: 0.7;
}
.post-body {
    margin-bottom: 0.75rem;
    line-height: 1.9;
    word-break: break-word;
}
.post-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.post-images img {
    max-height: 200px;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: transform var(--transition), box-shadow var(--transition);
}
.post-images img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}
.photo-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    position: relative;
}
.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.photo-thumb:hover img {
    transform: scale(1.08);
}
.post-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.tag {
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    transition: opacity var(--transition);
}
.tag:hover { text-decoration: none; opacity: 0.75; }

.post-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}
.post-actions button {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 14px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.post-actions button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--tag-bg);
}
.btn-like.liked {
    color: var(--like-color);
    border-color: var(--like-color);
    background: #fce4ec;
}
.reply-count {
    color: var(--text-secondary);
}

/* --- 投稿フォーム --- */
.post-form {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-color);
    box-shadow: var(--shadow);
}
.post-form h3 {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--accent-color);
}
.form-group {
    margin-bottom: 0.85rem;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-secondary);
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0,48,64,0.08);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.form-group input[type="file"] {
    font-size: 0.88rem;
}
.btn-submit {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    letter-spacing: 0.02em;
}
.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,48,64,0.2);
    color: #fff;
}

/* --- 登録メリット --- */
.register-benefits {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 480px;
    box-shadow: var(--shadow);
}
.register-benefits > p {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.register-benefits ul {
    margin: 0 0 0.75rem 1.2rem;
    padding: 0;
    line-height: 1.9;
    font-size: 0.9rem;
}
.register-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* --- 確認テーブル --- */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.confirm-table th,
.confirm-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}
.confirm-table th {
    width: 130px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    background: var(--bg-secondary);
}

/* --- パスワード要件リスト --- */
.password-rules {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 2px 0 6px 1.2rem;
    padding: 0;
    line-height: 1.7;
}
.password-rules code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* --- 通知 --- */
.notification-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
}
.notification-item:hover { background: var(--bg-secondary); text-decoration: none; box-shadow: var(--shadow); }
.notification-item.unread { background: var(--tag-bg); border-color: var(--accent-color); }
.notification-icon img,
.notification-icon span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    object-fit: cover;
}
.notification-body p { margin: 0; font-size: 0.9rem; }
.notification-body time { font-size: 0.75rem; color: var(--text-secondary); }
.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

/* --- エラー/成功メッセージ --- */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert-error {
    background: #fff5f5;
    color: #c62828;
    border: 1px solid #fecdd3;
}
.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* --- ページネーション --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}
.pagination a,
.pagination .page-current {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all var(--transition);
    color: var(--text-color);
}
.pagination a:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.page-current {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    font-weight: 700;
}

/* --- 検索フォーム --- */
.search-form {
    margin-bottom: 1.5rem;
}
.search-box {
    display: flex;
    gap: 0.5rem;
}
.search-box input[type="text"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--bg-color);
}
.search-box input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0,48,64,0.08);
}
.search-advanced {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--radius);
    display: none;
}
.search-advanced.open { display: block; }
.search-advanced .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* --- 人気投稿エリア --- */
.popular-posts {
    margin-bottom: 2rem;
}
.popular-posts h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

/* --- スレッド/イベント一覧 --- */
.thread-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.6rem;
    text-decoration: none;
    color: var(--text-color);
}
.thread-list-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--text-color);
}
.thread-title {
    font-weight: 600;
    font-size: 1.02rem;
}
.thread-meta {
    color: var(--text-secondary);
    font-size: 0.82rem;
    text-align: right;
    white-space: nowrap;
    min-width: 80px;
}

/* --- YouTube埋め込み --- */
.youtube-embed {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0.5rem 0;
}
.youtube-embed iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: var(--radius);
}

/* --- 見出し共通 --- */
h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
}
h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* --- ヒーローセクション（全幅画像） --- */
.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 1rem;
    top: -2rem;
    height: 300px;
    overflow: hidden;
    background: var(--accent-color);
}
.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.05) 100%);
}
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: center;
    right: 0;
    padding: 2.5rem;
    color: #fff;
    max-width: var(--max-width);
    margin: 0 auto;
}
.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-sub {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
.hero .btn-submit {
    background: #fff;
    color: var(--accent-color);
    font-weight: 700;
    padding: 12px 32px;
}
.hero .btn-submit:hover {
    background: #f0f0f0;
    color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.btn-hero-secondary {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 9999px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

/* --- 3カラム トップグリッド --- */
.top-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    margin-bottom: 2.5rem;
}

/* カラム見出し */
.col-heading-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}
.col-heading-row .col-heading {
    margin: 0;
    padding: 0;
    border: none;
}
.col-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}
.col-more {
    font-size: 0.8rem;
    white-space: nowrap;
}

/* 左カラム：大会カード */
.card-large {
    display: block;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition);
}
.card-large:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
    color: var(--text-color);
}
.card-large-tags { display: flex; gap: 0.4rem; margin-bottom: 0.4rem; }
.card-large-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; line-height: 1.4; }
.card-large-date { font-size: 0.85rem; font-weight: 600; color: var(--accent-color); margin-bottom: 0.2rem; }
.card-large-meta { font-size: 0.78rem; color: var(--text-secondary); }

/* 中央カラム：写真グリッド */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 1.25rem;
}
.photo-thumb {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    display: block;
}
.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.photo-thumb:hover img { transform: scale(1.08); }
.photo-thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3px 6px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 中央カラム：新着投稿 */
.latest-item {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: background var(--transition);
}
.latest-item:first-of-type { border-top: 1px solid var(--border-color); }
.latest-item:hover { background: var(--bg-secondary); }
.latest-item-body {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.latest-item-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.latest-item-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

/* 右カラム */
.top-col-right { align-self: start; }
.card-large-rank {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.3rem;
}

/* --- セクション共通 --- */
.section { margin-bottom: 2.5rem; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent-color);
}
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}
.section-more {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}


/* --- 投稿フォーム アコーディオン --- */
.post-form-accordion {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-color);
    box-shadow: var(--shadow);
}
.post-form-toggle {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--accent-color);
    list-style: none;
}
.post-form-toggle::-webkit-details-marker { display: none; }
.post-form-toggle::before {
    content: '＋';
    margin-right: 0.5rem;
    font-weight: 400;
}
.post-form-accordion[open] .post-form-toggle {
    border-bottom: 1px solid var(--border-color);
}
.post-form-accordion[open] .post-form-toggle::before {
    content: '－';
}

/* --- コースマップ --- */
.map-container {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}
.map-container iframe {
    width: 100%;
    height: 480px;
    border: none;
    display: block;
}

/* --- おすすめアイテム --- */
.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.item-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.item-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.item-card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-secondary);
}
.item-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.item-card:hover .item-card-img img { transform: scale(1.05); }
.item-card-body { padding: 1rem; }
.item-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}
.item-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.6rem;
}
.item-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.item-card-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
}

.event-list-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-right: 1rem;
}
.top-col-left .thread-list-item { align-items: flex-start; }
.top-col-left .event-list-left {
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.top-col-left .event-distance-badge { width: 75px; padding: 5px 8px; }
.top-col-left .event-distance-num { font-size: 1.3rem; }
.top-col-left .event-distance-unit { font-size: 0.6rem; }
.top-col-left .event-info-badges { width: 75px; }
.event-distance-badge {
    width: 90px;
    text-align: center;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px 14px;
    flex-shrink: 0;
}
.event-distance-num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}
.event-info-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    width: 65px;
}
.event-pref-badge {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    white-space: nowrap;
    font-weight: 700;
    padding: 3px 6px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    line-height: 1.2;
}
.event-season-badge {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 400;
    padding: 3px 6px;
    border-radius: 4px;
    color: #fff;
    line-height: 1.2;
}
.event-season-春 { background: #e91e90; }
.event-season-夏 { background: #2ecc71; }
.event-season-秋 { background: #e67e22; }
.event-season-冬 { background: #3498db; }
.event-distance-unit {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 1px;
}

.thread-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.btn-post-new {
    font-size: 1rem;
    padding: 10px 28px;
    white-space: nowrap;
    background: #f08c00;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .hero { height: 250px; }
    .hero-title { font-size: 1.5rem; }
    .header-logo-bar {
        padding: 10px 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .site-logo { max-height: 45px; }
    .site-title { margin: 0; }
    .nav-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        border: 1px solid #e0e0e0;
        border-radius: var(--radius);
        padding: 8px 10px;
    }
    .nav-hamburger span {
        background: #aaa !important;
        width: 18px !important;
        height: 2px !important;
        margin: 3px 0 !important;
    }
    .global-nav { padding-bottom: 0; min-height: 12px; background: none; }
    .global-nav-inner {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
    }
    .global-nav-inner.open { display: flex; }
    .global-nav a {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border-color);
    }
    .global-nav a:first-child {
        border-top: 1px solid var(--border-color);
    }
    .global-nav .nav-search { display: none; }
    .mobile-search-bar {
        display: block;
        padding: 0.5rem 1rem;
        background: var(--bg-secondary);
    }
    .mobile-search-bar form {
        display: flex;
        gap: 0.5rem;
    }
    .mobile-search-bar input {
        flex: 1;
        padding: 8px 12px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        font-size: 0.9rem;
    }
    .mobile-search-bar button {
        padding: 8px 12px;
        background: #f0f0f0;
        color: var(--text-color);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        cursor: pointer;
    }
    .top-grid { grid-template-columns: 1fr; margin-bottom: 0; }
    .top-col-center { order: -1; }
    .top-col-left { order: 0; }
    .top-col-right { order: 1; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .items-grid { grid-template-columns: 1fr; }
    .site-main { padding: 1.25rem 1rem; }
    .header-inner { height: auto; padding: 0.6rem 0; flex-wrap: wrap; gap: 0.4rem; }
    .header-nav { gap: 0.75rem; font-size: 0.82rem; }
    .post-node.post-child { margin-left: 0; }
    .post-children { padding-left: 0.75rem; }
    .search-advanced .form-row { grid-template-columns: 1fr; }
    .thread-list-item { padding: 0.85rem 1rem; }
    .event-list-left {
        flex-direction: column;
        align-items: center;
        gap: 3px;
        margin-right: 0.75rem;
    }
    .event-distance-badge { width: 75px; padding: 5px 8px; }
    .event-distance-num { font-size: 1.3rem; }
    .event-distance-unit { font-size: 0.6rem; }
    .event-info-badges { width: 75px; }
    .event-pref-badge { font-size: 0.7rem; padding: 2px 4px; }
    .event-season-badge { font-size: 0.75rem; padding: 3px 4px; }
    .event-distance-num { font-size: 1.3rem; }
    .packing-layout { grid-template-columns: 1fr !important; }
    .thread-header-row { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .btn-post-new { width: 100%; text-align: center; padding: 12px; font-size: 1.05rem; }
    h2 { font-size: 1.2rem; }
}
