/*
 * Art Lounge - Custom CSS Override
 * 実際のHTMLクラス構造に合わせたセレクター
 * stylesheet.css は一切変更しません
 */

/* ========== フォント ========== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@300;500;600;700&family=Playfair+Display:wght@400;600;700&family=Syne:wght@800&display=swap');

/* ========== デザイン変数 ========== */
/* 配色テーマ：暖色「ローズ×ピンクベージュ」（2026-11-05 山縣さん決定。ロゴのローズ #C9586A に合わせた暖色。同日、ロゴ以外を少しだけ鮮やかに調整。調整前は backup_20261105_暖色鮮やか/）。
   変更前の配色の custom.css：ブルー → backup_20261105_暖色ローズ/、グレージュ×セージ → backup_20261105_配色ブルーとロゴ/、茶色系 → backup_20261105_配色グレージュセージ/ */
:root {
  --color-bg:              #FDF6F5;
  --color-white:           #FFFFFF;
  --color-text:            #3A2328;
  --color-text-secondary:  #6E5459;
  --color-text-tertiary:   #A08A8E;
  --color-accent:          #CC3F5B;
  --color-accent-light:    #EC8A9C;
  --color-border:          #F2D9DC;
  --color-card-hover:      #FCECEE;
  --font-jp:               'Noto Sans JP', sans-serif;
  --font-en:               'Playfair Display', serif;
}

/* ========== ベース ========== */
body {
  font-family: var(--font-jp) !important;
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  line-height: 1.8 !important;
  -webkit-font-smoothing: antialiased;
}

/* ========== ヘッダー ========== */
.headerbar {
  background: var(--color-white) !important;
  border-bottom: 1px solid var(--color-border) !important;
  box-shadow: none !important;
  background-image: none !important;
}
.headerbar .inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 16px 24px !important;
  background: transparent !important;
}

/* サイト名・説明 */
.site-description {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
#site-description p.sitename {
  font-family: var(--font-en) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  color: var(--color-text) !important;
}
#site-description p:not(.sitename):not(.skiplink) {
  font-size: 11px !important;
  color: var(--color-text-secondary) !important;
}
#logo img {
  height: 44px !important;
  width: auto !important;
}

/* ========== 検索ボックス ========== */
.search-box.search-header {
  background: var(--color-bg) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 20px !important;
  padding: 5px 14px !important;
  box-shadow: none !important;
}
.search-box .inputbox {
  background: transparent !important;
  border: none !important;
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  color: var(--color-text) !important;
}
.search-box .button-search,
.search-box .button-search-end {
  background: none !important;
  border: none !important;
  color: var(--color-text-tertiary) !important;
  box-shadow: none !important;
}
.search-header:hover {
  border-color: var(--color-accent-light) !important;
}

/* ========== ナビバー（タブ） ========== */
.navbar,
.navbar.tabbed {
  background: var(--color-white) !important;
  border-bottom: 1px solid var(--color-border) !important;
  box-shadow: none !important;
  background-image: none !important;
}
.navbar .inner {
  background: transparent !important;
}
.nav-tabs {
  background: transparent !important;
}
.nav-tabs .nav-link,
.nav-tabs a {
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  color: var(--color-text-secondary) !important;
  text-decoration: none !important;
}
.nav-tabs .nav-link:hover,
.nav-tabs a:hover {
  color: var(--color-accent) !important;
}

/* ========== パンくず ========== */
.nav-breadcrumbs,
#nav-breadcrumbs {
  background: transparent !important;
  border-bottom: 1px solid var(--color-border) !important;
}
.breadcrumbs a,
.crumb a {
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  color: var(--color-accent) !important;
  text-decoration: none !important;
}
.breadcrumbs a:hover,
.crumb a:hover {
  text-decoration: underline !important;
}

/* ========== ページ本体 ========== */
#wrap {
  background: var(--color-bg) !important;
}
#page-body {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px 24px !important;
}

/* ========== カテゴリブロック（.forabg） ========== */
.forabg {
  background: var(--color-white) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 10px !important;
  margin-bottom: 16px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  background-image: none !important;
}
.forabg .inner {
  padding: 0 !important;
  background: transparent !important;
}

/* 全 .forabg のヘッダー行: 青背景を白に上書き */
.forabg .topiclist li.header {
  background: var(--color-bg) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--color-border) !important;
  padding: 0 !important;
}
.forabg .topiclist li.header .row-item {
  padding: 10px 20px !important;
  background: transparent !important;
}
.forabg .topiclist li.header a,
.forabg .topiclist li.header dt a {
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  text-decoration: none !important;
}
.forabg .topiclist li.header dd {
  font-family: var(--font-jp) !important;
  font-size: 12px !important;
  color: var(--color-text-tertiary) !important;
}

/* ========== カテゴリーwrapper（全カード一体グリッド） ========== */

.al-category-wrapper {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* forabg・inner・topiclist.forums を透明化してグリッドに参加させる */
.al-category-wrapper .forabg[class*="category-"] {
  display: contents !important;
}
.al-category-wrapper .forabg[class*="category-"] .inner {
  display: contents !important;
}
.al-category-wrapper .forabg[class*="category-"] ul.topiclist:not(.forums) {
  display: none !important;
}
.al-category-wrapper .forabg[class*="category-"] .topiclist.forums {
  display: contents !important;
}

/* display:contents 要素の疑似要素がグリッドアイテムになるのを防ぐ */
.al-category-wrapper .forabg[class*="category-"]::before,
.al-category-wrapper .forabg[class*="category-"]::after,
.al-category-wrapper .forabg[class*="category-"] .inner::before,
.al-category-wrapper .forabg[class*="category-"] .inner::after,
.al-category-wrapper .forabg[class*="category-"] .topiclist.forums::before,
.al-category-wrapper .forabg[class*="category-"] .topiclist.forums::after {
  display: none !important;
  content: none !important;
}

/* カテゴリヘッダー（ジャンル・場・人・その他）をアクセントライン付きで表示 */
.al-category-wrapper .forabg[class*="category-"] .topiclist li.header {
  display: none !important;
}
.al-category-wrapper .forabg[class*="category-"] .topiclist li.header .row-item {
  padding: 16px 20px 8px !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.al-category-wrapper .forabg[class*="category-"] .topiclist li.header .row-item::before {
  content: '' !important;
  display: inline-block !important;
  width: 3px !important;
  height: 14px !important;
  background: var(--color-accent) !important;
  border-radius: 2px !important;
  flex-shrink: 0 !important;
}
.al-category-wrapper .forabg[class*="category-"] .topiclist li.header .row-item dt {
  float: none !important;
  width: auto !important;
  background: transparent !important;
  background-image: none !important;
  padding: 0 !important;
}
.al-category-wrapper .forabg[class*="category-"] .topiclist li.header a,
.al-category-wrapper .forabg[class*="category-"] .topiclist li.header dt a {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--color-text-secondary) !important;
  text-decoration: none !important;
  pointer-events: none !important;
}
.al-category-wrapper .forabg[class*="category-"] .topiclist li.header dd {
  display: none !important;
}

/* ========== フォーラム行（カード型グリッド）========== */

.forabg[class*="category-"] .topiclist.forums {
  list-style: none !important;
}

/* li.row: カードコンテナ */
.forabg[class*="category-"] .topiclist.forums li.row {
  display: block !important;
  border: 1px solid var(--color-border) !important;
  background: var(--color-white) !important;
  border-radius: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  transition: all 0.25s ease !important;
}
.forabg[class*="category-"] .topiclist.forums li.row:hover {
  border-color: var(--color-accent-light) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
  transform: translateY(-2px) !important;
  background: var(--color-white) !important;
}

/* dl / dt のリセット */
.forabg[class*="category-"] .topiclist.forums .row-item {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
}
.forabg[class*="category-"] .topiclist.forums li.row dd {
  display: none !important;
}
.forabg[class*="category-"] .topiclist.forums .row-item dt {
  display: block !important;
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
}
.forabg[class*="category-"] .topiclist.forums .list-inner {
  display: block !important;
  width: 100% !important;
  padding-left: 0 !important;
}

/* 不要な要素を非表示 */
.forabg[class*="category-"] .topiclist.forums .forum-image,
.forabg[class*="category-"] .topiclist.forums dt > .icon,
.forabg[class*="category-"] .topiclist.forums .forum-description,
.forabg[class*="category-"] .topiclist.forums .forum-statistics,
.forabg[class*="category-"] .topiclist.forums .forum-moderators,
.forabg[class*="category-"] .topiclist.forums .forum-lastpost,
.forabg[class*="category-"] .topiclist.forums .subforums-list,
.forabg[class*="category-"] .topiclist.forums .responsive-show,
.forabg[class*="category-"] .topiclist.forums .row-item-link {
  display: none !important;
}

/* フォーラムタイトルリンク（カード内テキスト） */
.forabg[class*="category-"] a.forumtitle {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: var(--font-jp) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
  padding: 16px 20px !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  transition: color 0.2s !important;
}
.forabg[class*="category-"] a.forumtitle:hover {
  color: var(--color-accent) !important;
  background: transparent !important;
}

/* ========== フォーラム切り替えボタン ========== */
.forum-toggle {
  display: none !important;
}

/* ========== 統計ブロック ========== */
.stat-block {
  background: var(--color-white) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 10px !important;
  padding: 16px 20px !important;
  margin-bottom: 16px !important;
  box-shadow: none !important;
}
.stat-block h3 {
  font-family: var(--font-jp) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--color-text-tertiary) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
  border-bottom: none !important;
  background: transparent !important;
  padding: 0 !important;
}
.stat-block p {
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  color: var(--color-text-secondary) !important;
  line-height: 1.8 !important;
}

/* ========== フッターナビ ========== */
.nav-footer {
  background: transparent !important;
}
.nav-footer a {
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  color: var(--color-text-secondary) !important;
}

/* ========== ページフッター ========== */
#page-footer {
  background: var(--color-white) !important;
  border-top: 1px solid var(--color-border) !important;
  margin-top: 32px !important;
}
#page-footer .copyright,
#page-footer p,
#page-footer span,
#page-footer a {
  font-family: var(--font-jp) !important;
  font-size: 12px !important;
  color: var(--color-text-tertiary) !important;
  text-decoration: none !important;
}
#page-footer a:hover {
  color: var(--color-accent) !important;
}
.footer-row {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px 24px !important;
}

/* ========== レスポンシブ ========== */
@media (max-width: 768px) {
  .headerbar .inner { padding: 12px 16px !important; }
  #site-description p.sitename { font-size: 20px !important; }
  #logo .logo-text { font-size: 20px !important; }
  #logo .logo-sub { font-size: 10px !important; }
  #logo .logo-text-group { gap: 6px !important; }
  #page-body { padding: 12px 16px !important; }
  .al-category-wrapper {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  /* カテゴリー名が省略(…)されず折り返して全文表示され、
     かつ全カードの高さが揃うようにする */
  .forabg[class*="category-"] a.forumtitle {
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
    padding: 12px !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    height: 56px !important;
    box-sizing: border-box !important;
  }
  /* アクションバー（新しいトピック・検索・ページ数）を折り返す */
  /* 折り返しがないと .pagination が極端に狭い幅まで潰れ、
     文字が縦一列に折り返されて巨大な空白ができるため */
  .action-bar {
    flex-wrap: wrap !important;
  }
  .action-bar .pagination {
    margin-left: 0 !important;
    width: 100% !important;
    white-space: normal !important;
  }
}
@media (max-width: 480px) {
  .search-box.search-header { display: none !important; }
  .al-category-wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ========== ナビ追加リンク（ルール・削除申請・Q&A） ========== */
.al-nav-about .nav-link,
.al-nav-rules .nav-link,
.al-nav-request .nav-link,
.al-nav-faq .nav-link {
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--color-text-secondary) !important;
  letter-spacing: 0.05em !important;
  padding: 0 10px !important;
}
.al-nav-about .nav-link:hover,
.al-nav-rules .nav-link:hover,
.al-nav-request .nav-link:hover,
.al-nav-faq .nav-link:hover {
  color: var(--color-accent) !important;
}
/* FAQタブのアイコンを非表示（テキストのみ） */
.al-nav-faq .icon {
  display: none !important;
}

/* ========== Art Lounge カスタムフッター ========== */
.al-footer {
  background: var(--color-white) !important;
  border-top: 1px solid var(--color-border) !important;
  margin-top: 32px !important;
}
.al-footer-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 48px 24px 32px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 40px !important;
}
/* ブランド部分 */
.al-footer-brand {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-width: 200px !important;
}
.al-footer-logo-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.al-logo-img {
  height: 32px !important;
  width: auto !important;
}
.al-logo-text {
  font-family: var(--font-en) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--color-text) !important;
  letter-spacing: 0.02em !important;
}
.al-footer-desc {
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  color: var(--color-text-secondary) !important;
  line-height: 1.8 !important;
  max-width: 280px !important;
}
/* リンク列 */
.al-footer-links {
  display: flex !important;
  gap: 48px !important;
}
.al-footer-col h4 {
  font-family: var(--font-en) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--color-text-tertiary) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  margin-bottom: 14px !important;
}
.al-footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.al-footer-col li {
  margin-bottom: 8px !important;
}
.al-footer-col a {
  font-family: var(--font-jp) !important;
  font-size: 14px !important;
  color: var(--color-text-secondary) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
.al-footer-col a:hover {
  color: var(--color-accent) !important;
}
/* コピーライトバー */
.al-footer-bottom {
  border-top: 1px solid var(--color-border) !important;
  text-align: center !important;
  padding: 16px 24px !important;
  font-family: var(--font-jp) !important;
  font-size: 12px !important;
  color: var(--color-text-tertiary) !important;
}

/* phpBB標準フッター（帰属表示）を小さく整理 */
#page-footer {
  background: var(--color-bg) !important;
  border-top: none !important;
  margin-top: 0 !important;
}
#page-footer .copyright {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 12px 24px !important;
  text-align: center !important;
}
#page-footer .footer-row {
  padding: 2px 0 !important;
}
#page-footer .footer-copyright,
#page-footer .footer-copyright a,
#page-footer .footer-link,
#page-footer .footer-link-text {
  font-family: var(--font-jp) !important;
  font-size: 11px !important;
  color: var(--color-text-tertiary) !important;
  text-decoration: none !important;
}
#page-footer .footer-copyright a:hover,
#page-footer .footer-link:hover .footer-link-text {
  color: var(--color-accent) !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .al-footer-inner {
    flex-direction: column !important;
    padding: 32px 16px 24px !important;
  }
  .al-footer-links {
    gap: 28px !important;
    flex-wrap: wrap !important;
  }
}

/* ========== ロゴテキストグループ（mockに合わせた構造） ========== */
#logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
}
#logo .logo-img {
  height: 44px !important;
  width: auto !important;
}
#logo .logo-text-group {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}
#logo .logo-text {
  font-family: var(--font-en) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--color-text) !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
}
#logo .logo-sub {
  font-family: var(--font-jp) !important;
  font-size: 11px !important;
  color: var(--color-text-secondary) !important;
  letter-spacing: 0.1em !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}
/* 元のsitenameテキストは非表示 */
#site-description p.sitename.sr-only {
  display: none !important;
}
/* site-descriptionの元のレイアウト調整 */
#site-description {
  align-items: center !important;
}

/* ================================================
   トピック一覧ページ (viewforum) スタイル
   ================================================ */

/* ページタイトル（フォーラム名） */
h2.forum-title,
h2.forum-title a {
  font-family: var(--font-jp) !important;
  font-size: 26px !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  text-decoration: none !important;
  margin-bottom: 8px !important;
  padding: 24px 0 8px !important;
}

/* ========== アクションバー（新しいトピック・検索） ========== */
.action-bar {
  background: transparent !important;
  border: none !important;
  padding: 12px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* 「新しいトピック」ボタン */
.action-bar a.button,
.action-bar .button {
  font-family: var(--font-jp) !important;
  font-size: 14px !important;
  background: var(--color-accent) !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: background 0.2s !important;
  box-shadow: none !important;
}
.action-bar a.button:hover,
.action-bar .button:hover {
  background: var(--color-accent-light) !important;
  color: #fff !important;
}

/* ソートボタン（セカンダリ） */
.action-bar .button-secondary,
.action-bar .button2 {
  background: var(--color-white) !important;
  color: var(--color-text-secondary) !important;
  border: 1px solid var(--color-border) !important;
}
.action-bar .button-secondary:hover {
  border-color: var(--color-accent-light) !important;
  color: var(--color-text) !important;
}

/* 板のQRコード（アクションバー内のトグル） */
.action-bar .qr-details {
  display: inline-block !important;
}
.action-bar .qr-details summary {
  list-style: none !important;
  cursor: pointer !important;
}
.action-bar .qr-details summary::-webkit-details-marker {
  display: none !important;
}
.action-bar .qr-details .qr-panel {
  margin-top: 8px !important;
  padding: 12px !important;
  background: var(--color-white) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 10px !important;
  text-align: center !important;
}
.action-bar .qr-details .qr-panel img {
  display: block !important;
  margin: 0 auto 8px !important;
}
.action-bar .qr-details .qr-panel-actions a {
  font-family: var(--font-jp) !important;
  font-size: 12px !important;
  color: var(--color-accent) !important;
  text-decoration: none !important;
}
.action-bar .qr-details .qr-panel-actions a:hover {
  text-decoration: underline !important;
}

/* アクションバー内の検索ボックス */
.action-bar .search-box {
  border-radius: 20px !important;
  padding: 4px 12px !important;
}
.action-bar .pagination {
  margin-left: auto !important;
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  color: var(--color-text-tertiary) !important;
  border: none !important;
}
.action-bar .pagination a,
.action-bar .pagination span {
  border: none !important;
  padding: 0 2px !important;
}

/* ========== トピックリスト外枠 ========== */
.forumbg {
  background: var(--color-white) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}
.forumbg .inner {
  padding: 0 !important;
}

/* ========== ヘッダー行（トピック・返信数・閲覧数・最新記事） ========== */
.forumbg .topiclist li.header {
  background: var(--color-bg) !important;
  background-image: none !important;
  border-bottom: 2px solid var(--color-border) !important;
}
.forumbg .topiclist li.header .row-item {
  padding: 10px 20px !important;
  background: transparent !important;
}
.forumbg .topiclist li.header dt,
.forumbg .topiclist li.header dd {
  font-family: var(--font-jp) !important;
  font-size: 12px !important;
  color: var(--color-text-tertiary) !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  background: transparent !important;
}

/* ========== トピック行 ========== */
.topiclist.topics li.row {
  background: var(--color-white) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--color-border) !important;
  transition: background 0.15s !important;
}
.topiclist.topics li.row:last-child {
  border-bottom: none !important;
}
.topiclist.topics li.row:hover {
  background: var(--color-card-hover) !important;
}
.topiclist.topics .row-item {
  padding: 16px 20px !important;
  background: transparent !important;
  background-image: none !important;
}

/* トピックタイトル */
a.topictitle {
  font-family: var(--font-jp) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
a.topictitle:hover {
  color: var(--color-accent) !important;
}

/* 投稿者・日付メタ情報 */
.topic-poster {
  font-family: var(--font-jp) !important;
  font-size: 12px !important;
  color: var(--color-text-tertiary) !important;
  margin-top: 4px !important;
}
.topic-poster .username {
  color: var(--color-text-secondary) !important;
}

/* 返信数・閲覧数 */
dd.posts,
dd.views {
  font-family: var(--font-jp) !important;
  font-size: 14px !important;
  color: var(--color-text-secondary) !important;
  text-align: center !important;
}
dd.posts dfn,
dd.views dfn {
  display: none !important;
}

/* 最新記事列 */
dd.lastpost {
  font-family: var(--font-jp) !important;
  font-size: 12px !important;
  color: var(--color-text-tertiary) !important;
}
dd.lastpost .username {
  color: var(--color-text-secondary) !important;
  font-weight: 500 !important;
}
dd.lastpost a {
  color: var(--color-text-secondary) !important;
  text-decoration: none !important;
}
dd.lastpost a:hover {
  color: var(--color-accent) !important;
}
dd.lastpost time {
  color: var(--color-text-tertiary) !important;
}
dd.lastpost dfn {
  display: none !important;
}

/* ========== パーミッション・統計ブロック ========== */
.stat-block.permissions {
  background: var(--color-white) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 10px !important;
  padding: 16px 20px !important;
  margin-top: 16px !important;
  box-shadow: none !important;
}
.stat-block.permissions h3 {
  font-family: var(--font-jp) !important;
  font-size: 12px !important;
  color: var(--color-text-tertiary) !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.stat-block.permissions p {
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  color: var(--color-text-secondary) !important;
  line-height: 1.8 !important;
}

/* ========== ジャンプボックス・戻るリンク ========== */
.actions-jump {
  background: transparent !important;
  border: none !important;
}
.jumpbox-return a,
.jumpbox .button-secondary {
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  color: var(--color-text-secondary) !important;
}

/* ========== アクションバー内フォーラム検索ボックス 調整 ========== */

/* 検索ボックス全体を枠線付きに */
.action-bar .search-box {
  border: 1px solid var(--color-border) !important;
  border-radius: 8px !important;
  padding: 3px 8px !important;
  background: var(--color-white) !important;
  display: inline-flex !important;
  align-items: center !important;
}
.action-bar .search-box:focus-within {
  border-color: var(--color-accent) !important;
}

/* 入力フィールド */
.action-bar .search-box .inputbox {
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--color-text) !important;
  padding: 4px 6px !important;
  min-width: 160px !important;
}

/* 検索・設定ボタンを小さく */
.action-bar .search-box .button-search,
.action-bar .search-box .button-search-end {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 6px !important;
  color: var(--color-text-tertiary) !important;
  font-size: 13px !important;
  min-width: unset !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  border-radius: 4px !important;
}
.action-bar .search-box .button-search:hover,
.action-bar .search-box .button-search-end:hover {
  color: var(--color-accent) !important;
  background: var(--color-card-hover) !important;
}
.action-bar .search-box .icon {
  font-size: 13px !important;
}

/* ========== フォーラムパーミッション非表示 ========== */
.stat-block.permissions {
  display: none !important;
}

/* ========== 投稿フォーム (newtopic / reply) ========== */

/* ページタイトル */
body.section-posting h2.posting-title {
  font-size: 22px !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  margin: 24px 0 16px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
body.section-posting h2.posting-title a {
  color: var(--color-text) !important;
  text-decoration: none !important;
}
body.section-posting h2.posting-title a:hover {
  color: var(--color-accent) !important;
}

/* メインパネル */
body.section-posting #postingbox {
  background: var(--color-white) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
body.section-posting #postingbox .inner {
  padding: 28px 32px !important;
}
/* パネル内のセクションタイトルは非表示 */
body.section-posting #postingbox h3 {
  display: none !important;
}

/* トピックアイコン行を非表示 */
body.section-posting fieldset.fields1 > dl:first-child {
  display: none !important;
}

/* フォームフィールド レイアウトリセット */
body.section-posting fieldset.fields1 > dl {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 20px !important;
  float: none !important;
  clear: none !important;
  overflow: visible !important;
}
body.section-posting fieldset.fields1 dt {
  float: none !important;
  width: auto !important;
  text-align: left !important;
  margin-bottom: 6px !important;
}
body.section-posting fieldset.fields1 dt label {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
}
body.section-posting fieldset.fields1 dd {
  margin: 0 !important;
  float: none !important;
}

/* テキスト入力フィールド */
body.section-posting fieldset.fields1 input.inputbox {
  width: 100% !important;
  max-width: 580px !important;
  padding: 10px 14px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-family: var(--font-jp) !important;
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s !important;
}
body.section-posting fieldset.fields1 input.inputbox:focus {
  border-color: var(--color-accent) !important;
}

/* BBCodeツールバー */
body.section-posting #format-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2px !important;
  padding: 8px 0 !important;
  margin-bottom: 8px !important;
  border-top: none !important;
  border-bottom: 1px solid var(--color-border) !important;
  background: none !important;
  box-shadow: none !important;
}
body.section-posting #format-buttons .button.button-icon-only {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  color: var(--color-text-secondary) !important;
  font-size: 13px !important;
  box-shadow: none !important;
  transition: all 0.2s !important;
}
body.section-posting #format-buttons .button.button-icon-only:hover {
  background: var(--color-card-hover) !important;
  color: var(--color-text) !important;
}
body.section-posting #format-buttons .bbcode-size {
  height: 32px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  padding: 0 8px !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
}

/* スマイリーボックス非表示 */
body.section-posting #smiley-box {
  display: none !important;
}

/* テキストエリア */
body.section-posting #message-box {
  clear: both !important;
  margin-top: 8px !important;
}
body.section-posting #message-box textarea {
  width: 100% !important;
  min-height: 260px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-family: var(--font-jp) !important;
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  line-height: 1.8 !important;
  resize: vertical !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s !important;
}
body.section-posting #message-box textarea:focus {
  border-color: var(--color-accent) !important;
}

/* 送信ボタンパネル */
body.section-posting .panel.bg2 {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
body.section-posting .panel.bg2 .inner {
  padding: 12px 0 0 !important;
}
body.section-posting .submit-buttons {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
body.section-posting .submit-buttons input[name="post"] {
  background: var(--color-accent) !important;
  color: #fff !important;
  border: none !important;
  padding: 11px 28px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-family: var(--font-jp) !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background 0.2s !important;
}
body.section-posting .submit-buttons input[name="post"]:hover {
  background: var(--color-accent-light) !important;
}
body.section-posting .submit-buttons input[name="preview"] {
  background: none !important;
  color: var(--color-text-secondary) !important;
  border: 1px solid var(--color-border) !important;
  padding: 11px 22px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-family: var(--font-jp) !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all 0.2s !important;
}
body.section-posting .submit-buttons input[name="preview"]:hover {
  border-color: var(--color-accent-light) !important;
  color: var(--color-text) !important;
}

/* オプションパネル */
body.section-posting #tabs {
  border: none !important;
  background: none !important;
  margin-top: 16px !important;
}
body.section-posting #tabs .tab a {
  color: var(--color-text-secondary) !important;
  font-size: 13px !important;
}
body.section-posting #tabs .activetab a {
  color: var(--color-text) !important;
}
body.section-posting .panel.bg3 {
  background: var(--color-white) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
body.section-posting .panel.bg3 .inner {
  padding: 16px 20px !important;
}
body.section-posting .panel.bg3 fieldset label {
  font-size: 13px !important;
  color: var(--color-text-secondary) !important;
}

/* オプションパネル・タブ非表示 */
body.section-posting #tabs,
body.section-posting #options-panel {
  display: none !important;
}

/* テキストエリア横幅100%・BBCodeツールバー非表示 */
body.section-posting #postingbox .inner,
body.section-posting #postingbox fieldset.fields1 {
  width: 100% !important;
  box-sizing: border-box !important;
}
body.section-posting #message-box,
body.section-posting #message-box textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
/* BBCodeツールバー（ウィズイグ）非表示 */
body.section-posting #format-buttons,
body.section-posting #colour_palette {
  display: none !important;
}

/* ========== トピック表示 (viewtopic) ========== */

/* トピックタイトル */
body.section-viewtopic h2.topic-title {
  font-size: 22px !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  margin: 24px 0 16px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
body.section-viewtopic h2.topic-title a {
  color: var(--color-text) !important;
  text-decoration: none !important;
}
body.section-viewtopic h2.topic-title a:hover {
  color: var(--color-accent) !important;
}

/* アクションバー */
body.section-viewtopic .action-bar {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px 0 !important;
}
body.section-viewtopic .action-bar .button {
  background: var(--color-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  box-shadow: none !important;
  transition: background 0.2s !important;
}
body.section-viewtopic .action-bar .button:hover {
  background: var(--color-accent-light) !important;
}
body.section-viewtopic .action-bar .button-secondary {
  background: none !important;
  color: var(--color-text-secondary) !important;
  border: 1px solid var(--color-border) !important;
}
body.section-viewtopic .action-bar .button-secondary:hover {
  border-color: var(--color-accent-light) !important;
  color: var(--color-text) !important;
}

/* 各投稿カード */
body.section-viewtopic .post {
  background: var(--color-white) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  margin-bottom: 16px !important;
  overflow: hidden !important;
}
body.section-viewtopic .post.bg1,
body.section-viewtopic .post.bg2 {
  background: var(--color-white) !important;
}
body.section-viewtopic .post .inner {
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
}

/* プロフィールサイドバーを非表示 */
body.section-viewtopic dl.postprofile {
  display: none !important;
}

/* 投稿本文エリアをフル幅に */
body.section-viewtopic .postbody {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

/* 投稿コンテナ（ボタン絶対配置の基準点） */
body.section-viewtopic div[id^="post_content"] {
  position: relative !important;
}

/* 投稿タイトル（h3）を非表示 */
body.section-viewtopic .postbody h3 {
  display: none !important;
}

/* 投稿者ID非表示 */
body.section-viewtopic .poster-id {
  display: none !important;
}

/* 著者行をカードヘッダーとして表示 */
body.section-viewtopic p.author {
  display: flex !important;
  align-items: center !important;
  padding: 12px 80px 12px 20px !important;
  background: var(--color-card-hover) !important;
  border-bottom: 1px solid var(--color-border) !important;
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--color-text-secondary) !important;
}
/* ファイルアイコン非表示 */
body.section-viewtopic p.author a.unread {
  display: none !important;
}
/* ユーザー名 */
body.section-viewtopic p.author .username {
  font-weight: 500 !important;
  color: var(--color-text) !important;
  font-size: 14px !important;
}
/* 日時を右寄せ */
body.section-viewtopic p.author time {
  margin-left: auto !important;
  font-size: 12px !important;
  color: var(--color-text-tertiary) !important;
}

/* 通報・引用ボタンをカード右上に配置 */
body.section-viewtopic ul.post-buttons {
  position: absolute !important;
  top: 8px !important;
  right: 12px !important;
  display: flex !important;
  gap: 2px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1 !important;
}
body.section-viewtopic ul.post-buttons li.responsive-menu {
  display: none !important;
}
body.section-viewtopic ul.post-buttons .button-icon-only {
  background: none !important;
  border: none !important;
  color: var(--color-text-tertiary) !important;
  padding: 5px 7px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
}
body.section-viewtopic ul.post-buttons .button-icon-only:hover {
  background: var(--color-border) !important;
  color: var(--color-accent) !important;
}

/* 投稿内容 */
body.section-viewtopic div.content {
  padding: 20px 24px !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: var(--color-text) !important;
}

/* 引用ブロック */
body.section-viewtopic div.content blockquote {
  border-left: 3px solid var(--color-accent-light) !important;
  padding: 10px 16px !important;
  margin: 12px 0 !important;
  background: var(--color-card-hover) !important;
  border-radius: 0 8px 8px 0 !important;
  font-size: 14px !important;
  color: var(--color-text-secondary) !important;
  box-shadow: none !important;
}
body.section-viewtopic div.content blockquote cite {
  display: block !important;
  font-size: 12px !important;
  color: var(--color-text-tertiary) !important;
  margin-bottom: 6px !important;
  font-style: normal !important;
}

/* ページトップボタン非表示 */
body.section-viewtopic .back2top {
  display: none !important;
}

/* ジャンプボックス */
body.section-viewtopic .actions-jump {
  border: none !important;
  background: none !important;
  margin-top: 8px !important;
}
body.section-viewtopic .jumpbox-return a {
  color: var(--color-accent) !important;
  font-size: 13px !important;
  text-decoration: none !important;
}
body.section-viewtopic .jumpbox-return a:hover {
  text-decoration: underline !important;
}

/* 投稿者アバター・プロフィール列を確実に非表示 */
body.section-viewtopic .avatar-container,
body.section-viewtopic dl.postprofile,
body.section-viewtopic .postprofile {
  display: none !important;
}

/* 投稿本文の左余白をリセット（プロフィールサイドバー非表示後の空白除去） */
body.section-viewtopic .postbody {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
body.section-viewtopic .post .inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 投稿本文の左空白を完全除去 */
body.section-viewtopic .postprofile + .postbody {
  margin-left: 0 !important;
  float: none !important;
  width: 100% !important;
}
body.section-viewtopic .postprofile + .postbody > div {
  margin-left: 0 !important;
}
body.section-viewtopic .post .inner {
  display: block !important;
  overflow: visible !important;
}
/* ========== topstats / 統計ブロック（Art Loungeデザイン） ========== */

/* 2カラムコンテナ */
.container {
  gap: 12px !important;
  margin-bottom: 12px !important;
}

/* 左右ブロック */
.block-left,
.block-right,
.block-left-off {
  padding: 0 !important;
}

/* forabg内のheader行（タイトル）：最新のトピックスに合わせる */
.container .forabg .topiclist li.header {
  background: var(--color-bg) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--color-border) !important;
  padding: 0 !important;
}
.container .forabg .topiclist li.header dl {
  display: flex !important;
  align-items: center !important;
  padding: 10px 20px !important;
  background: transparent !important;
}
.container .forabg .topiclist li.header dt {
  font-family: var(--font-jp) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  background: transparent !important;
  background-image: none !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
}
.container .forabg .topiclist li.header dd {
  display: none !important;
}

/* 各行 */
.container .forabg .topiclist.forums li.row {
  border-bottom: 1px solid var(--color-border) !important;
  background: transparent !important;
  padding: 0 !important;
  display: block !important;
  flex: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.container .forabg .topiclist.forums li.row:last-child {
  border-bottom: none !important;
}
.container .forabg .topiclist.forums li.row:hover {
  background: var(--color-card-hover) !important;
}
.container .forabg .topiclist.forums .row-item {
  display: flex !important;
  align-items: center !important;
  padding: 10px 16px !important;
  width: auto !important;
  background: transparent !important;
}
.container .forabg .topiclist.forums .row-item dt {
  flex: 1 !important;
  float: none !important;
  width: auto !important;
  padding: 0 !important;
  background: transparent !important;
}
.container .forabg .topiclist.forums .row-item dd {
  display: block !important;
  float: none !important;
  width: auto !important;
  text-align: right !important;
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  color: var(--color-text-secondary) !important;
  padding: 0 !important;
  border: none !important;
  flex-shrink: 0 !important;
}

/* トピックタイトルリンク */
a.stats_topic_title {
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  text-decoration: none !important;
}
a.stats_topic_title:hover {
  color: var(--color-accent) !important;
}

/* 投稿者情報 */
.stats_author {
  font-family: var(--font-jp) !important;
  font-size: 11px !important;
  color: var(--color-text-tertiary) !important;
}
.stats_author a {
  color: var(--color-text-secondary) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

/* フォーラム名リンク（最も活発なフォーラム） */
.stats_name a {
  font-family: var(--font-jp) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  text-decoration: none !important;
}
.stats_name a:hover {
  color: var(--color-accent) !important;
}

/* 統計数値 */
.stats_infos-off,
.stats_post_infos,
.stats_date-off {
  font-family: var(--font-jp) !important;
  font-size: 12px !important;
  color: var(--color-text-secondary) !important;
}



/* トピック一覧 list-inner の padding をリセット */
dl.row-item dt .list-inner {
  padding: 0 !important;
}


/* ========== ヘッダー整理（2026-09 打ち合わせ反映） ========== */
/* 左メニュー「三」（クイックリンク）を非表示 */
.navbar .quick-links,
#quick-links {
  display: none !important;
}
/* ロゴ下のキャッチコピー（フッターと同文言） */
#site-description {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
}
#site-description p.al-header-desc {
  font-family: var(--font-jp) !important;
  font-size: 12px !important;
  color: var(--color-text-secondary) !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}
/* 検索を目立たせる */
.search-box.search-header {
  border: 1px solid var(--color-accent) !important;
  background: var(--color-white) !important;
  padding: 7px 18px !important;
}
.search-box.search-header .inputbox {
  font-size: 14px !important;
  min-width: 240px !important;
}
.search-box.search-header .button-search {
  color: var(--color-accent) !important;
}
.search-header:hover,
.search-header:focus-within {
  box-shadow: 0 0 0 3px rgba(204,63,91,0.18) !important;
}

/* スマホ幅：phpBB標準CSSが .site-description p を非表示にするため、キャッチコピーのみ表示を戻す */
@media (max-width: 700px) {
  #site-description {
    align-items: center !important;
  }
  #site-description p.al-header-desc {
    display: block !important;
    text-align: center !important;
    font-size: 11px !important;
    margin: 0 0 8px !important;
  }
}

/* パンくず右の検索（虫眼鏡）アイコンの色をサイトのアクセント色に統一 */
.responsive-search a,
.responsive-search a .icon {
  color: var(--color-accent) !important;
}
.responsive-search a:hover,
.responsive-search a:hover .icon {
  color: var(--color-accent-light) !important;
}

/* ========== リンク色をサイトのアクセント色に統一（標準の青 #3462a0 を置換） ========== */
a,
a:link,
a:visited {
  color: var(--color-accent);
}
a:hover,
a:active {
  color: var(--color-accent-light);
}

/* フッター：「連絡する」バーを非表示（打ち合わせ反映）。stylesheet.css の再表示ルールを上書き */
#nav-footer,
.navbar:has(> #nav-footer),
#nav-footer > li:has(> a[href*="mode=contactadmin"]) {
  display: none !important;
}

/* ロゴの「Art Lounge」の文字色（ヘッダー・フッター。鳥の画像は対象外）。2026-11-05 に赤→ローズ #C9586A へ */
:root {
  --color-logo-text: #C9586A;
}
#logo .logo-text,
.al-logo-text {
  color: var(--color-logo-text) !important;
}

/* トップ「最新の書き込み」：スマホ幅で「ゲスト・日時」と「返信数」を横並びにする（2026-09-12 打ち合わせ決定）。
   標準CSSは 700px 以下で .responsive-show を display:block にして2行に分けているため上書きする */
@media (max-width: 700px) {
  #recenttopics-box .list-inner > div.responsive-show {
    display: inline !important;
  }
  #recenttopics-box .list-inner > span.responsive-show.left-box {
    display: inline !important;
    float: none !important;
    margin-left: 10px !important;
    white-space: nowrap !important;
  }
}

/* トップのジャンルカード：上下の余白を小さくする（PC 16px→10px、スマホ 高さ56px→44px） */
.forabg[class*="category-"] a.forumtitle {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
@media (max-width: 768px) {
  .forabg[class*="category-"] a.forumtitle {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    height: 44px !important;
  }
}

/* ジャンルのページ（viewforum）：タイトル上下の余白をできる限り小さくする（2026-09-12 打ち合わせ決定）。
   元の指定は h2 と中のリンクの両方に上24px・下8pxの余白が付いて二重になっていた */
body.section-viewforum h2.forum-title,
body.section-viewforum h2.forum-title a {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}
body.section-viewforum .action-bar.bar-top {
  padding-top: 4px !important;
}

/* トピックのページ（viewtopic）：タイトル上下の余白をできる限り小さくする（元は上24px・下16px、行の高さ1.8） */
body.section-viewtopic h2.topic-title,
body.section-viewtopic h2.topic-title a {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}
body.section-viewtopic .action-bar.bar-top {
  padding-top: 4px !important;
}

/* トピックのページ：「通報する」の文字を表示してボタン列が広がり（約134px）、日時と重なったため、
   コメント上部（著者行）の右側に空ける幅を 80px→150px に広げる */
body.section-viewtopic p.author {
  padding-right: 150px !important;
}

/* トピックのページ：各コメントの上下の余白を小さくする
   （コメント間 16px→8px、著者行 上下12px→6px、本文 上下20px→10px、本文の最低高さ 3em を解除） */
body.section-viewtopic div.post {
  margin-bottom: 8px !important;
}
body.section-viewtopic p.author {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
body.section-viewtopic ul.post-buttons {
  top: 3px !important;
}
body.section-viewtopic div.content {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  min-height: 0 !important;
}

/* トピックのページ：各コメントの返信（引用）ボタンを、マークから「返信する」の文字に変更（テンプレートは viewtopic_body.html）。
   通報ボタンは「！」のマークのみ（11-05 に「通報する」の文字表示をやめた）。ボタン列が右端から約114px（幅320pxでは約96px）を使うため、
   著者行の右に空ける幅を PC 132px、幅480px以下 112px にする（日時のすぐ右に ！・返信する が続くように詰めている。返信するをボタン型にした分を含む）。
   幅480px以下ではボタンの内側の余白を詰めて、カードからはみ出さないようにする */
body.section-viewtopic ul.post-buttons .al-reply-label {
  display: inline !important;
  font-size: 12px !important;
}
body.section-viewtopic ul.post-buttons {
  white-space: nowrap !important;
}
body.section-viewtopic p.author {
  padding-right: 132px !important;
}
@media (max-width: 480px) {
  body.section-viewtopic ul.post-buttons {
    right: 6px !important;
  }
  body.section-viewtopic ul.post-buttons .button-icon-only {
    padding: 5px 4px !important;
  }
  body.section-viewtopic p.author {
    padding-left: 14px !important;
    padding-right: 112px !important;
  }
}

/* トピックのページ：「返信する」を目立たせる（アクセント色の丸いボタン、白い太字） */
body.section-viewtopic ul.post-buttons {
  align-items: center !important;
}
body.section-viewtopic ul.post-buttons a.button[href*="mode=quote"] {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  margin-left: 4px !important;
}
body.section-viewtopic ul.post-buttons a.button[href*="mode=quote"] .al-reply-label {
  color: var(--color-white) !important;
  font-weight: 600 !important;
}
body.section-viewtopic ul.post-buttons a.button[href*="mode=quote"]:hover {
  background: var(--color-accent-light) !important;
}

/* トピックのページ：スマホ幅（700px以下）でも各コメントの左端に投稿者名を表示する。
   標準CSSは名前を囲む .responsive-hide を700px以下で非表示にしているため上書きする。
   スマホでは場所が狭いので「by」「»」は隠して名前だけにする（PCは「by 名前 »」のまま）。
   日時は折り返さず、入りきらない幅（320px程度）では名前の下の段に回る */
@media (max-width: 700px) {
  body.section-viewtopic p.author {
    flex-wrap: wrap !important;
    column-gap: 8px !important;
  }
  body.section-viewtopic p.author > .responsive-hide {
    display: inline !important;
    font-size: 0 !important;
    white-space: nowrap !important;
  }
  body.section-viewtopic p.author > .responsive-hide strong {
    font-size: 13px !important;
  }
  body.section-viewtopic p.author time {
    white-space: nowrap !important;
  }
}

/* トピックのページ：タイトル下の作成者名・作成日時（テンプレートは viewtopic_body.html の p.al-topic-meta） */
body.section-viewtopic p.al-topic-meta {
  margin: 2px 0 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: var(--color-text-secondary) !important;
}
body.section-viewtopic p.al-topic-meta .username {
  font-weight: 500 !important;
  color: var(--color-text) !important;
  margin-right: 8px !important;
}
body.section-viewtopic p.al-topic-meta time {
  font-size: 12px !important;
  color: var(--color-text-tertiary) !important;
}

/* ヘッダー：ロゴ（鳥のマークと「Art Lounge」の文字）を大きくし、上下の余白を小さくする（全ページ共通のヘッダー）
   PC: マーク 44px→60px、文字 26px→34px、ヘッダーの高さ 約101px→77px
   スマホ: マーク 54px、文字 32px（幅360px以下はマーク 46px、文字 28px。「Art Lounge」が2行に折れないようにする） */
.headerbar .inner {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
#logo {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#logo img,
#logo .logo-img {
  height: 60px !important;
}
#logo .logo-text {
  font-size: 34px !important;
  white-space: nowrap !important;
}
@media (max-width: 768px) {
  .headerbar .inner {
    padding-top: 6px !important;
    padding-bottom: 4px !important;
  }
  #logo img,
  #logo .logo-img {
    height: 54px !important;
  }
  #logo .logo-text {
    font-size: 32px !important;
  }
  /* キャッチコピー「立場を超えて、…」を小さく（11px→10px）、下の余白 8px→2px。
     既存の #site-description p:not(.sitename):not(.skiplink) より優先させるため #page-header を付けている */
  #page-header #site-description p.al-header-desc {
    font-size: 10px !important;
    margin-bottom: 2px !important;
  }
}
@media (max-width: 360px) {
  #logo img,
  #logo .logo-img {
    height: 46px !important;
  }
  #logo .logo-text {
    font-size: 28px !important;
  }
}

/* トップのジャンルカード：枠内の色（2026-11-05 に雑誌風に合わせて白地。色を変えるときは下の3つの変数だけ書き換える） */
:root {
  --color-genre-bg: #FFFFFF;
  --color-genre-bg-hover: #FDEBEE;
  --color-genre-border: #F2D9DC;
}
.forabg[class*="category-"] .topiclist.forums li.row {
  background: var(--color-genre-bg) !important;
  border-color: var(--color-genre-border) !important;
}
.forabg[class*="category-"] .topiclist.forums li.row:hover {
  background: var(--color-genre-bg-hover) !important;
}

/* ジャンルのページ（viewforum）上部：「トピックをつくる」と検索欄を横並びにし、上下の余白を小さくする。
   スマホ（700px以下）では、ボタンを少し小さくし、検索欄を残りの幅に合わせて縮め、ページ数は次の行に回す。
   スマホでは検索欄の歯車（詳細検索）アイコンを隠して入力欄の幅を確保する */
body.section-viewforum .action-bar.bar-top {
  padding: 4px 0 !important;
  margin: 0 !important;
  align-items: center !important;
}
@media (max-width: 700px) {
  body.section-viewforum .action-bar.bar-top {
    flex-wrap: wrap !important;
    gap: 6px 8px !important;
  }
  body.section-viewforum .action-bar.bar-top > a.button {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
  }
  body.section-viewforum .action-bar.bar-top > .search-box {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 2px 6px !important;
  }
  body.section-viewforum .action-bar.bar-top > .search-box form,
  body.section-viewforum .action-bar.bar-top > .search-box fieldset {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.section-viewforum .action-bar.bar-top > .search-box input.inputbox {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    font-size: 12px !important;
    padding: 4px 2px !important;
  }
  body.section-viewforum .action-bar.bar-top > .search-box .button {
    flex: 0 0 auto !important;
    padding: 4px 3px !important;
  }
  body.section-viewforum .action-bar.bar-top > .search-box .button-search-end {
    display: none !important;
  }
  body.section-viewforum .action-bar.bar-top > .pagination {
    flex: 1 1 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* トップのジャンルカード：ジャンル名の文字を枠に入るぎりぎりまで大きくする。
   文字の大きさはカードの幅に合わせて自動で変わる（上限 PC 17px・スマホ 15px、下限 11px）。
   改行は「・」のところだけ（forumlist_body.html でジャンル名の「・」の後ろに <wbr> を入れている）。
   カードの高さは PC 48px、スマホ 44px */
.forabg[class*="category-"] .topiclist.forums li.row {
  container-type: inline-size !important;
}
.forabg[class*="category-"] a.forumtitle {
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  text-overflow: clip !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  line-height: 1.2 !important;
  padding: 4px 8px !important;
  height: 48px !important;
  font-size: clamp(11px, calc((100cqw - 18px) / 7.6), 17px) !important;
}
@media (max-width: 768px) {
  .forabg[class*="category-"] a.forumtitle {
    height: 44px !important;
    font-size: clamp(11px, calc((100cqw - 18px) / 7.6), 15px) !important;
  }
}

/* フッターのリンク（Art Loungeとは・ルール・削除基準・お問い合わせ・削除申請・利用規約・プライバシーポリシー）を
   マス目にそろえて並べる。PC は3列×2段、スマホは2列×3段。
   テンプレートの3つの列（.al-footer-col）は崩して、6つのリンクを1つのマス目に流し込んでいる。
   幅360px以下は「お問い合わせ・削除申請」がはみ出さないよう文字を12pxにする */
.al-footer-links {
  display: grid !important;
  grid-template-columns: repeat(3, auto) !important;
  justify-content: start !important;
  align-content: start !important;
  column-gap: 32px !important;
  row-gap: 10px !important;
}
.al-footer-links .al-footer-col,
.al-footer-links .al-footer-col ul {
  display: contents !important;
}
.al-footer-links li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  white-space: nowrap !important;
}
@media (max-width: 768px) {
  .al-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 16px !important;
    row-gap: 12px !important;
    width: 100% !important;
  }
}
@media (max-width: 360px) {
  .al-footer-links {
    column-gap: 10px !important;
  }
  .al-footer-links li,
  .al-footer-links li a {
    font-size: 12px !important;
  }
}

/* フッター：ロゴ（マーク・Art Lounge）とキャッチコピーを中央にそろえ、その下にリンクのマス目を中央寄せで置く（PC・スマホ共通）。
   上下の余白も詰める（上 48px→28px、下 32px→20px）。キャッチコピーは1行に収める（幅360px以下は12px） */
.al-footer-inner {
  flex-direction: column !important;
  align-items: center !important;
  gap: 20px !important;
  padding-top: 28px !important;
  padding-bottom: 20px !important;
}
.al-footer-brand {
  align-items: center !important;
  width: auto !important;
  max-width: none !important;
  gap: 6px !important;
}
.al-footer-logo-row {
  justify-content: center !important;
}
.al-footer-desc {
  text-align: center !important;
  width: auto !important;
  max-width: none !important;
}
.al-footer-links {
  justify-content: center !important;
}
@media (max-width: 768px) {
  .al-footer-links {
    width: auto !important;
    max-width: 100% !important;
  }
}
@media (max-width: 360px) {
  .al-footer-desc {
    font-size: 12px !important;
  }
}

/* トップ：「最新の書き込み」「閲覧数の多いトピック」「コメント数の多いトピック」「人気のジャンル」の見出しの帯を
   少し濃い網がけにする（2026-11-05 に暖色の配色に合わせて #F9DCDF）。色を変えるときは --color-block-header だけ書き換える */
:root {
  --color-block-header: #F9DCDF;
}
#recenttopics-box li.header,
.ts-row3 .block-third li.header {
  background: var(--color-block-header) !important;
  background-image: none !important;
}

/* トピックのページ（viewtopic）上部：ジャンルのページと同じように「書き込む」・ツール（スパナ）・検索欄を1行にまとめ、
   上下の余白を小さくする。スマホ（700px以下）ではボタンを小さくし、検索欄を残りの幅に合わせて縮め、
   ページ数は次の行に回す。スマホでは検索欄の歯車（詳細検索）を隠す */
body.section-viewtopic .action-bar.bar-top {
  padding: 4px 0 !important;
  margin: 0 !important;
  align-items: center !important;
}
@media (max-width: 700px) {
  body.section-viewtopic .action-bar.bar-top {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  body.section-viewtopic .action-bar.bar-top > a.button {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
  }
  body.section-viewtopic .action-bar.bar-top > .dropdown-container {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  body.section-viewtopic .action-bar.bar-top > .dropdown-container > .button {
    padding: 6px !important;
    margin: 0 !important;
  }
  body.section-viewtopic .action-bar.bar-top > .search-box {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 2px 4px 2px 8px !important;
  }
  body.section-viewtopic .action-bar.bar-top > .search-box form,
  body.section-viewtopic .action-bar.bar-top > .search-box fieldset {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.section-viewtopic .action-bar.bar-top > .search-box input.inputbox {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    font-size: 12px !important;
    padding: 4px 2px !important;
  }
  body.section-viewtopic .action-bar.bar-top > .search-box .button {
    flex: 0 0 auto !important;
    padding: 4px 6px !important;
    margin: 0 !important;
  }
  body.section-viewtopic .action-bar.bar-top > .search-box .button-search-end {
    display: none !important;
  }
  body.section-viewtopic .action-bar.bar-top > .pagination {
    flex: 1 1 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* 検索欄の横の歯車（詳細検索へのリンク）を、PC・スマホともすべての検索欄で隠す
   （ヘッダー、ジャンルのページ、トピックのページ。虫眼鏡の検索ボタンは残る） */
.search-box .button-search-end {
  display: none !important;
}

/* ヘッダー：キャッチコピー「立場を超えて、…」を「Art Lounge」の文字のすぐ下に置き、ロゴと一体にする（PC・スマホ共通）。
   テンプレート（overall_header.html）でキャッチコピーをロゴの文字のまとまり（.logo-text-group）の中の span.logo-sub に移している。
   幅360px以下ははみ出さないよう鳥のマークを40pxにし、字間を詰める */
#logo .logo-text-group {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
}
#logo .logo-text {
  line-height: 1.05 !important;
}
#page-header #logo .logo-sub {
  display: block !important;
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
  color: var(--color-text-secondary) !important;
  white-space: nowrap !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}
@media (max-width: 768px) {
  #page-header #logo .logo-sub {
    font-size: 10px !important;
    letter-spacing: 0.02em !important;
  }
}
@media (max-width: 360px) {
  #logo {
    gap: 6px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #logo img,
  #logo .logo-img {
    height: 40px !important;
  }
  #page-header #logo .logo-sub {
    letter-spacing: 0 !important;
  }
}

/* トップ：ジャンルカードと「最新の書き込み」の上下余白を小さくする。
   ジャンルカードは高さの固定（PC 48px・スマホ 44px）をやめ、中身に合わせた高さにする（同じ段のカードはそろう）。
   カード間 12px→6px、ジャンル全体の下 16px→8px。「最新の書き込み」は各行の上下 16px→8px、見出しの帯も詰める */
.al-category-wrapper {
  row-gap: 6px !important;
  column-gap: 6px !important;
  margin-bottom: 8px !important;
}
.forabg[class*="category-"] a.forumtitle {
  height: 100% !important;
  min-height: 0 !important;
  padding: 6px 8px !important;
}
.forabg[class*="category-"] .topiclist.forums li.row,
.forabg[class*="category-"] .topiclist.forums .row-item,
.forabg[class*="category-"] .topiclist.forums dt,
.forabg[class*="category-"] .topiclist.forums .list-inner {
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
}
@media (max-width: 768px) {
  .forabg[class*="category-"] a.forumtitle {
    height: 100% !important;
  }
}
#recenttopics-box .topiclist.topics .row-item {
  padding: 8px 16px !important;
  margin: 0 !important;
}
#recenttopics-box li.header dl,
#recenttopics-box li.header dt,
#recenttopics-box li.header dd {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* ヘッダーのロゴを少し大きくし、鳥のマーク・「Art Lounge」・キャッチコピーを一体にそろえる（2026-11-05）。
   - キャッチコピーは「Art Lounge」の文字幅いっぱいに均等に並べる（text-align-last: justify、幅は文字側に合わせる）
   - 鳥のマークの上端を「Art Lounge」の文字の上端に、下端をキャッチコピーの下端にそろえる
     （logo.png は 800×477 で、鳥は縦 34〜467px・横 122〜671px。この余白分を負のマージンで打ち消している）
   - 大きさは --al-L（「Art Lounge」の文字の大きさ）だけで決まる。PC 40px、スマホ 36px、幅360px以下 30px */
#logo {
  --al-L: 40px;
  --al-V: calc(var(--al-L) * 1.1335 + 3.3px);
  --al-I: calc(var(--al-V) / 0.908);
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 0 !important;
}
#logo .logo-text-group {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
}
#logo .logo-text {
  font-size: var(--al-L) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
#page-header #logo .logo-sub {
  display: block !important;
  width: 0 !important;
  min-width: 100% !important;
  font-size: calc(var(--al-L) * 0.28) !important;
  line-height: 1.2 !important;
  margin: 4px 0 0 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  text-align: justify !important;
  text-align-last: justify !important;
  color: var(--color-text-secondary) !important;
}
#logo img,
#logo .logo-img {
  align-self: flex-start !important;
  height: var(--al-I) !important;
  width: auto !important;
  max-height: none !important;
  margin: calc(var(--al-L) * 0.2025 - var(--al-I) * 0.0713) calc(var(--al-I) * -0.27) calc(var(--al-I) * -0.021) calc(var(--al-I) * -0.256) !important;
}
@media (max-width: 768px) {
  #logo {
    --al-L: 36px;
  }
}
@media (max-width: 360px) {
  #logo {
    --al-L: 34px;
  }
}

/* フッターのロゴもヘッダーと同じ形にする（2026-11-05）。キャッチコピーを「Art Lounge」の真下に文字幅いっぱいで並べ、
   鳥のマークと上下をそろえる。テンプレート（overall_footer.html）で .al-logo-group の中に .al-logo-text と .al-logo-sub を入れている。
   大きさは --al-L（PC・スマホとも 32px）。計算の考え方はヘッダーの #logo と同じ */
.al-footer-brand {
  align-items: center !important;
}
.al-footer-logo-row {
  --al-L: 32px;
  --al-V: calc(var(--al-L) * 1.1335 + 3.3px);
  --al-I: calc(var(--al-V) / 0.908);
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 12px !important;
}
.al-footer-logo-row .al-logo-group {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}
.al-footer-logo-row .al-logo-text {
  font-size: var(--al-L) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.al-footer-logo-row .al-logo-sub {
  display: block !important;
  width: 0 !important;
  min-width: 100% !important;
  font-size: calc(var(--al-L) * 0.28) !important;
  line-height: 1.2 !important;
  margin: 4px 0 0 !important;
  white-space: nowrap !important;
  text-align: justify !important;
  text-align-last: justify !important;
  color: var(--color-text-secondary) !important;
}
.al-footer-logo-row .al-logo-img {
  align-self: flex-start !important;
  height: var(--al-I) !important;
  width: auto !important;
  max-height: none !important;
  margin: calc(var(--al-L) * 0.2025 - var(--al-I) * 0.0713) calc(var(--al-I) * -0.27) calc(var(--al-I) * -0.021) calc(var(--al-I) * -0.256) !important;
}

/* ========== モダン雑誌風（2026-11-05 山縣さん決定。見出しフォント M PLUS 1p） ==========
   - 見出し（「最新の書き込み」などの帯、ジャンル・トピックのページのタイトル、一覧の見出し）に左のローズの色帯
   - 見出し・ジャンル名・トピック名を太い M PLUS 1p（太さ800のみ読み込み。本文やコメントは Noto Sans JP のまま）
   - トップのジャンルカードは白地・角なし・上辺に青の線（マウスを乗せるとローズ）
   - これに合わせ、ジャンルカードの地色を白に変更（帯の地色は配色テーマの --color-block-header） */
:root {
  --font-head: 'M PLUS 1p', 'Noto Sans JP', sans-serif;
}
#recenttopics-box li.header,
.ts-row3 .block-third li.header,
.forumbg .topiclist li.header {
  border-left: 4px solid var(--color-logo-text) !important;
  border-radius: 0 !important;
}
#recenttopics-box li.header dt,
#recenttopics-box li.header dt a,
.ts-row3 .block-third li.header dt,
.ts-row3 .block-third li.header dt a,
.forumbg .topiclist li.header dt,
.forumbg .topiclist li.header dt a {
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  color: var(--color-text) !important;
  letter-spacing: 0.02em !important;
}
#recenttopics-box,
.ts-row3 .block-third .forabg {
  border-radius: 0 !important;
}
.forabg[class*="category-"] .topiclist.forums li.row {
  border-radius: 0 !important;
  border-top: 3px solid var(--color-accent) !important;
}
.forabg[class*="category-"] .topiclist.forums li.row:hover {
  border-top-color: var(--color-logo-text) !important;
}
.forabg[class*="category-"] a.forumtitle {
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
}
body.section-viewforum h2.forum-title,
body.section-viewtopic h2.topic-title {
  border-left: 4px solid var(--color-logo-text) !important;
  padding-left: 10px !important;
}
h2.forum-title,
h2.forum-title a,
h2.topic-title,
h2.topic-title a {
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
}
a.topictitle {
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
}

/* ロゴの下のキャッチコピー（ヘッダー・フッター）を、見出しと同じ M PLUS 1p の太字にする（2026-11-05） */
#page-header #logo .logo-sub,
.al-footer-logo-row .al-logo-sub {
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
}

/* トップのジャンルカードの角を丸くする（雑誌風で角なしにしていたものを 10px に。2026-11-05） */
.forabg[class*="category-"] .topiclist.forums li.row {
  border-radius: 10px !important;
  overflow: hidden !important;
}

/* トップの「最新の書き込み」と統計3ブロック（閲覧数・コメント数・人気のジャンル）の枠も、ジャンルカードと同じ 10px の角丸にする。
   見出しの帯とローズの色帯は、枠の角に合わせて切り取る（overflow: hidden） */
#recenttopics-box,
.ts-row3 .block-third .forabg {
  border-radius: 10px !important;
  overflow: hidden !important;
}
#recenttopics-box li.header,
.ts-row3 .block-third li.header {
  border-radius: 0 !important;
}

/* ロゴ「Art Lounge」のフォントを Syne の極太（800）にする（ヘッダー・フッター。2026-11-05）。
   Syne は横に広いので、文字の大きさを小さめにする。キャッチコピーは文字の大きさの 0.34 倍で、「Art Lounge」の真下中央に置く（2026-11-05 に均等配置から中央寄せへ変更）。
   鳥のマークとの上下合わせは Syne の寸法で計算し直した（--al-T：文字の箱の上端から文字の上端までの比率 0.185）。
   大きさ（--al-L）：ヘッダー PC 32px・スマホ 28px・幅360px以下 25px／フッター PC 28px・スマホ 26px・幅360px以下 25px。
   前の Playfair Display に戻すときは、このまとまりを消せばよい */
#logo,
.al-footer-logo-row {
  --al-T: 0.185;
  --al-S: 0.34;
  --al-V: calc(var(--al-L) * (1 + var(--al-S) * 1.2 - var(--al-T)) + 4px - var(--al-L) * var(--al-S) * 0.12);
  --al-I: calc(var(--al-V) / 0.908);
}
#logo {
  --al-L: 32px;
}
.al-footer-logo-row {
  --al-L: 28px;
}
@media (max-width: 768px) {
  #logo {
    --al-L: 28px;
  }
  .al-footer-logo-row {
    --al-L: 26px;
  }
}
@media (max-width: 360px) {
  #logo,
  .al-footer-logo-row {
    --al-L: 25px;
  }
}
#logo .logo-text,
.al-footer-logo-row .al-logo-text {
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  font-size: var(--al-L) !important;
  line-height: 1 !important;
}
#page-header #logo .logo-sub,
.al-footer-logo-row .al-logo-sub {
  font-size: calc(var(--al-L) * var(--al-S)) !important;
  text-align: center !important;
  text-align-last: center !important;
}
#logo img,
#logo .logo-img,
.al-footer-logo-row .al-logo-img {
  margin-top: calc(var(--al-L) * var(--al-T) - var(--al-I) * 0.0713) !important;
}

/* ロゴの下の白い帯（ログイン中に使うメニュー：ユーザー名・通知・ログアウトなどが入る場所）を、
   ログインしていないとき（ゲスト）だけ隠す。ゲストには中身が何も表示されず、高さ31pxの空白だけが残っていたため。
   navbar_header.html で、ログインしていないときに al-navbar-guest を付けている（2026-11-05） */
.navbar.al-navbar-guest {
  display: none !important;
}

/* スマホでヘッダーのロゴ全体（鳥・Art Lounge・キャッチコピー）を大きくする（2026-11-05）。
   画面幅に合わせて、余白の内側に収まる一番大きい大きさにする（最大は PC と同じ 32px）。
   実測：幅375pxで約32px、360pxで約31px、320pxで約27px（それぞれ左右16pxの余白の内側に収まる） */
@media (max-width: 768px) {
  #logo {
    --al-L: min(32px, calc((100vw - 54px) / 10)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ヘッダー：ロゴの上下の余白を少しだけ広げる（PC 上下6px、スマホ 上6px・下4px → PC・スマホとも上下12px。2026-11-05） */
.headerbar .inner {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* ヘッダーの鳥のマークだけを大きくする（文字の大きさはそのまま。2026-11-05）。
   --al-E：鳥の高さを文字のまとまりより何px高くするか。上下に半分ずつはみ出させ、ヘッダーの上下余白（12px）の中に収める。
   PC は 24px。スマホは横幅の余裕の分だけ（幅375pxで約8px、390pxで約19px、414px以上で24px、狭い画面は最低6px）。
   ヘッダーの高さは変わらないよう、はみ出す分を負のマージンで打ち消している */
#logo {
  --al-E: 24px;
  --al-I2: calc((var(--al-V) + var(--al-E)) / 0.908);
}
@media (max-width: 768px) {
  #logo {
    --al-E: clamp(6px, calc((100vw - 364px) / 1.35), 24px);
  }
}
#logo img,
#logo .logo-img {
  height: var(--al-I2) !important;
  margin: calc(var(--al-L) * var(--al-T) - var(--al-I2) * 0.0713 - var(--al-E) / 2) calc(var(--al-I2) * -0.27) calc(var(--al-I2) * -0.021 - var(--al-E) / 2) calc(var(--al-I2) * -0.256) !important;
}

/* トピックのページ：各コメントの上の段の左端に、サイト全体の通し番号（発言番号）を【39】の形で表示する（2026-11-06）。
   番号は phpBB の投稿ID（postrow.POST_ID）。一度付いた番号は変わらない。削除されたコメントの番号は欠番になる。
   テンプレートは viewtopic_body.html の span.al-post-no。目立たないよう、日時と同じ色・小さめの文字にしている（11-06） */
body.section-viewtopic p.author .al-post-no {
  font-family: var(--font-jp) !important;
  font-weight: 400 !important;
  font-size: 11px !important;
  color: var(--color-text-tertiary) !important;
  margin-right: 6px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}
@media (max-width: 700px) {
  body.section-viewtopic p.author .al-post-no {
    margin-right: 0 !important;
  }
}

/* ジャンルのページ（viewforum）：「トピック」の帯と各トピックの行の上下余白を少しだけ小さくする（2026-11-06）。
   帯 上下10px→6px（高さ 50px→42px）、各行 上下16px→11px（1行あたり約10px低く） */
body.section-viewforum .forumbg li.header dl.row-item {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
body.section-viewforum .forumbg .topiclist.topics .row-item {
  padding-top: 11px !important;
  padding-bottom: 11px !important;
}

/* トップ：「最新の書き込み」の下の「◯件の書き込み 1 2」の行の上下余白を小さくする（2026-11-06）。
   「最新の書き込み」の枠の下から次の「閲覧数の多いトピック」までの間が PC 67px→39px、スマホ 90px→51px。
   左右の位置（PC は右寄せ、スマホは中央）は変えないよう、上下の余白だけを指定している */
#recenttopics-box {
  margin-bottom: 4px !important;
}
#recenttopics-bottom .action-bar.bar-bottom {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  min-height: 0 !important;
}
#recenttopics-bottom .action-bar.bar-bottom .pagination {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#recenttopics-bottom .action-bar.bar-bottom .pagination ul {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 書き込み画面：コメントの「返信する」から開いたときに出す「◯◯ さん【番号】への返信」（posting_editor.html の p.al-reply-to。2026-11-06） */
.al-reply-to {
  margin: 0 0 10px !important;
  padding: 8px 12px !important;
  background: var(--color-block-header) !important;
  border-left: 4px solid var(--color-logo-text) !important;
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  color: var(--color-text) !important;
}

/* トピックのページ：返信の書き込みの本文の上に出す「この書き込みは ◯◯ さん【番号】への返信です」
   （viewtopic_body.html の script が作る div.al-reply-note。2026-11-06） */
body.section-viewtopic .al-reply-note {
  padding: 6px 20px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--color-text-secondary) !important;
  background: var(--color-card-hover) !important;
  border-bottom: 1px solid var(--color-border) !important;
}
body.section-viewtopic .al-reply-note a {
  color: var(--color-accent) !important;
}
@media (max-width: 700px) {
  body.section-viewtopic .al-reply-note {
    padding: 6px 14px !important;
  }
}

/* 返信の帯を押すと返信先の書き込みが開く形にした（2026-11-06）。帯はボタン、開く中身は div.al-reply-quote */
body.section-viewtopic .al-reply-note {
  padding: 0 !important;
}
body.section-viewtopic .al-reply-toggle {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 6px 20px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  font-family: var(--font-jp) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--color-text-secondary) !important;
  cursor: pointer !important;
}
body.section-viewtopic .al-reply-target {
  color: var(--color-accent) !important;
  text-decoration: underline !important;
}
body.section-viewtopic .al-reply-mark {
  margin-left: 6px !important;
  font-size: 10px !important;
  color: var(--color-accent) !important;
}
body.section-viewtopic .al-reply-quote {
  margin: 0 20px 8px !important;
  padding: 8px 12px !important;
  background: var(--color-white) !important;
  border-left: 3px solid var(--color-accent-light) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: var(--color-text-secondary) !important;
}
body.section-viewtopic .al-reply-quote[hidden] {
  display: none !important;
}
body.section-viewtopic .al-reply-jump {
  display: inline-block !important;
  margin-top: 4px !important;
  font-size: 12px !important;
  color: var(--color-accent) !important;
}
@media (max-width: 700px) {
  body.section-viewtopic .al-reply-toggle {
    padding: 6px 14px !important;
  }
  body.section-viewtopic .al-reply-quote {
    margin: 0 14px 8px !important;
  }
}

/* トピックのページ：最初の書き込みをトピックの説明として、見出し付きのカードで表示する（2026-11-06）。
   - 上部：ローズの帯に「◯コメント」・トピック名・番号・作成者・日時（viewtopic_body.html の div.al-first-head）
   - 下部：大きな「書き込む」ボタンと通報（div.al-first-actions）
   - 最初の書き込みがあるページ（1ページ目）では、ページ上部のタイトルと作成者名の行は重なるので隠す
   - コメントは古い順に固定（並べ替えは出さない） */
body.section-viewtopic:has(.al-first-post) h2.topic-title,
body.section-viewtopic:has(.al-first-post) p.al-topic-meta {
  display: none !important;
}
body.section-viewtopic .al-first-post p.author,
body.section-viewtopic .al-first-post ul.post-buttons {
  display: none !important;
}
body.section-viewtopic .al-first-post {
  border: 0 !important;
  overflow: hidden !important;
}
body.section-viewtopic .al-first-head {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  padding: 14px 20px 12px !important;
}
body.section-viewtopic .al-first-count:not(:empty) {
  display: inline-block !important;
  margin-bottom: 6px !important;
  padding: 2px 10px !important;
  background: var(--color-white) !important;
  color: var(--color-accent) !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
body.section-viewtopic .al-first-title {
  margin: 0 0 4px !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  color: var(--color-white) !important;
}
body.section-viewtopic .al-first-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.9) !important;
}
body.section-viewtopic .al-first-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 20px 14px !important;
}
body.section-viewtopic .al-first-reply {
  flex: 1 1 auto !important;
  display: block !important;
  padding: 10px !important;
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  border-radius: 6px !important;
  text-align: center !important;
  text-decoration: none !important;
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
}
body.section-viewtopic .al-first-reply:hover {
  background: var(--color-accent-light) !important;
}
body.section-viewtopic .al-first-report {
  flex: 0 0 auto !important;
  color: var(--color-text-tertiary) !important;
}
@media (max-width: 700px) {
  body.section-viewtopic .al-first-head {
    padding: 12px 14px 10px !important;
  }
  body.section-viewtopic .al-first-title {
    font-size: 20px !important;
  }
  body.section-viewtopic .al-first-actions {
    padding: 0 14px 12px !important;
  }
}

/* 最初の書き込みのカードの「全体に書き込む」ボタン：横いっぱいをやめて小さめにし、各コメントの「返信する」と同じ丸いボタンにする（中央に置く。2026-11-06） */
body.section-viewtopic .al-first-actions {
  justify-content: center !important;
}
body.section-viewtopic .al-first-reply {
  flex: 0 0 auto !important;
  display: inline-block !important;
  padding: 6px 22px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
}

/* 「全体に書き込む」と各コメントの「返信する」を、ジャンルのページの「トピックをつくる」ボタンと同じデザインにそろえる（2026-11-06）。
   「トピックをつくる」：角の丸み 8px、ローズの地に白の太字（Noto Sans JP・太さ600）、文字の右にアイコン。
   「全体に書き込む」は同じ大きさ（上下10px・左右20px、14px）でえんぴつのアイコン付き。
   「返信する」はコメントの上の段に収まるよう小さめ（12px）で、アイコンなし */
body.section-viewtopic .al-first-reply {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-family: var(--font-jp) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}
body.section-viewtopic ul.post-buttons a.button[href*="mode=quote"] {
  border-radius: 8px !important;
  padding: 4px 10px !important;
}
body.section-viewtopic ul.post-buttons a.button[href*="mode=quote"] .al-reply-label {
  font-family: var(--font-jp) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}

/* サイト全体のフォントを繊細な IBM Plex Sans JP に変更（2026-11-06 山縣さん決定）。ロゴの「Art Lounge」は Syne のまま。
   - 本文・見出しとも IBM Plex Sans JP（読み込みは 300・500・600・700。Noto Sans JP と M PLUS 1p の読み込みはやめた）
   - 本文は細め（300）、見出し・ジャンル名・トピック名・キャッチコピーは極太（800）から中くらい（500）に
   - コメント本文・ユーザー名・日時・ボタン・入力欄は elegance 側で別の書体が指定されていたので、ここでそろえる */
:root {
  --font-jp: 'IBM Plex Sans JP', 'Noto Sans JP', sans-serif;
  --font-head: 'IBM Plex Sans JP', 'Noto Sans JP', sans-serif;
}
body {
  font-weight: 300 !important;
}
body .content,
body .postbody,
body .signature,
body blockquote,
body .username,
body .username-coloured,
body time,
body .responsive-hide,
body .button,
body button,
body input,
body select,
body textarea,
body .inputbox {
  font-family: var(--font-jp) !important;
}
#recenttopics-box li.header dt,
#recenttopics-box li.header dt a,
.ts-row3 .block-third li.header dt,
.ts-row3 .block-third li.header dt a,
.forumbg .topiclist li.header dt,
.forumbg .topiclist li.header dt a,
.forabg[class*="category-"] a.forumtitle,
h2.forum-title,
h2.forum-title a,
h2.topic-title,
h2.topic-title a,
a.topictitle,
#page-header #logo .logo-sub,
.al-footer-logo-row .al-logo-sub,
.al-reply-to,
body.section-viewtopic .al-first-title,
body.section-viewtopic .post .username {
  font-weight: 500 !important;
}

/* 「全体に書き込む」と各コメントの「返信する」が目立ちすぎるので、ほんの少し小さくする（2026-11-06）。
   全体に書き込む：上下10px・左右20px・14px → 上下7px・左右16px・13px
   返信する：上下4px・左右10px・12px → 上下3px・左右8px・11px */
body.section-viewtopic .al-first-reply {
  padding: 7px 16px !important;
  font-size: 13px !important;
}
body.section-viewtopic ul.post-buttons a.button[href*="mode=quote"] {
  padding: 3px 8px !important;
}
body.section-viewtopic ul.post-buttons a.button[href*="mode=quote"] .al-reply-label {
  font-size: 11px !important;
}

/* ジャンルのページの「トピックをつくる」ボタン（上下2か所）を小さめにする。「全体に書き込む」と同じ大きさ（2026-11-06）。
   上下10px・左右20px・14px → 上下7px・左右16px・13px */
.action-bar a.button[href*="mode=post"] {
  padding: 7px 16px !important;
  font-size: 13px !important;
}

/* 「トピックをつくる」の画面の本文の下の注意書き「トピックをつくる前に」（posting_editor.html の div.al-before-topic。2026-11-06）。
   薄いローズの地に見出し、項目は線で区切る。ルールへのリンクはローズの文字で右に矢印 */
.al-before-topic {
  margin: 12px 0 0 !important;
  background: var(--color-card-hover) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}
.al-before-topic .al-before-topic-title {
  margin: 0 !important;
  padding: 10px 16px !important;
  font-family: var(--font-jp) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--color-text) !important;
}
.al-before-topic ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.al-before-topic li {
  margin: 0 !important;
  border-top: 1px solid var(--color-border) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
.al-before-topic li > span,
.al-before-topic li > a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 16px !important;
  color: var(--color-text-secondary) !important;
  text-decoration: none !important;
}
.al-before-topic li > a {
  color: var(--color-accent) !important;
}
.al-before-topic li > a:hover {
  background: var(--color-genre-bg-hover) !important;
}
.al-before-topic li > a .icon {
  font-size: 11px !important;
}

/* 「Art Loungeとは」ページの「もっと自由に、もっと透明に、もっと正当に。」を目立たせる（about_body.html の p.al-about-catch。2026-11-06）。
   ローズの文字・やや大きめ・左にローズの線 */
.panel .content p.al-about-catch {
  margin: 14px 0 !important;
  padding: 8px 0 8px 14px !important;
  border-left: 4px solid var(--color-logo-text) !important;
  font-family: var(--font-head) !important;
  font-weight: 600 !important;
  font-size: 19px !important;
  line-height: 1.5 !important;
  letter-spacing: 0.04em !important;
  color: var(--color-accent) !important;
}
@media (max-width: 700px) {
  .panel .content p.al-about-catch {
    font-size: 17px !important;
  }
}

/* シェアのアイコンと「シェアする」の窓（navbar_header.html の li.al-share-item と div#al-share-modal。2026-11-06）。
   アイコンはパンくずの帯の右側（虫めがねの隣）。窓は画面の中央に白いカードで、QRコードの下にリンクのコピー・LINE・X の丸いボタン */
.navbar .al-share-item a {
  color: var(--color-accent) !important;
}
.al-share-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  background: rgba(58, 35, 40, 0.45) !important;
}
.al-share-modal[hidden] {
  display: none !important;
}
.al-share-box {
  position: relative !important;
  width: 100% !important;
  max-width: 300px !important;
  padding: 16px 20px 18px !important;
  background: var(--color-white, #fff) !important;
  border-radius: 10px !important;
  text-align: center !important;
}
.al-share-title {
  margin: 0 0 10px !important;
  font-family: var(--font-jp) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: var(--color-text) !important;
}
.al-share-close {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  padding: 4px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--color-text-tertiary) !important;
  font-size: 16px !important;
  cursor: pointer !important;
}
.al-share-qr {
  width: 160px !important;
  height: 160px !important;
  margin: 0 auto 12px !important;
}
.al-share-qr svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.al-share-buttons {
  display: flex !important;
  justify-content: center !important;
  gap: 16px !important;
}
.al-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 18px !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.al-share-copy {
  background: var(--color-accent) !important;
}
.al-share-line {
  background: #06C755 !important;
}
.al-share-x {
  background: #000 !important;
}
.al-share-done {
  margin: 10px 0 0 !important;
  font-size: 12px !important;
  color: var(--color-accent) !important;
}
.al-share-done[hidden] {
  display: none !important;
}

/* 「シェアする」の窓の4つ目のボタン：スマホの共有画面（Instagram・TikTok など）。使えるブラウザのときだけ出す（overall_footer.html の button#al-share-more。2026-11-06） */
.al-share-more {
  background: var(--color-text-secondary) !important;
}
.al-share-more[hidden] {
  display: none !important;
}

/* トピックの最初の書き込みの帯（ローズ）の右上のシェアのアイコン（viewtopic_body.html の button.al-first-share。2026-11-06） */
body.section-viewtopic .al-first-head {
  position: relative !important;
}
body.section-viewtopic .al-first-share {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--color-white, #fff) !important;
  font-size: 16px !important;
  cursor: pointer !important;
}
body.section-viewtopic .al-first-share:hover {
  background: rgba(255, 255, 255, 0.35) !important;
}
body.section-viewtopic .al-first-title {
  padding-right: 36px !important;
}

/* ジャンルのページ：シェアのアイコンを、パンくずの帯ではなくジャンル名の行の右端に置く（viewforum_body.html の button.al-forum-share。2026-11-06） */
body.section-viewforum .navbar .al-share-item {
  display: none !important;
}
body.section-viewforum h2.forum-title {
  display: flex !important;
  align-items: center !important;
}
body.section-viewforum .al-forum-share {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  padding: 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--color-accent) !important;
  font-size: 16px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

/* トップのジャンルの枠の上下の余白（2026-11-06 に 6px → 10px、11-07 に少し詰めて 8px） */
.forabg[class*="category-"] a.forumtitle {
  padding: 8px 8px !important;
}

/* スマホ（幅768px以下）ではトップのジャンル名を2行にしない（2026-11-06）。
   文字数（forumlist_body.html で a.forumtitle に --al-len として入れている）に合わせて、1行に収まるよう文字を小さくする（上限15px・下限10px）。
   枠の右の余白を 8px → 4px にして、なるべく文字を小さくしないで済むようにする（幅375pxで「ハンドメイド・クラフト」約13px、ほかは15px）。
   PC はこれまでどおり（長い名前は「・」で改行） */
@media (max-width: 768px) {
  .forabg[class*="category-"] a.forumtitle {
    padding-right: 4px !important;
    white-space: nowrap !important;
    font-size: clamp(10px, calc((100cqw - 15px) / (var(--al-len, 9) * 1.01)), 15px) !important;
  }
  .forabg[class*="category-"] a.forumtitle wbr {
    display: none !important;
  }
}

/* トップページ全体に、鳥のロゴ（images/logo_hd.png）を大きく斜めに薄く重ねる（透かし。2026-11-06）。
   画面に固定（スクロールしても動かない）。押す操作の邪魔はしない（pointer-events: none）。
   PC：大きさは画面の高さに合わせる（幅155vh。どの画面でも鳥の頭が画面の上の方に入る）。やや左寄り・左に20度・濃さ5%。しっぽは画面の外に切れてよい（11-06 調整）
   スマホ（幅768px以下）：鳥の形が分かる大きさに小さくし、濃さ6% */
body.section-index::after {
  content: "" !important;
  position: fixed !important;
  left: 44% !important;
  top: 62% !important;
  width: 155vh !important;
  height: 93vh !important;
  transform: translate(-50%, -48%) rotate(-20deg) !important;
  background: url("images/logo_hd.png") center / contain no-repeat !important;
  opacity: 0.05 !important;
  pointer-events: none !important;
  z-index: 999 !important;
}
@media (max-width: 768px) {
  body.section-index::after {
    left: 45% !important;
    top: 50% !important;
    width: 190vw !important;
    height: 114vw !important;
    opacity: 0.06 !important;
  }
}

/* トップの「最新の書き込み」：各行のどこを押しても、そのトピックの最新の書き込みへ移動する（2026-11-06）。
   行の中の「最後の記事に移動」のリンク（スマホは日時、PC は右端のアイコン。どちらも viewtopic.php?p=番号）の押せる範囲を、行全体に広げている。
   トピック名の文字を押したときも、最新の書き込みへ（11-06 山縣さん決定）。
   PC は行の中のジャンル名のリンクもそのまま押せる */
#recenttopics-box li.row {
  position: relative !important;
}
#recenttopics-box li.row dl.row-item,
#recenttopics-box li.row dt,
#recenttopics-box li.row .list-inner,
#recenttopics-box li.row dd.lastpost,
#recenttopics-box li.row dd.lastpost > span,
#recenttopics-box .list-inner .responsive-show a[href*="p="],
#recenttopics-box dd.lastpost a[href*="p="] {
  position: static !important;
}
#recenttopics-box .list-inner .responsive-show a[href*="p="]::after,
#recenttopics-box dd.lastpost a[href*="p="]::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}
@media (min-width: 769px) {
  #recenttopics-box li.row .responsive-hide a {
    position: relative !important;
    z-index: 2 !important;
  }
}

/* トップの「最新の書き込み」（スマホ）：日時のリンク表示（ローズの文字）をやめ、まわりと同じ普通の文字にする（2026-11-06）。
   行全体を押すと最新の書き込みへ移動する仕組みはこのリンクを使っているので、リンク自体は残している */
#recenttopics-box .list-inner .responsive-show a[href*="p="],
#recenttopics-box .list-inner .responsive-show a[href*="p="]:hover {
  color: inherit !important;
  text-decoration: none !important;
}

/* トップの「最新の書き込み」：押したときに「日時のリンクを押した」感じにならないようにする（2026-11-06）。
   スマホでリンクを押したときに出る灰色の反応（タップハイライト）を消し、代わりに行全体の地色を薄いローズにして「行を押した」反応にする */
#recenttopics-box li.row a {
  -webkit-tap-highlight-color: transparent !important;
}
#recenttopics-box li.row {
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}
#recenttopics-box li.row:hover,
#recenttopics-box li.row:active {
  background: var(--color-card-hover) !important;
}

/* シェアのアイコンを差し色の青（#2F62B8。以前のアクセントの青）にする（2026-11-06）。
   パンくずの帯・ジャンル名の右端はアイコンを青に。トピックの最初の書き込みの帯（ローズ）は白い丸に青のアイコン */
:root {
  --color-share: #2F62B8;
}
.navbar .al-share-item a,
.navbar .al-share-item a .icon,
body.section-viewforum .al-forum-share {
  color: var(--color-share) !important;
}
body.section-viewtopic .al-first-share,
body.section-viewtopic .al-first-share:hover {
  background: var(--color-white, #fff) !important;
  color: var(--color-share) !important;
}

/* ジャンルのページのトピック一覧：行のどこを押しても、そのトピックの最初のページ（トピックのトップ）へ移動する（2026-11-06）。
   トピック名のリンク（a.topictitle）の押せる範囲を行全体に広げている。日時などほかのリンクの上を押してもトピックのトップへ。
   日時のリンク表示（スマホのローズの文字）はやめて普通の文字に。押したときはリンクの反応（タップハイライト）を出さず、行全体を薄いローズにする */
body.section-viewforum .forumbg ul.topiclist.topics li.row {
  position: relative !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}
body.section-viewforum .forumbg ul.topiclist.topics li.row dl.row-item,
body.section-viewforum .forumbg ul.topiclist.topics li.row dt,
body.section-viewforum .forumbg ul.topiclist.topics li.row .list-inner,
body.section-viewforum .forumbg ul.topiclist.topics li.row dd.lastpost,
body.section-viewforum .forumbg ul.topiclist.topics li.row dd.lastpost > span,
body.section-viewforum .forumbg ul.topiclist.topics li.row a.topictitle,
body.section-viewforum .forumbg ul.topiclist.topics li.row .list-inner .responsive-show a,
body.section-viewforum .forumbg ul.topiclist.topics li.row dd.lastpost a {
  position: static !important;
}
body.section-viewforum .forumbg ul.topiclist.topics li.row a.topictitle::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}
body.section-viewforum .forumbg ul.topiclist.topics li.row a {
  -webkit-tap-highlight-color: transparent !important;
}
body.section-viewforum .forumbg ul.topiclist.topics li.row .list-inner .responsive-show a,
body.section-viewforum .forumbg ul.topiclist.topics li.row .list-inner .responsive-show a:hover {
  color: inherit !important;
  text-decoration: none !important;
}
body.section-viewforum .forumbg ul.topiclist.topics li.row:hover,
body.section-viewforum .forumbg ul.topiclist.topics li.row:active {
  background: var(--color-card-hover) !important;
}

/* トピックのページ：パンくずの帯の右上のシェアのアイコンは出さない。最初の書き込みの帯の右上のアイコンだけにする（2026-11-06） */
body.section-viewtopic .navbar .al-share-item {
  display: none !important;
}

/* 通報のページ（form#report）：「理由」「詳細」の見出し・説明・プルダウン・入力欄の文字を、上の説明文と同じ大きさにする（2026-11-06）。
   あわせて、プルダウンと入力欄は横幅いっぱいにする（スマホで理由の文字が切れないように） */
#report .content fieldset,
#report .content fieldset dl,
#report .content fieldset dt,
#report .content fieldset dd,
#report .content fieldset label,
#report .content fieldset dt span,
#report .content fieldset select,
#report .content fieldset textarea {
  font-size: inherit !important;
}
#report .content fieldset select,
#report .content fieldset textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* トピックの最初の書き込み：通報の「！」を「全体に書き込む」の右から、帯（ローズ）の日時の右へ移動（viewtopic_body.html。2026-11-07）。
   帯の上なので白（少し透ける）にする */
body.section-viewtopic .al-first-meta .al-first-report {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
}
body.section-viewtopic .al-first-meta .al-first-report:hover {
  color: var(--color-white, #fff) !important;
}

/* 書き込み・返信の画面の下の「最新の書き込み」（posting_topic_review.html の #topicreview）：
   中の書き込みを、トピックのページのコメントと同じ見た目にする（2026-11-07）。
   トピックのページ用（body.section-viewtopic …）の指定を、この枠用（body.section-posting #topicreview …）に写したもの。
   件名・引用ボタン・移動リンクは出さない */
body.section-posting #topicreview .post {
  background: var(--color-white) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  margin-bottom: 16px !important;
  overflow: hidden !important;
}
body.section-posting #topicreview .post.bg1,
body.section-posting #topicreview .post.bg2 {
  background: var(--color-white) !important;
}
body.section-posting #topicreview .post .inner {
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
}
body.section-posting #topicreview dl.postprofile {
  display: none !important;
}
body.section-posting #topicreview .postbody {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}
body.section-posting #topicreview .postbody h3 {
  display: none !important;
}
body.section-posting #topicreview .poster-id {
  display: none !important;
}
body.section-posting #topicreview p.author {
  display: flex !important;
  align-items: center !important;
  padding: 12px 80px 12px 20px !important;
  background: var(--color-card-hover) !important;
  border-bottom: 1px solid var(--color-border) !important;
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--color-text-secondary) !important;
}
body.section-posting #topicreview p.author a.unread {
  display: none !important;
}
body.section-posting #topicreview p.author .username {
  font-weight: 500 !important;
  color: var(--color-text) !important;
  font-size: 14px !important;
}
body.section-posting #topicreview p.author time {
  margin-left: auto !important;
  font-size: 12px !important;
  color: var(--color-text-tertiary) !important;
}
body.section-posting #topicreview div.content {
  padding: 20px 24px !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: var(--color-text) !important;
}
body.section-posting #topicreview div.content blockquote {
  border-left: 3px solid var(--color-accent-light) !important;
  padding: 10px 16px !important;
  margin: 12px 0 !important;
  background: var(--color-card-hover) !important;
  border-radius: 0 8px 8px 0 !important;
  font-size: 14px !important;
  color: var(--color-text-secondary) !important;
  box-shadow: none !important;
}
body.section-posting #topicreview div.content blockquote cite {
  display: block !important;
  font-size: 12px !important;
  color: var(--color-text-tertiary) !important;
  margin-bottom: 6px !important;
  font-style: normal !important;
}
body.section-posting #topicreview dl.postprofile,
body.section-posting #topicreview .postprofile {
  display: none !important;
}
body.section-posting #topicreview .postbody {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
body.section-posting #topicreview .post .inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.section-posting #topicreview .postprofile + .postbody {
  margin-left: 0 !important;
  float: none !important;
  width: 100% !important;
}
body.section-posting #topicreview .postprofile + .postbody > div {
  margin-left: 0 !important;
}
body.section-posting #topicreview .post .inner {
  display: block !important;
  overflow: visible !important;
}
body.section-posting #topicreview p.author {
  padding-right: 150px !important;
}
body.section-posting #topicreview div.post {
  margin-bottom: 8px !important;
}
body.section-posting #topicreview p.author {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
body.section-posting #topicreview div.content {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  min-height: 0 !important;
}
body.section-posting #topicreview p.author {
  padding-right: 132px !important;
}
@media (max-width: 480px) {
  body.section-posting #topicreview p.author {
    padding-left: 14px !important;
    padding-right: 112px !important;
  }
}
@media (max-width: 700px) {
  body.section-posting #topicreview p.author {
    flex-wrap: wrap !important;
    column-gap: 8px !important;
  }
  body.section-posting #topicreview p.author > .responsive-hide {
    display: inline !important;
    font-size: 0 !important;
    white-space: nowrap !important;
  }
  body.section-posting #topicreview p.author > .responsive-hide strong {
    font-size: 13px !important;
  }
  body.section-posting #topicreview p.author time {
    white-space: nowrap !important;
  }
}
body.section-posting #topicreview p.author .al-post-no {
  font-family: var(--font-jp) !important;
  font-weight: 400 !important;
  font-size: 11px !important;
  color: var(--color-text-tertiary) !important;
  margin-right: 6px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}
@media (max-width: 700px) {
  body.section-posting #topicreview p.author .al-post-no {
    margin-right: 0 !important;
  }
}
body.section-posting #topicreview .al-reply-note {
  padding: 6px 20px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--color-text-secondary) !important;
  background: var(--color-card-hover) !important;
  border-bottom: 1px solid var(--color-border) !important;
}
body.section-posting #topicreview .al-reply-note a {
  color: var(--color-accent) !important;
}
@media (max-width: 700px) {
  body.section-posting #topicreview .al-reply-note {
    padding: 6px 14px !important;
  }
}
body.section-posting #topicreview .al-reply-note {
  padding: 0 !important;
}
body.section-posting #topicreview .al-reply-toggle {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 6px 20px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  font-family: var(--font-jp) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--color-text-secondary) !important;
  cursor: pointer !important;
}
body.section-posting #topicreview .al-reply-target {
  color: var(--color-accent) !important;
  text-decoration: underline !important;
}
body.section-posting #topicreview .al-reply-mark {
  margin-left: 6px !important;
  font-size: 10px !important;
  color: var(--color-accent) !important;
}
body.section-posting #topicreview .al-reply-quote {
  margin: 0 20px 8px !important;
  padding: 8px 12px !important;
  background: var(--color-white) !important;
  border-left: 3px solid var(--color-accent-light) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: var(--color-text-secondary) !important;
}
body.section-posting #topicreview .al-reply-quote[hidden] {
  display: none !important;
}
body.section-posting #topicreview .al-reply-jump {
  display: inline-block !important;
  margin-top: 4px !important;
  font-size: 12px !important;
  color: var(--color-accent) !important;
}
@media (max-width: 700px) {
  body.section-posting #topicreview .al-reply-toggle {
    padding: 6px 14px !important;
  }
  body.section-posting #topicreview .al-reply-quote {
    margin: 0 14px 8px !important;
  }
}
body.section-posting #topicreview .post .username {
  font-weight: 500 !important;
}

body.section-posting #topicreview .post-buttons,
body.section-posting #topicreview .al-reply-jump {
  display: none !important;
}
body.section-posting #topicreview p.author {
  padding-right: 20px !important;
}
@media (max-width: 480px) {
  body.section-posting #topicreview p.author {
    padding-right: 14px !important;
  }
}

/* 書き込み・返信の画面の一番下の「ページトップ」：上に20pxずらす指定（top: -20px）で「最新の書き込み」の枠に重なって
   文字が隠れていたので、ずらしをやめて枠の下に出す（2026-11-07） */
body.section-posting #postform > p a.top {
  top: 0 !important;
  margin-top: 4px !important;
}

/* 書き込み画面（全体に書き込む・返信する・トピックをつくる。posting.php）の余白を小さくする（2026-11-07）。
   上下：タイトル 24/16px→8/6px、入力の枠の内側 28px→12px、各項目の間 20px→6px、入力欄の内側を少し薄く、
   注意書き・送信ボタンの枠・下の「最新の書き込み」の見出しも詰める。
   スマホ（幅700px以下）：入力の枠の左右 32px→14px にして、ユーザー名・件名・本文の欄を横幅いっぱいにそろえる */
body.section-posting h2.posting-title {
  margin: 8px 0 6px !important;
}
body.section-posting #postingbox {
  margin-bottom: 6px !important;
}
body.section-posting #postingbox > .inner {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
body.section-posting #postingbox fieldset.fields1 dl {
  margin-bottom: 6px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.section-posting #postingbox fieldset.fields1 dt {
  padding-bottom: 2px !important;
}
body.section-posting #postingbox .inputbox:not(textarea) {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
body.section-posting #postingbox textarea.inputbox {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
body.section-posting .al-before-topic {
  margin-top: 8px !important;
}
body.section-posting .al-before-topic .al-before-topic-title,
body.section-posting .al-before-topic li > span,
body.section-posting .al-before-topic li > a {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
body.section-posting #postform > .panel.bg2 {
  margin-bottom: 6px !important;
}
body.section-posting #postform > .panel.bg2 > .inner {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
body.section-posting #postform input.button1,
body.section-posting #postform input.button2 {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
body.section-posting h3.review {
  margin: 8px 0 4px !important;
}
@media (max-width: 700px) {
  body.section-posting #postingbox > .inner {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  body.section-posting #postingbox fieldset.fields1 dd input.inputbox,
  body.section-posting #postingbox #message-box,
  body.section-posting #postingbox textarea#message {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* シェアのアイコンを目立つよう少し大きくする（2026-11-07）。
   パンくずの帯：約16px→20px、ジャンル名の右端：16px→21px、トピックの帯の白い丸：32px→40px（アイコン16px→20px） */
.navbar .al-share-item a .icon {
  font-size: 20px !important;
}
body.section-viewforum .al-forum-share {
  font-size: 21px !important;
}
body.section-viewtopic .al-first-share {
  top: 8px !important;
  right: 10px !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 20px !important;
}
body.section-viewtopic .al-first-title {
  padding-right: 46px !important;
}

/* 検索の画面（search.php。検索のページ・検索結果）にはシェアのアイコンを出さない（2026-11-07） */
body.section-search .navbar .al-share-item {
  display: none !important;
}

/* 「シェアする」の窓：QRコードのすぐ下に「印刷」「画像を保存」の丸いボタン（差し色の青の縁取り。overall_footer.html。2026-11-07） */
.al-share-qr-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: -4px 0 12px !important;
}
.al-share-print,
.al-share-save {
  width: 36px !important;
  height: 36px !important;
  font-size: 16px !important;
  background: var(--color-white, #fff) !important;
  color: var(--color-share, #2F62B8) !important;
  border: 1px solid var(--color-share, #2F62B8) !important;
}


/* 「使い方」ページ（howto_body.html の div.al-howto。2026-11-07）：各項目の見出し（「・ジャンル」など）を太字にし、説明との間を詰める */
.al-howto p.al-howto-label {
  margin: 12px 0 2px !important;
  font-weight: 600 !important;
  color: var(--color-text) !important;
}
.al-howto p.al-howto-label + p {
  margin-top: 0 !important;
}

/* 「使い方」ページの「例えばこのような使い方ができます」の枠（howto_body.html の div.al-howto-cases。2026-11-07）：
   薄いローズの地に、ローズの線で囲む */
.al-howto .al-howto-cases {
  margin: 20px 0 8px !important;
  padding: 4px 18px 14px !important;
  background: var(--color-card-hover) !important;
  border: 2px solid var(--color-accent-light) !important;
  border-radius: 10px !important;
}
.al-howto .al-howto-cases h3 {
  margin-top: 10px !important;
}
@media (max-width: 700px) {
  .al-howto .al-howto-cases {
    padding: 2px 12px 10px !important;
  }
}

/* 「使い方」ページ：「・」の項目（「・ジャンル」など）の下の説明文を1文字下げる（2026-11-07）。
   枠の中の「例えばこのような使い方ができます」の項目は対象外 */
.al-howto > p.al-howto-label + p {
  padding-left: 1em !important;
}

/* フッターの上の帯を出さない（2026-11-08 山縣さんの指示）
   ジャンル・トピックなどのページ下の「トップに戻る（○○に戻る）」「ページ移動」の行。
   トップページの「閲覧数の多いトピック」などの帯は、いったん消したが山縣さんの指示で残すことにした（11-08） */
.action-bar.actions-jump {
  display: none !important;
}

/* フッターの上の空白の帯を消す（2026-11-08 山縣さんの指示）
   本文の下にある中身のないナビの帯（#nav-footer。線と余白だけが見えていた）を出さず、フッターとの間の 32px の空きもなくす */
#page-body + .navbar {
  display: none !important;
}
.al-footer {
  margin-top: 0 !important;
}
