/* =========================================================
   モノタビ（MONOTABI）共通スタイル
   ---------------------------------------------------------
   ・スマホ表示を基本に書き、画面が広いときの指定を後ろに足す
     （「モバイルファースト」という書き方）
   ・色やサイズは :root の変数にまとめてあるので、
     変えたいときはここを1か所直せばサイト全体に反映される
   ========================================================= */

/* ---------- 1. 色・文字・サイズの変数 ---------- */
:root {
  --ink: #1A1C1F;          /* メインの文字色（チャコールブラック） */
  --ink-soft: #3A3D42;     /* 本文の文字色 */
  --muted: #6B7078;        /* 補足・日付などの薄い文字 */
  --line: #E3E5E8;         /* 枠線 */
  --bg: #FFFFFF;           /* 背景（白） */
  --bg-gray: #F2F3F5;      /* 背景（ライトグレー） */
  --accent: #FF6A13;       /* アクセント（エレクトリックオレンジ） */
  --accent-dark: #E0540A;  /* ボタンにマウスを乗せたときのオレンジ */
  --accent-pale: #FFF1E8;  /* うすいオレンジ（ラベルの背景など） */

  /* 日本語は Noto Sans JP、数字・英字ラベルは DIN に近い Barlow */
  --font-base: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-num: "Barlow", "DIN Alternate", "DIN 2014", "Noto Sans JP", sans-serif;

  --container: 1120px;     /* コンテンツの最大幅 */
  --radius: 10px;          /* 角の丸み */
  --shadow: 0 2px 10px rgba(26, 28, 31, 0.06);
}

/* ---------- 2. リセット（ブラウザごとの差をなくす） ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;   /* 長い英単語やURLではみ出さないように */
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  font-weight: 700;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

/* 数字（日付など）は DIN 風の書体にする */
time,
.num {
  font-family: var(--font-num);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* 画面には見せず、読み上げソフトにだけ伝える文字 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 3. レイアウトの共通パーツ ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;           /* スマホでは左右16pxの余白 */
}

.section {
  padding: 48px 0;
}

.section--gray {
  background: var(--bg-gray);
}

/* 見出しの左にオレンジの縦線が付いたセクション見出し */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 900;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--accent);
}

.section-lead {
  margin-top: 4px;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* 英字の小さなラベル（例：PROFILE） */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.eyebrow::before {
  content: "";
  width: 3px;
  height: 12px;
  background: var(--accent);
}

/* 角丸の枠線ボタン */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.arrow {
  color: var(--accent);
  font-family: var(--font-num);
  font-weight: 700;
}

.btn-outline:hover .arrow {
  color: #fff;
}

/* ---------- 4. ロゴ ---------- */
.logo {
  display: inline-block;
  color: var(--ink);          /* ロゴの黒い部分はこの色になる */
  line-height: 0;
}

.logo svg {
  width: 150px;
  height: auto;
}

/* ロゴの文字は Montserrat（ロゴ専用） */
.logo-text {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-weight: 800;
}

/* ロゴのハイライト（白い点）：白背景では白、黒背景では黒にする */
.logo-hl {
  fill: #fff;
}

.site-footer .logo {
  color: #fff;
}

.site-footer .logo-hl {
  fill: var(--ink);
}

/* ---------- 5. ヘッダー ---------- */
.site-header {
  position: sticky;           /* スクロールしても上に固定 */
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* スマホ用のメニューボタン（三本線） */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

/* メニューを開いたときは「×」の形にする */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* スマホではメニューを隠しておき、ボタンで開く */
.global-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.global-nav.is-open {
  display: block;
}

.global-nav ul {
  list-style: none;
}

.global-nav a {
  display: block;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.global-nav a[aria-current="page"] {
  color: var(--accent);
}

/* ---------- 6. トップのメインビジュアル ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 380px;
  padding: 56px 0;
  color: #fff;
  /* 写真（hero.webp）の上に、左側が濃いグラデーションを重ねて文字を読みやすくする。
     写真がまだ無いときは、下の暗い色だけが表示される */
  background:
    linear-gradient(90deg, rgba(12, 14, 18, 0.78) 0%, rgba(12, 14, 18, 0.35) 60%, rgba(12, 14, 18, 0.1) 100%),
    url("../img/hero.webp") center / cover no-repeat,
    radial-gradient(circle at 80% 30%, #3a3f47 0%, var(--ink) 60%);
}

/* バナー画像（top.png）をそのまま横幅いっぱいに表示するトップ用 */
.hero.hero-image {
  display: block;
  min-height: 0;
  padding: 0;
  background: var(--ink);
}

.hero.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-eyebrow {
  font-family: var(--font-num);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.hero-eyebrow::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 10px;
  background: var(--accent);
}

.hero h1 {
  margin-top: 20px;
  color: #fff;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.hero-lead {
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.9;
}

/* ---------- 7. カテゴリーカード ---------- */
.category-cards {
  display: grid;
  gap: 12px;
  margin-top: -32px;          /* メインビジュアルに少し重ねる */
  position: relative;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.category-card__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  color: var(--ink);
}

.category-card__body {
  flex: 1;
}

.category-card__title {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
}

.category-card__text {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

/* 丸の中に矢印 */
.circle-arrow {
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-num);
  font-weight: 700;
  line-height: 1;
}

/* ---------- 8. 記事カード（新着記事・カテゴリー一覧） ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
}

.post-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

/* 記事カード：左に写真、右に文字 */
.post-card {
  display: flex;
  gap: 14px;
  padding: 10px;
  background: #fff;
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}

.post-card:hover {
  box-shadow: 0 6px 20px rgba(26, 28, 31, 0.1);
}

.post-card__thumb {
  flex: 0 0 42%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-gray);
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.post-card__cat {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.post-card__title {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.6;
}

.post-card__date {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.78rem;
}

/* 記事がまだ無いときの表示 */
.empty-state {
  padding: 40px 20px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* ---------- 9. プロフィール（トップページ） ---------- */
.profile-block {
  display: grid;
  gap: 24px;
  align-items: center;
}

/* プロフィール写真。写真（profile.webp）が無いときはグレーの箱になる */
.profile-block__photo {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background:
    url("../img/profile.webp") center / cover no-repeat,
    linear-gradient(135deg, #d9dce0, var(--bg-gray));
}

.profile-block__title {
  margin-top: 8px;
  font-size: 1.35rem;
  font-weight: 900;
}

.profile-block__text {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.profile-block .btn-outline {
  margin-top: 20px;
}

/* ---------- 10. フッター ---------- */
.site-footer {
  padding: 32px 0 24px;
  background: var(--ink);
  color: #c9ccd1;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
}

.footer-nav a:hover {
  color: #fff;
}

.copyright {
  font-family: var(--font-num);
  letter-spacing: 0.06em;
}

/* ---------- 11. 下層ページ（カテゴリー・固定ページ）の見出し ---------- */
.page-header {
  padding: 40px 0 32px;
  background: var(--bg-gray);
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  margin-top: 6px;
  font-size: 1.8rem;
  font-weight: 900;
}

.page-header p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* カテゴリページの紹介文（見出しの下の、おすすめ記事つきの文章） */
.page-header .category-intro {
  max-width: 820px;
  margin-top: 12px;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* 文章の中のリンク（記事本文・カテゴリ紹介文）。下線とオレンジでリンクだと分かるようにする */
.text-link {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  text-decoration: none;
}

/* パンくずリスト（ホーム ＞ 撮影機材 ＞ …） */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  color: var(--muted);
  font-size: 0.75rem;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 4px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* 固定ページ（プロフィール・プライバシーポリシーなど）の本文 */
.page-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

/* ---------- 12. 記事ページ ---------- */
.article-layout {
  display: grid;
  gap: 48px;
  padding-top: 20px;
  padding-bottom: 64px;
}

.article-header {
  margin-top: 16px;
}

/* 「PR」ラベル（ステマ規制対応。記事の冒頭に必ず表示する） */
.pr-label {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-num);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.article-title {
  margin-top: 10px;
  font-size: clamp(1.4rem, 4.6vw, 2rem);
  font-weight: 900;
  line-height: 1.45;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.cat-tag {
  padding: 1px 10px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

/* 広告であることのお知らせ（記事の冒頭） */
.ad-disclosure {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--bg-gray);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.article-eyecatch {
  margin: 20px 0 0;
  overflow: hidden;
  border-radius: var(--radius);
}

/* 記事本文 */
.article-body {
  margin-top: 28px;
}

.article-body > * + * {
  margin-top: 1.4em;
}

.article-body h2 {
  margin-top: 2.6em;
  padding: 4px 0 4px 16px;
  border-left: 5px solid var(--accent);
  font-size: 1.35rem;
  font-weight: 900;
}

.article-body h3 {
  margin-top: 2em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-body li + li {
  margin-top: 0.4em;
}

.article-body li::marker {
  color: var(--accent);
}

.article-body strong {
  background: linear-gradient(transparent 62%, var(--accent-pale) 62%);
  color: var(--ink);
}

.article-body figure {
  margin: 1.6em 0 0;
}

.article-body figure img {
  width: 100%;
  border-radius: 8px;
}

.article-body figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

/* 写真を2枚並べる */
.figure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.figure-row figure {
  margin-top: 0;
}

/* 目次（クリックで開閉できる） */
.toc {
  margin-top: 28px;
  background: var(--bg-gray);
  border-radius: var(--radius);
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::after {
  content: "＋";
  color: var(--accent);
}

.toc[open] summary::after {
  content: "－";
}

.toc ol {
  padding: 0 18px 18px 40px;
  font-size: 0.9rem;
}

.toc li + li {
  margin-top: 6px;
}

.toc a:hover {
  color: var(--accent);
}

/* 良いところ／気になるところ の比較ボックス */
.procon {
  display: grid;
  gap: 12px;
}

.procon__box {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.procon__title {
  font-size: 1rem;
  font-weight: 900;
}

.procon__box--pro .procon__title {
  color: var(--accent);
}

.procon__box ul {
  margin-top: 10px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.procon__box li {
  position: relative;
  padding-left: 1.6em;
}

.procon__box--pro li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.procon__box--con li::before {
  content: "－";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-weight: 700;
}

/* ポイントや注意を囲むボックス */
.note-box {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--accent-pale);
  font-size: 0.9rem;
}

.note-box__title {
  color: var(--accent-dark);
  font-weight: 700;
}

/* 商品リンクのボックス（Amazon・楽天・Yahoo!） */
.product-box {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-box__img {
  max-width: 220px;
  margin: 0 auto;
}

.product-box__label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.product-box__name {
  margin-top: 2px;
  font-size: 1.15rem;
  font-weight: 900;
}

.product-box__text {
  margin-top: 6px;
  font-size: 0.85rem;
}

.product-box__note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
}

/* 関連記事 */
.related {
  margin-top: 56px;
}

.related .post-grid {
  margin-top: 16px;
}

.related .post-card {
  border: 1px solid var(--line);
}

/* サイドバー */
.sidebar {
  display: grid;
  gap: 32px;
  align-content: start;
}

.side-title {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 900;
}

.side-profile {
  padding: 24px 20px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  text-align: center;
}

.side-profile__photo {
  width: 110px;
  height: 110px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background:
    url("../img/profile.webp") center / cover no-repeat,
    linear-gradient(135deg, #d9dce0, #eef0f2);
}

.side-profile__role {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.6;
}

.side-profile__text {
  margin-top: 10px;
  font-size: 0.8rem;
  text-align: left;
}

.side-profile .btn-outline {
  margin-top: 16px;
  padding: 8px 20px;
  font-size: 0.8rem;
}

.side-cats {
  display: grid;
  gap: 8px;
  list-style: none;
}

.side-cats a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-gray);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s;
}

.side-cats a:hover {
  background: var(--accent-pale);
}

.side-cats svg {
  width: 22px;
  height: 22px;
}

/* ---------- 13. 画面が広いとき（タブレット・パソコン） ---------- */
@media (min-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 460px;
  }

  .hero.hero-image {
    min-height: 0;
  }

  .category-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-block {
    grid-template-columns: 300px 1fr auto;
    gap: 40px;
  }

  .profile-block .btn-outline {
    margin-top: 0;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .procon {
    grid-template-columns: 1fr 1fr;
  }

  .product-box {
    grid-template-columns: 200px 1fr;
    align-items: center;
  }

  .shop-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .logo svg {
    width: 180px;
  }

  /* パソコンではメニューボタンを隠し、メニューを横に並べる */
  .menu-toggle {
    display: none;
  }

  .global-nav {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    background: none;
  }

  .global-nav ul {
    display: flex;
    gap: 36px;
  }

  .global-nav a {
    padding: 0;
    border: 0;
    font-size: 0.9rem;
  }

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

  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 記事ページ：本文＋右サイドバーの2列 */
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
  }

  .sidebar {
    position: sticky;
    top: 88px;
  }

  /* 関連記事は本文の幅に合わせて2列 */
  .related .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 14. 表示確認での微調整 ---------- */
/* 「準備中」の箱は、記事カードの列をまたいで横いっぱいに表示する */
.post-grid .empty-state {
  grid-column: 1 / -1;
}

/* 商品ボックスの画像が、となりの文字に重ならないようにする */
.product-box__img {
  width: 100%;
}

/* ---------- 15. 比較表（記事ページ） ---------- */
/* スマホで表が横にはみ出すときは、表だけ横にスクロールできるようにする */
.table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.compare-table tbody th {
  width: 7em;
  background: var(--bg-gray);
  color: var(--ink);
  font-weight: 700;
}

/* 左の列（項目名）が長い表用：左の列を広げる（例：α7V記事の比較表） */
.compare-table--wide-head {
  min-width: 560px;
}

.compare-table--wide-head tbody th {
  width: 11em;
}

/* スマホ：横スクロールさせず、2機種が1画面に並んで見えるようにする */
@media (max-width: 600px) {
  .compare-table--wide-head {
    min-width: 0;
    font-size: 0.8rem;
  }

  .compare-table--wide-head th,
  .compare-table--wide-head td {
    padding: 10px 8px;
  }

  .compare-table--wide-head tbody th {
    width: 7.5em;
  }
}

/* むずかしさのラベル */
.level {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.level--easy {
  background: var(--accent-pale);
  color: var(--accent-dark);
}

.level--hard {
  background: var(--ink);
  color: #fff;
}

/* ---------- 16. 商品リンクの枠（ASPで発行したコードを貼る場所） ---------- */
.affiliate-slot {
  margin-top: 1.6em;
}

/* リンクを貼る前だけ表示される「準備中」の目印（公開前に必ずリンクに置き換える） */
.affiliate-slot__placeholder {
  padding: 18px 20px;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- 17. プロフィール写真がないときはロゴのレンズを表示 ---------- */
/* profile.webp を置けば写真が上に重なって表示される */
.profile-block__photo,
.side-profile__photo {
  background:
    url("../img/profile.webp") center / cover no-repeat,
    url("../img/favicon.svg") center / 34% no-repeat,
    linear-gradient(135deg, #e4e6e9, var(--bg-gray));
}

/* ---------- 18. 小さな「PR」タグ（日付の行に置く広告表記） ---------- */
.pr-tag {
  padding: 1px 8px;
  border-radius: 3px;
  background: var(--muted);
  color: #fff;
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- 19. スペック表（見出しの列だけの表） ---------- */
.spec-table {
  min-width: 0;
}

.spec-table tbody th {
  width: 8.5em;
  white-space: nowrap;
}

/* ---------- 20. お問い合わせのメールアドレス ---------- */
.contact-mail {
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-gray);
  text-align: center;
}

.contact-mail__label {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-mail__address {
  margin-top: 6px;
  font-family: var(--font-num);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-mail__address a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 記事ページ：本文やサイドバーの中身（関連記事のカード・表など）が、画面の幅より広がらないようにする */
.article-layout > * {
  min-width: 0;
}

/* 本文の中に置く記事カード（ほかの記事へのリンク） */
.article-body .post-card {
  border: 1px solid var(--line);
  text-decoration: none;
}

/* YouTube動画の埋め込み（横幅いっぱい・16:9） */
.video-embed {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* 費用の表：項目の列を広くし、金額は1行（改行しない）で右寄せにする */
.cost-table {
  min-width: 0;
}

.cost-table tbody th {
  width: auto;
}

.cost-table td,
.cost-table thead th:last-child {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

/* ---------- 18. 商品リンクのカード（画像・商品名＋ショップ別ボタン） ---------- */
.product-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.product-card__img {
  flex: 0 0 140px;
}
.product-card__img img {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
  border: none;
}
.product-card__body {
  flex: 1 1 auto;
  min-width: 0;
}
.product-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
}
.product-card__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shop-btn {
  flex: 1 1 130px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}
.shop-btn:hover { opacity: 0.85; }
.shop-btn--rakuten { background: #BF0000; }              /* 楽天：赤 */
.shop-btn--yahoo   { background: #FFD400; color: var(--ink); } /* Yahoo!：黄（白文字だと読みにくいので黒文字） */
.shop-btn--amazon  { background: #1A73E8; }              /* Amazon：青 */
/* 楽天とAmazonで商品の内容が違うときの注意書き（ボタンの下に小さく） */
.product-card__note {
  margin-top: 10px;
  color: var(--muted, #666);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 600px) {
  .product-card { flex-direction: column; text-align: center; }
  .product-card__img { flex-basis: auto; }
  .product-card__buttons { width: 100%; }
  .shop-btn { flex-basis: 100%; }
}

/* 広告バナー（記事内。中央に寄せる） */
.ad-banner {
  margin-top: 12px;
  text-align: center;
}
.ad-banner img {
  max-width: 100%;
  height: auto;
  margin: 0 auto; /* 画像は block 表示なので、左右の auto で中央に寄せる */
}

/* 記事内の広告テキストリンク（リンクだと分かるように、色・太字・下線を付ける） */
.ad-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ad-link:hover {
  color: var(--accent);
}
