/* ==========================================================
   nagi.css — 凪 (NAGI) 共通スタイル
   design-03 を踏襲・全ページ共通化した拡張版
   ========================================================== */

/* ─── デザイントークン ─────────────────────────── */
:root {
  --bg: #f9f7f2;
  /* 生成りベース */
  --bg-alt: #f2efe8;
  /* わずかに濃い生成り（セクション背景等） */
  --ink: #2a2a28;
  /* 本文テキスト */
  --ink-muted: #8a8780;
  /* 薄いテキスト（日付・補助） */
  --accent: #6b7c5e;
  /* 抹茶グリーン */
  --accent-pale: #edf0e8;
  /* 薄いグリーン（背景用途） */
  --border: #ddd9d0;
  /* 細い区切り線 */
  --white: #ffffff;

  --serif: "YuMincho", "Hiragino Mincho ProN", "HGS明朝E", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;

  --max-content: 1000px;
  --max-article: 720px;
}

/* ─── ボディ ────────────────────────────────────── */
body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0.04em;
  line-height: 1.8;
}

/* ─── ヘッダー ──────────────────────────────────── */
.site-header {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 1.8rem 5% 0;
  text-align: center;
}

.site-logo {
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: 0.35em;
  font-weight: normal;
  margin-bottom: 0.3rem;
  color: var(--ink);
  display: flex;
  justify-content: center;
}

.site-logo a {
  display: inline-block;
  line-height: 1;
  transform: translateX(0.17em);
}

.site-tagline {
  width: fit-content;
  max-width: 100%;
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.22em;
  margin: 0 auto 1.4rem;
}

.header-line {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 1.4rem;
}

.global-nav ul {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  font-size: 0.82rem;
  font-family: var(--serif);
  letter-spacing: 0.14em;
  padding-bottom: 1.8rem;
  flex-wrap: wrap;
}

.global-nav a {
  position: relative;
  color: var(--ink);
  transition: color 0.25s;
}

.global-nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.global-nav a:hover {
  opacity: 1;
  color: var(--accent);
}

.global-nav a:hover::after,
.global-nav a.is-active::after {
  width: 100%;
}

.global-nav a.is-active {
  color: var(--accent);
}

/* ─── ヘッダー下区切り線 ────────────────────────── */
.header-border {
  border-bottom: 1px solid var(--border);
}

/* ─── フッター ──────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 5%;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  margin-top: 5rem;
}

.site-footer nav {
  margin-bottom: 1rem;
}

.site-footer nav ul {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
}

.site-footer nav a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ─── ページヘッダー（各下層ページ用） ──────────── */
.page-header {
  max-width: var(--max-content);
  margin: 3.5rem auto 0;
  padding: 0 5% 2.5rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-header-en {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  color: var(--ink-muted);
  letter-spacing: 0.25em;
  margin-bottom: 0.6rem;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.18em;
  margin-bottom: 0.6rem;
}

.page-header p {
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

/* ─── セクション汎用 ────────────────────────────── */
.section-wrap {
  max-width: var(--max-content);
  margin: 4.5rem auto;
  padding: 0 5%;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: normal;
  letter-spacing: 0.18em;
  margin-bottom: 0.4rem;
}

.section-title-en {
  display: block;
  font-size: 0.62rem;
  color: var(--ink-muted);
  letter-spacing: 0.22em;
  margin-bottom: 1rem;
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto;
}

/* ─── 記事カード（グリッド） ────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2.5rem;
}

.card-grid--3col {
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.article-card {
  display: block;
  cursor: pointer;
}

.article-card__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.article-card:hover .article-card__thumb img {
  transform: scale(1.04);
}

.article-card__meta {
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tag-label {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 1px 8px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.article-card__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: normal;
  line-height: 1.75;
  margin-bottom: 0.7rem;
  letter-spacing: 0.06em;
}

.article-card__desc {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ─── 記事リスト（横並び） ──────────────────────── */
.article-list-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.article-list-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.25s;
}

.article-list-item:hover {
  opacity: 0.75;
}

.article-list-item__thumb {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}

.article-list-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-list-item__meta {
  font-size: 0.68rem;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.article-list-item__title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.65;
  letter-spacing: 0.05em;
}

/* ─── 商品カード ────────────────────────────────── */
.product-card {
  display: block;
  cursor: pointer;
  text-align: center;
}

.product-card__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__thumb img {
  transform: scale(1.05);
}

.product-card__name {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: normal;
  margin-bottom: 0.3rem;
  letter-spacing: 0.08em;
}

.product-card__sub {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.product-card--guide {
  text-align: left;
}

.product-card--guide .article-card__meta {
  margin: 0.5rem 0;
}

/* ─── カテゴリフィルタタブ ──────────────────────── */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 1.1rem;
  cursor: pointer;
  border-radius: 1px;
  transition: all 0.2s;
}

.filter-tab:hover,
.filter-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ─── 「もっと見る」ボタン ──────────────────────── */
.more-link {
  display: block;
  width: fit-content;
  margin: 3rem auto 0;
  border: 1px solid var(--ink-muted);
  color: var(--ink-muted);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  padding: 0.7rem 2.5rem;
  transition: all 0.25s;
  border-radius: 1px;
}

.more-link:hover {
  opacity: 1;
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── ヒーローセクション ────────────────────────── */
.hero-section {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 5%;
  position: relative;
}

.hero-image {
  width: 100%;
  height: 58vh;
  min-height: 380px;
  object-fit: cover;
  border-radius: 2px;
  filter: brightness(0.88) sepia(0.06);
}

.hero-overlay {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 1.65rem;
  letter-spacing: 0.35em;
  line-height: 2.6;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  text-align: center;
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--ink-muted);
  letter-spacing: 0.18em;
}

/* ─── トップ：商品ガイド導線セクション ─────────── */
.product-guide-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 5%;
  margin: 5rem 0;
}

.product-guide-band .section-wrap {
  margin: 0 auto;
}

/* ─── トップ：Aboutミニ ──────────────────────────── */
.about-mini {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 5rem;
  padding: 0 5%;
}

.about-mini h2 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
}

.about-mini p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 2;
  margin-bottom: 1.5rem;
}

/* ─── 記事詳細ページ ────────────────────────────── */
.article-detail {
  max-width: var(--max-article);
  margin: 3.5rem auto;
  padding: 0 5%;
}

.article-detail__header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.article-detail__hero {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

.article-detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-intro {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 2.1;
  margin-bottom: 2.5rem;
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: 1.2rem;
}

.article-detail__title {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: normal;
  line-height: 1.65;
  letter-spacing: 0.06em;
  margin: 1rem 0 0;
}

.article-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  border-radius: 2px;
}

.article-toc h3 {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.article-toc ol {
  list-style: none;
  counter-reset: toc-counter;
}

.article-toc ol li {
  counter-increment: toc-counter;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  letter-spacing: 0.05em;
}

.article-toc ol li::before {
  content: counter(toc-counter) ". ";
  color: var(--accent);
  margin-right: 0.4rem;
  font-family: var(--sans);
  font-size: 0.78rem;
}

.article-toc ol li a {
  color: var(--ink);
  transition: color 0.2s;
}

.article-toc ol li a:hover {
  opacity: 1;
  color: var(--accent);
}

.article-body {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 2.1;
}

.article-body p {
  margin-bottom: 1.8rem;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: normal;
  margin: 3.5rem 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.1em;
}

.article-body h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: normal;
  margin: 2.5rem 0 1rem;
  text-align: center;
  letter-spacing: 0.1em;
}

.article-body h3::before,
.article-body h3::after {
  content: "──";
  color: var(--accent);
  margin: 0 0.5em;
  font-size: 0.75rem;
}

.article-body .note-block {
  background: var(--accent-pale);
  border-left: 3px solid var(--accent);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.85;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0 0 2.5rem;
}

.detail-meta-grid--product {
  margin-bottom: 2rem;
}

.detail-meta-item {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 0.9rem 1rem;
}

.detail-meta-item__label {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.detail-meta-item__value {
  display: block;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.6;
  word-break: break-word;
}

.detail-meta-item__value a {
  color: var(--accent);
}

/* ─── 商品詳細ページ ────────────────────────────── */
.product-detail {
  max-width: var(--max-article);
  margin: 3.5rem auto;
  padding: 0 5%;
}

.product-detail__visual {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.product-detail__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.product-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__info h1 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.product-detail__info .product-sub {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.rating-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.rating-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.rating-table td:first-child {
  color: var(--ink-muted);
  width: 5em;
}

.rating-bar {
  display: flex;
  gap: 4px;
  align-items: center;
}

.rating-bar span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.rating-bar span.filled {
  background: var(--accent);
}

.product-spec-table {
  font-size: 0.82rem;
}

.product-spec-table td:first-child {
  color: var(--ink-muted);
  width: 6em;
}

.product-body {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

/* ─── 関連記事 ──────────────────────────────────── */
.related-section {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  margin-top: 4rem;
}

.related-section h2 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--ink-muted);
}

/* ─── タグ一覧 ──────────────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.tag-chip {
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.72rem;
  padding: 0.25rem 0.8rem;
  letter-spacing: 0.08em;
  border-radius: 1px;
  transition: all 0.2s;
}

.tag-chip:hover {
  opacity: 1;
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── ページネーション ──────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  transition: all 0.2s;
}

.pagination a:hover {
  opacity: 1;
  border-color: var(--accent);
  color: var(--accent);
}

.pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ─── Aboutページ ────────────────────────────────── */
.about-hero {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 5%;
}

.about-hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 2px;
  filter: brightness(0.9) sepia(0.05);
}

.about-content {
  max-width: 640px;
  margin: 3.5rem auto;
  padding: 0 5%;
}

.about-content h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: normal;
  letter-spacing: 0.15em;
  margin: 3rem 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.about-content p {
  font-size: 0.9rem;
  line-height: 2.1;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

.about-content p.muted {
  color: var(--ink-muted);
}

.page-copy {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 2;
  color: var(--ink);
}

.page-copy>*+* {
  margin-top: 1.4rem;
}

.page-copy h2,
.page-copy h3 {
  font-family: var(--serif);
  font-weight: normal;
  letter-spacing: 0.1em;
}

/* ─── モバイル対応 ──────────────────────────────── */
@media (max-width: 768px) {
  .global-nav ul {
    gap: 1.3rem;
  }

  .hero-overlay {
    font-size: 1.2rem;
    right: 5%;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .card-grid--3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .article-detail__title {
    font-size: 1.4rem;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .product-detail__visual {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-detail__thumb {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .card-grid--3col {
    grid-template-columns: 1fr;
  }

  .global-nav ul {
    gap: 1rem;
    font-size: 0.78rem;
  }
}