/**
 * Wine Serenity Journal - Page Styles
 * 固定ページ共通レイアウト（共通＋Wine Basics専用）
 */

/* ========================================
   共通レイアウト：記事ページの基本構造
   ======================================== */

/* 記事系レイアウト共通（固定ページ + 投稿） */
.wsj-main--article,
.wsj-main--single {
  background-color: #f7f3ee;
}

.wsj-main--article .wsj-main__inner,
.wsj-main--single .wsj-main__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.wsj-page--article,
.wsj-single-post {
  max-width: 760px;
  margin: 40px auto 0;
  padding-bottom: 40px;
  line-height: 2;
  font-size: 15px;
  color: #2c2c2c;
}

/* ========================================
   共通：Section 基本スタイル
   ======================================== */

.wsj-page--article .wsj-section {
  margin-top: 40px;
}

.wsj-page--article .wsj-section__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c2c2c;
}

/* セクションカード化 */
.wsj-page--article .wsj-section--card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 32px 32px 28px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
}

/* セクション番号ラベル */
.wsj-page--article .wsj-section__eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a27a97;
  margin-bottom: 4px;
}

/* 基本スタイル */
.wsj-page--article .wsj-section h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 24px 0 8px;
  color: #2c2c2c;
}

.wsj-page--article .wsj-section h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 16px 0 4px;
  color: #2c2c2c;
}

.wsj-page--article .wsj-section p {
  margin-bottom: 12px;
  line-height: 2;
}

.wsj-page--article .wsj-section ul,
.wsj-page--article .wsj-section ol {
  margin: 8px 0 16px 1.5em;
  padding-left: 0;
  list-style-position: outside;
}

.wsj-page--article .wsj-section ul {
  list-style-type: disc;
}

.wsj-page--article .wsj-section ol {
  list-style-type: decimal;
}

.wsj-page--article .wsj-section li {
  margin-bottom: 4px;
  line-height: 1.8;
}

.wsj-page--article .wsj-section strong {
  font-weight: 600;
  color: #6b2d5c;
}

.wsj-note {
  font-size: 13px;
  color: #777;
  margin-top: 8px;
  line-height: 1.7;
}

/* ========================================
   共通：リストスタイル（wsj-list）
   ======================================== */

/* wsj-list は「少しだけ余白調整した普通の箇条書き」にする */
.wsj-page--article .wsj-list {
  margin: 8px 0 12px 1.5em;
  padding-left: 0;
  list-style-type: disc;
  list-style-position: outside;
}

.wsj-page--article .wsj-list li {
  margin-bottom: 4px;
  line-height: 1.8;
}

/* ========================================
   共通：Hero（記事ページ用）
   ======================================== */

.wsj-page-hero {
  position: relative;
  min-height: 260px;
  padding: 72px 24px 64px;
  color: #fafafa;
  overflow: hidden;
}

.wsj-page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.8);
  background-color: #6b2d5c;
}

.wsj-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(19, 8, 12, 0.8) 0%,
    rgba(19, 8, 12, 0.4) 55%,
    rgba(19, 8, 12, 0.0) 100%
  );
}

.wsj-page-hero__inner {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  z-index: 1;
}

.wsj-page-hero__label {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  background-color: rgba(250, 250, 250, 0.12);
}

.wsj-page-hero__title {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 12px;
}

.wsj-page-hero__lead {
  font-size: 14px;
  line-height: 1.9;
  max-width: 520px;
}

.wsj-main--article .wsj-page {
  margin-top: 32px;
}

/* ========================================
   共通：グリッドコンポーネント
   ======================================== */

.wsj-page--article .wsj-grid--taste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.wsj-page--article .wsj-taste-card {
  padding: 14px 10px 12px;
  border-radius: 18px;
  background-color: #fbf5ee;
  border: 1px solid #f0e3db;
}

.wsj-page--article .wsj-taste-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #6b2d5c;
  margin-bottom: 4px;
}

.wsj-page--article .wsj-taste-card__desc {
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
  margin-bottom: 0;
}

/* ========================================
   Wine Basics 専用スタイル
   ======================================== */

/* Wine Basics の背景画像 */
.wsj-page-hero--wine-basics .wsj-page-hero__bg {
  background-image: url('../images/pages/wine-basics-hero.webp');
}

/* Section 01: Intro（ウェルカムカード） */
.wsj-page--wine-basics .wsj-section--intro {
  margin-top: 32px;
}

.wsj-page--wine-basics .wsj-section--intro.wsj-section--card {
  padding: 40px 40px 36px;
  text-align: center;
}

.wsj-page--wine-basics .wsj-section--intro .wsj-section__title {
  font-size: 22px;
  margin-bottom: 12px;
}

.wsj-page--wine-basics .wsj-section--intro p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Section 01: Intro 内のリストは左寄せ＋幅を少し絞る */
.wsj-page--wine-basics .wsj-section--intro .wsj-list {
  text-align: left;
  max-width: 320px; /* 中央の細いカラムに見せるため */
  margin-left: auto;
  margin-right: auto;
}

/* Section 02: Types（縦並び＋種類ごとの区切り） */
.wsj-page--wine-basics .wsj-section--types {
  background-color: #fbf5ee;
}

.wsj-page--wine-basics .wsj-section-types__layout {
  display: block;
  margin-top: 16px;
}

.wsj-page--wine-basics .wsj-section-types__media {
  margin-bottom: 18px;
}

.wsj-page--wine-basics .wsj-section-types__media img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

/* 種類ごとに区切り線を入れる */
.wsj-page--wine-basics .wsj-section--types h3 {
  font-size: 15px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #ecd8c7;
  color: #6b2d5c;
}

/* 最初の h3 だけ上の線を消す */
.wsj-page--wine-basics .wsj-section--types h3:first-of-type {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}

/* Section 03: Taste（センター寄せキーワードカード） */
.wsj-page--wine-basics .wsj-section--taste {
  text-align: center;
}

.wsj-page--wine-basics .wsj-section--taste .wsj-section__title {
  margin-bottom: 8px;
}

.wsj-page--wine-basics .wsj-section--taste > p {
  max-width: 620px;
  margin: 0 auto 16px;
}

/* Section 04: World（縦構成＋比較ボックス） */
.wsj-page--wine-basics .wsj-section-world__media {
  margin: 16px 0 18px;
}

.wsj-page--wine-basics .wsj-section-world__media img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

/* SECTION 04 本文の横幅と位置を揃える */
.wsj-page--wine-basics .wsj-section--world .wsj-section-world__body {
  max-width: 640px;
  margin: 0 auto;
}

.wsj-page--wine-basics .wsj-section--world .wsj-section-world__body > h3,
.wsj-page--wine-basics .wsj-section--world .wsj-section-world__body > p {
  text-align: left;
}

.wsj-page--wine-basics .wsj-grid--world {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 8px;
}

.wsj-page--wine-basics .wsj-world-block {
  padding: 14px 16px;
  border-radius: 16px;
  background-color: #fbf5ee;
  border: 1px solid #f0e3db;
}

.wsj-page--wine-basics .wsj-world-block h4 {
  font-size: 14px;
  margin-bottom: 6px;
  color: #6b2d5c;
  font-weight: 600;
}

.wsj-page--wine-basics .wsj-world-block ul {
  margin: 0 0 6px 1.2em;
  list-style-type: disc;
}

.wsj-page--wine-basics .wsj-world-block p {
  font-size: 13px;
  line-height: 1.7;
  color: #666666;
  margin-bottom: 0;
}

/* Section 05: Enjoy（HOW TOカード） */
.wsj-page--wine-basics .wsj-section--enjoy {
  text-align: center;
}

.wsj-page--wine-basics .wsj-section--enjoy > p {
  max-width: 640px;
  margin: 0 auto 18px;
}

.wsj-page--wine-basics .wsj-grid--enjoy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.wsj-page--wine-basics .wsj-basic-card {
  padding: 14px 14px 12px;
  border-radius: 18px;
  background-color: #fbf5ee;
  border: 1px solid #f0e3db;
}

.wsj-page--wine-basics .wsj-basic-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #6b2d5c;
  margin-bottom: 4px;
}

.wsj-page--wine-basics .wsj-basic-card__desc {
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
  margin-bottom: 0;
}

/* Section 06: Closing（締めのセクション） */
.wsj-page--wine-basics .wsj-section--closing {
  border-top: 2px solid #f0e3db;
  text-align: center;
}

/* SECTION 06 本文の横幅と位置を SECTION 04 と揃える */
.wsj-page--wine-basics .wsj-section--closing > p,
.wsj-page--wine-basics .wsj-section--closing > ul {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* 箇条書きは左寄せ */
.wsj-page--wine-basics .wsj-section--closing > ul {
  text-align: left;
  margin-top: 8px;
}

/* 次に読んでほしいページ */
.wsj-page--wine-basics .wsj-section--next {
  text-align: center;
  background-color: #fbf5ee;
}

.wsj-page--wine-basics .wsj-section--next .wsj-section__title {
  margin-bottom: 8px;
}

.wsj-page--wine-basics .wsj-section--next > p {
  max-width: 620px;
  margin: 0 auto 12px;
}

.wsj-page--wine-basics .wsj-section--next .wsj-list {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.wsj-page--wine-basics .wsj-section--next .wsj-list a {
  color: #6b2d5c;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.wsj-page--wine-basics .wsj-section--next .wsj-list a:hover {
  color: #8b3d7c;
  text-decoration: underline;
}

/* ========================================
   Wine Regions 専用スタイル
   ======================================== */

/* ワイン地域ページ ヒーロー */
.wsj-page-hero--wine-regions .wsj-page-hero__bg {
  background-image: url('../images/pages/wine-regions/hero-wine-regions.webp');
}

/* ワイン地域ページ共通 */
.wsj-page--wine-regions .wsj-section {
  margin: 32px auto 40px;
  max-width: 960px;
}

@media (min-width: 960px) {
  .wsj-page--wine-regions .wsj-section {
    margin: 40px auto 56px;
  }
}

/* セクション内の画像 */
.wsj-page--wine-regions .wsj-section figure {
  margin: 16px 0 20px;
}

.wsj-page--wine-regions .wsj-section figure img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

/* セクション本文 */
.wsj-page--wine-regions .wsj-section-old-world__body,
.wsj-page--wine-regions .wsj-section-new-world__body,
.wsj-page--wine-regions .wsj-section-france-regions__body,
.wsj-page--wine-regions .wsj-section-japan__body,
.wsj-page--wine-regions .wsj-section-world-overview__body {
  margin-top: 16px;
}

/* 地域カードのグリッドレイアウト（PC3列・SP1列） */
.wsj-regions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 960px) {
  .wsj-regions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.wsj-regions-card {
  background-color: #fffdf8;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.wsj-regions-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #6b2d5c;
  margin-bottom: 6px;
}

.wsj-regions-card__desc {
  font-size: 13px;
  line-height: 1.8;
  color: #666666;
  margin-bottom: 0;
}

/* 次に読んでほしいページ（共通スタイルを継承） */
.wsj-page--wine-regions .wsj-section--next {
  text-align: center;
  background-color: #fbf5ee;
}

.wsj-page--wine-regions .wsj-section--next .wsj-section__title {
  margin-bottom: 8px;
}

.wsj-page--wine-regions .wsj-section--next > p {
  max-width: 620px;
  margin: 0 auto 12px;
}

.wsj-page--wine-regions .wsj-section--next .wsj-list {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.wsj-page--wine-regions .wsj-section--next .wsj-list a {
  color: #6b2d5c;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.wsj-page--wine-regions .wsj-section--next .wsj-list a:hover {
  color: #8b3d7c;
  text-decoration: underline;
}

/* ========================================
   Wine Varieties 専用スタイル
   ======================================== */

/* ワイン品種ページ ヒーロー */
.wsj-page-hero--wine-varieties .wsj-page-hero__bg {
  background-image: url('../images/pages/wine-varieties/wine-varieties-hero.webp');
}

/* セクション内の画像 */
.wsj-page--wine-varieties .wsj-section__media {
  margin: 16px 0 20px;
}

.wsj-page--wine-varieties .wsj-section__media img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

/* Wine Varieties 共通：タイトルとサブタイトルをブロック要素として縦に並べる */
.wsj-page--wine-varieties .wsj-section__title,
.wsj-page--wine-varieties .wsj-section__subtitle {
  display: block;
  position: static;
  float: none;
}

/* タイトル */
.wsj-page--wine-varieties .wsj-section__title {
  margin-top: 4px;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* セクションサブタイトル（リード文） */
.wsj-page--wine-varieties .wsj-section__subtitle {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: #666666;
}

/* 品種グループ */
.wsj-page--wine-varieties .wsj-variety-group {
  margin-top: 40px;
}

.wsj-page--wine-varieties .wsj-variety-group:first-of-type {
  margin-top: 20px;
}

.wsj-page--wine-varieties .wsj-variety-group__title {
  font-size: 18px;
  font-weight: 500;
  color: #6b2d5c;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0e3db;
}

/* 品種カードのグリッド（PCもSPも1カラムで統一） */
.wsj-page--wine-varieties .wsj-variety-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.wsj-page--wine-varieties .wsj-variety-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
  line-height: 1.8;
  border: 1px solid #f0e3db;
}

.wsj-page--wine-varieties .wsj-variety-card__name {
  font-size: 16px;
  font-weight: 600;
  color: #6b2d5c;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0e3db;
}

.wsj-page--wine-varieties .wsj-variety-card__meta {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 4px;
  color: #2c2c2c;
}

.wsj-page--wine-varieties .wsj-variety-card__meta strong {
  color: #6b2d5c;
  font-weight: 600;
}

.wsj-page--wine-varieties .wsj-variety-card__note {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 8px;
  color: #666666;
  font-style: italic;
}

/* スタイルマップ部分のレイアウト（1カラム構成に変更したため、splitレイアウトは不要） */
/* .wsj-page--wine-varieties .wsj-section__inner--split {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .wsj-page--wine-varieties .wsj-section__inner--split {
    flex-direction: column;
    gap: 24px;
  }
} */

.wsj-page--wine-varieties .wsj-style-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .wsj-page--wine-varieties .wsj-style-map-grid {
    grid-template-columns: 1fr;
  }
}

.wsj-page--wine-varieties .wsj-style-map-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.03);
}

.wsj-page--wine-varieties .wsj-style-map-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #6b2d5c;
  margin-bottom: 6px;
}

.wsj-page--wine-varieties .wsj-style-map-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: #666666;
  margin-bottom: 0;
}

/* Style Map 画像（Section 04）：全幅カード内で表示 */
.wsj-page--wine-varieties .wsj-section__media--style-map {
  max-width: 100%;
  margin: 16px 0 20px;
}

.wsj-page--wine-varieties .wsj-section__media--style-map img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

/* 次に読んでほしいページ（共通スタイルを継承） */
.wsj-page--wine-varieties .wsj-section--next {
  text-align: center;
  background-color: #fbf5ee;
}

.wsj-page--wine-varieties .wsj-section--next .wsj-section__title {
  margin-bottom: 8px;
}

.wsj-page--wine-varieties .wsj-section--next > p {
  max-width: 620px;
  margin: 0 auto 12px;
}

.wsj-page--wine-varieties .wsj-section--next .wsj-list {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.wsj-page--wine-varieties .wsj-section--next .wsj-list a {
  color: #6b2d5c;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.wsj-page--wine-varieties .wsj-section--next .wsj-list a:hover {
  color: #8b3d7c;
  text-decoration: underline;
}

/* ========================================
   Wine Items
   /wine-items
   ワインアイテムガイド
   ======================================== */

.wsj-main--wine-items {
  background-color: #fbf7f3;
}

.wsj-page--wine-items {
  max-width: 960px;
  margin: 0 auto 80px;
}

/* セクション共通 */
.wsj-page--wine-items .wsj-section--card {
  background-color: #fffaf5;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 7, 2, 0.04);
  padding: 32px 28px 30px;
  margin-top: 32px;
}

/* セクションタイトル（共通） */
.wsj-page--wine-items .wsj-section__title {
  display: block;
  margin: 0;
  margin-left: 0;
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 600;
  color: #2c2c2c;
}

/* リード文（共通） */
.wsj-page--wine-items .wsj-section__subtitle {
  display: block;
  margin-top: 0;
  margin-left: 0;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: #666666;
}

@media (min-width: 900px) {
  .wsj-page--wine-items .wsj-section--card {
    padding: 40px 40px 36px;
    margin-top: 40px;
  }
}

/* =========================================
   Wine Items 共通レイアウト調整
   ========================================= */

/* 横並びレイアウトを完全に無効化（PC/SP共通） */
.wsj-page--wine-items .wsj-section__inner--split {
  display: block !important;
}

.wsj-page--wine-items .wsj-section__media {
  margin-bottom: 24px;
}

/* コンテンツ幅を /wine-varieties と揃える */
.wsj-page--wine-items .wsj-section__inner {
  max-width: 760px;
  margin: 0 auto;
}

/* 画像の横幅を調整（端ギリギリ禁止） */
.wsj-page--wine-items .wsj-section__media img {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: block;
  border-radius: 16px;
  height: auto;
}

/* SPレイアウト調整 */
@media (max-width: 768px) {
  /* スマホ幅の左右余白を適正化 */
  .wsj-page--wine-items .wsj-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .wsj-page--wine-items .wsj-section__inner {
    max-width: 100%;
  }
}

/* ①〜③ など各アイテム用のカード本体 */
.wsj-page--wine-items .wsj-items-card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 16px 18px 14px;
  margin-top: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0e3db;
}

/* 最初のカードだけ少し上の余白を詰める（任意） */
.wsj-page--wine-items .wsj-items-card:first-of-type {
  margin-top: 8px;
}

/* カード内テキスト（list-styleを完全に無効化） */
.wsj-page--wine-items .wsj-items-card__text {
  list-style: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.wsj-page--wine-items .wsj-items-card__text,
.wsj-page--wine-items .wsj-items-card__text p {
  list-style: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* リスト点（・）を完全無効化（ul, liにも適用） */
.wsj-page--wine-items .wsj-items-card__text ul,
.wsj-page--wine-items .wsj-items-card__text li {
  list-style: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.wsj-page--wine-items .wsj-items-card__text h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
  color: #5b2b33;
}

.wsj-page--wine-items .wsj-items-card__text p {
  font-size: 14px;
  line-height: 1.8;
  color: #4b3b35;
  margin-bottom: 12px;
}

.wsj-page--wine-items .wsj-section__closing {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}

/* Hero は共通スタイルを利用。
 * Phase2 で個別背景画像を追加予定のため、
 * 現時点では background-image は指定しない。 */

/* 次に読んでほしいページ（共通スタイルを継承） */
.wsj-page--wine-items .wsj-section--next {
  text-align: center;
  background-color: #fbf5ee;
}

.wsj-page--wine-items .wsj-section--next .wsj-section__title {
  margin-bottom: 8px;
}

.wsj-page--wine-items .wsj-section--next > p {
  max-width: 620px;
  margin: 0 auto 12px;
}

.wsj-page--wine-items .wsj-section--next .wsj-list {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.wsj-page--wine-items .wsj-section--next .wsj-list a {
  color: #6b2d5c;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.wsj-page--wine-items .wsj-section--next .wsj-list a:hover {
  color: #8b3d7c;
  text-decoration: underline;
}

/* ========================================
   Figure elements
   ======================================== */

.wsj-figure {
  margin: 0;
}

/* ========================================
   Responsive（モバイル調整）
   ======================================== */

@media (max-width: 768px) {
  .wsj-main--article .wsj-main__inner {
    padding: 0 16px 64px;
  }
  
  .wsj-page--article {
    margin-top: 36px;
    padding-bottom: 24px;
  }
  
  /* Hero */
  .wsj-page-hero {
    padding: 64px 16px 48px;
  }
  
  .wsj-page-hero__title {
    font-size: 24px;
  }
  
  .wsj-page-hero__lead {
    font-size: 13px;
    max-width: none;
  }
  
  /* Sections */
  .wsj-page--article .wsj-section {
    margin-top: 28px;
  }
  
  .wsj-page--article .wsj-section--card {
    padding: 24px 20px 20px;
    border-radius: 20px;
  }
  
  .wsj-page--article .wsj-section__title {
    font-size: 18px;
  }
  
  .wsj-page--article .wsj-section h3 {
    font-size: 16px;
  }
  
  .wsj-page--article .wsj-section h4 {
    font-size: 14px;
  }
  
  /* Section 01: Intro */
  .wsj-page--wine-basics .wsj-section--intro.wsj-section--card {
    padding: 32px 24px 28px;
  }
  
  /* Section 03: Taste cards */
  .wsj-page--article .wsj-grid--taste {
    grid-template-columns: 1fr;
  }
  
  /* Section 04: World */
  .wsj-page--wine-basics .wsj-grid--world {
    grid-template-columns: 1fr;
  }
  
  /* Section 05: Enjoy */
  .wsj-page--wine-basics .wsj-grid--enjoy {
    grid-template-columns: 1fr;
  }
  
  /* Wine Varieties: Variety grid */
  .wsj-page--wine-varieties .wsj-variety-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Wine Varieties: Style map grid */
  .wsj-page--wine-varieties .wsj-style-map-grid {
    grid-template-columns: 1fr;
  }
  
  /* Wine Varieties: Split layout */
  .wsj-page--wine-varieties .wsj-section__inner--split {
    flex-direction: column;
    gap: 24px;
  }
}

/* ========================================
   About WSJ
   /about-wsj プロフィールページ
   ======================================== */

/* About ページのセクションカードの幅と余白を他ページと揃える */
.wsj-page--about .wsj-section--card {
  max-width: 760px;
  margin: 32px auto 0;
}

/* About：Philosophy 用（品種カードと同じテイストで） */
.wsj-page--about .wsj-philosophy__item {
  background: #fffaf5;
  border-radius: 16px;
  padding: 18px 20px 16px;
  border: 1px solid #f0e3db;
  margin-top: 16px;
}

.wsj-page--about .wsj-philosophy__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #5b2b33;
}

.wsj-page--about .wsj-philosophy__text {
  line-height: 1.8;
  font-size: 0.95rem;
  color: #4b3b35;
}

/* 最初のPhilosophyカードの余白調整 */
.wsj-page--about .wsj-philosophy__item:first-of-type {
  margin-top: 0;
}

/* ========================================
   Single Post
   投稿記事の個別ページ
   ======================================== */

/* パンくずリスト */
.wsj-main--single .wsj-breadcrumb {
  max-width: 760px;
  margin: 16px auto 8px;
  padding: 0 24px;
}

.wsj-breadcrumb__nav {
  font-size: 0.8rem;
}

.wsj-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wsj-breadcrumb__item {
  color: rgba(0, 0, 0, 0.55);
}

.wsj-breadcrumb__item + .wsj-breadcrumb__item::before {
  content: "›";
  margin: 0 4px;
  opacity: 0.6;
}

.wsj-breadcrumb__item a {
  text-decoration: none;
  color: inherit;
}

.wsj-breadcrumb__item a:hover {
  text-decoration: underline;
}

.wsj-breadcrumb__item--current {
  font-weight: 600;
}

/* HERO セクション */
.wsj-main--single .wsj-single-hero {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 24px;
}

.wsj-single-hero__inner {
  background: #fdf8f4;
  border-radius: 16px 16px 0 0;
  padding: 24px 28px 20px;
}

.wsj-single-hero__meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #a5908a;
}

.wsj-single-hero__category {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0e3db;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.wsj-single-hero__date {
  font-size: 11px;
}

.wsj-single-hero__title {
  font-size: 22px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.wsj-single-hero__excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: #6e5a52;
}

.wsj-main--single .wsj-single-hero figure,
.wsj-single-hero__figure {
  margin: 0;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.wsj-main--single .wsj-single-hero img,
.wsj-single-hero__image {
  display: block;
  width: 100%;
  height: auto;
}

/* 画像がない場合のHEROカードの角丸調整 */
.wsj-single-hero:not(:has(figure)) .wsj-single-hero__inner {
  border-radius: 16px;
}

/* HERO と本文の間の余白 */
.wsj-main--single .wsj-single-content {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 24px 0;
}

.wsj-single-content__inner {
  font-size: 15px;
  line-height: 1.9;
  color: #3b312e;
}

.wsj-single-content__inner p {
  margin-bottom: 1.4em;
}

/* H2: 記事見出し（固定ページ用） */
.wsj-page--article .wsj-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* single 投稿本文の H2 共通スタイル */
.single .wsj-single-content__inner h2 {
  margin-top: 3.5rem;      /* セクション間の上余白（約56px） */
  margin-bottom: 1.5rem;   /* 見出しと本文の間 */
  padding-bottom: 0.75rem; /* 下線との間の余白 */
  border-bottom: 1px solid #e4d6c8;
  font-size: 1.2rem;
  font-weight: 600;
}

/* 最初の H2 だけは上余白を少し狭くして HERO 直下を締める */
.single .wsj-single-content__inner h2:first-of-type {
  margin-top: 2.5rem;
}

/* H3: 小見出し（固定ページと統一） */
.wsj-page--article .wsj-section h3,
.wsj-main--single .wsj-single-content__inner h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 32px 0 8px;
}

/* single 投稿本文内の <hr> は非表示にする */
.single .wsj-single-content__inner hr {
  display: none;
  margin: 0;
  border: 0;
}

.wsj-single-content__inner img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 1.4em auto;
}

/* Related Posts セクション全体 */
.wsj-main--single .wsj-single-related {
  margin-top: 72px;
}

.wsj-main--single .wsj-single-related__inner {
  max-width: 760px;
  margin: 0 auto;
}

/* 見出し */
.wsj-main--single .wsj-single-related__title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

/* グリッドレイアウト */
.wsj-main--single .wsj-single-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .wsj-main--single .wsj-single-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* カード */
.wsj-main--single .wsj-single-related__item a {
  display: block;
  background-color: #fff7ee;
  border-radius: 16px;
  padding: 12px 16px 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wsj-main--single .wsj-single-related__item a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* 関連記事カードのサムネイル画像を固定比率に */
.wsj-main--single .wsj-single-related__thumb {
  margin: 0 0 8px;
  border-radius: 0.75rem;
  overflow: hidden;
}

/* PC 基準：16:9 くらいの横長サムネにする */
.wsj-main--single .wsj-single-related__thumb img {
  display: block;
  width: 100%;
  height: 180px;      /* PC の高さ */
  object-fit: cover;  /* 中央トリミング */
}

.wsj-main--single .wsj-single-related__item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.wsj-main--single .wsj-single-related__excerpt {
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.85;
}

.wsj-single-related__empty {
  font-size: 13px;
  color: #a5908a;
}

/* SP調整 */
@media (max-width: 767px) {
  .wsj-main--single .wsj-breadcrumb,
  .wsj-main--single .wsj-single-hero,
  .wsj-main--single .wsj-single-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wsj-single-hero__inner {
    padding: 20px 18px 16px;
  }

  .wsj-single-hero__title {
    font-size: 18px;
  }

  /* single 投稿の H2 - SP では少しタイト目 */
  .single .wsj-single-content__inner h2 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
  }

  .single .wsj-single-content__inner h2:first-of-type {
    margin-top: 2rem;
  }

  .wsj-single-content__inner h3 {
    font-size: 1.05rem;
    margin: 28px 0 12px;
  }

  /* SP は少し高さを抑える */
  .wsj-main--single .wsj-single-related__thumb img {
    height: 150px;
  }
}

/* ================================
   Legal Pages（プライバシー・利用規約）
   ================================ */

.wsj-main--legal {
  padding: 72px 16px 96px;
  background-color: #f8f2eb;
}

.wsj-legal {
  max-width: 880px;
  margin: 0 auto;
  background-color: #fffaf5;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(20, 11, 5, 0.08);
  padding: 32px 28px 40px;
}

.wsj-legal__header {
  text-align: center;
  margin-bottom: 32px;
}

.wsj-legal__title {
  font-size: 22px;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
}

.wsj-legal__meta {
  font-size: 12px;
  color: #a08f82;
}

/* 本文のタイポグラフィ */
.wsj-legal__content {
  font-size: 14px;
  line-height: 2;
  color: #4a3a30;
}

.wsj-legal__content p {
  margin: 0 0 1.2em;
}

.wsj-legal__content ul,
.wsj-legal__content ol {
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}

.wsj-legal__content li {
  margin-bottom: 0.4em;
}

/* 見出しレベル */
.wsj-legal__content h2 {
  font-size: 18px;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2d2c3;
}

.wsj-legal__content h3 {
  font-size: 16px;
  margin: 24px 0 8px;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .wsj-main--legal {
    padding: 56px 12px 72px;
  }

  .wsj-legal {
    padding: 24px 18px 32px;
    border-radius: 14px;
  }

  .wsj-legal__title {
    font-size: 18px;
    letter-spacing: 0.12em;
  }

  .wsj-legal__content {
    font-size: 13px;
  }
}

/* ================================
   読み物一覧（Articles Archive）
   ================================ */

/* 読み物一覧 共通レイアウト */
.wsj-main--articles {
  background-color: #f8f3ea;
}

/* ページヘッダー */
.wsj-section--page-header {
  padding: 72px 0 56px;
}

.wsj-page-header {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.wsj-page-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c79a8a;
  margin-bottom: 8px;
}

.wsj-page-title {
  font-size: 28px;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.wsj-page-lead {
  font-size: 14px;
  line-height: 2;
  color: #6b5b4c;
}

/* フィルタ部 */
.wsj-section--articles-filter {
  padding: 0 0 32px;
}

.wsj-articles-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.wsj-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  color: #6b5b4c;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wsj-filter-chip:hover {
  background: #f4e6da;
}

.wsj-filter-chip.is-active {
  background: #5f254a;
  color: #fff;
  border-color: #5f254a;
}

/* 記事グリッド */
.wsj-section--articles-list {
  padding: 0 0 64px;
}

.wsj-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ページネーション */
.wsj-pagination {
  margin-top: 40px;
  text-align: center;
}

.wsj-pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  text-decoration: none;
  color: #6b5b4c;
  transition: all 0.2s ease;
}

.wsj-pagination .page-numbers:hover {
  background: #f4e6da;
}

.wsj-pagination .page-numbers.current {
  background: #5f254a;
  color: #fff;
  border-color: #5f254a;
}

/* 記事なしメッセージ */
.wsj-articles-empty {
  text-align: center;
  padding: 64px 0;
  color: #857465;
  line-height: 2;
}

/* SP レイアウト */
@media (max-width: 768px) {
  .wsj-section--page-header {
    padding: 48px 0 32px;
  }

  .wsj-page-title {
    font-size: 22px;
  }

  .wsj-page-lead {
    font-size: 13px;
  }

  .wsj-articles-filter {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .wsj-articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================
   Wine card (Amazon/Rakuten)
   ========================== */

.wsj-wine-card {
  display: flex;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #f0e3db;
  background-color: #fff;
  margin: 24px 0;
}

.wsj-wine-card__image {
  flex: 0 0 140px;
  max-width: 140px;
}

.wsj-wine-card__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.wsj-wine-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wsj-wine-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #3b312e;
}

.wsj-wine-card__price {
  font-size: 0.9rem;
  color: #7a5a46;
  margin: 0;
  font-weight: 500;
}

.wsj-wine-card__subtitle {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  color: #4a3a30;
}

.wsj-wine-card__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* 共通ボタンスタイル */
.wsj-wine-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  min-width: 140px;
  text-align: center;
}

/* Amazonボタン（少し彩度を落としたオレンジ） */
.wsj-wine-card__btn--amazon {
  background-color: #f7a93a;
  color: #fff;
}

/* 楽天ボタン（ワインレッド寄りの落ち着いた色） */
.wsj-wine-card__btn--rakuten {
  background-color: #b3414a;
  color: #fff;
}

/* ホバー時の挙動（共通） */
.wsj-wine-card__btn:hover {
  opacity: 0.88;
}

/* 画像がない場合は縦レイアウトのカードとしても成立させる */
.wsj-wine-card--no-image {
  flex-direction: column;
}

/* SPレイアウト */
@media (max-width: 768px) {
  .wsj-wine-card {
    flex-direction: column;
  }

  .wsj-wine-card__image {
    max-width: 100%;
    flex: 0 0 auto;
  }

  .wsj-wine-card__buttons {
    justify-content: flex-start;
  }
}
