/* ナイトブラNAVI - メインスタイル */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ピーチオレンジ系パレット */
  --color-bg: #fffaf8;            /* ボディ背景 */
  --color-white: #ffffff;
  --color-beige: #f5dcd4;         /* ボーダー/区切り */
  --color-beige-light: #fdeae0;   /* ヒーロー/ライト背景 */
  --color-brown: #e08060;         /* メインボタン/アクセント */
  --color-brown-dark: #5c2814;    /* 見出しテキスト */
  --color-brown-light: #9b4a30;   /* サブテキスト系 */
  --color-text: #5c2814;          /* 本文テキスト */
  --color-text-light: #9b4a30;    /* サブテキスト */
  --color-border: #f5dcd4;        /* ボーダー */
  --color-header-bg: #fef7f2;     /* ヘッダー背景 */
  --font-base: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(224,128,96,0.12);
}

body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 15px;
}

a { color: var(--color-brown-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ===== ヘッダー ===== */
/* ===== ヘッダー（新トップ nt-header と統一・2026-05-19） ===== */
.site-header {
  width: 100%;
  background: #fff;
  border-bottom: 0.5px solid #e8e0d8;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 6px rgba(224,128,96,0.05);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 8px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.site-logo {
  font-size: 16px; font-weight: 700;
  color: #3a2418;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.site-logo span {
  display: block;
  color: #888; font-size: 10px; font-weight: 400;
  margin-top: 2px;
  letter-spacing: 0;
}

.site-nav { display: flex; gap: 14px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav li { list-style: none; }
.site-nav a {
  padding: 4px 0;
  font-size: 12px; font-weight: 500;
  color: #555;
  transition: color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav a:hover { color: #e08060; background: none; text-decoration: none; }

/* ===== ヒーロー ===== */
.hero {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #fdeae0 0%, #f5dcd4 100%);
  text-align: center;
  overflow: hidden;
  padding: 0;
}
.hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.hero-cta {
  padding: 20px 20px 0;
}
.hero-btn {
  display: inline-block;
  background: var(--color-brown);
  color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 14px 36px; border-radius: 30px;
  box-shadow: 0 4px 14px rgba(224,128,96,0.30);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(224,128,96,0.4); background: #c46850; text-decoration: none; }

/* ===== セクション共通 ===== */
.section { padding: 56px 20px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: 22px; font-weight: 700;
  color: var(--color-brown-dark);
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-brown-light);
}
.section-lead { font-size: 14px; color: var(--color-text-light); margin-bottom: 32px; }
.section-bg { background: var(--color-beige-light); }

/* ===== ランキング ===== */
.ranking-list { display: flex; flex-direction: column; gap: 20px; }
.ranking-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 20px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.rank-badge {
  min-width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.rank-1 { background: linear-gradient(135deg, #c9a227, #e8c94a); }
.rank-2 { background: linear-gradient(135deg, #8c9ca8, #b0c0cc); }
.rank-3 { background: linear-gradient(135deg, #b87333, #d4956a); }

.rank-info { flex: 1; }
.rank-name { font-size: 17px; font-weight: 700; color: var(--color-brown-dark); margin-bottom: 4px; }
.rank-stars { color: #d4a017; font-size: 14px; margin-bottom: 4px; }
.rank-desc { font-size: 13px; color: var(--color-text-light); }
.rank-coming { font-size: 12px; color: var(--color-brown-light); font-style: italic; }

/* ===== カテゴリ ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.category-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(224,128,96,0.18); text-decoration: none; }
.category-icon { font-size: 36px; margin-bottom: 12px; }
.category-name { font-size: 17px; font-weight: 700; color: var(--color-brown-dark); margin-bottom: 6px; }
.category-desc { font-size: 13px; color: var(--color-text-light); }

/* ===== トップ導入文 ===== */
.top-intro { font-size: 15px; line-height: 1.8; }
.top-intro p { margin-bottom: 1em; }
.top-intro p:last-child { margin-bottom: 0; }
.top-intro-quote {
  color: var(--color-brown-dark);
  font-weight: 700;
}

/* ===== トップCTAナビ ===== */
.cta-nav { display: flex; flex-direction: column; gap: 12px; }
.cta-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.cta-nav-item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(224,128,96,0.18); text-decoration: none; }
.cta-nav-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-beige-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.cta-nav-body { flex: 1; }
.cta-nav-title { font-size: 16px; font-weight: 700; color: var(--color-brown-dark); margin-bottom: 3px; }
.cta-nav-desc { font-size: 12px; color: var(--color-text-light); }
.cta-nav-arrow { font-size: 20px; color: var(--color-brown); flex-shrink: 0; }

/* ===== 新着記事 ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.article-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
  display: block;
}
.article-card:hover { transform: translateY(-3px); text-decoration: none; }
.article-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.article-card-body { padding: 10px 12px 12px; }
.article-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-brown-dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-tag {
  display: inline-block;
  background: var(--color-beige);
  color: var(--color-brown);
  font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 10px;
  margin-bottom: 8px;
}
.article-title { font-size: 15px; font-weight: 700; color: var(--color-brown-dark); margin-bottom: 6px; line-height: 1.5; }
.article-meta { font-size: 12px; color: var(--color-text-light); }

/* ===== アウトラインボタン ===== */
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--color-brown);
  color: var(--color-brown-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 36px;
  border-radius: 24px;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--color-beige-light); text-decoration: none; }

/* ===== フッター ===== */
.site-footer {
  background: var(--color-brown-dark);
  color: rgba(255,255,255,0.85);
  padding: 40px 20px 24px;
  text-align: center;
}
.footer-nav { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; list-style: none; }
.footer-nav a { color: rgba(255,255,255,0.8); font-size: 13px; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ===== 記事ページ ===== */
.article-container {
  max-width: 800px; margin: 0 auto;
  padding: 32px 20px 64px;
}

/* パンくずリスト */
.breadcrumb {
  font-size: 12px; color: var(--color-text-light);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-brown-dark); text-decoration: underline; }
.breadcrumb-sep { color: var(--color-beige); }

/* 記事アイキャッチ */
.post-eyecatch {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 0 28px;
  box-shadow: var(--shadow);
}

/* 記事ヘッダー */
.post-header { margin-bottom: 32px; }
.post-tag {
  display: inline-block;
  background: var(--color-beige);
  color: var(--color-brown);
  font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 12px;
  margin-bottom: 12px;
}
.post-title {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 700; color: var(--color-brown-dark);
  line-height: 1.5; margin-bottom: 10px;
}
.post-meta {
  font-size: 12px; color: var(--color-text-light);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.post-meta-sep { color: var(--color-border); }

/* 記事本文 */
.post-body { line-height: 1.85; }
.post-body h2 {
  font-size: 18px; font-weight: 700;
  color: var(--color-brown-dark);
  margin: 40px 0 14px;
  padding: 10px 16px;
  background: var(--color-beige-light);
  border-left: 4px solid var(--color-brown);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* 口コミセクション専用見出し（h2.review-bad / h2.review-good） */
.post-body h2.review-bad {
  background: #fff3e0;
  border-left: 3px solid #e08060;
  color: #7a3a1a;
  border-radius: 0 6px 6px 0;
}
.post-body h2.review-good {
  background: #f0f7f0;
  border-left: 3px solid #6a9e6a;
  color: #2a5a2a;
  border-radius: 0 6px 6px 0;
}
.post-body h3 {
  font-size: 16px; font-weight: 700;
  color: var(--color-brown-dark);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px dotted var(--color-border);
}
.post-body p { margin-bottom: 16px; }
.post-body ul, .post-body ol {
  margin: 12px 0 20px 20px;
}
.post-body ul li, .post-body ol li { margin-bottom: 6px; }

/* 本文中の内部リンク・テキストリンク（CTAボタン・引用元・関連記事カードは除外） */
.post-body p a,
.post-body li a,
.post-body td a:not([rel*="nofollow"]) {
  color: var(--color-brown-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.post-body p a:hover,
.post-body li a:hover,
.post-body td a:not([rel*="nofollow"]):hover {
  color: var(--color-orange, #e08060);
  text-decoration-thickness: 2px;
}
/* 外部リンク（rel="nofollow noopener"付き）はスタイル控えめに */
.post-body p a[rel*="nofollow"],
.post-body li a[rel*="nofollow"] {
  color: var(--color-text-light);
  font-weight: 400;
}

/* 記事内テーブル */
.post-body table {
  width: 100%; border-collapse: collapse;
  margin: 20px 0; font-size: 13px;
}
.post-body th {
  background: var(--color-beige);
  color: var(--color-brown-dark);
  font-weight: 700; padding: 10px 12px;
  border: 1px solid var(--color-border);
  text-align: left;
}
.post-body td {
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  vertical-align: top;
}
.post-body tr:nth-child(even) td { background: var(--color-beige-light); }

/* アフィリエイトボックス */
.affiliate-box {
  background: var(--color-white);
  border: 2px solid var(--color-brown-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.affiliate-box-title {
  font-size: 15px; font-weight: 700;
  color: var(--color-brown-dark);
  margin-bottom: 10px;
}
.affiliate-box-desc { font-size: 13px; color: var(--color-text-light); margin-bottom: 14px; }
.affiliate-btn {
  display: inline-block;
  background: var(--color-brown);
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 11px 28px; border-radius: 24px;
  box-shadow: 0 3px 10px rgba(224,128,96,0.30);
  transition: transform 0.2s, background 0.2s;
}
.affiliate-btn:hover { transform: translateY(-2px); background: #c46850; text-decoration: none; }

/* 口コミ引用 */
.review-box {
  background: var(--color-beige-light);
  border-left: 4px solid var(--color-brown-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
}
.review-box-good { border-left-color: #7aac8f; background: #f0f7f3; }
.review-box-bad  { border-left-color: #c49; background: #fdf5f8; }
.review-label {
  font-size: 11px; font-weight: 700; margin-bottom: 6px;
}
.review-label-good { color: #2e7d52; }
.review-label-bad  { color: #a03060; }

/* 口コミ引用（blockquote形式・白×細枠／引用符なし） */
.post-body blockquote {
  background: #ffffff;
  border: 0.5px solid #e8dcd4;
  border-radius: 5px;
  color: #3c2010;
  padding: 10px 12px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.8;
}
.post-body blockquote.good,
.post-body blockquote.bad {
  background: #ffffff;
  border: 0.5px solid #e8dcd4;
}
.post-body blockquote p { margin: 0 0 6px; color: #3c2010; }
.post-body blockquote cite { display: block; margin-top: 6px; }
.post-body blockquote cite {
  display: block;
  font-size: 11px;
  color: var(--color-text-light);
  font-style: normal;
  text-align: right;
  margin-top: 8px;
}
.post-body blockquote cite a {
  color: var(--color-text-light);
  text-decoration: underline;
}
.post-body blockquote cite a:hover { color: var(--color-brown-dark); }
.review-follow {
  font-size: 11px;
  color: #5c2814;
  background: none;
  border: none;
  padding: 0;
  margin: 8px 0;
  line-height: 1.7;
}
.review-lead {
  font-size: 14px;
  color: var(--color-text-light);
  margin: 12px 0 20px;
  line-height: 1.9;
}

/* ポイントボックス（おすすめする人・しない人など） */
.point-box {
  background: #ffffff;
  border: 0.5px solid #e8dcd4;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 16px 0;
}
.point-box-title {
  font-size: 14px; font-weight: 700;
  color: var(--color-brown-dark); margin-bottom: 8px;
}

/* 手順ステップ */
.steps { list-style: none; margin: 16px 0 24px; padding: 0; counter-reset: step-counter; }
.steps li {
  counter-increment: step-counter;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--color-border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step-counter);
  min-width: 28px; height: 28px;
  background: var(--color-brown);
  color: #fff; font-size: 13px; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

/* 関連記事 */
.related-section {
  margin-top: 56px; padding-top: 32px;
  border-top: 2px solid var(--color-beige);
}
.related-title {
  font-size: 18px; font-weight: 700;
  color: var(--color-brown-dark); margin-bottom: 20px;
}

/* ===== PR表記（ステマ規制対応） ===== */
.pr-notice {
  font-size: 12px;
  color: #9b4a30;
  background: #fef7f2;
  border: 0.5px solid #f5dcd4;
  border-radius: 4px;
  padding: 6px 12px;
  margin: 12px 0 20px;
  display: block;
}

/* ===== レスポンシブ ===== */
@media (max-width: 680px) {
  .header-inner { flex-direction: column; align-items: flex-start; padding: 8px 16px; gap: 6px; }
  .site-nav { gap: 12px; font-size: 12px; justify-content: flex-start; }
  .ranking-item { flex-direction: column; text-align: center; }
  .post-body table { display: block; overflow-x: auto; }
}

/* ===== ランキング 関連記事アコーディオン ===== */
.rank-cta-btn {
  display: inline-block;
  background: #fff;
  border: 1.5px solid #cccccc;
  color: #333333;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 24px;
  text-decoration: none;
  transition: background 0.2s;
}
.rank-cta-btn:hover { background: #f5f5f5; text-decoration: none; }
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff8a50 0%, #d96545 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 32px;
  border-radius: 28px;
  border: none;
  box-shadow: 0 3px 8px rgba(217, 101, 69, 0.3);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 44px;
}
.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 101, 69, 0.4);
  text-decoration: none;
  color: #fff;
}
.cta-sub {
  display: block;
  font-size: 10px;
  color: #888;
  margin-top: 6px;
  text-align: center;
  letter-spacing: 0.08em;
}
.rank-accordion { margin-top: 16px; }
.rank-accordion-btn {
  width: 100%;
  background: #fef7f3;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-brown-dark);
  font-family: var(--font-base);
  transition: background 0.15s;
}
.rank-accordion-btn:hover { background: #fdeae0; }
.rank-accordion-body {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-top: 10px;
}
.rank-accordion-body.open { display: grid; }
.rank-related-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 0.5px solid #e8e8e8;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  transition: background 0.15s;
  color: #333;
}
.rank-related-link:hover { background: var(--color-beige-light); text-decoration: none; }
.rank-cat-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.rank-cat-label.kuchikomi { background: #fce4ec; color: #c2185b; }
.rank-cat-label.size      { background: #e3f2fd; color: #1565c0; }
.rank-cat-label.shop      { background: #fdeae0; color: #c75000; }
.rank-cat-label.kouka     { background: #e8f5e9; color: #2e7d32; }
.rank-cat-label.tsukekata { background: #f3e5f5; color: #7b1fa2; }
.rank-related-title {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (max-width: 767px) {
  .rank-accordion-body { grid-template-columns: 1fr; }
}

/* 新着記事カード：タブレット（3列） */
@media (min-width: 768px) {
  .article-grid { grid-template-columns: repeat(3, 1fr); }
  .article-card-title { font-size: 13px; }
  .article-card-body { padding: 12px 14px; }
}

/* 新着記事カード：PC（4列） */
@media (min-width: 1024px) {
  .article-grid { grid-template-columns: repeat(4, 1fr); }
}
