/*
Theme Name: コトコト、つくる。
Theme URI: https://kotokoto-handmade.com
Author: コトコト制作チーム
Description: ハンドメイド作家さんのためのコミュニティサイト「コトコト、つくる。」のオリジナルテーマ。Design 31（エクリュタイル）採用。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kotokoto
*/

/* ============================================
   DESIGN 31 — エクリュタイル (Écru Tile)
   Design 23（エクリュ）の配色 ×
   Design 21のギャラリーグリッド ×
   Design 13のfade hover（半透明オーバーレイ）
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

:root {
  --bg: #FEFEFC;
  --gold: #C9A96E;
  --gold-light: #E8D9BF;
  --dark: #1A1A1A;
  --muted: #8A8A8A;
  --border: #F0EDE8;
  --card-border: #E8E4DC;
  --placeholder: #F5F2EC;
  --white: #FEFEFC;
  --sans: 'Noto Sans JP', sans-serif;
}

body {
  background: var(--bg);
  color: var(--dark);
  font-family: var(--sans);
  line-height: 1.8;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

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

/* ============================================
   ヘッダー — 金線1本
   ============================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gold);
  padding: 22px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.site-logo a { color: var(--dark); }

.site-nav a {
  font-size: 0.77rem;
  color: var(--muted);
  margin-left: 28px;
  font-weight: 300;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav .nav-login { color: var(--dark); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: color 0.2s, border-color 0.2s;
}

.menu-btn.is-open {
  color: var(--gold);
  border-color: var(--gold);
}

/* ✕ 閉じるボタン */
.menu-close-btn {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 1001;
  color: var(--dark);
  line-height: 1;
  padding: 4px 8px;
}

.menu-close-btn.is-visible {
  display: block;
}

/* モバイルナビ — オープン状態 */
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  padding: 72px 32px 40px;
  overflow-y: auto;
}

.site-nav.is-open a {
  display: block;
  font-size: 0.95rem;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-left: 0;
  letter-spacing: 0.08em;
  color: var(--dark);
}

.site-nav.is-open a:hover {
  color: var(--gold);
}

/* スマホ専用：ナビ内認証リンク */
.mobile-auth {
  display: none;
}

.site-nav.is-open .mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.site-nav.is-open .mobile-auth .btn {
  text-align: center;
}

.site-nav.is-open .mobile-auth .btn-primary {
  color: var(--white);
}

/* ボディのスクロール固定 */
body.nav-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .site-nav { display: none; }
  .menu-btn { display: block; }
  .site-header { padding: 18px 20px; }
}

/* ============================================
   ミニヒーロー — テキスト中央・金横線
   ============================================ */
.mini-hero {
  padding: 56px 48px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

@media (max-width: 767px) {
  .mini-hero { padding: 36px 20px; }
}

.eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 300;
  text-transform: uppercase;
}

.mini-hero h1 {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.6;
}

.mini-hero h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 22px auto 0;
}

@media (max-width: 767px) {
  .mini-hero h1 { font-size: 1.6rem; }
}

.mini-hero-body {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 420px;
  margin: 24px auto 32px;
  font-weight: 300;
  line-height: 2;
}

.mini-hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   ボタン
   ============================================ */
.btn {
  display: inline-block;
  padding: 11px 32px;
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.12em;
  border-radius: 0;
}

.btn-primary {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--gold);
}

.btn-primary:hover { background: var(--placeholder); }

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--muted); }

/* ============================================
   メインコンテナ
   ============================================ */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 56px;
}

@media (max-width: 767px) {
  .container { padding: 0 20px; }
}

.section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child { border-bottom: none; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

.section-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.more-link {
  font-size: 0.73rem;
  color: var(--gold);
  font-weight: 300;
  letter-spacing: 0.06em;
}

.more-link-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ============================================
   タイルグリッド — Design 21構造 × Design 13 fade hover
   ============================================ */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

@media (max-width: 900px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tile {
  position: relative;
  overflow: hidden;
  background: var(--placeholder);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s;
}

/* 画像なし用プレースホルダー */
.tile-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4CFC8;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  background: var(--placeholder);
  transition: opacity 0.25s;
}

.tile:hover .tile-img,
.tile:hover .tile-img-placeholder { opacity: 0.82; }

/* Fade overlay — Design 13スタイル（opacity transition） */
.tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 20, 10, 0.45);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s ease;
  padding: 16px;
  text-align: center;
}

.tile:hover .tile-overlay { opacity: 1; }

.tile-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 5px;
  line-height: 1.4;
}

.tile-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.70);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* ============================================
   カード（非タイル）
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid var(--card-border);
}

.card:hover { background: #faf6ee; }

.card-img {
  width: 110px;
  height: 82px;
  flex-shrink: 0;
  background: var(--placeholder);
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  flex: 1;
  padding: 4px 0;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.card-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 300;
}

.card-link {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 300;
  letter-spacing: 0.06em;
}

@media (max-width: 767px) {
  .card-img  { width: 88px; height: 66px; }
  .card-title { font-size: 0.82rem; }
  .card-meta  { font-size: 0.68rem; }
  .card-link  { font-size: 0.65rem; }
}

/* ============================================
   作品モーダル（トップページ みんなの作品）
   ============================================ */
.artwork-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.artwork-modal-overlay[hidden] { display: none; }

body.modal-open { overflow: hidden; }

.artwork-modal-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.artwork-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.artwork-modal-close:hover { color: var(--dark); }

.artwork-modal-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.artwork-modal-img-wrap {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--placeholder);
}
.artwork-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artwork-modal-info { flex: 1; min-width: 0; }

.artwork-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
  line-height: 1.4;
}

.artwork-modal-artist {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.artwork-modal-desc {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--dark);
  margin-bottom: 16px;
  word-break: break-word;
  white-space: pre-wrap;
}

.artwork-modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 540px) {
  .artwork-modal-inner { flex-direction: column; }
  .artwork-modal-img-wrap { width: 100%; height: 200px; }
}

/* ============================================
   記事シングルページ アイキャッチ画像
   ============================================ */
.single-post-thumbnail {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}
.single-post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

/* ============================================
   コミュニティCTAセクション
   ============================================ */
.community-section {
  text-align: center;
  padding: 68px 0;
  background: var(--placeholder);
  margin: 0 -56px;
  padding-left: 56px;
  padding-right: 56px;
  border-top: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
}

@media (max-width: 767px) {
  .community-section {
    margin: 0 -20px;
    padding: 52px 20px;
  }
}

.community-label {
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  font-weight: 300;
  text-transform: uppercase;
  display: block;
  margin-bottom: 18px;
}

.community-title {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.9;
}

.community-body {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 300;
  line-height: 2;
}

.community-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.community-btns .btn {
  font-size: 0.85rem;
  padding: 10px 22px;
}

/* ============================================
   固定ページ・記事本文
   ============================================ */
.page-hero {
  padding: 48px 56px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

@media (max-width: 767px) {
  .page-hero { padding: 32px 20px; }
}

.page-hero h1 {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.6;
}

.page-hero h1::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 18px auto 0;
}

.page-content {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 56px;
  color: var(--dark);
  line-height: 2;
  font-weight: 300;
  font-size: 0.93rem;
}

@media (max-width: 767px) {
  .page-content { padding: 0 20px; margin: 40px auto; }
}

.page-content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 40px 0 16px;
  letter-spacing: 0.08em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-light);
}

.page-content h3 {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark);
  margin: 28px 0 12px;
}

.page-content p {
  margin-bottom: 18px;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5em;
  margin-bottom: 18px;
}

.page-content li { margin-bottom: 6px; }

.page-content a { color: var(--gold); }

/* ============================================
   アーカイブ（よみもの・ずかん）
   ============================================ */
.archive-header {
  padding: 48px 56px 36px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

@media (max-width: 767px) {
  .archive-header { padding: 32px 20px; }
}

.archive-title {
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  font-weight: 300;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.archive-header h1 {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--dark);
}

/* 新着記事サブセクション（ずかん・よみもの別ブロック） */
.archive-section { margin-bottom: 36px; }

.archive-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.archive-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0;
}


.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto 8px;
}

@media (max-width: 767px) {
  .archive-grid {
    grid-template-columns: 1fr;
    margin: 0 auto 8px;
  }
}

/* 記事単体ページ → style は下部の「single-post レイアウト補完」ブロックに統合 */

/* ============================================
   フッター
   ============================================ */
.site-footer {
  background: var(--dark);
  padding: 44px 56px;
  margin-top: auto;
}

@media (max-width: 767px) {
  .site-footer { padding: 28px 20px; }
}

.footer-links {
  display: flex;
  gap: 28px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.72rem;
  color: #9A9A9A;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.copyright {
  font-size: 0.69rem;
  color: #6A6A6A;
}

/* ============================================
   bbPress ひろば — Design 31 カラーオーバーライド
   ============================================ */
#bbpress-forums {
  font-family: var(--sans) !important;
  font-size: 0.9rem !important;
  line-height: 1.8 !important;
}

#bbpress-forums li.bbp-header {
  background: var(--placeholder) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  padding: 10px 16px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
}

#bbpress-forums li.bbp-body .bbp-forum,
#bbpress-forums li.bbp-body .bbp-topic {
  border: 1px solid var(--border) !important;
  border-top: none !important;
  padding: 14px 16px !important;
}

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-title a {
  color: var(--dark) !important;
  font-weight: 400 !important;
}

#bbpress-forums .bbp-forum-title:hover,
#bbpress-forums .bbp-topic-title a:hover {
  color: var(--gold) !important;
}

#bbpress-forums .bbp-meta,
#bbpress-forums .bbp-forum-info {
  font-size: 0.72rem !important;
  color: var(--muted) !important;
}

#bbp-your-profile input[type="submit"],
.bbp-submit-wrapper input[type="submit"],
#bbpress-forums input[type="submit"] {
  background: transparent !important;
  color: var(--dark) !important;
  border: 1px solid var(--gold) !important;
  border-radius: 0 !important;
  padding: 10px 28px !important;
  font-family: var(--sans) !important;
  font-size: 0.83rem !important;
  letter-spacing: 0.1em !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

#bbp-your-profile input[type="submit"]:hover,
.bbp-submit-wrapper input[type="submit"]:hover,
#bbpress-forums input[type="submit"]:hover {
  background: var(--placeholder) !important;
}

/* ============================================
   WP 管理バー（ログイン時）
   ============================================ */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ============================================
   ヘッダー認証ボタン（ログイン / 会員登録 / マイページ）
   ============================================ */
.header-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 24px;
}

.nav-login-btn,
.nav-register-btn,
.nav-mypage-btn {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-login-btn {
  color: var(--muted);
  border: 1px solid var(--card-border);
}
.nav-login-btn:hover {
  color: var(--dark);
  border-color: var(--gold);
}

.nav-register-btn {
  color: var(--dark);
  border: 1px solid var(--gold);
  background: transparent;
}
.nav-register-btn:hover {
  background: var(--gold-light);
}

.nav-mypage-btn {
  color: var(--dark);
  border: 1px solid var(--gold);
}
.nav-mypage-btn:hover {
  background: var(--gold-light);
}

/* ---- ヘッダーユーザードロップダウン ---- */
.header-user-dropdown {
  position: relative;
}

.header-user-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--dark);
  transition: border-color 0.2s;
  font-family: inherit;
}
.header-user-btn:hover { border-color: var(--gold); }

.header-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.header-user-name {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}

.header-user-caret {
  font-size: 0.6rem;
  color: var(--muted);
  flex-shrink: 0;
}

.header-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 200;
  list-style: none;
  padding: 4px 0;
}

.header-user-dropdown.is-open .header-user-menu {
  display: block;
}

.header-user-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 0.82rem;
  color: var(--dark);
  transition: background 0.15s;
}
.header-user-menu li a:hover { background: var(--bg); }

.header-user-menu-divider {
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.header-logout-link { color: var(--muted) !important; }
.header-logout-link:hover { color: var(--dark) !important; }

/* SP: ハンバーガー内ログアウト */
.mobile-logout-link {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: center;
  padding: 4px 0;
}
.mobile-logout-link:hover { color: var(--dark); }

@media (max-width: 768px) {
  .header-auth {
    display: none;
  }
}

/* ============================================
   汎用フォーム（登録・ログイン・プロフィール）
   ============================================ */
.kotokoto-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--dark);
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--card-border);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.7;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238A8A8A'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.form-group-check {
  flex-direction: row;
  align-items: flex-start;
}

.form-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--dark);
  cursor: pointer;
  line-height: 1.6;
}

.form-check {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.form-section-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.form-group-url .form-label::before {
  content: '🔗 ';
  font-size: 0.8em;
}

/* SNS アカウント名入力（@ プレフィックス） */
.form-input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}
.form-input-prefix {
  position: absolute;
  left: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.form-input-with-prefix .form-input {
  padding-left: 26px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}

.form-link {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-submit {
  margin-top: 8px;
}

/* メッセージ（成功 / エラー） */
.form-messages {
  padding: 14px 18px;
  font-size: 0.85rem;
  line-height: 1.7;
  border-left: 3px solid;
}
.form-success {
  background: #F0F8F0;
  border-color: #5FA35F;
  color: #3A7A3A;
}
.form-errors {
  background: #FDF0F0;
  border-color: #C05050;
  color: #8A2020;
}
.form-messages p { margin: 0; }
.form-messages p + p { margin-top: 6px; }

/* 文字数カウンター */
.char-count {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}
.char-count.near-limit { color: #C9A96E; }
.char-count.over-limit { color: #C05050; }

/* ============================================
   認証ページ（ログイン・会員登録）レイアウト
   ============================================ */
.auth-wrap {
  min-height: calc(100vh - 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.auth-box {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border: 1px solid var(--card-border);
  padding: 48px 44px;
}

.auth-box .kotokoto-form {
  margin-top: 8px;
}

@media (max-width: 540px) {
  .auth-box {
    padding: 32px 24px;
  }
}

/* ============================================
   マイページ レイアウト
   ============================================ */
.mypage-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 60px 0;
  align-items: start;
}

@media (max-width: 768px) {
  .mypage-wrap {
    grid-template-columns: 1fr;
    gap: 0;          /* タブとコンテンツを隙間なく接続 */
    padding: 0;
  }
}

/* ---- サイドバー ---- */
.mypage-sidebar {
  position: sticky;
  top: 100px;
}

/* モバイル: タブを上部横スクロールバーに変換 */
@media (max-width: 768px) {
  .mypage-sidebar {
    position: static;
    top: auto;
    order: 1;          /* 上部に移動 */
    border: none;
    min-width: 0;      /* Grid の min-width:auto を解除してオーバーフロー防止 */
  }
  .mypage-main {
    order: 2;          /* コンテンツはタブの下 */
    padding-top: 24px;
    min-width: 0;      /* 同上 */
  }
  .mypage-user-card {
    display: none;
  }
  .mypage-sidebar-footer {
    display: none;     /* ログアウトリンク等はモバイル非表示 */
  }
}

.mypage-user-card {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--card-border);
  margin-bottom: 16px;
}

.mypage-avatar {
  border-radius: 50%;
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 2px solid var(--gold-light);
}

.mypage-username {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--dark);
  margin-bottom: 4px;
}

.mypage-genre {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.mypage-nav {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
}

.mypage-nav-item {
  display: block;
  padding: 12px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.mypage-nav-item:last-child { border-bottom: none; }
.mypage-admin-tools { padding: 12px 16px; border-top: 1px solid var(--border); }
.mypage-nav-item:hover {
  background: var(--placeholder);
  color: var(--dark);
}
.mypage-nav-item.active {
  background: var(--placeholder);
  color: var(--dark);
  font-weight: 500;
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}

/* モバイル: ナビを横スクロールタブバーに変換（ベースCSS後に宣言して上書き） */
@media (max-width: 768px) {
  .mypage-nav {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: none;
    border-bottom: 1px solid var(--border);
  }
  .mypage-nav::-webkit-scrollbar { display: none; }
  .mypage-nav-item {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 11px 16px;
    border-bottom: 2px solid transparent;
    border-right: 1px solid var(--border);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    color: var(--muted);
  }
  .mypage-nav-item:last-child {
    border-right: none;
    border-bottom: 2px solid transparent; /* base の last-child { border-bottom: none } を上書き */
  }
  .mypage-nav-item.active {
    border-bottom: 2px solid var(--gold);
    border-left: none;      /* デスクトップの左ボーダーをリセット */
    padding-left: 16px;
    background: none;
    color: var(--dark);
    font-weight: 500;
  }
  .mypage-nav-item:hover {
    background: none;
    color: var(--dark);
  }
}

.mypage-sidebar-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}

.mypage-logout-link {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.mypage-logout-link:hover { color: var(--dark); }

.mypage-withdraw-link {
  font-size: 0.72rem;
  color: #B05050;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.mypage-withdraw-link:hover { color: #7A2020; }

/* ---- メインコンテンツ ---- */
.mypage-main {
  min-width: 0;
}

.mypage-section {
  padding-bottom: 48px;
}

.mypage-section-title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--dark);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold-light);
}

.mypage-section-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.mypage-count {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.mypage-empty {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 2;
}
.mypage-empty a {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- 投稿・ブックマーク一覧 ---- */
.mypage-post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--card-border);
}

.mypage-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.mypage-post-item:last-child { border-bottom: none; }
.mypage-post-item:hover { background: var(--placeholder); }

.mypage-post-title {
  flex: 1;
  font-size: 0.87rem;
  color: var(--dark);
  transition: color 0.2s;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mypage-post-title:hover { color: var(--gold); }

.mypage-post-date {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

/* マイページからブックマーク解除ボタン */
.mypage-bm-remove {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--gold);
  padding: 2px 6px;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  flex-shrink: 0;
}
.mypage-bm-remove:hover {
  opacity: 1;
  color: #B05050;
}

/* ============================================
   ブックマークボタン（single.php）
   ============================================ */
.single-post-bookmark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: 1px solid var(--card-border);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.83rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.bookmark-btn:hover {
  border-color: var(--gold);
  color: var(--dark);
}
.bookmark-btn.bookmarked {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--placeholder);
}
.bookmark-btn.bookmarked:hover {
  border-color: #9a7520;
  color: #9a7520;
  background: #fdf8ed;
}

.bookmark-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ============================================
   活動ログ（コトコト履歴）
   ============================================ */
.activity-form {
  margin-bottom: 32px;
}

#activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-item {
  padding: 16px 20px;
  border: 1px solid var(--card-border);
  border-bottom: none;
  background: var(--white);
  transition: background 0.15s;
}
.activity-item:last-child { border-bottom: 1px solid var(--card-border); }
.activity-item:hover { background: var(--placeholder); }

.activity-item.removing {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}

.activity-content {
  font-size: 0.87rem;
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 8px;
}

.activity-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-date {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.activity-delete {
  background: none;
  border: none;
  font-size: 0.72rem;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.2s;
}
.activity-delete:hover { color: #B05050; }

/* ============================================
   バッジ
   ============================================ */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--card-border);
  gap: 8px;
  transition: border-color 0.2s;
}
.badge-item.earned {
  border-color: var(--gold-light);
  background: linear-gradient(135deg, var(--white) 0%, #FAF7F2 100%);
}
.badge-item.not-earned {
  opacity: 0.45;
  filter: grayscale(0.6);
}

.badge-icon {
  font-size: 2rem;
  line-height: 1;
}

.badge-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dark);
}

.badge-desc {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.5;
}

.badge-earned-date {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 4px;
}

.badge-progress {
  width: 100%;
  margin-top: 8px;
}
.badge-progress-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.badge-progress-bar {
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}
.badge-progress-label {
  font-size: 0.62rem;
  color: var(--muted);
  display: block;
  text-align: right;
  margin-top: 2px;
}

/* ============================================
   退会ページ
   ============================================ */
.withdraw-wrap {
  max-width: 560px;
  margin: 60px auto;
  padding: 0 24px;
}

.withdraw-warning {
  background: #FDF8F0;
  border: 1px solid #E8C87A;
  border-left: 4px solid #C9A96E;
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--dark);
}

.withdraw-list {
  margin: 12px 0 4px 16px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 2;
}

.withdraw-box {
  border: 1px solid var(--card-border);
  padding: 36px 40px;
}

.withdraw-box .mypage-section-title {
  color: #8A2020;
  border-color: #E8C0C0;
}

.btn-danger {
  background: #C05050;
  color: var(--white);
  border: 1px solid #A03030;
  padding: 12px 36px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-danger:hover { background: #8A2020; }

.withdraw-cancel {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.withdraw-cancel:hover { color: var(--dark); }

/* 退会完了 */
.withdraw-done {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
  padding: 0 24px;
}
.withdraw-done p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 2;
}
.withdraw-done .btn {
  margin-top: 32px;
  display: inline-block;
}
.form-submit--center { text-align: center; }
.form-note--left     { text-align: left; }
.withdraw-caution    { margin-bottom: 16px; }
.withdraw-agree-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 16px;
  cursor: pointer;
}
.withdraw-agree-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.withdraw-contact-note { text-align: center; margin-top: 24px; margin-bottom: 8px; }

/* ============================================
   .btn — 汎用ボタン（会員ページ共通）
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 36px;
  font-family: var(--sans);
  font-size: 0.83rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--dark);
  transition: background 0.2s;
  text-align: center;
}
.btn:hover { background: var(--gold-light); }

.btn-primary {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-primary:hover { background: #333; }

.btn-full { width: 100%; }

/* ============================================
   記事単体ページ（single.php）
   ============================================ */
/* NOTE: .single-post は WordPress が body に自動付与するクラスと被るため
   article ラッパーは .post-article クラスを使用する */
.post-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

@media (max-width: 767px) {
  .post-article { padding: 32px 20px 60px; }
}

.single-post-header {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.single-post-cat {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.single-post-date {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.single-post-body {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--dark);
}
.single-post-body p { margin-bottom: 1.4em; }
.single-post-body h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2em 0 0.8em;
  letter-spacing: 0.03em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-light);
}
.single-post-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.8em 0 0.6em;
}
.single-post-body ul,
.single-post-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}
.single-post-body a { color: var(--gold); }
.single-post-body img {
  margin: 1.6em auto;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   コンテナ補完
   ============================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .mypage-wrap { padding: 32px 0; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-box { padding: 28px 20px; }
  .withdraw-box { padding: 28px 24px; }
  .avatar-upload-wrap { flex-direction: column; gap: 16px; }
}

/* ============================================
   アバターアップロード UI
   ============================================ */
.avatar-upload-wrap {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px;
  background: var(--placeholder);
  border: 1px solid var(--card-border);
}

.avatar-upload-preview-wrap {
  flex-shrink: 0;
}

.avatar-upload-preview {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-light);
  display: block;
  background: var(--white);
}

.avatar-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

/* カスタムファイル選択ボタン */
.avatar-upload-label {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--gold);
  background: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.2s;
}
.avatar-upload-label:hover {
  background: var(--gold-light);
}

/* ネイティブ input[type=file] は非表示 */
.avatar-upload-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.avatar-upload-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

/* 選択ファイル名表示 */
.avatar-upload-filename {
  font-size: 0.78rem;
  color: var(--dark);
  padding: 4px 0;
  word-break: break-all;
}

/* デフォルトに戻すチェック */
.avatar-upload-reset {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #B05050;
  cursor: pointer;
}
.avatar-upload-reset input[type="checkbox"] {
  accent-color: #C05050;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* ============================================
   About ページ
   ============================================ */

/* ヒーロー補助テキスト */
.about-hero-sub {
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* ---- Section 1: コンセプト ---- */
.about-concept {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 0;
}

.about-concept .eyebrow {
  margin-bottom: 20px;
}

.about-concept-title {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.65;
  margin-bottom: 24px;
  color: var(--dark);
}

.about-concept-body {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 2;
}

/* ---- Section 2: コンテンツグリッド ---- */
.about-content-group {
  margin-bottom: 48px;
}
.about-content-group:last-child { margin-bottom: 0; }

.about-group-badge {
  margin-top: 16px;
}

.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--card-border);
  border: 1px solid var(--card-border);
}

.about-content-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.about-content-card {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-content-icon {
  font-size: 1.7rem;
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}

.about-content-title {
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 6px;
}

.about-content-catch {
  font-size: 0.77rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.about-content-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.85;
  flex: 1;
  margin-bottom: 14px;
}

.about-member-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--gold-light);
  background: var(--placeholder);
  font-size: 0.7rem;
  color: var(--gold);
  padding: 4px 10px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  line-height: 1.5;
}

.about-content-note {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.about-content-link {
  font-size: 0.77rem;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  align-self: flex-start;
}
.about-content-link:hover {
  color: var(--dark);
}

/* ---- Section 3: ベネフィット ---- */
.about-benefit-section {
  background: var(--white);
}

.about-benefit-lead {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 32px;
  margin-top: 8px;
}

.about-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-benefit-card {
  border: 1px solid var(--card-border);
  padding: 32px 26px;
  transition: border-color 0.2s;
}
.about-benefit-card:hover {
  border-color: var(--gold-light);
}

.about-benefit-icon {
  font-size: 2rem;
  line-height: 1;
  display: block;
  margin-bottom: 18px;
}

.about-benefit-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--dark);
  margin-bottom: 12px;
}

.about-benefit-desc {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.9;
}

/* ---- Section 4: CTA ---- */
.about-cta-section {
  text-align: center;
  background: var(--placeholder);
  padding: 80px 40px;
  border-top: 1px solid var(--border);
}

.about-cta-section .eyebrow {
  margin-bottom: 16px;
}

.about-cta-title {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ステップフロー */
.about-step-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.about-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 90px;
}

.about-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--gold);
  background: var(--white);
  flex-shrink: 0;
}

.about-step-label {
  font-size: 0.75rem;
  color: var(--dark);
  text-align: center;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.about-step-arrow {
  color: var(--gold-light);
  font-size: 1.3rem;
  align-self: flex-start;
  padding-top: 10px;
  flex-shrink: 0;
}

.about-cta-btn {
  padding: 14px 52px;
  font-size: 0.87rem;
  letter-spacing: 0.15em;
  display: inline-block;
  margin-bottom: 20px;
}

.about-cta-sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.about-cta-sub a {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.about-cta-sub a:hover {
  color: var(--gold);
}

.about-yomimono-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 40px;
  letter-spacing: 0.03em;
}

.about-yomimono-note a {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.about-yomimono-note a:hover {
  color: var(--gold);
}

/* ---- About レスポンシブ ---- */
@media (max-width: 768px) {
  .about-content-grid {
    grid-template-columns: 1fr;
  }
  .about-benefit-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .about-cta-section {
    padding: 60px 24px;
  }
  .about-step-arrow {
    display: none;
  }
  .about-step-flow {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .about-content-card {
    padding: 28px 20px;
  }
  .about-benefit-card {
    padding: 24px 20px;
  }
  .about-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
  }
  .about-concept-title {
    font-size: 1.05rem;
  }
}

/* ============================================
   登録フォーム補助テキスト
   ============================================ */
.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 6px;
}
.form-hint code {
  font-family: monospace;
  background: #f0ece4;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.82em;
  color: var(--dark);
}

/* ============================================
   パスワード表示切り替え
   ============================================ */
.pass-wrap {
  position: relative;
}
.pass-wrap .form-input {
  padding-right: 44px;
}
.pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
  line-height: 1;
}
.pass-toggle:hover { color: var(--dark); }
.pass-toggle svg { display: block; }

/* ============================================
   登録完了（サンクス）ページ
   ============================================ */
.thanks-wrap {
  text-align: center;
  padding: 80px 24px 100px;
  max-width: 600px;
  margin: 0 auto;
}
.thanks-badge {
  font-size: 3rem;
  display: block;
  margin-bottom: 28px;
  line-height: 1;
}
.thanks-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.thanks-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 44px;
}
.thanks-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.thanks-actions .btn {
  min-width: 160px;
}
@media (max-width: 480px) {
  .thanks-actions {
    flex-direction: column;
    align-items: center;
  }
  .thanks-actions .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* ============================================
   サイドバー SNS/ショップ アイコンリンク
   ============================================ */
.mypage-sns-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.mypage-sns-link {
  width: 32px;
  height: 32px;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.mypage-sns-link:hover {
  border-color: var(--gold);
  color: var(--dark);
}

/* ============================================
   サイドバー bio（自己紹介）
   ============================================ */
.mypage-bio {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  word-break: break-all;
}

/* ============================================
   ブックマーク カードグリッド
   ============================================ */
.bm-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 600px) {
  .bm-card-grid {
    grid-template-columns: 1fr;
  }
}

.bm-card {
  border: 1px solid var(--card-border);
  transition: border-color 0.2s;
  overflow: hidden;
}
.bm-card:hover {
  border-color: var(--gold-light);
}

.bm-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--placeholder);
  text-decoration: none;
}
.bm-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.bm-card:hover .bm-card-thumb img {
  transform: scale(1.03);
}

.bm-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  color: var(--card-border);
}

.bm-card-body {
  padding: 14px 16px 12px;
}
.bm-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.2s;
}
.bm-card-title:hover {
  color: var(--gold);
}

.bm-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bm-card-date {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ============================================
   設定タブ
   ============================================ */
.settings-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.settings-block:first-child {
  padding-top: 0;
}
.settings-block:last-child {
  border-bottom: none;
}

.settings-block-title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dark);
  margin-bottom: 12px;
  text-transform: none;
}
.settings-block-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.settings-block-actions {
  margin-top: 12px;
}

/* btn-sm サイズ */
.btn-sm {
  padding: 7px 20px;
  font-size: 0.78rem;
}

/* 退会ボタン */
.btn-danger-outline {
  display: inline-block;
  padding: 9px 24px;
  border: 1px solid #C05050;
  color: #B05050;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-danger-outline:hover {
  background: #FDF0F0;
  color: #8A2020;
}

/* settings-block 内のフォーム間隔調整 */
.settings-block .kotokoto-form {
  margin-top: 16px;
}
.settings-block .form-submit {
  margin-top: 8px;
}

/* ============================================
   プロフィール閲覧モード（ポートフォリオ表示）
   ============================================ */
.profile-view-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.profile-view-avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile-view-info {
  flex: 1;
  min-width: 0;
}
.profile-view-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.profile-view-genre {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  padding: 2px 10px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.profile-view-bio {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.85;
  margin-top: 8px;
  word-break: break-all;
}
.profile-view-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.profile-link-sns {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 18px;
  border: 1px solid var(--card-border);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}
.profile-link-sns:hover {
  border-color: var(--gold);
  color: var(--dark);
}
.profile-link-shop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 18px;
  background: var(--placeholder);
  border: 1px solid var(--card-border);
  font-size: 0.78rem;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, background 0.2s;
}
.profile-link-shop:hover {
  border-color: var(--gold);
  background: #f5f0e8;
}
.profile-view-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
/* プロフィール編集フォームの送信ボタン横並び */
.form-submit-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .profile-view-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-view-links {
    justify-content: center;
  }
  .profile-view-actions {
    align-items: flex-start;
  }
  .form-submit-row {
    flex-direction: column;
  }
  .form-submit-row .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   作品管理グリッド（自分の投稿タブ）
   ============================================ */
.artwork-manage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 600px) {
  .artwork-manage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.artwork-manage-item {
  border: 1px solid var(--card-border);
  transition: border-color 0.2s;
  overflow: hidden;
}
.artwork-manage-item:hover {
  border-color: var(--gold-light);
}

.artwork-manage-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--placeholder);
}
.artwork-manage-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.artwork-manage-item:hover .artwork-manage-thumb img {
  transform: scale(1.03);
}
.artwork-manage-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  color: var(--card-border);
}
.artwork-status-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.65rem;
  padding: 3px 8px;
  letter-spacing: 0.05em;
}

.artwork-manage-body {
  padding: 12px 14px 4px;
}
.artwork-manage-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.5;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.artwork-manage-title:hover {
  color: var(--gold);
}
.artwork-manage-date {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.artwork-manage-footer {
  padding: 0 14px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.artwork-manage-footer .btn-danger-outline {
  font-size: 0.72rem;
  padding: 5px 14px;
  cursor: pointer;
  background: none;
  letter-spacing: 0.05em;
}
.btn-artwork-edit {
  font-size: 0.72rem;
  padding: 5px 14px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-artwork-edit:hover {
  background: var(--gold);
  color: var(--white);
}

/* ============================================================
   ひろば（Plaza）共通 + ハブページ
   ============================================================ */
.board-page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.board-page-header {
  text-align: center;
  margin-bottom: 40px;
}
.board-page-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.board-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.board-page-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ハブページ 3カードグリッド */
.board-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.board-hub-card {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 14px;
  padding: 32px 24px 28px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.board-hub-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.board-hub-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.board-hub-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}
.board-hub-catch {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
}
.board-hub-body {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.board-hub-btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--gold);
  color: #fff;
  border-radius: 20px;
  padding: 8px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s;
}
.board-hub-btn:hover {
  background: #b89a55;
  color: #fff;
}

/* マイページ導線 */
.board-mypage-cta {
  background: #faf8f5;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  margin-top: 48px;
}
.board-mypage-cta p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.board-mypage-cta .btn-outline {
  font-size: 0.82rem;
  padding: 8px 22px;
}

/* ============================================================
   いいねボタン
   ============================================================ */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  line-height: 1;
}
.like-btn:hover {
  border-color: #e8749a;
  color: #e8749a;
  background: #fff5f8;
}
.like-btn.liked {
  border-color: #e8749a;
  color: #e8749a;
  background: #fff5f8;
}
.like-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}
.like-icon {
  font-size: 1rem;
  line-height: 1;
}
.like-count {
  font-size: 0.78rem;
}

/* ============================================================
   作品ギャラリー
   ============================================================ */
.board-gallery-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
@media (max-width: 768px) {
  .board-gallery-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px 60px;
  }
}
.gallery-main {}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.gallery-tile {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.gallery-tile:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.gallery-tile-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f5f3f0;
  overflow: hidden;
}
.gallery-tile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-tile-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 2.5rem;
}
.gallery-tile-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--gold);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 10px;
  padding: 2px 8px;
}
.gallery-tile-body {
  padding: 10px 12px 6px;
}
.gallery-tile-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.gallery-tile-artist {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.gallery-tile-footer {
  padding: 6px 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0ece8;
  margin-top: auto;
}
.gallery-shop-btn {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 2px 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.gallery-shop-btn[hidden] { display: none; }
.gallery-shop-btn:hover {
  background: var(--gold);
  color: #fff;
}

/* 作品タイル説明文 */
.gallery-tile-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
  word-break: break-word;
}

/* ギャラリーフォーム */
.gallery-post-form-wrap {
  background: #faf8f5;
  border: 1px solid #e8e4df;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 32px;
}
.gallery-post-form-wrap h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}
.board-login-prompt {
  text-align: center;
  padding: 20px;
  background: #faf8f5;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.board-login-prompt a {
  color: var(--gold);
  font-weight: 600;
}

/* ============================================================
   ひろば掲示板（フォーラム・チャット）共通
   ============================================================ */
.board-forum-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
@media (max-width: 768px) {
  .board-forum-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px 60px;
  }
}
.board-forum-main {}

/* 投稿フォーム */
.board-post-form-wrap {
  background: #faf8f5;
  border: 1px solid #e8e4df;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 28px;
}
.board-post-form-wrap h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.board-post-form .form-group {
  margin-bottom: 14px;
}
.board-post-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}
.board-post-form input[type="text"],
.board-post-form select,
.board-post-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.board-post-form input[type="text"]:focus,
.board-post-form select:focus,
.board-post-form textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.board-post-form textarea {
  resize: vertical;
  min-height: 90px;
}
.board-char-count {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  margin-top: 3px;
}
.board-post-form .btn-submit {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 26px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.board-post-form .btn-submit:hover {
  background: #b89a55;
}
.board-post-form .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 投稿リスト */
.board-post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.board-post-item {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow 0.2s;
  position: relative;
  cursor: pointer;
}
.board-post-item:hover {
  box-shadow: 0 3px 14px rgba(0,0,0,0.07);
}
.board-post-item--pinned {
  border-color: var(--gold);
  background: #fffdf7;
}
.board-post-pin-badge {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
  margin-right: 6px;
  white-space: nowrap;
}

/* stretch-link：タイトルリンクでカード全体をクリック可能に */
.board-post-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
/* 応援ボタン・ユーザー行は overlay の上に出してクリック維持 */
.board-post-actions { position: relative; z-index: 1; }
.board-post-user-row { position: relative; z-index: 1; }

/* 投稿フォームが閉じている時の下余白を圧縮 */
/*.board-post-form-wrap:has(#board-form-body[hidden]) {
  padding-bottom: 2px;
}*/

/* カテゴリフィルター PC/SP 表示制御 */
.board-main-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
@media (min-width: 769px) {
  .board-main-filter { display: none; }
}
@media (max-width: 768px) {
  .board-sidebar-filter { display: none; }
}

/* ユーザー行（アバター＋名前＋カテゴリ） */
.board-post-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.board-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.board-post-user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.board-post-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}
.board-post-date {
  font-size: 0.72rem;
  color: var(--muted);
}
.board-post-cat {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #f0ece8;
  color: #7a6e65;
  border-radius: 10px;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 本文エリア */
.board-post-body { margin-bottom: 10px; }
.board-post-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 6px;
}
.board-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.board-post-title a:hover { color: var(--gold); }
.board-post-excerpt {
  font-size: 0.82rem;
  color: #6b6460;
  line-height: 1.7;
  white-space: pre-line;
}

/* アクション行 */
.board-post-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.board-reply-count {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 767px) {
  .board-post-cat { display: none; }
}

/* 空メッセージ */
.board-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 0.88rem;
  background: #faf8f5;
  border-radius: 12px;
  border: 1px dashed #ddd;
}

/* サイドバー */
.board-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.board-sidebar-block {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  padding: 18px 18px 14px;
}
.board-sidebar-block h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0ece8;
}
.board-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.board-sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.board-sidebar-nav li a:hover,
.board-sidebar-nav li a.active {
  color: var(--gold);
}
.board-filter-btn {
  display: inline-block;
  width: auto;
  background: none;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.4;
}
.board-filter-btn:hover,
.board-filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: #faf6ee;
}

/* サイドバー内は縦並びを維持 */
.board-sidebar-block .board-filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
}

/* フィルター横並びラッパー */
.gallery-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

/* ===== Gallery Filter Bar（みんなの作品帖用ドロップダウン） ===== */
.gallery-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  justify-content: center;
}
.gallery-filter-bar__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}
.gallery-filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 7px 32px 7px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--dark);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.gallery-filter-select:focus {
  outline: none;
  border-color: var(--gold);
}
.gallery-filter-select.is-active {
  border-color: var(--gold);
  color: var(--gold);
  background-color: #faf6ee;
}
.gallery-filter-reset {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #ddd;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.gallery-filter-reset:hover {
  color: #c04040;
  border-color: #c04040;
}
@media (max-width: 600px) {
  .gallery-filter-bar { gap: 8px; }
  .gallery-filter-select { font-size: 0.8rem; padding: 6px 28px 6px 12px; }
}

/* 無限スクロール: ローディング・終端表示 */
.gallery-loading,
.gallery-end {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 24px 0 48px;
}
.gallery-sentinel {
  min-height: 1px;
}

/* 投稿CTA行 */
.gallery-cta-row {
  text-align: center;
  margin-bottom: 28px;
  font-size: 0.85rem;
  color: var(--muted);
}
.gallery-cta-row a:not(.btn) {
  color: var(--gold);
}

.board-sidebar-mypage-link {
  display: block;
  text-align: center;
  background: var(--gold);
  color: #fff;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.board-sidebar-mypage-link:hover {
  background: #b89a55;
  color: #fff;
}

/* ページネーション（共通） */
.board-pagination {
  text-align: center;
  margin-top: 32px;
}
.board-pagination .page-numbers {
  display: inline-flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.board-pagination .page-numbers a,
.board-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e8e4df;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.board-pagination .page-numbers a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.board-pagination .page-numbers .current {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* 投稿成功メッセージ */
.board-notice {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.board-notice.success {
  background: #f0faf0;
  border: 1px solid #7bc47b;
  color: #357a35;
}
.board-notice.error {
  background: #fff5f5;
  border: 1px solid #e87575;
  color: #c0392b;
}

/* ギャラリーサイドバー */
.gallery-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.gallery-filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  display: block;
}

/* ============================================
   みんなの作品帖 — アーティスト名リンク
   ============================================ */
.gallery-artist-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.gallery-artist-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ============================================
   ひろば — 返信件数バッジ
   ============================================ */
.board-reply-count {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  background: #f5f1ec;
  border-radius: 20px;
  padding: 2px 10px;
}

/* ============================================
   ひろば投稿詳細 — シングルページ
   ============================================ */
.board-breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.board-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.board-breadcrumb a:hover { color: var(--gold); }
.board-breadcrumb-sep { color: #ccc; }

.board-single-post {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  padding: 24px 28px 20px;
  margin-bottom: 32px;
}
.board-single-header { margin-bottom: 16px; }
.board-single-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 8px 0 12px;
  line-height: 1.5;
}
.board-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.board-single-body {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--dark);
  white-space: pre-line;
  word-break: break-word;
}

/* 投稿フッター（削除 / 報告ボタン 右寄せ） */
.board-single-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f0ece8;
}

/* 投稿削除ボタン（小サイズ danger） */
.btn-danger-sm {
  background: none;
  border: 1px solid #d9534f;
  color: #d9534f;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1.5;
}
.btn-danger-sm:hover {
  background: #d9534f;
  color: #fff;
}
.btn-danger-sm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* コメント削除ボタン */
.board-comment-delete-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.6;
  transition: opacity 0.15s, color 0.15s;
  line-height: 1;
}
.board-comment-delete-btn:hover {
  opacity: 1;
  color: #d9534f;
}
.board-comment-delete-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* 報告ボタン（⚑ アイコン） */
.board-report-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 4px;
  opacity: 0.45;
  transition: opacity 0.15s, color 0.15s;
  line-height: 1;
}
.board-report-btn:hover { opacity: 1; color: var(--gold); }

/* ============================================
   報告モーダル
   ============================================ */
.report-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.report-modal-overlay[hidden] { display: none; }

.report-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px 24px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.report-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px;
}
.report-modal-close:hover { color: var(--dark); }

.report-modal-intro {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 18px;
}

.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.report-reasons label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--dark);
  cursor: pointer;
  line-height: 1.5;
}
.report-reasons input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.report-success {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--dark);
  text-align: left;
  padding: 8px 0;
}
.report-success[hidden] { display: none; }

/* 報告フォーム — 送信ボタン */
#report-form .btn-submit {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 0;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  display: block;
  width: 100%;
  margin-top: 16px;
}
#report-form .btn-submit:hover    { background: #b89a55; }
#report-form .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* 管理者向け 報告バッジ（投稿タイトル・コメントのメタに表示） */
.admin-report-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: #d9534f;
  border-radius: 12px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1.4;
}

/* コメントセクション */
.board-comments-section { margin-top: 8px; }
.board-comments-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 32px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.board-comments-count {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  background: #f5f1ec;
  border-radius: 20px;
  padding: 2px 10px;
}
.board-comments-empty {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* コメントリスト */
.board-comment-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}
.board-comment-item {
  padding: 16px 0;
  border-top: 1px solid #f0ece8;
}
.board-comment-item:first-child { border-top: none; }
.board-comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.board-comment-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.board-comment-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
}
.board-comment-date {
  font-size: 0.75rem;
  color: var(--muted);
}
.board-comment-body {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--dark);
  white-space: pre-line;
  word-break: break-word;
  padding-left: 46px;
}

/* コメント3行クランプ */
.board-comment-body.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 「もっと見る」ボタン */
.read-more-btn {
  display: block;
  background: none;
  border: none;
  padding: 2px 0;
  font-size: 0.78rem;
  color: var(--gold);
  cursor: pointer;
  margin-top: 4px;
}
.read-more-btn:hover { text-decoration: underline; }

/* 文字数カウンター */
.board-reply-counter {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}

/* コメントフォーム */
.board-comment-form-wrap { margin-top: 8px; }
.board-comment-form-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.board-reply-textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.board-reply-textarea:focus {
  outline: none;
  border-color: var(--gold);
}
#board-comment-form .form-submit { margin-top: 12px; }

@media (max-width: 768px) {
  .board-single-post { padding: 18px 16px 14px; }
  .board-comment-body { padding-left: 0; }
}

/* ============================================
   コメントいいねボタン
   ============================================ */
.board-comment-footer {
  display: flex;
  justify-content: flex-end;
  padding-left: 46px;
  margin-top: 6px;
}
.comment-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid #e8e4e0;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1;
}
.comment-like-btn:hover,
.comment-like-btn.liked {
  border-color: var(--gold);
  color: var(--gold);
}
.comment-like-btn .like-icon { font-size: 0.85rem; }
.comment-like-btn.loading { opacity: 0.5; pointer-events: none; }

/* ============================================
   ユーザープロフィールページ
   ============================================ */

/* --- Profile Cover --- */
.profile-cover {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #c8bdb0 0%, #e8e0d8 100%);
}
.profile-cover--resin       { background: linear-gradient(135deg, #c8b6d3 0%, #e8d5f0 100%); }
.profile-cover--embroidery  { background: linear-gradient(135deg, #d4a5a0 0%, #f0d5d0 100%); }
.profile-cover--knitting    { background: linear-gradient(135deg, #c9b99a 0%, #ede0cc 100%); }
.profile-cover--leather     { background: linear-gradient(135deg, #b09075 0%, #d4bfa8 100%); }
.profile-cover--accessories { background: linear-gradient(135deg, #8fb8b5 0%, #c5dedd 100%); }
.profile-cover--fabric      { background: linear-gradient(135deg, #c9a8c0 0%, #e8d0e4 100%); }
.profile-cover--other       { background: linear-gradient(135deg, #b0b0a8 0%, #d8d8d0 100%); }
.profile-cover--felt        { background: linear-gradient(135deg, #d4c8e8 0%, #ede5f8 100%); }
.profile-cover--macrame     { background: linear-gradient(135deg, #c4b490 0%, #e0d0b0 100%); }
.profile-cover--clay        { background: linear-gradient(135deg, #c8a88a 0%, #e8c8a8 100%); }
.profile-cover--woodwork    { background: linear-gradient(135deg, #b89870 0%, #d8b890 100%); }

/* --- Profile Identity --- */
.profile-identity {
  margin-top: -40px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  background: #fff;
  display: block;
  object-fit: cover;
}
.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.profile-genre-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: 12px;
  background: #f5f1ed;
  color: var(--muted);
  border: 1px solid #e0dbd4;
}
.profile-genre-badge--resin       { background: #ede0f8; color: #7a4a9a; border-color: #d5b8f0; }
.profile-genre-badge--embroidery  { background: #f8e0e0; color: #9a4a4a; border-color: #f0b8b8; }
.profile-genre-badge--knitting    { background: #f5edd8; color: #7a6030; border-color: #e0d0a8; }
.profile-genre-badge--leather     { background: #f0e4d4; color: #7a5030; border-color: #d4b898; }
.profile-genre-badge--accessories { background: #d8f0ee; color: #2a6a68; border-color: #a8d8d4; }
.profile-genre-badge--fabric      { background: #f0dced; color: #8a3a7a; border-color: #d8b0d0; }
.profile-genre-badge--felt        { background: #ece5f8; color: #5a3a7a; border-color: #c8b0e8; }
.profile-genre-badge--macrame     { background: #f0e8d8; color: #7a6040; border-color: #d8c8a0; }
.profile-genre-badge--clay        { background: #f5e8d8; color: #8a5030; border-color: #e0c0a0; }
.profile-genre-badge--woodwork    { background: #f0e4d0; color: #7a5020; border-color: #d8b888; }

.profile-hero {
  padding-bottom: 28px;
}
.profile-hero-avatar-wrap {
  margin-bottom: 12px;
}
.profile-hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.profile-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
  text-align: center;
}

.profile-hero-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.profile-hero-genre {
  font-size: 0.82rem;
  color: var(--muted);
  background: #f5f1ed;
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
}

/* プロフィール情報ブロック */
.profile-info-block {
  background: #faf8f5;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 36px;
  border: 1px solid #ece8e3;
}
.profile-bio {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}
.profile-bio:last-child { margin-bottom: 0; }

/* SNS/ショップリンク行 */
.profile-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
  background: #fff;
  border: 1px solid #e0dbd5;
  color: var(--dark);
}
.profile-link-btn:hover { opacity: 0.75; }
.profile-link-minne    { border-color: #e75480; color: #e75480; }
.profile-link-creema   { border-color: #ff6600; color: #ff6600; }
.profile-link-instagram{ border-color: #c13584; color: #c13584; }
.profile-link-twitter  { border-color: #555; color: #555; }

/* 作品セクション */
.profile-artworks-section { margin-top: 0; }
.profile-artworks-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

@media (max-width: 768px) {
  .profile-cover    { height: 100px; }
  .profile-identity { margin-top: -32px; }
  .profile-avatar   { width: 64px; height: 64px; }
  .profile-name     { font-size: 1.2rem; }
  .profile-info-block { padding: 16px; }
  .profile-hero-avatar { width: 64px; height: 64px; }
  .profile-hero-name { font-size: 1.2rem; }
  .board-comment-footer { padding-left: 0; }
}

/* ============================================
   🔔 通知ベル & ドロップダウン
   ============================================ */

/* ヘッダー内ベルラッパー */
.notif-bell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* ベルボタン */
.notif-bell-btn {
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 6px 7px;
  position: relative;
  line-height: 1;
  color: var(--dark);
  border-radius: 8px;
  transition: background 0.15s;
}
.notif-bell-btn:hover { background: #f5f1ec; }

/* 未読バッジ */
.notif-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background: #d9534f;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}
.notif-badge[hidden] { display: none; }

/* ドロップダウン本体 */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: #fff;
  border: 1px solid #e8e3dd;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  z-index: 9999;
  overflow: hidden;
}
.notif-dropdown[hidden] { display: none; }

/* ドロップダウン ヘッダー行 */
.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid #f0ece7;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}
.notif-mark-all-btn {
  background: none;
  border: none;
  font-size: 0.72rem;
  color: var(--gold);
  cursor: pointer;
  padding: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.notif-mark-all-btn:hover { opacity: 0.7; }

/* 通知リスト */
.notif-list {
  max-height: 360px;
  overflow-y: auto;
}

/* 個別通知アイテム */
.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f5f2ef;
  cursor: pointer;
  text-decoration: none;
  color: var(--dark);
  transition: background 0.12s;
  align-items: flex-start;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #faf8f5; }
.notif-item.unread { background: #fffbf4; }
.notif-item.unread:hover { background: #fdf5e4; }

/* 通知アイコン */
.notif-item-icon {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.5;
  width: 22px;
  text-align: center;
}

/* 通知本文エリア */
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-text {
  font-size: 0.78rem;
  color: var(--dark);
  line-height: 1.5;
  word-break: break-word;
}
.notif-item-title {
  font-size: 0.71rem;
  color: var(--muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-item-time {
  font-size: 0.67rem;
  color: var(--muted);
  margin-top: 3px;
}

/* 未読ドット */
.notif-item-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 7px;
}

/* 空・読み込み中メッセージ */
.notif-empty,
.notif-loading {
  padding: 22px 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============================================
   🔔 ベルグレーアウト（未読ゼロ時）
   ============================================ */
.notif-bell-btn.no-unread {
  opacity: 0.38;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}
.notif-bell-btn.no-unread:hover {
  opacity: 0.65;
  filter: grayscale(0.5);
}

/* ============================================
   マイページ サイドバーナビ バッジ
   ============================================ */
.mypage-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d9534f;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 3px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1;
}

/* ============================================
   マイページ 通知ページ
   ============================================ */
.notif-page-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.btn-text-link {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-text-link:hover { opacity: 0.7; }

.notif-page-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notif-page-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #ece8e3;
  border-radius: 10px;
  transition: background 0.12s;
}
.notif-page-item.unread {
  background: #fffbf4;
  border-color: #f0e8d0;
}
.notif-page-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--dark);
}
a.notif-page-link:hover { background: none; }
a.notif-page-link:hover .notif-page-text { opacity: 0.8; }
.notif-page-link--plain {
  cursor: default;
  opacity: 0.75;
}
.notif-page-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
}
.notif-page-read-btn {
  font-size: 0.65rem;
  color: var(--muted);
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  white-space: nowrap;
}
.notif-page-read-btn:hover { border-color: var(--gold); color: var(--gold); }

.notif-page-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  line-height: 1.6;
}
.notif-page-body { flex: 1; min-width: 0; }
.notif-page-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--dark);
  word-break: break-word;
}
.notif-page-title {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-page-time {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}
.notif-page-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ============================================
   作品投稿フォーム（リデザイン）
   ============================================ */
.gallery-post-card {
  margin-top:16px; 
  background: #faf8f5;
  border: 1px solid #ece8e3;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 画像アップロードゾーン */
.gallery-upload-zone {
  position: relative;
  border: 2px dashed #d4ccc4;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
  background: #fff;
}
.gallery-upload-zone:hover {
  border-color: var(--gold);
  background: #fffbf3;
}
.gallery-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.gallery-upload-placeholder {
  text-align: center;
  pointer-events: none;
  padding: 24px 16px;
}
.gallery-upload-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}
.gallery-upload-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 5px;
}
.gallery-upload-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}
.gallery-upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-upload-reset {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.72rem;
  padding: 5px 12px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
}
.gallery-upload-reset:hover { background: rgba(0,0,0,0.75); }

/* テキストフィールド群 */
.gallery-post-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 横並び2列（ラベル + URL） */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* 投稿ボタン */
.btn-gallery-submit {
  display: block;
  width: 100%;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 13px 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-gallery-submit:hover { background: #b89a55; }

/* 編集フォームのボタン行（更新する＋キャンセルを横並び） */
.gallery-edit-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.gallery-edit-actions .btn-gallery-submit {
  width: auto;
  flex: 1;
}
.gallery-edit-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ========================================
   作品投稿フォーム — インプットスタイル統一（ひろばフォームに合わせる）
   ======================================== */
.gallery-post-fields .form-control,
.gallery-post-right .form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.gallery-post-fields .form-control:focus,
.gallery-post-right .form-control:focus {
  border-color: var(--gold);
  outline: none;
}

/* 投稿フォーム: 上段2カラムレイアウト */
.gallery-post-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
}
.gallery-post-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 600px) {
  .gallery-post-layout {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ひろば投稿フォーム — アコーディオン
   ======================================== */
.board-form-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--dark);
  text-align: left;
}
.board-form-toggle:hover { color: var(--gold); }
.board-form-toggle-icon {
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 8px;
}
.board-form-toggle[aria-expanded="true"] .board-form-toggle-icon {
  transform: rotate(180deg);
}
.board-post-form-body {
  margin-top: 22px;
}

/* ========================================
   作家のいろは — インデックスページ
   ======================================== */

/* ページヘッダー */
.guide-page-header {
  text-align: center;
}
.guide-page-header__sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 8px;
}

/* 案内文 */
.guide-intro-note {
  background: var(--bg);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 36px;
  border-radius: 0 4px 4px 0;
}
.guide-intro-note p { margin: 0; }

/* カテゴリナビ */
.cat-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.cat-nav__item {
  padding: 6px 14px;
  border: 1px solid #ddd;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--dark);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cat-nav__item:hover,
.cat-nav__item--active {
  border-color: var(--gold);
  color: var(--gold);
  background: #faf6ee;
}

/* ガイドセクション */
.guide-section {
  margin-bottom: 48px;
  scroll-margin-top: 90px; /* 固定ヘッダー分のオフセット */
}

@media (max-width: 767px) {
  .guide-section { scroll-margin-top: 80px; }
}
.guide-section__header {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.guide-section__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.05em;
  color: var(--gold);
}

/* ガイドグリッド（2カラム PC / 1カラム SP） */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 768px) {
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ガイドカード */
.guide-card {
  display: flex;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.guide-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.guide-card__num {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 16px 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.guide-card:hover .guide-card__num {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.guide-card__body {
  padding: 12px 14px;
  flex: 1;
  min-width: 0;
}
.guide-card__cat {
  font-size: 0.65rem;
  border: 1px solid var(--muted);
  color: var(--muted);
  padding: 1px 6px;
  display: inline-block;
  margin-bottom: 5px;
  letter-spacing: 0.03em;
}
.guide-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.45;
}
.guide-card__desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card__arrow {
  padding: 0 14px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* ========================================
   作家のいろは — 詳細ページ
   ======================================== */

/* パンくずリスト */
.breadcrumb-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0 var(--container-pad, 20px);
  max-width: var(--container-max, 860px);
  margin-left: auto;
  margin-right: auto;
  font-size: 0.78rem;
  color: var(--muted);
}
.breadcrumb__item a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb__item a:hover { color: var(--gold); }
.breadcrumb__sep { margin: 0 2px; }
.breadcrumb__current { color: var(--text); }

/* 詳細ページヒーロー */
.guide-detail-hero {
  position: relative;
}
.guide-detail-num {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 10px;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* 詳細レイアウト */
.guide-detail-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0 60px;
}

/* 🐦 導入文ボックス */
.guide-intro-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fffdf5;
  border: 1px solid #f0e8cc;
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 40px;
}
.guide-intro-box__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.guide-intro-box__text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text);
}
.guide-intro-box__text p { margin: 0; }

/* ブックマークボタン（詳細ページ） */
.guide-detail-bookmark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* 記事本文 */
.guide-article-body {
  margin-bottom: 48px;
}
.guide-article-body .single-post-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--dark);
}
.guide-article-body .single-post-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 28px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
}
.guide-article-body .single-post-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 20px 0 8px;
}
.guide-article-body .single-post-body blockquote {
  background: var(--bg);
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: var(--text);
}
.guide-article-body .single-post-body blockquote p { margin: 0; }
.guide-article-body .single-post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 16px 0 24px;
}
.guide-article-body .single-post-body table th,
.guide-article-body .single-post-body table td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.guide-article-body .single-post-body table th {
  background: var(--bg);
  font-weight: 600;
}
.guide-article-body .single-post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* 前後ナビゲーション */
.guide-detail-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.guide-detail-nav__prev { text-align: left; }
.guide-detail-nav__next { text-align: right; }
.guide-detail-nav__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}
.guide-detail-nav__link:hover .guide-detail-nav__label {
  color: var(--gold);
}
.guide-detail-nav__label {
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 0.15s;
}
.guide-detail-nav__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}
.guide-detail-nav__index {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}
.guide-detail-nav__index-link {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--border);
  padding: 4px 10px;
}
.guide-detail-nav__index-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 600px) {
  .guide-detail-nav {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .guide-detail-nav__prev  { grid-column: 1; grid-row: 1; }
  .guide-detail-nav__next  { grid-column: 2; grid-row: 1; }
  .guide-detail-nav__index { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; }
}

/* ============================================
   ずかん・よみもの ページ
   ============================================ */

/* アーカイブヘッダー サブテキスト */
.archive-header__sub {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
}


/* カード全体リンクラッパー（横型：サムネイル左・テキスト右） */
.card-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding: 14px 0;
}

/* kotokoto_cat バッジ（カード内） */
.card-cat {
  font-size: 0.65rem;
  border: 1px solid var(--muted);
  color: var(--muted);
  padding: 1px 6px;
  display: inline-block;
  margin-bottom: 5px;
  letter-spacing: 0.03em;
}

/* 空状態メッセージ */
.archive-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ページネーション（ずかん・よみものページ用） */
.pagination {
  text-align: center;
  margin: 48px auto 64px;
}

.pagination .page-numbers {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--card-border);
  font-size: 0.78rem;
  color: var(--dark);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.pagination .page-numbers a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination .page-numbers .current {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ============================================
   お問い合わせページ
   ============================================ */

.contact-wrap {
  max-width: 680px;
  margin: 48px auto 80px;
  padding: 0 56px;
}

@media (max-width: 767px) {
  .contact-wrap { padding: 0 20px; margin-top: 32px; }
}

/* 案内ボックス */
.contact-info-box {
  background: #faf6ee;
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* 必須マーク */
.contact-required {
  color: #c05050;
  margin-left: 3px;
  font-size: 0.8em;
}

/* テキストエリア（contact専用高さ） */
.contact-textarea {
  min-height: 160px;
}

/* プライバシー同意 */
.contact-privacy-group {
  margin-top: 4px;
  padding-top: 4px;
}

/* 送信エリア */
.contact-submit {
  margin-top: 28px;
  text-align: center;
}

.contact-submit-btn {
  min-width: 220px;
  padding: 14px 32px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  transition: background 0.2s, opacity 0.2s;
}

.contact-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.contact-submit-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* サンクスページ */
.contact-thanks-body {
  text-align: center;
  padding: 40px 0 20px;
  line-height: 2;
}

.contact-thanks-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 24px;
}

.contact-thanks-body p {
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: var(--dark);
}

.contact-thanks-actions {
  margin-top: 36px;
}

/* 404ページ */
.not-found-body {
  text-align: center;
  padding: 48px 20px 80px;
}

.not-found-body p {
  margin-bottom: 32px;
  color: #666;
  line-height: 1.9;
}

.not-found-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   マイページ オンボーディングチェックリスト
   ============================================ */
.onboard-card {
  background: #faf6ee;
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.onboard-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--dark);
}

.onboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.onboard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.onboard-item.is-done .onboard-label {
  color: var(--muted);
  text-decoration: line-through;
}

.onboard-check {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.onboard-label { flex: 1; }

.onboard-action {
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

.onboard-action:hover { text-decoration: underline; }

/* ============================================
   プロフィール詳細リスト（設定値ラベル表示）
   ============================================ */
.profile-detail-list {
  margin: 24px 0 0;
  border-top: 1px solid var(--border);
}

.profile-detail-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.profile-detail-label {
  flex-shrink: 0;
  width: 120px;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.profile-detail-value {
  flex: 1;
  min-width: 0;
  color: var(--dark);
  word-break: break-all;
}

.profile-detail-empty {
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-detail-link {
  color: var(--gold);
  font-size: 0.78rem;
  word-break: break-all;
}

.profile-detail-link:hover { text-decoration: underline; }

.profile-view-public-link {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}

.profile-view-public-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .profile-detail-row { flex-direction: column; gap: 4px; }
  .profile-detail-label { width: auto; }
}

/* ============================================
   マイページ ホームタブ（ダッシュボード）
   ============================================ */
.home-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.home-welcome-avatar {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 2px solid var(--gold-light);
  flex-shrink: 0;
}

.home-welcome-greeting {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.home-welcome-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.home-stat-card {
  text-align: center;
  padding: 16px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.home-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 4px;
}

.home-stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ホームタブ：最近の投稿・記録 */
.home-recent-section { margin-bottom: 20px; }
.home-sub-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.home-recent-artworks { display: flex; gap: 8px; }
.home-recent-tile {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0ece8;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.home-recent-tile:hover { opacity: 0.85; }
.home-recent-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-recent-tile-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
}
.home-activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.home-activity-item { display: flex; gap: 10px; align-items: baseline; font-size: 0.82rem; }
.home-activity-date { color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.home-activity-text { color: var(--dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.home-notif-section { margin-top: 8px; }

.home-notif-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .home-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   お知らせリスト（新着記事と同構造、別クラス）
   ============================================ */
.notice-list { list-style: none; }

.notice-list-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.notice-list-item:first-child { border-top: 1px solid var(--border); }

.notice-list-title {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 300;
  text-decoration: none;
}

.notice-list-title:hover { color: var(--gold); }

.notice-list-date {
  font-size: 0.71rem;
  color: var(--muted);
  flex-shrink: 0;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* タイプバッジ（一覧・詳細ページ用） */
.notice-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 400;
  flex-shrink: 0;
}

.notice-badge--info    { background: #faf6ee; color: var(--gold); }
.notice-badge--warning { background: #fff8f0; color: #e8813a; }
.notice-badge--news    { background: #f0faf4; color: #4caf7d; }

/* お知らせ詳細ページ */
.notice-detail-header { margin-bottom: 32px; }

.notice-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* ----------------------------------------
   お知らせ詳細：本文リッチテキストスタイル
   ---------------------------------------- */
.notice-detail-body {
  font-size: 0.92rem;
  line-height: 2;
  color: var(--dark);
}

/* p */
.notice-detail-body p {
  margin: 0 0 1.4em;
}
.notice-detail-body p:last-child { margin-bottom: 0; }

/* 見出し */
.notice-detail-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2.4em 0 0.8em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--dark);
  letter-spacing: 0.02em;
}
.notice-detail-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 2em 0 0.7em;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
}
.notice-detail-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 1.6em 0 0.6em;
}
.notice-detail-body h5,
.notice-detail-body h6 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 1.4em 0 0.5em;
  color: var(--muted);
}
/* 冒頭の見出しは上マージンなし */
.notice-detail-body > *:first-child { margin-top: 0; }

/* リンク */
.notice-detail-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notice-detail-body a:hover { opacity: 0.75; }

/* strong / em */
.notice-detail-body strong { font-weight: 700; }
.notice-detail-body em     { font-style: italic; }

/* リスト */
.notice-detail-body ul,
.notice-detail-body ol {
  margin: 0 0 1.4em 1.6em;
  padding: 0;
}
.notice-detail-body ul { list-style: disc; }
.notice-detail-body ol { list-style: decimal; }
.notice-detail-body li {
  margin-bottom: 0.4em;
  line-height: 1.9;
}
.notice-detail-body li > ul,
.notice-detail-body li > ol {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}
.notice-detail-body ul ul  { list-style: circle; }
.notice-detail-body ul ul ul { list-style: square; }

/* 引用（blockquote） */
.notice-detail-body blockquote {
  background: var(--bg);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  margin: 1.6em 0;
  font-size: 0.9rem;
  color: var(--text);
}
.notice-detail-body blockquote p    { margin: 0; }
.notice-detail-body blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: normal;
}

/* インラインコード */
.notice-detail-body code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85em;
  background: #f4f1ec;
  color: #c0392b;
  padding: 1px 5px;
  border-radius: 3px;
}

/* コードブロック（pre） */
.notice-detail-body pre {
  background: #1e1e2e;
  color: #cdd6f4;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  padding: 20px 24px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.6em 0;
}
.notice-detail-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* テーブル */
.notice-detail-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1.6em 0;
}
.notice-detail-body table th,
.notice-detail-body table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.notice-detail-body table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 0.8rem;
}
.notice-detail-body table tr:hover td { background: #faf8f5; }
/* Gutenberg テーブルブロック */
.notice-detail-body .wp-block-table { overflow-x: auto; margin: 1.6em 0; }
.notice-detail-body .wp-block-table table { margin: 0; }

/* 区切り線 */
.notice-detail-body hr,
.notice-detail-body .wp-block-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}

/* 画像 */
.notice-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 1.4em 0;
}
.notice-detail-body .alignleft  { float: left;  margin: 0.5em 1.6em 1em 0; }
.notice-detail-body .alignright { float: right; margin: 0.5em 0 1em 1.6em; }
.notice-detail-body .aligncenter { margin-left: auto; margin-right: auto; }
.notice-detail-body .wp-caption { max-width: 100%; }
.notice-detail-body .wp-caption-text,
.notice-detail-body figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
  line-height: 1.5;
}

/* Gutenberg：画像ブロック */
.notice-detail-body .wp-block-image { margin: 1.6em 0; }
.notice-detail-body .wp-block-image img { margin: 0; }

/* Gutenberg：カラムブロック */
.notice-detail-body .wp-block-columns {
  display: flex;
  gap: 24px;
  margin: 1.6em 0;
}
.notice-detail-body .wp-block-column { flex: 1; min-width: 0; }

/* Gutenberg：ボタンブロック */
.notice-detail-body .wp-block-button__link {
  display: inline-block;
  padding: 10px 24px;
  background: var(--gold);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.notice-detail-body .wp-block-button__link:hover { opacity: 0.85; }

/* Gutenberg：カバーブロック */
.notice-detail-body .wp-block-cover { border-radius: 6px; margin: 1.6em 0; }

/* モバイル */
@media (max-width: 640px) {
  .notice-detail-body h2 { font-size: 1.05rem; }
  .notice-detail-body h3 { font-size: 0.95rem; }
  .notice-detail-body table { font-size: 0.78rem; }
  .notice-detail-body table th,
  .notice-detail-body table td { padding: 7px 10px; }
  .notice-detail-body .alignleft,
  .notice-detail-body .alignright { float: none; margin: 1em 0; }
  .notice-detail-body .wp-block-columns { flex-direction: column; gap: 16px; }
}

.notice-back-link {
  margin-top: 48px;
  display: block;
  font-size: 0.82rem;
  color: var(--gold);
}

.notice-back-link:hover { text-decoration: underline; }

/* ============================================
   チュートリアルモーダル（会員登録後）
   ============================================ */
.tutorial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tutorial-overlay[hidden] { display: none; }

.tutorial-box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 40px 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.tutorial-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
}
.tutorial-close:hover { color: var(--dark); }

.tutorial-clip {
  overflow: hidden;
}

.tutorial-track {
  display: flex;
  transition: transform 0.35s ease;
  width: 100%;
}

.tutorial-slide {
  flex: 0 0 100%;
  width: 100%;
  text-align: center;
  padding: 0 4px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tutorial-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
  line-height: 1;
}

.tutorial-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  line-height: 1;
}

.tutorial-slide-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.4;
}

.tutorial-slide-body {
  font-size: 0.85rem;
  line-height: 1.85;
  color: #555;
  text-align: left;
}

.tutorial-content-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tutorial-content-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #555;
}
.tutorial-content-icon { flex-shrink: 0; }
.tutorial-member-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.tutorial-cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.tutorial-btn-mypage { width: 100%; text-align: center; }
.tutorial-btn-skip {
  position: static;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline;
}

.tutorial-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.tutorial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.tutorial-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

.tutorial-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.tutorial-prev,
.tutorial-next {
  background: none;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.tutorial-prev:hover,
.tutorial-next:hover { border-color: var(--gold); color: var(--gold); }
.tutorial-prev:disabled { opacity: 0.3; cursor: default; }

.tutorial-counter {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .tutorial-box { padding: 32px 20px 22px; }
  .tutorial-slide { min-height: 220px; }
  .tutorial-slide-title { font-size: 1rem; }
  .tutorial-slide-body { font-size: 0.8rem; }
  .tutorial-content-list li { font-size: 0.78rem; }
}

/* ============================================
   @メンション
   ============================================ */
.mention {
  color: var(--gold);
  font-weight: 500;
}

.mention-dropdown {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  min-width: 160px;
  max-width: 260px;
  z-index: 200;
  overflow: hidden;
}

.mention-item {
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--dark);
  transition: background 0.15s;
}

.mention-item:hover {
  background: var(--placeholder);
}

/* ドロップダウン内の @login 部分（薄め） */
.mention-login {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

/* ============================================
   ユーザーIDタグ（ひろば著者表示）
   ============================================ */
.user-login-tag {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  opacity: 0.75;
}

/* ============================================
   プロフィール設定: 読み取り専用フィールド
   ============================================ */
.form-input-static {
  display: block;
  padding: 8px 12px;
  background: var(--bg-light, #f7f5f2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--dark);
  margin: 0;
}

/* ============================================
   重要なお知らせバナー
   ============================================ */
.notice-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 300;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.notice-banner[hidden]  { display: none; }
.notice-banner--info    { background: #fff8e6; border-bottom: 2px solid var(--gold); }
.notice-banner--warning { background: #fff3e0; border-bottom: 2px solid #f57c00; }
.notice-banner--news    { background: #e8f5e9; border-bottom: 2px solid #388e3c; }

.notice-banner-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  color: #fff;
}
.notice-banner--info    .notice-banner-badge { background: var(--gold); }
.notice-banner--warning .notice-banner-badge { background: #f57c00; }
.notice-banner--news    .notice-banner-badge { background: #388e3c; }

.notice-banner-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--dark);
  font-weight: 500;
}

.notice-banner-link {
  font-size: 0.8rem;
  color: var(--dark);
  text-decoration: underline;
  white-space: nowrap;
  flex-shrink: 0;
}

.notice-banner-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}

/* ============================================
   マイページ：お知らせタブ
   ============================================ */
.mypage-notices-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mypage-notice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark);
  background: var(--white);
  transition: background 0.15s;
}
.mypage-notice-item:hover  { background: var(--placeholder); }
.mypage-notice-item.unread { background: var(--bg-light, #f7f5f2); }

.mypage-notice-title {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
}

.mypage-notice-date {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
