/* ============================================================
   tsuriikitai 固有スタイル
   ship-soul-base.css の上書き・追加
   ============================================================ */

/* ---- カラーテーマ上書き ---- */
:root {
  --accent:       #1a7a4a;
  --accent-hover: #22a060;
  --accent-light: rgba(26, 122, 74, 0.08);
}

/* ---- フッターロゴ ---- */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
  background: #0d1b2a;
  border-radius: 6px;
  padding: 6px 12px;
}
.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* ---- ヘッダー: 下部に緑ラインを追加 ---- */
.site-header {
  border-bottom: 3px solid var(--accent);
}

/* ---- ナビ: ホバー時に緑背景 ---- */
.site-nav .nav-list a {
  border-radius: 4px;
  padding: 4px 10px;
  transition: background 0.15s;
}
.site-nav .nav-list a:hover {
  background: rgba(26, 122, 74, 0.18);
  color: #fff;
}

/* ---- ヘッダーロゴ（画像） ---- */
.site-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

/* ---- 記事本文見出し ---- */
.single-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  background: none;
  border-radius: 0;
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  border-left: none;
  padding: 10px 6px;
  margin: 2.5rem 0 1.2rem;
}

.single-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid var(--accent);
  padding: 8px 0;
  margin: 1.8rem 0 1rem;
}

.single-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  background-color: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-bottom: none;
  padding: 8px 14px;
  margin: 1.5rem 0 0.8rem;
  border-radius: 0 4px 4px 0;
}

/* ---- product_card 内のスタイルリセット ---- */
/* single-body の h3/p/ul/li が product-card 内に漏れるのを防ぐ */
.product-card h3,
.product-card .product-card-name {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 0 6px !important;
}

.product-card p,
.product-card .product-card-fit-label,
.product-card .product-card-summary {
  margin-bottom: 0 !important;
}

.product-card ul,
.product-card .product-card-points {
  padding-left: 0 !important;
  margin-bottom: 0 !important;
  list-style: none !important;
}

.product-card li,
.product-card .product-card-points li {
  list-style: none !important;
  margin-bottom: 0 !important;
}

/* ---- メルカリボタン色（ship-soul-base に未定義） ---- */
.affiliate-link-mercari {
  background: #333333;
}

/* ---- product-card アフィリエイトボタン: 4ボタン2×2グリッド ---- */
.product-card-affiliate {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* ---- 関連記事カード ---- */
.related-post-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #d0ddd0;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 1.2rem 0;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.related-post-card:hover {
  box-shadow: 0 2px 10px rgba(26,122,74,0.15);
  border-color: var(--accent);
  color: inherit;
  text-decoration: none;
}
.related-post-card__image {
  flex-shrink: 0;
  width: 100px;
  height: 68px;
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
}
.related-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-post-card__body {
  flex: 1;
  min-width: 0;
}
.related-post-card__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 1px 7px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.related-post-card__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 480px) {
  .related-post-card__image {
    width: 80px;
    height: 54px;
  }
}

/* ---- 404ページ ---- */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

.error-page-title {
  font-size: 6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin: 0 0 16px;
}

.error-page-message {
  font-size: 1.1rem;
  color: #666;
  margin: 0 0 32px;
}

.error-page .btn-more {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s;
}

.error-page .btn-more:hover {
  background: var(--accent-hover);
}
