/* ================================
   Luzeos News - メインスタイル
   ================================ */

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

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: #f5f0e8;
  color: #111;
  line-height: 1.6;
}

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

/* ================================
   ヘッダー
   ================================ */
#luzeos-header {
  background: #111;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 999999;
}

#luzeos-header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#luzeos-logo { text-decoration: none; flex-shrink: 0; }

.logo-black {
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  font-family: 'Arial Black', Arial, sans-serif;
  letter-spacing: -1px;
}

.logo-red {
  color: #cc0000;
  font-size: 38px;
  font-weight: 900;
  font-family: 'Arial Black', Arial, sans-serif;
  letter-spacing: -1px;
}

#header-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* 検索フォーム */
#header-search {
  display: flex;
  align-items: center;
  background: #222;
  border-radius: 20px;
  padding: 4px 10px;
  gap: 6px;
  flex: 1;
  max-width: 220px;
}

#header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 12px;
  width: 100%;
}

#header-search input::placeholder { color: #666; }

#header-search button {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  flex-shrink: 0;
}

#header-search button:hover { color: #fff; }

.lang-btn { color: #aaa; font-size: 11px; cursor: pointer; flex-shrink: 0; }

.signup-btn {
  color: #fff;
  font-size: 11px;
  background: #1a6bcc;
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
  flex-shrink: 0;
}

/* ================================
   ティッカー
   ================================ */
#luzeos-ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #1a1a1a;
  padding: 6px 16px;
}

.ticker-text { color: #ccc; font-size: 11px; }

/* ================================
   フィルターエリア
   ================================ */
#luzeos-filters {
  background: #f5f0e8;
  padding: 8px 16px;
  border-bottom: 2px solid #111;
}

.filter-label {
  font-size: 9px;
  color: #bbb;
  margin: 0 0 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* カテゴリ - PCはグリッド */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 3px;
  margin-bottom: 5px;
}

.cat-block {
  background: #f5f0e8;
  color: #555;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 3px;
  text-align: center;
  border: 1px solid #d9d0c0;
  cursor: pointer;
  transition: all 0.1s;
  text-decoration: none;
  display: block;
  white-space: nowrap;
}

.cat-block:hover,
.cat-block.active {
  background: #1a6bcc;
  color: #fff;
  border-color: #1a6bcc;
}

/* 地域タグ - 横スクロール */
.tag-scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tag-scroll::-webkit-scrollbar { display: none; }

.tag-item {
  background: #f5f0e8;
  color: #555;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid #d9d0c0;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.1s;
  text-decoration: none;
  display: inline-block;
}

.tag-item:hover,
.tag-item.active {
  background: #1a6bcc;
  color: #fff;
  border-color: #1a6bcc;
}

/* ================================
   記事リスト
   ================================ */
#luzeos-wrap { max-width: 960px; margin: 0 auto; }

#luzeos-list { background: #f5f0e8; }

.luzeos-card {
  border-bottom: 1px solid #ede8df;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.15s;
}

.luzeos-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  background: #dbeafe;
  z-index: 1;
  border-bottom-color: transparent;
}

.card-link {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
}

.card-body { flex: 1; min-width: 0; }

.card-tags { display: flex; gap: 4px; margin-bottom: 4px; }

.cat-tag {
  background: #1a6bcc;
  color: #fff;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 2px;
  font-weight: bold;
}

.region-tag {
  color: #999;
  font-size: 9px;
  padding: 1px 5px;
  border: 1px solid #eee;
  border-radius: 2px;
}

.card-title {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.5;
  color: #111;
  margin: 0 0 3px;
  word-break: break-all;
}

.luzeos-card:hover .card-title { color: #1a6bcc; }

.card-excerpt {
  font-size: 11px;
  color: #777;
  margin: 0 0 4px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.card-thumb {
  width: 100px;
  height: 75px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

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

.no-img .card-thumb { display: none; }

.card-time {
  font-size: 10px;
  color: #ccc;
  display: block;
  text-align: right;
  margin-top: auto;
  white-space: nowrap;
  padding-top: 4px;
}

/* ================================
   もっと見るボタン
   ================================ */
#load-more-wrap {
  background: #f5f0e8;
  padding: 16px;
  text-align: center;
  border-top: 1px solid #ede8df;
}

#load-more-btn {
  background: #fff;
  border: 1px solid #ddd;
  color: #444;
  font-size: 13px;
  padding: 10px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

#load-more-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.hidden-card { display: none; }

/* ================================
   ページネーション
   ================================ */
#luzeos-pager {
  padding: 16px;
  text-align: center;
  background: #f5f0e8;
  border-top: 1px solid #ede8df;
}

#luzeos-pager .nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

#luzeos-pager a,
#luzeos-pager span {
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 12px;
  color: #444;
  text-decoration: none;
}

#luzeos-pager .current {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ================================
   フッター
   ================================ */
#luzeos-footer {
  background: #111;
  padding: 12px 16px;
  text-align: center;
}

#luzeos-footer p { color: #555; font-size: 10px; }

.no-posts {
  text-align: center;
  color: #999;
  padding: 40px;
  background: #f5f0e8;
}

/* ================================
   PC版（960px以上）
   ================================ */
@media (min-width: 960px) {
  #luzeos-filters { padding: 10px 24px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 4px; }
  .card-link { padding: 14px 24px; }
  .card-title { font-size: 14px; }
  .card-thumb { width: 120px; height: 90px; }
}

/* ================================
   iPad（481px〜960px）
   ================================ */
@media (min-width: 481px) and (max-width: 960px) {
  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 4px;
  }
  .cat-block {
    padding: 6px 8px;
    font-size: 12px;
  }
}

/* ================================
   スマホ版（480px以下）
   ================================ */
@media (max-width: 480px) {
  .cat-grid {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-block {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 20px;
  }
  .logo-black, .logo-red { font-size: 30px; }
  .logo-red { color: #cc0000; }
  #luzeos-logo { margin-right: auto; }
  #header-search { max-width: 130px; }
}

/* ティッカー検索 */
#ticker-search {
  display: flex;
  align-items: center;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 20px;
  padding: 6px 14px;
  gap: 6px;
  flex-shrink: 0;
}

#ticker-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 260px;
  height: 22px;
}

#ticker-search input::placeholder { color: #888; }

#ticker-search button {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

#ticker-search button:hover { color: #fff; }

@media (max-width: 480px) {
  #ticker-search input { width: 120px; }
}

/* スマホではティッカーテキストを非表示 */
@media (max-width: 480px) {
  .ticker-text { display: none; }
  #luzeos-ticker { justify-content: flex-end; }
}

/* iPad版もカテゴリを横スクロールに */
@media (max-width: 960px) {
  .cat-grid {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-block {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 20px;
  }
}

/* ================================
   記事個別ページ
   ================================ */
#luzeos-single {
  background: #f5f0e8;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
}

.single-meta {
  margin-bottom: 8px;
}

.single-date {
  font-size: 14px;
  color: #bbb;
  margin-right: 6px;
}

.single-time {
  font-size: 14px;
  color: #bbb;
}

.single-title {
  font-size: 23px;
  font-weight: bold;
  line-height: 1.5;
  color: #111;
  margin: 0 0 12px;
}

.single-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

/* アイキャッチ画像（Pexels） */
.single-eyecatch {
  margin-bottom: 16px;
  overflow: hidden;
  max-width: 100%;
}

.single-eyecatch img {
  width: 100%;
  max-width: 100%;
  max-height: 380px;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.pexels-credit {
  font-size: 10px;
  color: #bbb;
  text-align: right;
  margin: 4px 0 0;
}

.pexels-credit a {
  color: #bbb;
  text-decoration: underline;
}

/* 一言要約 */
.single-summary {
  background: #fff8f8;
  border-left: 4px solid #4a90d9;
  border-radius: 4px 6px 6px 4px;
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(204,0,0,0.08);
}

.summary-label {
  font-size: 16px;
  color: #1a6bcc;
  font-weight: bold;
  margin: 0 0 6px;
}

.summary-text {
  font-size: 17px;
  font-weight: bold;
  color: #111;
  margin: 0;
  line-height: 1.7;
}

/* 本文 */
.single-content {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.single-content p { margin-bottom: 10px; font-size: 17px; line-height: 1.6; }
/* h2 旧スタイル（戻す場合はこちらを使う）:
.single-content h2 {
  font-size: 17px; font-weight: bold; margin: 28px 0 12px; color: #111;
  padding: 10px 14px; background: linear-gradient(135deg, #eef4ff 0%, #fff 100%);
  border-left: 4px solid #4a90d9; border-radius: 0 8px 8px 0; letter-spacing: 0.02em;
} */
.single-content h2 {
  font-size: 19px;
  font-weight: bold;
  margin: 24px 0 8px;
  color: #111;
  padding: 0;
  letter-spacing: 0.02em;
}
.single-content h3 { font-size: 17px; font-weight: bold; margin: 16px 0 6px; color: #111; }
.single-content a { color: #1a6bcc; text-decoration: underline; }
.single-content div a { color: #1a6bcc; text-decoration: underline; }

/* 元記事リンク */
.single-source {
  font-size: 12px;
  color: #666;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: #f8f8f8;
  border-radius: 4px;
}

.single-source a { color: #1a73e8; }

/* ペイウォール */
.single-paywall {
  margin-bottom: 20px;
  width: 100%;
  position: relative;
}

.paywall-blur {
  padding: 0;
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  max-height: 130px;
  overflow: hidden;
  position: relative;
}

.paywall-blur::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

.paywall-section-label {
  font-size: 10px;
  font-weight: bold;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
}

.paywall-dummy {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
  margin: 0 0 12px;
}

.paywall-banner {
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.paywall-banner .paywall-title {
  font-size: 17px;
  font-weight: bold;
  color: #111;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.paywall-banner .paywall-desc {
  font-size: 13px;
  color: #555;
  line-height: 2;
  margin: 0 0 20px;
  text-align: center;
  display: block;
  width: 100%;
  max-width: 360px;
}

/* 有料コンテンツ本文のスタイル */
.single-paywall h2 {
  font-size: 19px;
  font-weight: bold;
  margin: 24px 0 8px;
  color: #111;
  padding: 0;
  letter-spacing: 0.02em;
}

.single-paywall p {
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 14px;
  color: #222;
}

/* 情報源リンクを少し小さく */
.single-content div a, .single-content ul a {
  font-size: 15px;
}
.single-content small {
  font-size: 11px;
  color: #999;
}

.paywall-btn {
  display: inline-block;
  background: linear-gradient(135deg, #1a6bcc, #0d4a99);
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  padding: 14px 40px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(26, 107, 204, 0.4);
  letter-spacing: 0.5px;
  transition: all 0.2s;
  cursor: pointer;
}

.paywall-btn:hover {
  background: linear-gradient(135deg, #1560b8, #0a3d80);
  box-shadow: 0 6px 25px rgba(26, 107, 204, 0.5);
  transform: translateY(-1px);
}

.paywall-banner .paywall-cancel {
  font-size: 11px;
  color: #bbb;
  margin: 0;
  line-height: 1.5;
}

/* 免責事項 */
.single-disclaimer {
  font-size: 11px;
  color: #bbb;
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* 戻るリンク */
.single-back {
  padding: 12px 0;
}

.single-back a {
  font-size: 13px;
  color: #666;
  text-decoration: none;
}

.single-back a:hover { color: #1a6bcc; }

@media (max-width: 480px) {
  #luzeos-single { padding: 16px 14px; }
  .single-title { font-size: 22px; }
  .single-eyecatch img { max-height: 200px; }
  .paywall-banner {
    margin-left: -14px;
    margin-right: -14px;
    border-radius: 0;
    padding: 28px 20px;
  }
}


/* ================================
   トースト通知（スライドイン）
   ================================ */
#luzeos-toast-wrap {
  position: fixed !important;
  top: 80px;
  right: -400px;
  z-index: 9999999;
  transition: right 0.4s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #222;
  color: #fff;
  font-size: 13px;
  padding: 14px 20px;
  border-radius: 8px;
  border-left: 4px solid #1a6bcc;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  max-width: 320px;
  width: max-content;
}

#luzeos-toast-wrap.show {
  right: 20px;
}

#luzeos-toast-msg {
  flex: 1;
  line-height: 1.5;
}

#luzeos-toast-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
}

#luzeos-toast-close:hover { color: #fff; }

@media (max-width: 480px) {
  #luzeos-toast-wrap {
    max-width: calc(100vw - 40px);
    right: -100vw;
    top: 20px;
  }
  #luzeos-toast-wrap.show {
    right: 10px;
  }
  #luzeos-toast-msg {
    word-break: break-all;
  }
}

/* 戻るボタン */
#luzeos-back-bar {
  background: #f5f0e8;
  padding: 10px 20px;
  border-bottom: 1px solid #f0f0f0;
}

#luzeos-back-btn {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#luzeos-back-btn:hover { color: #1a6bcc; }

/* トーストメッセージの改行対応 */
#luzeos-toast-msg {
  line-height: 1.6;
}

/* 注目ボタン */
.chukumoku-btn {
  background: #fff !important;
  color: #1a6bcc !important;
  border: 2px solid #1a6bcc !important;
  font-weight: bold !important;
}

.chukumoku-btn:hover,
.chukumoku-btn.active {
  background: #1a6bcc !important;
  color: #fff !important;
  border-color: #1a6bcc !important;
}

/* 記事カードの注目バッジ */
.chukumoku-badge {
  display: inline-block;
  background: #fff;
  color: #1a6bcc;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 2px;
  border: 1.5px solid #1a6bcc;
}

/* ================================
   ハンバーガーボタン
   ================================ */
#hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}

#hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}

/* ================================
   ハンバーガーメニュー
   ================================ */
#hamburger-menu {
  position: fixed;
  top: 0;
  right: -370px;
  width: 360px;
  height: 100vh;
  background: #fff;
  z-index: 99998;
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  overflow-y: auto;
}

#hamburger-menu.open {
  right: 0;
}

#hamburger-inner {
  padding: 16px;
  padding-top: 60px;
}

/* メニューオーバーレイ（外側クリックで閉じる＋他ボタン無効） */
#menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 99997;
}

#menu-overlay.show {
  display: block;
}

/* メニュー内のハンバーガー閉じるボタン */
#hamburger-close {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 99999;
}

#hamburger-close span {
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

@media (max-width: 768px) {
  #hamburger-menu {
    width: 60vw;
    right: -61vw;
  }
  #hamburger-menu.open {
    right: 0;
  }
  #hamburger-inner {
    padding: 12px;
    padding-top: 60px;
  }
  #hamburger-close {
    top: 20px;
    right: 16px;
  }
}

.menu-section-label {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #f0f0f0;
}

.menu-item-label {
  font-size: 12px;
  color: #444;
  margin: 0 0 8px;
}

.sort-item {
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 12px;
  color: #333;
  margin-bottom: 4px;
  cursor: grab;
  user-select: none;
}

.sort-item:active { cursor: grabbing; background: #f0f0f0; }

.menu-action-btn {
  width: 100%;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 8px;
}

.menu-action-btn:hover { background: #333; }

/* ================================
   スマホのカテゴリを小さく
   ================================ */
@media (max-width: 480px) {
  .cat-block {
    font-size: 10px !important;
    padding: 3px 8px !important;
  }
}

/* アコーディオン */
.menu-accordion {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}

.menu-accordion-btn {
  width: 100%;
  background: #f8f8f8;
  border: none;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: bold;
  color: #111;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.menu-accordion-btn:hover { background: #f0f0f0; }

.accordion-icon {
  font-size: 12px;
  color: #888;
}

.menu-accordion-body {
  padding: 0 14px 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.menu-accordion-body.open {
  max-height: 600px;
  padding: 0 14px 14px;
}

.drag-handle {
  color: #ccc;
  margin-right: 4px;
}

/* スマホ版ティッカーテキスト切り替え */
.ticker-text-mobile { display: none; color: #ccc; font-size: 11px; }

@media (max-width: 480px) {
  .ticker-text { display: none; }
  .ticker-text-mobile { display: inline; }
}

/* スマホティッカーテキストを左寄せ */
@media (max-width: 480px) {
  #luzeos-ticker { justify-content: space-between; }
  .ticker-text-mobile { flex: 1; text-align: left; }
}

/* フッターリンク */
#footer-links {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

#footer-links a {
  color: #888;
  font-size: 11px;
  text-decoration: none;
}

#footer-links a:hover { color: #fff; }

/* ================================
   関連記事・注目記事
   ================================ */
.single-related {
  margin: 24px 0;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.related-title {
  font-size: 14px;
  font-weight: bold;
  color: #111;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.related-card {
  display: flex;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
  transition: background 0.1s;
  align-items: flex-start;
}

.related-card:hover { background: #f9f9f9; }

.related-thumb {
  width: 90px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
}

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

.related-body { flex: 1; min-width: 0; }

.related-cat {
  display: inline-block;
  font-size: 9px;
  background: #1a6bcc;
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
}

.related-card-title {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.4;
  color: #111;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card:hover .related-card-title { color: #1a6bcc; }

.related-time {
  font-size: 10px;
  color: #bbb;
}

@media (max-width: 480px) {
  .related-list { grid-template-columns: 1fr; }
}

/* ================================
   お問い合わせフォーム
   ================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 13px;
  font-weight: bold;
  color: #333;
}

.contact-required {
  color: #1a6bcc;
  font-size: 11px;
  margin-left: 4px;
}

.contact-input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border 0.15s;
  width: 100%;
}

.contact-input:focus {
  border-color: #111;
}

.contact-textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border 0.15s;
  width: 100%;
  height: 160px;
  resize: vertical;
}

.contact-textarea:focus {
  border-color: #111;
}

.contact-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}

.contact-btn:hover { background: #333; }

.contact-success {
  background: #f0fff0;
  border: 1px solid #90ee90;
  border-radius: 6px;
  padding: 14px;
  font-size: 14px;
  color: #2d6a2d;
  margin-bottom: 20px;
}

.contact-error {
  background: #fff0f0;
  border: 1px solid #ffaaaa;
  border-radius: 6px;
  padding: 14px;
  font-size: 14px;
  color: #1a6bcc;
  margin-bottom: 20px;
}

/* 既存記事のインライン赤色を青に上書き */
.single-content a[style*="color:#cc0000"],
.single-content a[style*="color: #cc0000"] { color: #1a6bcc !important; }
[style*="border-left:3px solid #cc0000"],
[style*="border-left: 3px solid #cc0000"] { border-left-color: #1a6bcc !important; }
