/*
Theme Name: SWELL Child - 槌音（つちね）
Theme URI: https://example.com/
Author: Site owner
Description: SWELLを親テーマにした「槌音～つちね～」専用の子テーマ。ほぼ日風の静的HTML（style-hobonichi.css）をWordPressに移植したもの。
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Template: swell
Text Domain: swell-child-personal
*/

/* ==========================================================================
   0. Tokens
   ========================================================================== */
:root {
  --hb-bg: #fdfbf7;
  --hb-text: #2c2c2c;
  --hb-gray: #f5f5f5;
  --hb-gray-dark: #666666;
  --hb-link: #0050a0;
  --hb-border: #e8e6e1;
  --hb-accent: #c00000;
  --font-base: "Sawarabi Mincho", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

/* ==========================================================================
   1. Base（SWELL の既定を上書きするため body.tsuchine で強める）
   ========================================================================== */
html { scroll-behavior: smooth; }

body.tsuchine {
  margin: 0;
  padding: 0;
  background: var(--hb-bg);
  color: var(--hb-text);
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--hb-link); text-decoration: none; }
a:hover { text-decoration: underline; }
body.tsuchine img { max-width: 100%; height: auto; }
body.tsuchine ul, body.tsuchine ol { list-style: none; margin: 0; padding: 0; }
body.tsuchine h1, body.tsuchine h2, body.tsuchine h3, body.tsuchine h4 { font-family: inherit; }

/* SWELL の管理バー用余白などは残す */
body.tsuchine .h-main { min-width: 0; }

/* ==========================================================================
   2. Header
   ========================================================================== */
.h-header {
  border-bottom: 2px solid var(--hb-text);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1200px;
  margin: 0 auto;
}
.h-header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.h-header__logo img { width: 40px; height: 40px; object-fit: contain; }
.h-header__title { font-size: 1.15rem; font-weight: 500; color: var(--hb-text); letter-spacing: 0.08em; }
.h-header__nav { display: flex; gap: 15px; list-style: none; margin: 0; padding: 0; font-size: 0.9rem; font-weight: bold; }
.h-header__nav a { color: var(--hb-text); }
.h-header__nav .current-menu-item > a,
.h-header__nav .current_page_item > a,
.h-header__nav .is-current > a { border-bottom: 2px solid var(--hb-accent); }

@media (max-width: 900px) {
  .h-header { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .h-header__logo { padding: 11px 16px; gap: 8px; }
  .h-header__logo img { width: 30px; height: 30px; }
  /* body.tsuchine ul のリセット（詳細度 0,1,2）に負けないよう body から書く */
  body.tsuchine .h-header__nav {
    flex-wrap: nowrap; justify-content: flex-start; gap: 0; padding: 0 8px;
    overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--hb-border);
  }
  .h-header__nav::-webkit-scrollbar { display: none; }
  .h-header__nav li { flex: 0 0 auto; }
  .h-header__nav a { display: block; padding: 13px 8px; font-size: 0.92rem; white-space: nowrap; }
}

/* ==========================================================================
   3. Section title / Page container
   ========================================================================== */
.h-main {
  padding: 40px 20px 0;
  min-height: 50vh;
  max-width: 1000px;
  margin: 0 auto;
}
.h-section { margin-bottom: 40px; }
.h-section__title {
  border-bottom: 2px solid var(--hb-text);
  padding-bottom: 8px;
  margin: 0 0 12px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: inherit;
  font-weight: inherit;
}
.h-section__title-en { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.h-section__title-ja { font-size: 0.85rem; font-weight: normal; color: #666; line-height: 1.2; margin-bottom: 3px; }
.h-section__more { font-size: 0.8rem; font-weight: normal; margin-left: auto; margin-bottom: 3px; white-space: nowrap; }
.h-section__lead { font-size: 0.95rem; line-height: 1.8; color: var(--hb-text); margin: 0 0 30px; font-family: var(--font-sans); }
.h-section__lead--center { text-align: center; }
.h-more-line { max-width: 800px; margin: 15px auto 0; text-align: right; }
.h-more-line--wide { max-width: 1000px; padding: 0 20px; }
.h-more-line a { font-size: 0.8rem; font-weight: bold; color: var(--hb-text); text-decoration: underline; }

@media (max-width: 768px) {
  .h-section__title { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
  .h-section__title-en { font-size: 1.4rem; }
  .h-section__title-ja { font-size: 0.78rem; }
  .h-section__more {
    width: 100%; text-align: right; margin-left: 0; margin-top: 0;
    padding-top: 8px; border-top: 2px solid var(--hb-text);
  }
  .h-section__title + * { margin-top: 20px; }
}

/* ==========================================================================
   4. Footer & おでかけメニュー
   ========================================================================== */
.h-outing { border-top: 1px solid var(--hb-border); margin-top: 20px; padding: 40px 0 10px; }
.h-outing__inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr; gap: 44px; }
.h-outing__title { font-size: 1.1rem; font-weight: bold; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--hb-text); }
.h-outing__list { list-style: none; margin: 0; padding: 0; }
.h-outing__list a { display: block; padding: 12px 0; border-bottom: 1px dotted var(--hb-border); color: var(--hb-text); text-decoration: none; font-weight: bold; font-size: 0.98rem; }
.h-outing__list a:hover { color: var(--hb-link); }

.h-footer { border-top: 4px solid var(--hb-text); padding: 40px 20px; margin-top: 60px; text-align: center; background: var(--hb-gray); }
.h-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; list-style: none; padding: 0; margin: 0 0 20px; font-size: 0.85rem; }
.h-footer__nav li { position: relative; padding: 0 15px; }
.h-footer__nav li:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 12px; background: #ccc; }
.h-footer__nav a { color: #666; transition: color 0.2s; }
.h-footer__nav a:hover { color: var(--hb-text); text-decoration: none; }
.h-footer__copy { font-size: 0.8rem; color: #666; }

/* ==========================================================================
   5. HOME: エッセイヒーロー
   ========================================================================== */
.h-hero-essay { max-width: 1000px; margin: 80px auto 120px; padding: 0 20px; }
.h-hero-essay__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.h-hero-essay__inner--text-only { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.h-hero-essay__visuals { position: relative; width: 100%; padding-bottom: 20px; }
.h-hero-essay__visual-main {
  position: relative; width: 90%; overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blobMorph 10s ease-in-out infinite alternate;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.h-hero-essay__visual-main img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  filter: grayscale(20%) sepia(10%); transition: filter 0.6s ease;
}
.h-hero-essay__visual-sub {
  position: absolute; bottom: -20px; right: 0; width: 40%; overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15); border: 4px solid var(--hb-bg);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blobMorphSub 8s ease-in-out infinite alternate;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); z-index: 3;
}
.h-hero-essay__visual-sub img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
@keyframes blobMorph {
  0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  33%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  66%  { border-radius: 50% 40% 60% 30% / 40% 70% 40% 50%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
@keyframes blobMorphSub {
  0%   { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50%  { border-radius: 70% 30% 50% 50% / 60% 40% 70% 30%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}
.h-hero-essay:hover .h-hero-essay__visual-main { transform: scale(1.02); }
.h-hero-essay:hover .h-hero-essay__visual-main img { filter: none; }
.h-hero-essay:hover .h-hero-essay__visual-sub { transform: scale(1.05) translate(-10px, -10px); }

.h-hero-essay__body { padding-top: 20px; }
.h-hero-essay__date { font-family: var(--font-sans); font-size: 0.9rem; color: #999; letter-spacing: 0.1em; margin: 0 0 20px; }
/* 読点で区切った塊。ここでは折り返さず、塊と塊の間だけで改行する */
.h-nb { display: inline-block; }

.h-hero-essay__catch { font-size: 2.2rem; font-weight: bold; line-height: 1.4; margin: 0 0 30px; color: var(--hb-text); letter-spacing: 0.05em; }
.h-hero-essay__text { font-size: 1.05rem; line-height: 2.2; color: #444; }
.h-hero-essay__text p { margin: 0 0 2.2em; }
.h-hero-essay__text p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .h-hero-essay { margin-top: 40px; margin-bottom: 60px; }
  .h-hero-essay__inner { grid-template-columns: 1fr; gap: 40px; }
  .h-hero-essay__visuals { max-width: 320px; margin: 0 auto; padding-bottom: 40px; }
  .h-hero-essay__visual-sub { right: -20px; width: 50%; }
  .h-hero-essay__catch { font-size: 1.6rem; }
  .h-hero-essay__text { font-size: 0.95rem; line-height: 2; }
}

/* ==========================================================================
   6. HOME: 流れる棚（本・アプリ・SNS）
   ========================================================================== */
.h-marquee { overflow: hidden; background: var(--hb-gray); border-top: 1px solid var(--hb-border); border-bottom: 1px solid var(--hb-border); padding: 20px 0; }
.h-marquee__track { display: flex; width: max-content; animation: marquee 25s linear infinite; }
.h-marquee__track:hover { animation-play-state: paused; }
/* リストの継ぎ目も同じ間隔にするため、左右に gap の半分ずつ余白（ul のリセットより強い指定にする） */
.h-marquee .h-shelf__list { display: flex; flex-wrap: nowrap; gap: 20px 28px; padding: 0 14px; list-style: none; margin: 0; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-100% / 3)); } }
.h-shelf__link { display: block; color: var(--hb-text); text-decoration: none; position: relative; }
.h-shelf__link:hover { text-decoration: none; }
.h-shelf__link:hover img { opacity: 0.85; }
.h-shelf__link::after {
  content: attr(data-title); position: absolute; inset: 0;
  background: rgba(0,0,0,0.7); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: bold; text-align: center; border-radius: 16px;
  opacity: 0; transition: opacity 0.2s ease; pointer-events: none; box-sizing: border-box; padding: 4px;
}
.h-shelf__link:hover::after { opacity: 1; }
.h-shelf__link img { width: 88px; height: 88px; object-fit: cover; display: block; background: #fff; border-radius: 16px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.h-shelf__link--logo img { object-fit: contain; padding: 4px; box-sizing: border-box; }
@media (max-width: 1000px) { .h-marquee .h-shelf__list { gap: 16px 22px; padding: 0 11px; } }
@media (max-width: 620px) { .h-shelf__link img { width: 72px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { .h-marquee__track { animation: none; } }

/* ==========================================================================
   7. note 記事リスト（THINK / 記事ページ）
   ========================================================================== */
.h-notes { max-width: 1000px; margin: 100px auto 0; padding: 0 20px; }
.h-notes__grid { display: block; max-width: 800px; margin: 0 auto; }
.h-note-card {
  display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px dotted rgba(0,0,0,0.1);
  transition: opacity 0.4s ease; color: var(--hb-text); text-decoration: none;
}
.h-note-card:last-child { border-bottom: none; }
.h-note-card:hover { opacity: 0.7; text-decoration: none; }
.h-note-card__figure {
  width: 100%; overflow: hidden; border-radius: 6px; border: 1px solid rgba(0,0,0,0.05);
  background: #f4f4f4; box-shadow: 0 2px 8px rgba(0,0,0,0.02); display: block;
}
.h-note-card__figure img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; }
.h-note-card__figure--empty { aspect-ratio: 1.91 / 1; background: linear-gradient(135deg, #f4f4f4, #e6e2da); }
.h-note-card__body { width: 100%; padding-top: 5px; }
.h-note-card__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.h-note-card__tag { font-size: 0.75rem; color: #888; letter-spacing: 0.05em; }
.h-note-card__tag::before { content: "#"; margin-right: 2px; }
.h-note-card__date { font-size: 0.8rem; color: #aaa; font-family: var(--font-sans); display: block; margin-bottom: 5px; }
.h-note-card__title { font-size: 1.05rem; font-weight: bold; line-height: 1.5; margin: 0; }
.h-note-card__excerpt { font-size: 0.85rem; line-height: 1.8; color: var(--hb-gray-dark); margin: 8px 0 0; }
.h-notes__caution { font-size: 0.8rem; color: #999; text-align: right; margin: 10px auto 0; max-width: 800px; }
.h-note-card.is-hidden { display: none; }

@media (max-width: 768px) {
  .h-notes { margin-top: 60px; }
  .h-note-card { grid-template-columns: 1fr; gap: 15px; padding: 20px 0; }
  .h-note-card__title { font-size: 0.95rem; }
}

/* ==========================================================================
   8. 特設・ピックアップ（h-ext）
   ========================================================================== */
.h-ext { border-top: 1px solid var(--hb-border); margin: 10px 0 0; padding: 44px 0 20px; }
.h-ext__inner { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.h-ext__list { display: block; list-style: none; max-width: 800px; margin: 0 auto; padding: 0; }
.h-ext__item { border-bottom: 1px dotted var(--hb-border); }
.h-ext__item:last-child { border-bottom: none; }
.h-ext__link { display: grid; grid-template-columns: 42% 1fr; gap: 36px; align-items: center; padding: 30px 0; color: var(--hb-text); text-decoration: none; }
.h-ext__link:hover { text-decoration: none; }
.h-ext__link:hover .h-ext__title { color: var(--hb-link); }
.h-ext__link:hover .h-ext__figure img { opacity: 0.88; }
.h-ext__figure { display: block; background: var(--hb-gray); border-radius: 12px; overflow: hidden; border: 1px solid #eaeaea; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.h-ext__figure img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.h-ext__figure--logo { background: #fff; }
.h-ext__figure--logo img { object-fit: contain; padding: 4px 0; box-sizing: border-box; }
.h-ext__figure--empty { aspect-ratio: 16 / 10; }
.h-ext__body { display: block; min-width: 0; }
.h-ext__label { display: block; font-size: 0.72rem; font-weight: bold; letter-spacing: 0.16em; color: var(--hb-accent); margin-bottom: 10px; }
.h-ext__title { display: block; font-size: 1.5rem; font-weight: bold; line-height: 1.5; margin: 0 0 12px; }
.h-ext__desc { display: block; font-size: 0.92rem; line-height: 1.85; color: var(--hb-gray-dark); margin-bottom: 16px; }
.h-ext__more { display: inline-block; font-size: 0.84rem; font-weight: bold; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.h-ext__link:hover .h-ext__figure { transform: translateY(-4px) rotate(1deg); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.h-ext__figure { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@media (max-width: 900px) {
  .h-ext__link { grid-template-columns: 1fr; gap: 14px; padding: 10px 0 22px; }
  .h-ext__title { font-size: 1.2rem; }
}

/* ==========================================================================
   9. お知らせリスト
   ========================================================================== */
.h-news-list { list-style: none; padding: 0; margin: 0 auto; max-width: 800px; border-top: 1px solid var(--hb-border); }
.h-news-item { display: flex; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--hb-border); gap: 15px; }
.h-news-item.is-hidden { display: none; }
.h-news-item__date { font-family: var(--font-sans); color: var(--hb-gray-dark); font-size: 0.95rem; min-width: 100px; }
.h-news-item__tag { font-size: 0.75rem; background: var(--hb-text); color: #fff; padding: 4px 10px; border-radius: 4px; white-space: nowrap; }
.h-news-item__title { color: var(--hb-text); font-size: 1.05rem; line-height: 1.5; flex-grow: 1; text-decoration: none; }
a.h-news-item__title:hover { color: var(--hb-link); text-decoration: underline; }
.h-news-more { text-align: center; margin-top: 30px; }
.h-btn-outline {
  background: var(--hb-bg); border: 1px solid var(--hb-text); color: var(--hb-text);
  padding: 10px 40px; font-size: 0.95rem; cursor: pointer; border-radius: 4px; font-family: var(--font-sans); transition: all 0.2s;
}
.h-btn-outline:hover { background: var(--hb-text); color: var(--hb-bg); }
@media (max-width: 768px) {
  .h-news-item { flex-wrap: wrap; gap: 8px 15px; padding: 15px 0; }
  .h-news-item__date { min-width: auto; }
  .h-news-item__title { width: 100%; margin-top: 5px; }
}

/* ==========================================================================
   10. WORK（お手伝いできること）
   ========================================================================== */
.h-skills { padding: 60px 20px; background: #f9f9f9; border-top: 1px solid #eee; }
.h-skills__inner { max-width: 1000px; margin: 0 auto; }
.h-skills__lead { text-align: center; font-size: 1rem; color: #555; margin: 0 0 40px; }
.h-skills__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.h-skill-card { display: flex; flex-direction: column; align-items: center; color: var(--hb-text); text-decoration: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.h-skill-card:hover { text-decoration: none; transform: translateY(-4px) rotate(1deg); }
.h-skill-card__icon { margin-bottom: 24px; width: 140px; height: 140px; }
.h-skill-card__icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 1px solid #ddd; padding: 6px; background: #fff; box-sizing: border-box; }
.h-skill-card__icon--empty { border-radius: 50%; border: 1px solid #ddd; background: #fff; }
.h-skill-card__title { font-size: 1.1rem; font-weight: bold; color: var(--hb-text); margin: 0 0 16px; text-align: center; position: relative; padding-bottom: 16px; width: 100%; }
.h-skill-card__title::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 2px; background: var(--hb-text); }
.h-skill-card__desc { font-size: 0.9rem; line-height: 1.7; color: var(--hb-gray-dark); text-align: center; margin: 0; }

/* ==========================================================================
   11. 仕事ページ（w-service）
   ========================================================================== */
.w-nav { display: flex; gap: 0; border: 1px solid var(--hb-text); border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.w-nav__item { flex: 1; text-align: center; padding: 12px 8px; font-size: 0.85rem; font-weight: 500; color: var(--hb-text); text-decoration: none; border-right: 1px solid var(--hb-text); font-family: var(--font-sans); transition: all 0.2s; }
.w-nav__item:last-child { border-right: none; }
.w-nav__item:hover { background: var(--hb-text); color: var(--hb-bg); text-decoration: none; }
.w-service { padding: 60px 0; border-bottom: 1px solid var(--hb-border); }
.w-service:last-of-type { border-bottom: none; }
.w-service__header { display: flex; align-items: flex-start; gap: 30px; margin-bottom: 30px; }
.w-service__icon { width: 120px; min-width: 120px; border-radius: 12px; overflow: hidden; border: 1px solid #eaeaea; background: #fff; }
.w-service__icon img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.w-service__icon--empty { aspect-ratio: 1; }
.w-service__info { flex-grow: 1; }
.w-service__title { font-size: 1.5rem; font-weight: 700; margin: 0 0 12px; line-height: 1.3; }
.w-service__lead { font-size: 0.95rem; line-height: 1.8; color: var(--hb-text); margin: 0; }
.w-service__details { margin-top: 20px; }
.w-service__details h4, .w-service__details h3 { font-size: 0.85rem; font-weight: 700; color: var(--hb-gray-dark); margin: 20px 0 10px; letter-spacing: 0.05em; }
.w-service__details ul { list-style: none; padding: 0; margin: 0; }
.w-service__details li { position: relative; padding-left: 1.2em; font-size: 0.9rem; line-height: 2; color: var(--hb-text); }
.w-service__details li::before { content: "・"; position: absolute; left: 0; }
.w-service__details p { font-size: 0.9rem; line-height: 1.9; margin: 0 0 1em; }
.h-cta { text-align: center; padding: 50px 0 30px; }
.h-cta__lead { font-size: 0.95rem; color: var(--hb-gray-dark); margin: 0 0 20px; font-family: var(--font-sans); }
.h-btn {
  display: inline-block; background: var(--hb-text); color: #fff !important; padding: 15px 50px; font-size: 1rem;
  border-radius: 4px; text-decoration: none !important; font-family: var(--font-sans); font-weight: bold; border: none; cursor: pointer; transition: opacity 0.2s;
}
.h-btn:hover { opacity: 0.8; }
@media (max-width: 768px) {
  .w-service__header { flex-direction: column; gap: 15px; }
  .w-service__icon { width: 80px; min-width: 80px; }
  .w-service__title { font-size: 1.2rem; }
  .w-service { padding: 40px 0; }
  .w-nav { flex-wrap: wrap; }
  .w-nav__item { flex: 1 1 50%; font-size: 0.78rem; padding: 10px 6px; border-bottom: 1px solid var(--hb-text); }
  .w-nav__item:nth-child(2n) { border-right: none; }
  .w-nav__item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ==========================================================================
   12. 作ったもの（フィルター + カード）
   ========================================================================== */
.p-product-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; justify-content: center; }
.p-product-filter {
  background: #f5f5f5; border: none; color: var(--hb-gray-dark); padding: 8px 12px; border-radius: 6px;
  font-size: 0.85rem; font-weight: bold; cursor: pointer; transition: all 0.2s; min-width: 110px; text-align: center; font-family: inherit;
}
.p-product-filter:hover { background: #e5e5e5; color: var(--hb-text); }
.p-product-filter.is-active { background: var(--hb-text); color: #fff; }
.p-products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; list-style: none; padding: 0; margin: 0 0 60px; }
.p-products-grid li.is-hidden { display: none; }
.p-product-card {
  display: flex; flex-direction: row; align-items: stretch; text-decoration: none; color: var(--hb-text);
  background: #fff; border-radius: 12px; border: 1px solid var(--hb-border); box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  overflow: hidden; height: 100%; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.p-product-card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,0.06); text-decoration: none; }
.p-product-card--static:hover { transform: none; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.p-product-card__img { width: 140px; flex-shrink: 0; border-right: 1px solid var(--hb-border); background: #fff; display: flex; align-items: center; }
.p-product-card__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.p-product-card__img--logo img { object-fit: contain; padding: 15px; box-sizing: border-box; background: #fafafa; }
.p-product-card__img--empty { min-height: 140px; background: var(--hb-gray); }
.p-product-card__body { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; justify-content: center; }
.p-product-card__tags { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.p-product-tag { display: inline-block; font-size: 0.7rem; font-weight: bold; background: var(--hb-gray); color: var(--hb-text); padding: 2px 8px; border-radius: 4px; }
.p-product-card__title { font-weight: bold; font-size: 1.1rem; margin: 0 0 2px; }
.p-product-card__subtitle { font-size: 0.8rem; font-weight: bold; color: var(--hb-accent); margin: 0 0 6px; }
.p-product-card__desc { font-size: 0.8rem; line-height: 1.5; color: var(--hb-gray-dark); margin: 0; }
@media (max-width: 768px) { .p-products-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ==========================================================================
   13. お知らせ記事ページと本文（ブロックエディタ）
   ========================================================================== */
.h-detail { max-width: 800px; margin: 0 auto; }
.h-detail__figure { border-radius: 12px; overflow: hidden; border: 1px solid #eaeaea; background: #fff; }
.h-detail__figure img { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.h-detail__figure--wide img { aspect-ratio: 16 / 10; }
.h-detail__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 10px; font-family: var(--font-sans); font-size: 0.8rem; color: var(--hb-gray-dark); }
.h-detail__title { font-size: 1.7rem; font-weight: bold; line-height: 1.4; margin: 0 0 8px; }
@media (max-width: 768px) { .h-detail__title { font-size: 1.35rem; } }
.h-btn--sub { background: transparent; color: var(--hb-text) !important; border: 1px solid var(--hb-text); }
.h-detail__back { margin-top: 40px; text-align: center; }

/* 本文（ブロックエディタ） */
.h-prose { max-width: 800px; margin: 0 auto; font-size: 0.95rem; line-height: 2; }
.h-prose > * { margin-top: 0; margin-bottom: 1.6em; }
.h-prose h2 { font-size: 1.3rem; font-weight: bold; border-bottom: 2px solid var(--hb-text); padding-bottom: 8px; margin: 2.4em 0 1em; }
.h-prose h3 { font-size: 1.1rem; font-weight: bold; margin: 2em 0 0.8em; }
.h-prose ul { list-style: disc; padding-left: 1.4em; }
.h-prose ol { list-style: decimal; padding-left: 1.4em; }
.h-prose img { border-radius: 8px; }
.h-prose blockquote { border-left: 3px solid var(--hb-border); padding-left: 1.2em; color: var(--hb-gray-dark); margin-left: 0; }
.h-prose a { text-decoration: underline; }
.h-prose figure { margin-left: 0; margin-right: 0; }
.h-prose figcaption { font-size: 0.8rem; color: var(--hb-gray-dark); }

/* 会社情報・特商法などの表 */
.h-prose table { width: 100%; max-width: 700px; margin: 0 auto; border-collapse: collapse; font-family: var(--font-sans); }
.h-prose table th, .h-prose table td {
  padding: 18px 16px; font-size: 0.95rem; line-height: 1.7; border: none; border-bottom: 1px solid var(--hb-border); text-align: left; vertical-align: top;
}
.h-prose table th { width: 30%; font-weight: 700; color: var(--hb-text); white-space: nowrap; background: none; }
.h-prose table tr td:first-child { width: 30%; font-weight: 700; white-space: nowrap; }
.h-prose .wp-block-table { max-width: 700px; margin: 0 auto; }
@media (max-width: 768px) {
  .h-prose table th, .h-prose table td, .h-prose table tr td:first-child { display: block; width: 100%; padding: 10px 0; }
  .h-prose table th, .h-prose table tr td:first-child { border-bottom: none; padding-bottom: 0; font-size: 0.8rem; color: var(--hb-gray-dark); }
  .h-prose table td { padding-top: 4px; }
}

/* 連絡（メールのみ） */
.h-contact { text-align: center; margin: 10px 0 30px; }
.h-contact__address { font-family: var(--font-sans); font-size: 0.9rem; color: var(--hb-gray-dark); margin: 14px 0 0; letter-spacing: 0.04em; }

/* ==========================================================================
   14. お問い合わせフォーム
   ========================================================================== */
.c-form { max-width: 640px; margin: 0 auto; }
.c-form__group { margin-bottom: 28px; }
.c-form__label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; font-family: var(--font-sans); color: var(--hb-text); }
.c-form__required { font-size: 0.7rem; font-weight: normal; background: var(--hb-text); color: #fff; padding: 2px 8px; border-radius: 3px; margin-left: 8px; vertical-align: middle; }
.c-form__input, .c-form__textarea, .c-form__select,
.c-form input[type="text"], .c-form input[type="email"], .c-form input[type="tel"], .c-form textarea, .c-form select {
  width: 100%; padding: 12px 14px; font-size: 0.95rem; font-family: var(--font-sans); color: var(--hb-text);
  background: var(--hb-bg); border: 1px solid var(--hb-border); border-radius: 4px; box-sizing: border-box; transition: border-color 0.2s;
}
.c-form input:focus, .c-form textarea:focus, .c-form select:focus { outline: none; border-color: var(--hb-text); }
.c-form__textarea, .c-form textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
.c-form__submit, .c-form input[type="submit"], .c-form button[type="submit"] {
  display: block; width: 100%; max-width: 300px; margin: 40px auto 0; padding: 15px; font-size: 1rem; font-weight: bold;
  font-family: var(--font-sans); color: #fff; background: var(--hb-text); border: none; border-radius: 4px; cursor: pointer; transition: opacity 0.2s;
}
.c-form__submit:hover, .c-form input[type="submit"]:hover { opacity: 0.8; }
.c-form__note { font-size: 0.8rem; color: var(--hb-gray-dark); line-height: 1.7; margin-top: 30px; text-align: center; }

/* ==========================================================================
   15. 一覧・ページネーション・404
   ========================================================================== */
.h-pagination { display: flex; justify-content: center; gap: 6px; margin: 30px 0; font-family: var(--font-sans); }
.h-pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--hb-border); border-radius: 4px; color: var(--hb-text); font-size: 0.9rem; }
.h-pagination .page-numbers.current { background: var(--hb-text); color: #fff; border-color: var(--hb-text); }
.h-pagination a.page-numbers:hover { border-color: var(--hb-text); text-decoration: none; }
.h-empty { text-align: center; color: var(--hb-gray-dark); font-family: var(--font-sans); padding: 40px 0; }

/* ==========================================================================
   16. 余白ユーティリティ（テンプレート内の細かい余白調整用）
   ========================================================================== */
.u-mt-20 { margin-top: 20px !important; }
.u-mt-30 { margin-top: 30px !important; }
.u-mt-40 { margin-top: 40px !important; }
.u-mb-15 { margin-bottom: 15px !important; }
.u-mb-30 { margin-bottom: 30px !important; }
.u-mb-35 { margin-bottom: 35px !important; }
.u-mb-40 { margin-bottom: 40px !important; }
.u-mb-60 { margin-bottom: 60px !important; }
.u-mb-80 { margin-bottom: 80px !important; }
.u-my-20-30 { margin: 20px 0 30px !important; }
.u-center { text-align: center; }
.h-text-link { font-size: 0.95rem; font-weight: bold; color: var(--hb-text); text-decoration: underline; }

/* ==========================================================================
   17. スクロールフェードイン
   ========================================================================== */
.js-fade-up { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.js-fade-up.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .js-fade-up { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   2026-09 アーティストページ型トップ（front-page.php）
   ========================================================================== */
body.home .h-header { border-bottom: none; }

.a-heading { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.32em; color: var(--hb-gray-dark); text-align: center; margin: 0 0 40px; }

.a-btn { display: inline-block; padding: 12px 34px; border: 1px solid currentColor; color: inherit; font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.2em; transition: background 0.3s, color 0.3s; }
.a-btn:hover { text-decoration: none; }

/* ヒーロー */
.a-hero { background: #141414; color: #f2efe7; padding: 90px 20px 100px; }
.a-hero__inner { max-width: 960px; margin: 0 auto; }
.a-hero__name { text-align: center; margin: 0 0 70px; font-weight: normal; }
.a-hero__name-ja { display: block; font-size: 3.4rem; letter-spacing: 0.3em; line-height: 1.3; padding-left: 0.3em; }
.a-hero__name-en { display: block; margin-top: 14px; font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.5em; color: #9a968d; padding-left: 0.5em; }
.a-hero__release { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: center; }
.a-hero__cover { display: block; box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.a-hero__cover img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.a-hero__label { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.4em; color: #c9a86a; margin: 0 0 16px; }
.a-hero__title { font-size: 2rem; font-weight: normal; letter-spacing: 0.08em; margin: 0 0 20px; }
.a-hero__desc { font-size: 0.95rem; line-height: 2; color: #c9c5bb; margin: 0 0 32px; }
.a-hero .a-btn:hover { background: #f2efe7; color: #141414; }

/* メッセージ */
.a-message { max-width: 640px; margin: 0 auto; padding: 110px 20px 90px; }
.a-message__lead { font-size: 1.35rem; line-height: 1.8; text-align: center; margin: 0 0 44px; }
.a-message__text { font-size: 1rem; line-height: 2.3; color: #444; }
.a-message__text p { margin: 0 0 2em; }
.a-message__sign { text-align: right; font-size: 1.05rem; letter-spacing: 0.2em; margin: 40px 0 0; }

/* 作品 */
.a-works { max-width: 1000px; margin: 0 auto; padding: 90px 20px; border-top: 1px solid var(--hb-border); }
body.tsuchine .a-works__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.a-work { display: block; color: var(--hb-text); text-align: center; }
.a-work:hover { text-decoration: none; }
.a-work__cover { display: block; overflow: hidden; background: var(--hb-gray); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.a-work__cover img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.6s ease; }
.a-work:hover .a-work__cover img { transform: scale(1.04); }
.a-work__title { display: block; margin-top: 18px; font-size: 1.05rem; letter-spacing: 0.06em; }
.a-work__author { display: block; margin-top: 6px; font-size: 0.82rem; letter-spacing: 0.06em; opacity: 0.7; }
.a-work__status { display: block; margin-top: 6px; font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--hb-accent); }

/* お知らせ */
.a-news { max-width: 800px; margin: 0 auto; padding: 90px 20px; border-top: 1px solid var(--hb-border); }
.a-news .h-news-item__title { font-size: 0.98rem; }
.a-news__more { text-align: center; margin: 36px 0 0; }
.a-news__more a { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.3em; color: var(--hb-text); }

/* SNS・連絡 */
.h-links { max-width: 800px; margin: 0 auto; padding: 60px 20px 20px; border-top: 1px solid var(--hb-border); text-align: center; }
body.tsuchine .h-links__icons { display: flex; justify-content: center; gap: 20px; margin: 0 0 18px; }
.h-links__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--hb-border); border-radius: 50%; color: var(--hb-text); background: #fff; transition: border-color 0.2s; }
.h-links__icon:hover { border-color: var(--hb-text); text-decoration: none; }
.h-links__note { font-family: var(--font-sans); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em; }
.h-links__mail { font-family: var(--font-sans); font-size: 0.9rem; margin: 0; }
.h-links__mail a { color: var(--hb-gray-dark); }

@media (max-width: 768px) {
  .a-hero { padding: 56px 20px 64px; }
  .a-hero__name { margin-bottom: 44px; }
  .a-hero__name-ja { font-size: 2.2rem; letter-spacing: 0.2em; padding-left: 0.2em; }
  .a-hero__name-en { letter-spacing: 0.35em; padding-left: 0.35em; }
  .a-hero__release { grid-template-columns: minmax(0, 1fr); gap: 32px; text-align: center; }
  .a-hero__cover { max-width: 280px; margin: 0 auto; }
  .a-hero__title { font-size: 1.5rem; }
  .a-hero__desc { text-align: left; }
  .a-message { padding: 72px 20px 60px; }
  .a-message__lead { font-size: 1.1rem; }
  .a-message__text { font-size: 0.95rem; line-height: 2.1; }
  .a-works, .a-news { padding: 64px 20px; }
  body.tsuchine .a-works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .a-work__title { font-size: 0.95rem; margin-top: 12px; }
  .a-news .h-news-item { flex-wrap: wrap; gap: 4px 15px; }
}

/* ---- お問い合わせ ---- */
.h-links__contact { margin: 4px 0 0; font-size: 0.9rem; }
.h-links__contact a { color: var(--hb-text); text-decoration: underline; text-underline-offset: 4px; }

.a-page { max-width: 640px; margin: 0 auto; padding: 90px 20px 60px; text-align: center; }
.a-page__title { font-size: 1.6rem; font-weight: normal; letter-spacing: 0.15em; margin: 0 0 36px; }
.a-page__lead { font-size: 0.98rem; line-height: 2.1; margin: 0 0 48px; }
.a-contact { margin: 0 0 64px; }
.a-contact__address { font-family: var(--font-sans); font-size: 1.15rem; letter-spacing: 0.05em; margin: 0 0 24px; }
.a-page .a-btn { color: var(--hb-text); }
.a-page .a-btn:hover, .h-links .a-btn:hover { background: var(--hb-text); color: #fff; }
.h-links .a-btn { color: var(--hb-text); }
.a-contact__info { display: inline-grid; gap: 10px; margin: 0; padding-top: 32px; border-top: 1px solid var(--hb-border); font-size: 0.9rem; }
.a-contact__info div { display: flex; gap: 24px; }
.a-contact__info dt { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--hb-gray-dark); min-width: 3em; text-align: left; }
.a-contact__info dd { margin: 0; text-align: left; }
@media (max-width: 768px) { .a-page { padding: 64px 20px 40px; } }

/* ---- ヘッダー：メニューが2つだけなので、狭い画面でも屋号と同じ行の右に置く ---- */
@media (max-width: 900px) {
  .h-header { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 8px 0 0; }
  body.tsuchine .h-header__nav { border-top: none; padding: 0; overflow: visible; }
  .h-header__nav a { padding: 12px 8px; }
}

/* ---- ヘッダー：つちのと出版のロゴ（2026-10-25）。英字はスマホでは小さすぎるので出さない ---- */
.h-header__logo img.h-header__mark { width: auto; height: 40px; }
.h-header__brand { display: flex; flex-direction: column; }
.h-header__en { font-family: var(--font-sans); font-size: 0.56rem; letter-spacing: 0.32em; color: #8a857b; margin-top: 3px; }
@media (max-width: 768px) {
  .h-header__logo img.h-header__mark { height: 32px; }
  .h-header__en { display: none; }
}
