/*
Theme Name: Kindergarten Hokkaido
Theme URI: https://var-lit.com/
Author: 変数と文学
Author URI: https://var-lit.com/
Description: キンダーガーデン（キャロットケーキ専門店）のテーマ。標準のスターターテーマから作り、見た目は旧テーマ（kindergarten）を踏襲している。
Version: 1.0.0
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kindergarten-hokkaido

Icons: parts/header.html・parts/footer.html の人型とカートの SVG は Font Awesome Free 6.5.1 の形
(user regular/solid, cart-shopping solid、記事の tag solid・clock regular) by Fonticons, Inc. - https://fontawesome.com
License - https://fontawesome.com/license/free (Icons: CC BY 4.0)
*/

/* =========================================================
   全ページ共通の CSS（部品の名前はスターターと同じ。値は旧テーマの実測。設計は CSS設計_2026-11-23.md）
   書体は inc/enqueue.php で読む（@import は使わない）
   ========================================================= */

:root {
  /* 色（旧テーマ theme.json と CSS の実測） */
  --color--base: #f9f9f9;
  --color--white: #fefefe;
  --color--ink: #3a302c;
  --color--ink--light: #666;
  --color--brown-dark: #493d35;
  --color--brown: #56483e;
  --color--green: #224b37;
  --color--green-hover: #2d6348;
  --color--orange: #dc8452;
  --color--cream: #f6d8bb;
  --color--line-cream: #fdece2;
  --color--line: #ddd;
  /* ニュース・トピックス（変数と文学と同じスターターの CSS）が使う色・書体・余白の名前を、キンダーガーデンの値で（2026-11-28） */
  --color--accent: var(--color--green);                                           /* リンク・目次の番号・表の見出し */
  --gradient--accent: linear-gradient(to right, var(--color--orange), #e59c70);   /* カテゴリーの札・小さな見出しの札・今のページ（今の札と同じ橙） */
  --color--surface: #f3ece4;                                                      /* 写真が無いときの面 */
  --font--mono: "Times New Roman", "YakuHanJPs", serif;                           /* 数字（このサイトは数字を Times New Roman で出している） */
  --space-section-bottom: 8rem;                                                   /* 768px からは下の @media で 12rem（変数と文学と同じ） */

  /* 書体：明朝が基本。ニュース・トピックスの本文はゴシック（news.css・topics.css） */
  --font--serif: "Times New Roman", "YakuHanMPs", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  --font--sans: "Times New Roman", "YakuHanJPs", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;

  /* 寸法 */
  --width--content: 1350px;
  --header-height: 91px;
  --space--side: 2rem;
  --space--section: 4rem;
}

@media (min-width: 768px) {
  :root {
    --space-section-bottom: 12rem;
  }
}

@media (min-width: 768px) {
  :root {
    --space--side: 5%;
    --space--section: 5rem;
  }
}
@media (min-width: 1200px) {
  :root {
    --header-height: 101px;
    --space--section: 6rem;
  }
}

/* =========================================================
   基本
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color--base);
  color: var(--color--ink);
  font-family: var(--font--serif);
  /* 旧テーマと同じ「画面幅で少しずつ変わる大きさ」（WordPress の fluid typography が 16px から作る値と同じ式）。
     幅 320px で 14px → 1600px で 16px。パンくずなど、大きさを指定していない文字はこれを受け継ぐ */
  font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.156), 16px);
  line-height: 1.8;
  /* 横のはみ出しは html の overflow-x: clip だけで切る（2026-11-29 洗い出しの 4）。body にも hidden を重ねると、
     body がスクロールの入れ物になり、メニューを開いたときの背面のスクロール止めや、位置の sticky が効かなくなっていた */
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0;
  line-height: 1.8;
}

/* キーボードで操作するときだけ、いま選んでいる所に枠を出す（旧テーマは枠を全部消していた） */
:focus-visible {
  outline: 2px solid var(--color--orange);
  outline-offset: 2px;
}

/* WordPress 本体の「ブロックの間 24px」を全体の並びでは使わない（各部品で余白を決める） */
:where(.wp-site-blocks) > * {
  margin-block-start: 0;
}

.layout-main {
  flex-grow: 1;
}

/* 中身の幅（スターターの container-inner）。文字の左端は旧テーマと同じ「2rem ＋ 残りの幅の 5%」（1280px 幅で 93px） */
.container-inner {
  max-width: var(--width--content);
  margin-inline: auto;
  padding-inline: 2rem;
}
@media (min-width: 768px) {
  .container-inner {
    padding-inline: calc(2rem + (min(100%, var(--width--content)) - 4rem) * 0.05);
  }
}

/* =========================================================
   ヘッダー（画面の上に固定。トップは MV に透けて重なり、ほかのページは茶色）
   1199px までは右上の白い丸枠の三本線 → 右から全画面の茶色の引き出し。1200px から横並びのメニュー
   ========================================================= */
.header-main {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background-color: var(--color--brown-dark);
  transition: background-color 0.3s ease;
}

.home .header-main {
  background-color: transparent;
}

/* トップは最初の画面だけ透明。スクロールしたら（main.js が header-main--scrolled を付ける）ほかのページと同じ焦げ茶に。
   透明のままだと、白いロゴ・メニューの文字が段の見出しや白いカードと重なって読めなかった（2026-11-29 洗い出しの 5） */
.home .header-main.header-main--scrolled {
  background-color: var(--color--brown-dark);
}

.admin-bar .header-main {
  top: 46px;
}
@media (min-width: 783px) {
  .admin-bar .header-main {
    top: 32px;
  }
}

/* 入れ物は WordPress の縦並びになることがあるので、子の上下の余白を打ち消す */
.header-main .header-main__inner > * {
  margin: 0;
}

.header-main__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  max-width: var(--width--content);
  margin: 0 auto;
  padding: 0 5%;
}

/* ロゴは上から 1rem（旧テーマと同じ位置。旧テーマは上下の余白 1rem とロゴの画像の下の行の隙間で高さが決まり、ロゴが上寄りに見えていた） */
.header-main__logo {
  display: block;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 1rem;
}

.header-main__logo-img {
  width: auto;
  height: 50px;
}
@media (min-width: 1200px) {
  .header-main__logo-img {
    height: 60px;
  }
}

/* アカウント・カート・Instagram（1200px から）と三本線（1199px まで） */
.header-main__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-main__action-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--color--white);
  transition: opacity 0.3s ease;
}
@media (min-width: 1200px) {
  .header-main__action-link {
    display: flex;
  }
}
@media (hover: hover) {
  .header-main__action-link:hover {
    opacity: 0.7;
  }
}

/* アイコンは Font Awesome Free 6.5.1 と同じ形（CC BY 4.0。出典はこのファイルの先頭）。高さを決めて幅は形なり */
.header-main__action-icon {
  width: auto;
  height: 1.5rem;
}

.header-main__action-icon--image {
  width: 24px;
  height: 24px;
}

/* 三本線（白い丸枠）。引き出しより手前に置き、開いたら × にする。上から 1rem でロゴ（高さ 50px）と上下をそろえる */
.header-main__hamburger {
  position: fixed;
  top: 1rem;
  right: 2rem;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 2px solid var(--color--white);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
@media (min-width: 1200px) {
  .header-main__hamburger {
    display: none;
  }
}

.admin-bar .header-main__hamburger {
  top: calc(46px + 1rem);
}
@media (min-width: 783px) {
  .admin-bar .header-main__hamburger {
    top: calc(32px + 1rem);
  }
}

.header-main__hamburger span {
  width: 20px;
  height: 2px;
  background-color: var(--color--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-main__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-main__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.header-main__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* メニュー：1199px までは右から出る全画面の茶色の引き出し */
.header-main__nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  background-color: var(--color--brown-dark);
  visibility: hidden;
  transform: translateX(100%);
  /* 閉じるときは右へ出ていく動き（0.8 秒）が終わってから隠す。閉じている間は中のリンクに Tab で入れない（2026-11-29 洗い出しの 4） */
  transition: transform 0.8s ease, visibility 0s linear 0.8s;
}

.header-main__nav.is-active {
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.8s ease, visibility 0s;
}

.header-main__nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  color: var(--color--white);
}

/* 引き出しの上：マイページ・カート（アイコンの下に文字） */
.header-main__nav-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.header-main__nav-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color--white);
  font-size: 1rem;
}

.header-main__nav-action-icon {
  width: auto;
  height: 2rem;
}

.header-main__nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.header-main__nav-item {
  margin: 0 0 1.5rem;
}

.header-main__nav-link {
  color: var(--color--white);
  font-size: 1rem;
  transition: opacity 0.3s ease;
}
@media (hover: hover) {
  .header-main__nav-link:hover {
    opacity: 0.7;
  }
}

/* 区切りの「|」は 1200px からの横並びだけ */
.header-main__nav-separator {
  display: none;
}

/* 引き出しの下：Instagram */
.header-main__nav-footer {
  margin-top: 3rem;
}

.header-main__nav-footer img {
  width: 40px;
  height: 40px;
}

/* 1200px から：ロゴの右に横並びのメニュー（引き出しの上下は出さない） */
@media (min-width: 1200px) {
  .header-main__nav {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    background: none;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .header-main__nav-inner {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .header-main__nav-header,
  .header-main__nav-footer {
    display: none;
  }

  .header-main__nav-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
  }

  .header-main__nav-item {
    margin: 0;
  }

  .header-main__nav-link {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .header-main__nav-separator {
    display: block;
    color: var(--color--white);
    font-size: 0.9rem;
  }
}

/* 引き出しを開いている間は後ろをスクロールさせない（main.js が html に付ける。ページ全体のスクロールは html なので html で止める） */
html.is-menu-open {
  overflow: hidden;
}

/* ニュース・トピックスの一覧と記事のふわっと出る動き（.fade-in。topics.css・news.css で使う）。
   以前は JS が付けるクラスまで透明にしていて、JS が止まると真っ白のままだった → CSS だけの動きに（2026-11-29 洗い出しの 2） */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   フッター（茶色・白い文字）
   スマホは縦並び。768px からロゴ・メニュー3列・アイコンの横並び、1024px からアイコンを縦に
   ========================================================= */
.footer-main {
  padding: 3rem 0 0;
  background-color: var(--color--brown-dark);
  color: var(--color--white);
}
@media (min-width: 768px) {
  .footer-main {
    padding-top: 4rem;
  }
}

.footer-main__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: var(--width--content);
  margin: 0 auto;
  padding: 0 5%;
}
@media (min-width: 768px) {
  .footer-main__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
  }
}
@media (min-width: 1024px) {
  .footer-main__inner {
    flex-wrap: nowrap;
  }
}
@media (min-width: 1200px) {
  .footer-main__inner {
    gap: 3rem;
  }
}

.footer-main__brand {
  flex-shrink: 0;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-main__brand {
    flex-basis: 150px;
    text-align: left;
  }
}
@media (min-width: 1024px) {
  .footer-main__brand {
    flex-basis: 180px;
  }
}
@media (min-width: 1200px) {
  .footer-main__brand {
    flex-basis: 200px;
  }
}

.footer-main__logo {
  display: inline-block;
}

.footer-main__logo-img {
  width: auto;
  max-width: 100%;
  height: 90px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .footer-main__logo-img {
    height: 120px;
    margin: 0;
  }
}

/* メニュー3列（主なページ／お問い合わせ・法定ページ／ご利用ガイド） */
.footer-main__nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}
@media (min-width: 768px) {
  .footer-main__nav {
    flex-direction: row;
    flex-basis: calc(100% - 150px - 120px - 4rem);
    flex-grow: 1;
    gap: 1rem;
    max-width: calc(100% - 150px - 120px - 4rem);
  }
}
@media (min-width: 1024px) {
  .footer-main__nav {
    flex-basis: auto;
    gap: 3rem;
    max-width: none;
    padding: 0 2rem;
  }
}
@media (min-width: 1200px) {
  .footer-main__nav {
    gap: 4rem;
  }
}

.footer-main__nav-group {
  flex: 1;
  min-width: 0;
}
@media (min-width: 1024px) {
  .footer-main__nav-group--sub {
    flex: 1.2;
  }
}

.footer-main__nav-title {
  display: block;
  margin: 0 0 1rem;
  color: var(--color--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.footer-main__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-main__nav-item {
  margin: 0;
}

/* ご利用ガイドの下の項目（頭に「┗」） */
.footer-main__nav-item--child {
  position: relative;
  padding-left: 1.5rem;
}

.footer-main__nav-item--child::before {
  position: absolute;
  left: 0;
  color: var(--color--white);
  content: "┗";
  opacity: 0.6;
}

.footer-main__nav-link {
  color: var(--color--white);
  font-size: 0.9rem;
  overflow-wrap: break-word;
  transition: opacity 0.3s ease;
}
@media (hover: hover) {
  .footer-main__nav-link:hover,
  .footer-main__nav-title:hover,
  .footer-main__action-link:hover {
    opacity: 0.7;
  }
}

/* アカウント・カート・Instagram */
.footer-main__actions {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .footer-main__actions {
    flex-basis: 120px;
    margin-top: 0;
  }
}
@media (min-width: 1024px) {
  .footer-main__actions {
    flex-direction: column;
    flex-basis: 100px;
    align-items: center;
  }
}
@media (min-width: 1200px) {
  .footer-main__actions {
    flex-basis: 120px;
  }
}

.footer-main__action-link {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--color--white);
  transition: opacity 0.3s ease;
}

/* 人型とカートは高さを決めて幅は形なり。Instagram の画像は正方形 */
.footer-main__action-icon {
  width: auto;
  height: 1.3rem;
}

.footer-main__action-icon--image {
  width: 22px;
  height: 22px;
}
@media (min-width: 768px) {
  .footer-main__action-icon {
    height: 1.5rem;
  }

  .footer-main__action-icon--image {
    width: 24px;
    height: 24px;
  }
}
@media (min-width: 1024px) {
  .footer-main__action-icon {
    height: 1.8rem;
  }

  .footer-main__action-icon--image {
    width: 28px;
    height: 28px;
  }

  .footer-main__action-link--instagram {
    margin-top: 0.5rem;
  }
}

/* 下段：著作権（上に薄い線） */
.footer-main__bottom {
  margin: 2rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(254, 254, 254, 0.2);
  text-align: center;
}
@media (min-width: 768px) {
  .footer-main__bottom {
    margin-top: 3rem;
  }
}

.footer-main__copyright {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* =========================================================
   下層ページの上の帯（スターターの page-hero）
   画像あり（--photo。ニュース・トピックスの一覧）：固定ヘッダーのすぐ下から始め、題を白で帯の上下左右の真ん中に
   画像なし（--plain。ガイド・特商法・個人情報保護方針・お問い合わせ・商品一覧・カートなど）：題と英字の副題だけ
   ========================================================= */
.page-hero {
  position: relative;
  background-position: center;
  background-size: cover;
}

/* 写真ありの帯。写真は商品ページの「キャロットケーキって、こんなに美味しい。」の帯と同じにんじん畑（assets/img/product-story-band.jpg）・同じ暗幕 62%。
   2026-11-30 ユーザーが帯の写真の案から案2 を選んだ（以前はトップの MV の背景の茶色の地 mv.pc_.jpg）。
   「人参が中心に来るように。今は少し下すぎる」→ 写真の中の人参（上から約 68%）が帯の上下の真ん中に来るよう、縦の位置を幅ごとに合わせた
   （帯は横長なので、同じ % でも幅で見える位置が変わる。スマホ 78%・768px から 82%・1200px から 73%）。
   帯はヘッダーの下から始め（上の余白＝ヘッダーの高さ --header-height。1200px から 101px に変わるのも追う）、題は flex で帯の上下の真ん中に置く。
   以前は旧テーマの作りのまま、帯を上へ -80px／-90px ずらしてヘッダーの下に潜らせ、題を上の余白 180〜240px で押し下げて位置を合わせていた
   （2026-11-30 ユーザー指摘「ヘッダーに被るからあえて見出しを下に持ってきてる。そうじゃなくて、そもそもちゃんと揃うようにしたい」で直した）。
   見える帯の高さは以前とほぼ同じ（以前は 99・269・209px） */
.page-hero--photo {
  display: flex;
  align-items: center;
  height: 100px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)), url("assets/img/product-story-band.jpg");
  background-position: center 78%;
}
@media (min-width: 768px) {
  .page-hero--photo {
    height: 270px;
    background-position: center 82%;
  }
}
@media (min-width: 1200px) {
  .page-hero--photo {
    height: 210px;
    background-position: center 73%;
  }
}

/* WordPress は main やページ本文の先頭の要素の上の余白を 0 にする（:root :where(.is-layout-flow) > :first-child。クラス2つ分の強さ）。
   ヘッダーの高さの分の余白が消えないよう、置き場所まで書いて強くする（写真なしの帯は 0 のまま。中の余白でヘッダーの下を空ける） */
.layout-main > section.page-hero--photo,
.wp-block-post-content > section.page-hero--photo {
  margin-top: var(--header-height);
}

.layout-main > section.page-hero--plain,
.wp-block-post-content > section.page-hero--plain {
  margin-top: 0;
}

/* 左右の幅は container-inner（HTML で一緒に付ける） */
.page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.page-hero__title {
  width: 100%;
  color: var(--color--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

/* 題・副題の余白は、WordPress の「ブロックの間 24px」（クラス1つ分）と「先頭・末尾の余白を 0」（クラス2つ分）より強くする。
   写真ありの帯は題を上下の真ん中に置くので、題の上下の余白は 0（以前の上 15px・下 2px は、押し下げて合わせていたころの名残） */
.page-hero .page-hero__inner > .page-hero__title {
  margin: 0;
}

.page-hero .page-hero__subtitle {
  margin: 0;
}

/* 画像なし */
.page-hero--plain .page-hero__inner {
  display: block;
  padding-top: 7rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) {
  .page-hero--plain .page-hero__inner {
    padding-top: 8rem;
  }
}

.page-hero--plain .breadcrumb {
  margin-bottom: 60px;
}
@media (min-width: 768px) {
  .page-hero--plain .breadcrumb {
    margin-bottom: 90px;
  }
}

.page-hero--plain .page-hero__inner > .page-hero__title {
  margin: 0 0 0.5rem;
}

.page-hero--plain .page-hero__title {
  color: var(--color--ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
  text-align: left;
}

.page-hero__subtitle {
  color: var(--color--ink--light);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/* =========================================================
   パンくず（全ページ共通。各テンプレート・貼り付け用に HTML で書く。旧テーマの Yoast と同じ見た目：「ホーム » ページ名」、リンクに下線）
   置く場所ごとの下の余白は、置く側（page-hero--plain・ニュースとトピックスの一覧・記事）で決める
   ========================================================= */
/* 文字の大きさは本文（body）を受け継ぐ（旧テーマの Yoast のパンくずと同じ） */
.breadcrumb {
  margin: 0;
  line-height: 1.8;
}

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

.breadcrumb__item {
  margin: 0;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "»";
  margin-inline: 0.25em;
}

.breadcrumb__link {
  text-decoration: underline;
}
@media (hover: hover) {
  .breadcrumb__link:hover {
    text-decoration: none;
  }
}

/* 写真や濃い背景の上（ニュース・トピックス） */
.breadcrumb--light {
  color: var(--color--white);
}

/* =========================================================
   ボタン（丸）。値は旧テーマのトップの各ボタンを実測したもの（2026-11-25）
   button-primary＝深緑の塗り／button-secondary＝透明に白い 1px の枠（濃い背景の上で使う）
   場所ごとの違いは modifier：--hero（トップの MV）・--cream（CTA。クリーム色の文字で小さめ・横いっぱい）・--wide（商品一覧を見る）
   商品カードの「購入する」は「続きを読む」ブロックなので、商品の並び（product-grid）の CSS で同じ見た目にしている
   WordPress のボタンブロック（core/button）ではクラスが外側の div に付くので、中の a（wp-block-button__link）にも同じ見た目を当てる
   ========================================================= */
a.button-primary,
.button-primary > .wp-block-button__link,
a.button-secondary,
.button-secondary > .wp-block-button__link {
  display: inline-block;
  min-width: 200px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

a.button-primary,
.button-primary > .wp-block-button__link {
  background-color: var(--color--green);
  color: var(--color--white);
}
@media (hover: hover) {
  a.button-primary:hover,
  .button-primary > .wp-block-button__link:hover {
    box-shadow: 0 6px 14px rgba(34, 75, 55, 0.4);
    transform: translateY(-2px);
  }
}

/* トップの MV：大きめ。押すと 4px 浮いて色が少し明るくなる */
a.button-primary--hero,
.button-primary--hero > .wp-block-button__link {
  padding: 14px 60px;
}
@media (min-width: 768px) {
  a.button-primary--hero,
  .button-primary--hero > .wp-block-button__link {
    padding: 16px 48px;
    font-size: 1.1rem;
  }
}
@media (hover: hover) {
  a.button-primary--hero:hover,
  .button-primary--hero > .wp-block-button__link:hover {
    background-color: var(--color--green-hover);
    box-shadow: 0 8px 16px rgba(34, 75, 55, 0.4);
    transform: translateY(-4px);
  }
}

/* CTA：クリーム色の文字・小さめ・横いっぱい（ボタンブロックのときは外側の div も横いっぱいにする） */
.wp-block-button.button-primary--cream {
  width: 100%;
}

a.button-primary--cream,
.button-primary--cream > .wp-block-button__link {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 7px 24px;
  color: var(--color--cream);
  font-size: 0.95rem;
}
@media (min-width: 768px) {
  a.button-primary--cream,
  .button-primary--cream > .wp-block-button__link {
    padding: 5px 32px;
    font-size: 1rem;
  }
}

a.button-secondary,
.button-secondary > .wp-block-button__link {
  border: 1px solid var(--color--white);
  background-color: transparent;
  color: var(--color--white);
  font-weight: 400;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
@media (hover: hover) {
  a.button-secondary:hover,
  .button-secondary > .wp-block-button__link:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
  }
}

/* 商品一覧を見る：横に広め・影なし（押すと白い光） */
a.button-secondary--wide,
.button-secondary--wide > .wp-block-button__link {
  padding: 12px 40px;
  font-size: 0.95rem;
  box-shadow: none;
}
@media (min-width: 768px) {
  a.button-secondary--wide,
  .button-secondary--wide > .wp-block-button__link {
    padding: 14px 48px;
    font-size: 1rem;
  }
}
@media (hover: hover) {
  a.button-secondary--wide:hover,
  .button-secondary--wide > .wp-block-button__link:hover {
    box-shadow: 0 6px 14px rgba(254, 254, 254, 0.2);
  }
}

/* =========================================================
   カテゴリーの絞り込み（[category_filter]。ニュース・トピックスの一覧）
   2026-11-28 ユーザー「ニュース・トピックスの作りは変数と文学と同じに」で、変数と文学サイト（スターター）と同じ形に：
   線の細い札、今のカテゴリーは札の色（--gradient--accent＝橙）で塗る、触れると深緑の線。
   このテーマの [category_filter] は ul・li で出すので、印と余白を消す
   ========================================================= */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.625rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .category-filter {
    gap: 0.625rem 0.75rem;
    margin-bottom: 3rem;
  }
}

.category-filter__btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  box-shadow: inset 0 0 0 1px var(--color--line);
  color: var(--color--ink--light);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
  .category-filter__btn:hover {
    color: var(--color--accent);
    box-shadow: inset 0 0 0 1px var(--color--accent);
  }
}

.category-filter__btn.is-current,
.category-filter__btn.is-current:hover {
  background: var(--gradient--accent);
  box-shadow: inset 0 0 0 1px transparent;
  color: var(--color--white);
}

/* =========================================================
   よくある質問の1問（スターターの accordion-item。トップとお問い合わせで共通）
   組み方はスターターと同じ：__button（Q の丸・質問・＋／-）→ __content（A の丸・答え）。開閉は main.js（aria-expanded と max-height）
   見た目は旧テーマの実測（2026-11-25。トップとお問い合わせ）：白いカード、Q・A は深緑の丸、開くと答えの上に細い線
   カードの白は不透明にそろえた（旧テーマはトップが不透明・お問い合わせが 90%。お問い合わせは背景が #f9f9f9 なので差は 1 段階以内）
   ========================================================= */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.accordion-item {
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--color--white);
}

.accordion-item__button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 1.5rem;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.accordion-item__question-icon,
.accordion-item__answer-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--color--green);
  color: var(--color--white);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
}

.accordion-item__question {
  flex: 1;
  margin: 0;
  color: var(--color--ink);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 600;
  line-height: 1.6;
}

.accordion-item__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color--green);
  /* 旧テーマの ＋ はボタンの既定の書体（Arial）で出ていた。同じ形にする */
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.accordion-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.accordion-item__inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1.5rem;
}

.accordion-item__button[aria-expanded="true"] + .accordion-item__content .accordion-item__inner::before {
  position: absolute;
  top: 0;
  left: 2.5%;
  width: 95%;
  height: 1px;
  background-color: var(--color--ink);
  content: "";
}

.accordion-item__answer p {
  margin: 0 0 0.5rem;
  color: var(--color--ink);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.8;
}

.accordion-item__answer p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   項目名と内容の一覧（特定商取引法・お問い合わせで共通。2026-11-25）。値は旧テーマの page.css（.legal__list）
   項目ごとに 項目名の段落（__term）＋内容のグループ（__desc。段落・箇条書き）。スマホは縦、768px から横に2列（項目名 250px）
   中の項目は WordPress の「ブロックの間 24px」を打ち消す。一覧の外側の余白は置く側（各ページの CSS）で決める
   ========================================================= */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-list > .info-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}
@media (min-width: 768px) {
  .info-list > .info-list__item {
    flex-direction: row;
    gap: 3rem;
  }
}

.info-list > .info-list__item:last-child {
  border-bottom: none;
}

.info-list__item > .info-list__term,
.info-list__item > .info-list__desc {
  margin: 0;
  color: var(--color--ink);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.8;
}

.info-list__item > .info-list__term {
  font-weight: 600;
}
@media (min-width: 768px) {
  .info-list__item > .info-list__term {
    flex-shrink: 0;
    width: 250px;
  }
}

.info-list__item > .info-list__desc {
  margin-left: 10px;
}

/* 内容の中の段落・箇条書き・リンク */
.info-list__desc > p {
  margin: 0 0 0.5rem;
}

.info-list__desc > ul {
  margin: 0;
  padding-left: 1.2em;
}

.info-list__desc li {
  margin: 0 0 0.5rem;
}

.info-list__desc > p:last-child,
.info-list__desc li:last-child {
  margin-bottom: 0;
}

.info-list__desc a {
  color: var(--color--green);
  text-decoration: underline;
}

/* =========================================================
   よくある質問の段（明るい面。ご利用ガイド・お問い合わせで共通。2026-11-25）。値は旧テーマの page.css（.faq）
   見出し（__head・__title・__subtitle）＋共通の accordion-list。段の外側の余白は置く側（各ページの CSS）で決める
   ========================================================= */
.faq-block .faq-block__head {
  margin: 0 0 3rem;
  text-align: center;
}
@media (min-width: 768px) {
  .faq-block .faq-block__head {
    margin-bottom: 4rem;
  }
}

.faq-block .faq-block__title {
  margin: 0;
  color: var(--color--ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.6;
}

/* 旧テーマは英字の副題を見出しの中に入れ、見出しの行の高さ（1.6）で並べていた */
.faq-block .faq-block__subtitle {
  margin: 0.5rem 0 0;
  color: var(--color--ink);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

/* =========================================================
   商品の段（トップと商品一覧で共通。2026-11-25 に index.css から移した）
   茶色の面に白い題と英字の副題、その下に商品の並び（product-grid）。値は旧テーマの実測
   トップは下に「商品一覧を見る」（__actions）。商品一覧は products-section--page（パンくず・上下の余白。assets/css/products.css）
   ========================================================= */
/* WordPress がページ本文の段と段の間に入れる 24px より強くするため、置き場所まで書く */
.wp-block-post-content > section.products-section {
  margin: 0;
}

.products-section {
  margin: 0;
  overflow: hidden;
  background-color: var(--color--brown);
}

.products-section .products-section__inner {
  max-width: var(--width--content);
  margin: 0 auto;
  padding: 4rem 2rem;
}
@media (min-width: 768px) {
  .products-section .products-section__inner {
    padding: 5rem 5%;
  }
}
@media (min-width: 1200px) {
  .products-section .products-section__inner {
    padding: 6rem 5%;
  }
}

.products-section .products-section__title {
  margin: 0 0 0.5rem;
  color: var(--color--white);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-align: center;
}

.products-section .products-section__subtitle {
  margin: 0 0 3rem;
  color: var(--color--white);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
}
@media (min-width: 768px) {
  .products-section .products-section__subtitle {
    margin-bottom: 4rem;
  }
}

.products-section .product-grid {
  width: 100%;
  margin: 0 0 3rem;
}
@media (min-width: 768px) {
  .products-section .product-grid {
    margin-bottom: 4rem;
  }
}

.products-section .products-section__actions {
  justify-content: center;
  margin: 0;
}

/* =========================================================
   商品の並び（トップと商品一覧で共通。中は WooCommerce の商品一覧ブロック）
   値は旧テーマのトップを 500・900・1280px で実測（2026-11-25）。2列 → 768px から3列 → 1200px から4列。茶色のカードにクリームの枠
   カードの「購入する」は WordPress の「続きを読む」ブロック（wp-block-read-more）で、商品ページへの本物のリンク
   並びの入れ物は ul まで書いて詳細度を上げている（WooCommerce の .wc-block-product-template__responsive.columns-4 と同じ強さだと読み込み順で負けるため）
   （旧テーマは href="#" のボタンを main.js で商品ページへ飛ばしていた）
   ========================================================= */
.product-grid ul.wp-block-woocommerce-product-template {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .product-grid ul.wp-block-woocommerce-product-template {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .product-grid ul.wp-block-woocommerce-product-template {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-grid .wp-block-woocommerce-product-template > li {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--color--line-cream);
  border-radius: 4px;
  background-color: var(--color--brown-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 768px) {
  .product-grid .wp-block-woocommerce-product-template > li {
    padding: 1rem;
  }
}
@media (hover: hover) {
  .product-grid .wp-block-woocommerce-product-template > li:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
  }
}

/* 画像は 16:9 に切り抜く */
.product-grid .wp-block-woocommerce-product-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 0 1rem;
  aspect-ratio: 16 / 9;
}

.product-grid .wp-block-woocommerce-product-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-grid .wp-block-woocommerce-product-image img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

/* 商品名：旧テーマは WordPress の文字サイズ指定（has-medium-font-size）が効いて 16.8px・行の高さ 1.4 だった */
.product-grid .wp-block-post-title {
  margin: 0 0 0.75rem;
  color: var(--color--white);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

.product-grid .wp-block-post-title a {
  color: var(--color--white);
  text-decoration: none;
}

/* 価格：真ん中揃え */
.product-grid .wp-block-woocommerce-product-price {
  margin: 0 0 1rem;
  color: var(--color--cream);
  font-size: clamp(1.2rem, 1.8vw, 1.3rem);
  text-align: center;
}

.product-grid .wc-block-components-product-price {
  margin: 0;
}

.product-grid .price-tax {
  font-size: 14px;
}

/* 購入する（続きを読むブロック）：カードの下にそろえる */
.product-grid .wp-block-read-more {
  display: block;
  width: 100%;
  margin: auto 0 10px;
  padding: 7px 24px;
  border-radius: 9999px;
  background-color: var(--color--green);
  color: var(--color--cream);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 768px) {
  .product-grid .wp-block-read-more {
    margin-bottom: 2px;
    padding: 5px 32px;
    font-size: 1rem;
  }
}
@media (hover: hover) {
  .product-grid .wp-block-woocommerce-product-template > li:hover .wp-block-read-more {
    box-shadow: 0 6px 14px rgba(34, 75, 55, 0.4);
    transform: translateY(-2px);
  }
}

/* 売り切れ（WooCommerce が li に outofstock を付ける）：画像を暗くし、真ん中に札。購入するは押せない見た目に（旧テーマと同じ） */
.product-grid .wp-block-woocommerce-product-template > li.outofstock .wp-block-woocommerce-product-image {
  opacity: 0.6;
}

.product-grid .wp-block-woocommerce-product-template > li.outofstock .wp-block-woocommerce-product-image::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  width: 75%;
  padding: 8px 16px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--color--white);
  content: "在庫なし -SOLD OUT-";
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
@media (min-width: 768px) {
  .product-grid .wp-block-woocommerce-product-template > li.outofstock .wp-block-woocommerce-product-image::after {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

.product-grid .wp-block-woocommerce-product-template > li.outofstock .wp-block-read-more {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

/* =========================================================
   メッセージページ（404）。上は写真なしの上の帯（page-hero--plain）、その下に説明文とトップへ戻るボタン
   旧テーマは WordPress 既定の英語の 404（Page Not Found と検索欄）だった
   ========================================================= */
.layout-main > .message-page {
  margin: 0;
  padding-bottom: var(--space--section);
}

.message-page .message-page__text {
  margin: 0 0 0.5rem;
}

.message-page .message-page__actions {
  margin: 2rem 0 0;
}


/* =========================================================
   トピックスのカード（トップの「トピックス」の段・トピックスの一覧とカテゴリー別の一覧・記事の「合わせて読みたい記事」）
   2026-11-28 にトピックスの一覧を変数と文学と同じカードにしたところ、トップと同じ「マウスを乗せると裏返る」動きが消えた
   （ユーザー「ここ変えてもらっちゃ困る」）。トップと同じこのカードに戻し、どのページでも同じ部品として style.css に置く。
   並べ方（列と件数）は置く側で決める（トップ＝index.css、一覧と合わせて読みたい記事＝topics.css の .topics-list）
   ========================================================= */
/* カード：スマホは押すと少し浮く。768px からは裏返って写真と題が出る（main.js が表・裏の入れ物を組み立てる） */
.topics-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  /* 書体はトップと同じ（サイト全体の明朝の並び）。トピックスの一覧の段は変数と文学の書体にしているので、カードだけ戻す */
  font-family: var(--wp--preset--font-family--serif);
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
  .topics-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }
}
@media (min-width: 768px) {
  .topics-card {
    overflow: visible;
    background: transparent;
    perspective: 1000px;
  }
}
@media (min-width: 768px) and (hover: hover) {
  .topics-card:hover {
    transform: none;
  }
}

.topics-card .topics-card__media {
  position: relative;
  margin: 0;
}

.topics-card .topics-card__image {
  display: block;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 9;
}

.topics-card .topics-card__image img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.5s ease;
}
@media (hover: hover) {
  .topics-card:hover .topics-card__image img {
    transform: scale(1.05);
  }
}

/* カテゴリーの札：写真の外、題の上に置く（2026-11-30。以前は写真の左上に重ねていたが、見出し画像の中の橙やロゴとぶつかった。
   ユーザー「この場所だったら橙の札でもいい」で色と形は今のまま）。札のブロックは本文の入れ物（__body）の先頭にある */
.topics-card .topics-card__category {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 0.6rem;
}

.topics-card .topics-card__category a {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px 5px 7px;
  border-radius: 4px;
  background-color: var(--color--orange);
  color: var(--color--white);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* 札の前の値札のアイコン（旧テーマの icomoon「price-tag」と同じ形の SVG） */
.topics-card .topics-card__category a::before {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='%23fefefe' transform='translate(0 960) scale(1 -1)' d='M976 960h-384c-26.4 0-63.274-15.274-81.942-33.942l-476.116-476.116c-18.668-18.668-18.668-49.214 0-67.882l412.118-412.118c18.668-18.668 49.214-18.668 67.882 0l476.118 476.118c18.666 18.666 33.94 55.54 33.94 81.94v384c0 26.4-21.6 48-48 48zM768 576c-53.019 0-96 42.981-96 96s42.981 96 96 96 96-42.981 96-96-42.981-96-96-96z'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
}

.topics-card .topics-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0;
  padding: 12px;
  background-color: var(--color--white);
}

.topics-card .topics-card__title {
  margin: 0 0 8px;
  color: var(--color--ink);
  font-family: inherit; /* トピックスの一覧の段の「記事の題はゴシック」（topics.css の .wp-block-post-title）に負けないよう、カードの書体を引き継ぐ */
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.topics-card .topics-card__title a {
  color: inherit;
  text-decoration: none;
}

/* 抜粋の中の段落：トップと同じ値（サイト全体の p と同じ）。トピックスの一覧の段では変数と文学の段落の指定（下に 1.5rem・行の高さを引き継ぐ）が効くので書いておく */
.topics-card .topics-card__excerpt p {
  margin: 0;
  line-height: 1.8;
}

/* 抜粋：スマホは出さない。768px から2行で切る */
.topics-card .topics-card__excerpt {
  display: none;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--color--ink--light);
  font-family: "YakuHanMPs", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
@media (min-width: 768px) {
  .topics-card .topics-card__excerpt {
    display: -webkit-box;
  }
}

.topics-card .topics-card__date {
  margin: auto 0 0;
  color: #7e746d;
  font-size: 12px;
  text-align: left;
}

/* 日付の前の時計のアイコン（旧テーマの icomoon「clock」と同じ形の SVG） */
.topics-card .topics-card__date::before {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='%237e746d' transform='translate(0 960) scale(1 -1)' d='M658.744 210.744l-210.744 210.746v282.51h128v-229.49l173.256-173.254zM512 960c-282.77 0-512-229.23-512-512s229.23-512 512-512 512 229.23 512 512-229.23 512-512 512zM512 32c-229.75 0-416 186.25-416 416s186.25 416 416 416 416-186.25 416-416-186.25-416-416-416z'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
  vertical-align: -0.0625em;
}

/* 裏返し（768px から。main.js が __inner・__front・__back を組み立てる） */
@media (min-width: 768px) {
  .topics-card .topics-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    transform-style: preserve-3d;
    transition: transform 0.8s;
  }

  .topics-card .topics-card__front {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    backface-visibility: hidden;
  }

  .topics-card .topics-card__back {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    /* 裏面の背景はどのカードも同じ写真（2026-11-29 ユーザー判断「1 ケーキの写真・暗幕 60%」）。
       以前はそのカードのアイキャッチを main.js が敷いていたが、アイキャッチに文字が入っていると題と重なって読みにくかった */
    background: url("assets/img/topics-card-back.jpg") center / cover no-repeat;
    text-decoration: none;
    backface-visibility: hidden;
    transform: rotateY(180deg);
  }

  .topics-card .topics-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6); /* 題の白い文字との色の差は 9.4:1（写真の明るい所でも 6.4:1） */
  }

  .topics-card .topics-card__back-title {
    padding: 0 15px;
    color: var(--color--white);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
  }
}
@media (min-width: 768px) and (hover: hover) {
  .topics-card:hover .topics-card__inner {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: rotateY(180deg);
  }
}
