/* 2026-11-08 アフィリ向け改善（本人「全部修正して」）：写真を最初に・おすすめ3つ・比較表・下の固定帯・読みやすい金色・細い同意バナー */
:root { --gold-text: #7f5c19; }

/* 金色の小見出しを読みやすく（明るい背景の上だけ。暗いトップの上は元の金色） */
.eyebrow, .section-number, .card-label, .check-list li > span { color: var(--gold-text); } /* .related-grid は黒い背景なので元の金色のまま */
.hero .eyebrow, .hero .section-number { color: var(--gold); }

/* 1. 写真を最初に、見出しを短く */
.jcn-lead-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 300px; object-fit: cover; margin: 0; }
.jcn-lead-photo-note { margin: 4px 16px 0; font-size: .72rem; color: #68645c; text-align: right; }
.article-hero.jcn-compact { padding-top: 22px; padding-bottom: 8px; }
.article-hero.jcn-compact h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 6px 0 10px; line-height: 1.12; }
.article-hero.jcn-compact .dek { margin: 0 0 6px; }
.article-hero.jcn-compact .shopping-paths { display: none; } /* 下の「おすすめ3つ」と比較表が同じ役目をする */

/* 2. おすすめ3つ */
.jcn-picks { max-width: 1160px; margin: 8px auto 30px; padding: 0 34px; }
.jcn-picks h2 { font-size: 1.4rem; margin: 0 0 4px; }
.jcn-picks .jcn-disc { font-size: .78rem; color: #68645c; margin: 0 0 12px; }
.jcn-pick-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.jcn-pick { display: grid; grid-template-columns: 120px minmax(0, 1fr); background: #fffdfa; border: 1px solid #d6d0c3; border-radius: 6px; overflow: hidden; }
.jcn-pick.best { border: 2px solid var(--gold-text); }
.jcn-pick img { width: 120px; height: 100%; min-height: 150px; object-fit: cover; display: block; }
.jcn-pick-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.jcn-pick .tag { align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fffdfa; background: var(--gold-text); padding: 2px 7px; border-radius: 3px; }
.jcn-pick h3 { font-size: 1.04rem; margin: 2px 0 0; line-height: 1.25; }
.jcn-pick p { margin: 0; font-size: .86rem; color: #4a463f; line-height: 1.4; flex: 1; }
.jcn-btn { display: block; text-align: center; background: #e8a33a; color: #17191b !important; font-weight: 800; text-decoration: none; padding: 11px 8px; border-radius: 6px; font-size: .92rem; min-height: 44px; }
.jcn-btn:hover { background: #d99429; }
.jcn-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.jcn-btn.ghost { background: transparent; border: 1px solid #17191b; font-weight: 700; }
.jcn-picks .jcn-more { display: inline-block; margin-top: 12px; font-weight: 700; color: #17191b; text-underline-offset: 4px; min-height: 44px; padding-top: 10px; }

/* 3. 状況から選ぶ比較表 */
.jcn-compare { width: 100%; min-width: 0 !important; border-collapse: collapse; background: #fffdfa; font-size: .92rem; margin-top: 10px; }
.jcn-compare th, .jcn-compare td { padding: 10px; border-bottom: 1px solid #d6d0c3; vertical-align: top; text-align: left; }
.jcn-compare th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #68645c; }
.jcn-compare a.jcn-btn { padding: 9px 12px; font-size: .84rem; min-height: 40px; }

/* 4. 読み進めた時の「おすすめを見る」帯 */
.jcn-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #17191b; color: #fffdfa; font-size: .88rem; }
.jcn-sticky.show { display: flex; }
.jcn-sticky a { background: #e8a33a; color: #17191b; font-weight: 800; text-decoration: none; padding: 9px 14px; border-radius: 6px; white-space: nowrap; }

/* 贈り物ページの各商品に写真 */
.jcn-gift-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin: 0 0 12px; }

@media (max-width: 760px) {
  .jcn-picks { padding: 0 16px; }
  .jcn-pick-list { grid-template-columns: 1fr; gap: 10px; }
  .jcn-pick { grid-template-rows: none; grid-template-columns: 92px minmax(0, 1fr); align-items: stretch; }
  .jcn-pick img { width: 92px; height: 100%; min-height: 120px; aspect-ratio: auto; }
  .jcn-pick-body { padding: 10px; gap: 4px; }
  .jcn-pick p { font-size: .82rem; }
  .article-hero.jcn-compact { padding-left: 16px; padding-right: 16px; }
  /* スマホでは冒頭の文字リンクを隠し、すぐ下の「おすすめ3つ」を最初の画面に入れる（PCでは残す） */
  .article-hero.jcn-compact .shopping-paths { display: none; }
  .article-hero.jcn-compact h1 { font-size: 1.85rem; }
  .article-hero.jcn-compact { padding-top: 14px; }
  .article-hero.jcn-compact .dek { font-size: .95rem; line-height: 1.5; }
  .jcn-lead-photo { aspect-ratio: 2 / 1; }
  .jcn-picks h2 { font-size: 1.25rem; }
  .jcn-picks .jcn-disc { font-size: .72rem; line-height: 1.35; margin-bottom: 8px; }
  .jcn-compare, .jcn-compare tbody { display: block; width: 100%; min-width: 0 !important; }
  .jcn-compare thead { display: none; }
  .jcn-compare tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px; border-bottom: 1px solid #d6d0c3; }
  .jcn-compare td { display: block; padding: 0; border: 0; }
  .jcn-compare td:first-child { grid-column: 1 / -1; font-size: .78rem; color: #68645c; }
  .jcn-compare td:last-child { align-self: center; }

  /* 6. 同意バナーを細く（文言・選択肢・押せる大きさは同じ） */
  .cookie-banner { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); padding: 10px 12px; gap: 10px; flex-direction: row; align-items: center; max-height: none; }
  .cookie-banner p { font-size: .74rem; line-height: 1.35; }
  .cookie-banner div { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
  .cookie-banner button { min-height: 40px; padding: 6px 10px; font-size: .8rem; white-space: nowrap; }
}

/* 2026-11-08 トップ：テーマと贈り物の入口 */
.jcn-start { max-width: 1160px; margin: 26px auto 34px; padding: 0 34px; }
.jcn-start h2 { font-size: 1.4rem; margin: 0 0 4px; }
.jcn-start .jcn-disc { font-size: .78rem; color: #68645c; margin: 0 0 12px; }
.jcn-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.jcn-tile { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: #17191b; background: #fffdfa; border: 1px solid #d6d0c3; border-radius: 6px; overflow: hidden; padding-bottom: 10px; }
.jcn-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin-bottom: 6px; }
.jcn-tile span { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); padding: 0 10px; }
.jcn-tile strong { font-size: .92rem; line-height: 1.25; padding: 0 10px; }
.jcn-tile.gift { grid-column: span 3; border: 2px solid var(--gold-text); }
.jcn-tile.gift img { aspect-ratio: 16 / 5; }
.jcn-tile:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.jcn-tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 760px) {
  .jcn-start { padding: 0 16px; margin-top: 18px; }
  .jcn-start h2 { font-size: 1.25rem; }
  .jcn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .jcn-tile.gift { grid-column: span 1; }
  .jcn-tile.gift img, .jcn-tile img { aspect-ratio: 4 / 3; }
  .jcn-tile strong { font-size: .86rem; }
}
/* トップの黒い見出し部分を低くし、すぐ下の入口を最初の画面に入れる（文字リンクは入口が代わりをする） */
.hero.jcn-top-hero { min-height: 360px; }
.hero.jcn-top-hero img { min-height: 360px; }
.hero.jcn-top-hero .hero-copy { padding: 40px 0 40px 8vw; }
.hero.jcn-top-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin: 8px 0 12px; }
.hero.jcn-top-hero .shopping-paths { display: none; }
@media (max-width: 760px) {
  .has-shopping-paths .hero.jcn-top-hero img { order: -1; min-height: 0; height: 150px; }
  .has-shopping-paths .hero.jcn-top-hero .hero-copy { padding: 16px 16px 18px; }
  .has-shopping-paths .hero.jcn-top-hero h1 { font-size: 2.1rem; }
  .has-shopping-paths .hero.jcn-top-hero .dek { font-size: .92rem; line-height: 1.5; margin-bottom: 0; }
}

/* 2026-11-08 記事から贈り物ページへ・関連記事 */
.jcn-gift-path { display: block; margin-top: 4px; font-size: .9rem; font-weight: 700; color: #17191b; text-underline-offset: 4px; min-height: 44px; padding-top: 10px; }
.jcn-next { margin: 34px 0 10px; }
.jcn-next .eyebrow { margin: 0 0 8px; }
.jcn-next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.jcn-next-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px; background: #fffdfa; border: 1px solid #d6d0c3; border-radius: 6px; color: #17191b; text-decoration: none; }
.jcn-next-card.gift { border: 2px solid var(--gold-text); }
.jcn-next-card img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; display: block; }
.jcn-next-card span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.jcn-next-card strong { display: block; font-size: .95rem; line-height: 1.3; }
.jcn-next-card:hover strong { text-decoration: underline; text-underline-offset: 3px; }
/* テーマ写真は正方形3コマを横に並べた1枚なので、正方形で切って継ぎ目を出さない */
.jcn-tile:not(.gift) img { aspect-ratio: 1 / 1; }
.jcn-gift-thumb { width: 150px; aspect-ratio: 1 / 1; }
.jcn-next-card { grid-template-columns: 80px minmax(0, 1fr); }
.jcn-next-card img { width: 80px; height: 80px; }
@media (max-width: 760px) {
  .jcn-tile:not(.gift) img { aspect-ratio: 1 / 1; }
  .jcn-gift-thumb { width: 120px; }
}
