@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** ベース設定
************************************/
body {
  /* background: linear-gradient(135deg, #dff1e0, #ffffff); */
  background-attachment: fixed;
}

/* =========================================
   追加：about / 会社概要ページ用スタイル
   ========================================= */
.page .entry-content .flow-page .company-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page .entry-content .flow-page .company-info {
  border-collapse: collapse;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
  border-radius: .5rem;
  overflow: hidden;
}

.page .entry-content .flow-page .company-info td {
  padding: .9rem .75rem;
  border-bottom: 1px solid rgba(230,230,230,.85);
  vertical-align: top;
  font-size: 0.96rem;
  color: #2f3b34;
}

.page .entry-content .flow-page .company-info tr:first-child td {
  border-top: none;
}

.page .entry-content .flow-page .company-info tr:nth-child(odd) td {
  background: rgba(245,250,249,0.6);
}

.page .entry-content .flow-page .wp-block-image.is-style-filter-perpetua img,
.page .entry-content .flow-page .yamato-profile__image img {
  border-radius: .75rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
  display: block;
  width: 100%;
  height: auto;
}

.page .entry-content .flow-page .has-text-align-right {
  text-align: right;
  margin-top: 1rem;
}

/* table の小さい画面対応 */
@media (max-width: 767px) {
  .page .entry-content .flow-page .company-info {
    font-size: .95rem;
  }

  .page .entry-content .flow-page .company-info td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
}

/* 保険：flow ページ全体の段落の余白を安定させる */
.page .entry-content .flow-page p {
  margin: .7rem 0 !important;
}

/* ============== 強制上書き：ギャラリー中央寄せ ============== */
/* 最後に追加して、他のスタイルを上書きします */
.page .entry-content .flow-page .yamato-gallery,
.page .entry-content .flow-page .yamato-gallery--cols-4,
.page .entry-content .flow-page .yamato-gallery--cols-3 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 1.2rem !important;
  margin: 2rem auto !important;
  width: 100% !important;
  max-width: 980px !important;
  justify-items: center !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

.page .entry-content .flow-page .yamato-gallery--cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  max-width: 1120px !important;
}

.page .entry-content .flow-page .yamato-gallery--cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  max-width: 900px !important;
}

/* 子要素の余白や幅が親での中央寄せを壊すのを防ぐ */
.page .entry-content .flow-page .yamato-gallery > * {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.page .entry-content .flow-page .yamato-gallery img,
.page .entry-content .flow-page .yamato-gallery figure img,
.page .entry-content .flow-page .yamato-gallery .wp-block-image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* ギャラリー全体を flow-page の中央幅に揃えるための補助 */
.page .entry-content .flow-page {
  display: block;
}

/* 小さい画面では1列に戻す（上書き） */
@media (max-width: 767px) {
  .page .entry-content .flow-page .yamato-gallery,
  .page .entry-content .flow-page .yamato-gallery--cols-4,
  .page .entry-content .flow-page .yamato-gallery--cols-3 {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    margin: 1.2rem 0 !important;
  }
}

/* ============== 追加：他ページ（イエシロアリ等）用の細かい調整 ============== */
/* narrow-block（画像 + 説明）を flow ページデザインに合わせる */
.page .entry-content .flow-page .narrow-block {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  margin: 1.25rem 0 !important;
}

.page .entry-content .flow-page .narrow-block .wp-block-image {
  flex: 0 0 240px !important;
  max-width: 240px !important;
  margin: 0 !important;
}

.page .entry-content .flow-page .narrow-block .is-style-border-thin-and-thick,
.page .entry-content .flow-page .narrow-block .has-border {
  flex: 1 1 auto !important;
  margin: 0 !important;
}

/* 汎用：WP ギャラリー内のブロックで親の中央揃えが崩れる問題を抑制 */
.page .entry-content .flow-page .wp-block-gallery,
.page .entry-content .flow-page .wp-block-gallery .blocks-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 1.2rem !important;
  margin: 2rem auto !important;
  justify-items: center !important;
  width: 100% !important;
  max-width: 980px !important;
  box-sizing: border-box !important;
}

/* columns-5 を扱うギャラリーに対応 */
.page .entry-content .flow-page .wp-block-gallery.columns-5,
.page .entry-content .flow-page .yamato-gallery--cols-5 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  max-width: 1200px !important;
  margin: 2rem auto !important;
  justify-items: center !important;
}

/* ギャラリー内の figure / wp-block-image をリセットして中央揃えを維持 */
.page .entry-content .flow-page .wp-block-gallery figure,
.page .entry-content .flow-page .wp-block-gallery .wp-block-image,
.page .entry-content .flow-page .yamato-gallery > * {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.page .entry-content .flow-page .wp-block-gallery img,
.page .entry-content .flow-page .wp-block-gallery figure img,
.page .entry-content .flow-page .yamato-gallery img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* 予防施工だけ左寄せになる問題への補助ルール（特定セクションに強制適用） */
section.yamato-section:nth-of-type(6) .wp-block-gallery,
section.yamato-section:nth-of-type(6) .yamato-gallery {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 980px !important;
  justify-items: center !important;
}

@media (max-width: 767px) {
  .page .entry-content .flow-page .narrow-block {
    flex-direction: column !important;
    gap: 0.9rem !important;
  }

  .page .entry-content .flow-page .narrow-block .wp-block-image {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

.main {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 1rem;
}

.main .content {
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  color: #1e3d2f;
  font-weight: bold;
  font-size: 1.5rem;
}

p {
  color: #4a6655;
  line-height: 1.8;
  font-size: 1.05rem;
}

.accent-btn {
  background-color: #f2e6d9;
  color: #704f2d;
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-weight: bold;
}

/* グローバルに影響しすぎないよう、nav内のaタグだけ狙う */
nav a {
  transition: all 0.3s ease;
  color: #1f2937; /* text-gray-800 相当 */
  border-radius: 0.5rem;
}

/* グラスモーフィズム風のホバー */
nav a:hover {
  color: #111;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* ドロップダウンメニューの背景と整列補正 */
.menu-item {
  list-style: none;
}

.menu-item:hover,
.menu-item:focus {
  background: transparent !important;
}

/* ブログだけに強制的に白背景がついている場合の除去 */
.menu-item-has-children:hover,
.menu-item-has-children:focus {
  background: transparent !important;
}

/************************************
** 記事本文のスタイリング
************************************/
.entry {
  line-height: 1.8;
  color: #374151;
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto;
}

.entry p {
  margin-bottom: 1.5rem;
  line-height: 1.9;
  color: #4a5568;
}

.entry h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.entry h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 2.5rem 0 1.25rem;
}

/* イエシロアリ固定ページの見出し強調 */
.page-ieshiroari .entry-content .wp-block-heading {
  position: relative;
  display: block;
  background: linear-gradient(
    120deg,
    rgba(16, 185, 129, 0.18),
    rgba(16, 185, 129, 0.06)
  );
  border-left: 6px solid #10b981;
  padding: 1.25rem 1.5rem;
  border-radius: 0.85rem;
  box-shadow: 0 12px 28px -16px rgba(12, 72, 48, 0.55);
  color: #0f2f23;
  margin: 3rem 0 1.75rem;
}

/* h4/h5のサブ見出し */
.page-ieshiroari .entry-content :is(h4, h5).wp-block-heading {
  color: #16624d;
  font-weight: 700;
  padding-left: 1.25rem;
  border-left: 4px solid rgba(16, 185, 129, 0.65);
  margin: 2.5rem 0 1.25rem;
}

/* tocアンカー付きspanも親見出しのスタイルを継承 */
.page-ieshiroari .entry-content .wp-block-heading > span[id^="toc"] {
  display: inline-block;
  font: inherit;
  color: inherit;
}

.entry ul,
.entry ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.entry li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.entry ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.entry img {
  margin: 2.5rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: block;
}

/* テーブルスタイル（統一版） */
.entry table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
              0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.entry th {
  background-color: #f7fafc;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #2d3748;
  border-bottom: 1px solid #e2e8f0;
}

.entry td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #edf2f7;
  color: #4a5568;
}

.entry tr:last-child td {
  border-bottom: none;
}

.entry tr:hover td {
  background-color: #f9fafb;
}

.entry a {
  color: #3182ce;
  text-decoration: none;
  transition: color 0.2s;
}

.entry a:hover {
  color: #2c5282;
  text-decoration: underline;
}

.entry blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 4px solid #e2e8f0;
  color: #4a5568;
  font-style: italic;
}

.narrow-block {
  width: 100%;
  max-width: 1000px;
  margin: auto;
}

/************************************
** カテゴリーメニュー / サイドバー系
************************************/
/* カテゴリーメニュー - single.php専用 */
.single .flex-wrap.justify-center.gap-3.mb-10 {
  padding: 1rem 0;
  margin: 2rem 0;
  border-top: 1px solid hsl(220, 13%, 91%);
  border-bottom: 1px solid #e5e7eb;
}

.single .bg-green-600 {
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

/* ホバーエフェクト - サイドバーカード用 */
.single .bg-white\/60 {
  transition: all 0.3s ease;
}

.single .bg-white\/60:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
              0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* カテゴリーページ用のスタイル */
.category .flex-wrap.justify-center.gap-3.mb-10 {
  margin: 0 0 2rem 0;
  padding: 0;
  border: none;
}

.category .bg-green-600 {
  font-weight: 600;
  box-shadow: none;
}

/* カテゴリーページのカードホバーエフェクト */
.category .bg-white.border-gray-200 {
  transition: all 0.3s ease;
}

.category .bg-white.border-gray-200:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/************************************
** 固定ページ用スタイル
************************************/
.page .entry-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  line-height: 1.8;
}

/* 単一画像は幅広で表示 */
.page .entry-content p:has(> img:only-child) {
  margin: 2rem 0;
  text-align: center;
}

.page .entry-content p > img:only-child {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* 連続する画像を横並びに */
.page .entry-content p:has(+ p > img) > img,
.page .entry-content p > img + br + img {
  display: inline-block;
  max-width: calc(50% - 0.5rem);
  margin: 0.25rem;
  vertical-align: top;
}

/* 画像のホバーエフェクト */
.page .entry-content img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page .entry-content img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 固定ページのレスポンシブ対応 */
@media (max-width: 768px) {
  .page .entry-content p:has(+ p > img) > img,
  .page .entry-content p > img + br + img {
    max-width: 100%;
    margin: 0.5rem 0;
    display: block;
  }
}

/************************************
** レスポンシブ対応（既存）
************************************/
@media (max-width: 1024px) {
  .max-w-screen-xl.mx-auto.px-4 {
    padding: 0 1.5rem;
  }

  .flex.flex-col.lg\:flex-row.gap-8 {
    gap: 2rem;
  }

  .w-full.lg\:w-80 {
    width: 100%;
    margin-top: 3rem;
  }
}

@media (max-width: 768px) {
  .entry {
    padding: 0 0.5rem;
    font-size: 1rem;
  }

  .entry h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.25rem;
  }

  .entry h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1.25rem;
  }

  .entry p,
  .entry li {
    font-size: 1rem;
    line-height: 1.8;
  }

  .entry table {
    font-size: 0.9rem;
  }

  .entry th,
  .entry td {
    padding: 0.75rem 1rem;
  }

  /* カテゴリーメニュー */
  .flex-wrap.justify-center.gap-3.mb-10 {
    margin: 1.5rem 0;
    padding: 0.75rem 0;
  }

  .flex-wrap.justify-center.gap-3.mb-10 a {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

  /* サイドバー */
  .w-full.lg\:w-80 {
    padding: 0;
  }

  /* カード */
  .bg-white\/60 {
    padding: 1.25rem;
  }

  /* グリッドレイアウト調整 */
  .grid.grid-cols-2.sm\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* フッター周りの余白調整 */
  .max-w-screen-xl.mx-auto.px-4 {
    padding-bottom: 2rem;
  }
}

.slider-wrapper {
  position: relative;
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.slider-slide {
  transition: opacity 1s ease-in-out;
}

/************************************
** Glassmorphism & Claymorphism
************************************/
.bg-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.2),
    0 4px 6px rgba(0, 0, 0, 0.05),
    inset 0 0 0.5px rgba(255, 255, 255, 0.4);
  border-radius: 1.5rem;
  transition: all 0.3s ease-in-out;
}

.glass-section {
  padding: 4rem 1rem;
  margin-bottom: 2.5rem;
  border-radius: 1.5rem;
  background: rgba(245, 245, 245, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(220, 220, 220, 0.4);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08),
    0 4px 6px rgba(0, 0, 0, 0.03),
    inset 0 0 4px rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-section.link-section {
  background: rgba(235, 240, 235, 0.9);
}

.glass-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1.5rem;
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.08),
    0 0 2px rgba(255, 255, 255, 0.5);
}

.glass-card:hover {
  transform: scale(1.01);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.15),
    0 0 2px rgba(255, 255, 255, 0.6),
    inset 0 0 2px rgba(255, 255, 255, 0.7);
}

.clay-glass-box {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1.5rem;
  backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(230, 230, 230, 0.5);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

.clay-glass-box:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.04);
}

/************************************
** バナー構成
************************************/
.banner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.row-even {
  flex-direction: row;
}

.row-odd {
  flex-direction: row-reverse;
}

.banner-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.banner-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2f4f4f;
}

.banner-text p {
  color: #333;
  line-height: 1.75;
  font-size: 1rem;
}

.banner-image {
  flex: 1;
  min-width: 300px;
}

.banner-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.banner-image img:hover {
  transform: scale(1.03);
}

.card-box {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow:
    8px 8px 16px rgba(0, 0, 0, 0.05),
    -4px -4px 12px rgba(255, 255, 255, 0.6);
}

/************************************
** Tailwind補完クラス
************************************/
.w-full { width: 100%; }
.md\:w-1\/2 { width: 50%; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/************************************
** レスポンシブ対応（バナー）
************************************/
@media screen and (max-width: 1023px) {
  .banner-row {
    flex-direction: column !important;
    text-align: center;
  }

  .banner-text {
    text-align: center;
  }
}

/* PC表示用 */
@media screen and (min-width: 769px) {
  .sub-menu {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  }

  .menu-item-has-children > a::after {
    content: '▼';
    margin-left: 0.25rem;
    font-size: 0.6rem;
    vertical-align: middle;
  }

  .menu-item {
    display: inline-block;
    vertical-align: middle;
  }
}

/* スマホ表示時のみサブメニューを非表示にする */
@media screen and (max-width: 768px) {
  .menu-item-has-children {
    position: relative;
    overflow: visible !important;
  }

  .sub-menu {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
  }

  .sub-menu a {
    display: block;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #111;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }

  .sub-menu a:hover {
    color: inherit;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
  }

  .menu-item > a,
  .relative > a {
    display: block;
    padding: 0.25rem 1rem;
    font-size: 15px;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    transition: background 0.3s ease;
  }

  .menu-item > a:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #111;
  }

  .menu-item {
    display: inline-block;
    margin: 0.3rem 0.4rem;
  }

  .menu-item > a.tag-link {
    padding: 0.5rem 1rem;
    font-size: 13px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 9999px;
    white-space: nowrap;
  }

  .menu-item > a.tag-link:hover {
    background: rgba(255,255,255,0.35);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
}

@media screen and (max-width: 480px) {
  .glass-section {
    padding: 2rem 1rem;
  }

  .banner-text h2 {
    font-size: 1.25rem;
  }

  .banner-text p {
    font-size: 0.95rem;
  }
}

/* =========================================
   flow 固定ページ（クラシックブロック想定）
   ※固定ページ本文の先頭を <div class="flow-page"> で囲うと効きます
   ========================================= */
.page .entry-content .flow-page {
  max-width: 1000px;
  margin: 0 auto;
}

/* 見出しと本文の差を強める */
.page .entry-content .flow-page h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 900;
  letter-spacing: .02em;
  color: #0f2f23;
  margin: 2.4rem 0 1rem;
  padding-left: .95rem;
  border-left: 6px solid rgba(16,185,129,.75);
}

.page .entry-content .flow-page p {
  font-size: 1.02rem;
  line-height: 1.95;
  color: #2f3b34;
  margin: .75rem 0;
}

/* クラシックで混ざりがちな余計な改行を抑え、だらだら感を軽減 */
.page .entry-content .flow-page p + p { margin-top: .85rem; }

/* 「このページで分かること」用 */
.page .entry-content .flow-page .flow-intro {
  margin: 1.5rem 0 2.25rem;
  padding: 1.25rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(220,220,220,.55);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

.page .entry-content .flow-page .flow-intro__title {
  margin: 0 0 .75rem;
  font-weight: 900;
  color: #0f2f23;
  font-size: 1.1rem;
}

.page .entry-content .flow-page .flow-intro__list {
  margin: 0;
  padding-left: 1.2rem;
}

.page .entry-content .flow-page .flow-intro__list li {
  margin: .4rem 0;
}

/* セクションのまとまり（IDは任意：boric / price を想定） */
.page .entry-content .flow-page #boric,
.page .entry-content .flow-page #price {
  margin: 2rem 0;
  padding: 1.75rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(230,230,230,.65);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

/* 相談〜施工の流れ：現行HTML（.boric-area / .boric-discription-area）を読みやすく */
.page .entry-content .flow-page .boric-area {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.page .entry-content .flow-page .boric-discription-area {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.15rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(230,230,230,.70);
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
}

.page .entry-content .flow-page .boric-discription-area img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0;
  flex: 0 0 72px;
  border-radius: .95rem;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(230,230,230,.75);
  box-shadow: 0 8px 16px rgba(0,0,0,.06);
}

.page .entry-content .flow-page .arrow {
  text-align: center;
  font-weight: 900;
  color: rgba(16,185,129,.85);
  font-size: 1.25rem;
  line-height: 1;
  padding: .35rem 0;
}

/* 料金表：テーブル視認性（スマホは横スクロール） */
.page .entry-content .flow-page .price-table {
  margin-top: 1rem;
}

.page .entry-content .flow-page .price-table table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.72);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(230,230,230,.85);
}

.page .entry-content .flow-page .price-table table td {
  padding: .9rem .85rem;
  border-bottom: 1px solid rgba(235,235,235,.95);
  vertical-align: top;
  line-height: 1.85;
  color: #2f3b34;
  font-size: .98rem;
}

.page .entry-content .flow-page .price-table table tr.tr1 td {
  background: rgba(245,245,245,.98);
  font-weight: 900;
  color: #103a2a;
  border-bottom: 1px solid rgba(220,220,220,.95);
}

.page .entry-content .flow-page .price-table table tr:nth-child(even) td {
  background: rgba(250,250,250,.95);
}

.page .entry-content .flow-page .price-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
}

/* 画像セル（ホウ酸の画像） */
.page .entry-content .flow-page .price-table img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: none;
}

/* 下部リンク（another-link）をCTAとして明確に */
.page .entry-content .flow-page #another-link {
  margin: 2.25rem 0 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .9rem;
}

/* <br> タグを非表示にする */
.page .entry-content .flow-page #another-link br {
  display: none;
}

.page .entry-content .flow-page #another-link .button {
  display: block;
  width: 100%;
  max-width: 600px;
  text-align: center;
  padding: .95rem 1rem;
  border-radius: 9999px;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.24);
  color: #0f2f23;
  font-weight: 900;
  text-decoration: none;
}

.page .entry-content .flow-page #another-link .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0,0,0,.08);
  background: rgba(16,185,129,.16);
}

@media (max-width: 768px) {
  .page .entry-content .flow-page .boric-discription-area img { width: 60px; height: 60px; flex-basis: 60px; }
}

/* =========================================
   mizumore 固定ページ用スタイル（yamato寄せ）
   ========================================= */

/* 共通セクションレイアウト */
.mizumore-section {
  margin: 3.5em 0;
}

.mizumore-section:first-of-type {
  margin-top: 2em;
}

.mizumore-section-title {
  margin-bottom: 1.2em;
  padding-bottom: .3em;
  border-bottom: 2px solid #4ba36a; /* yamato と同系統のグリーン下線 */
  font-size: 1.5rem;
  font-weight: 700;
}

/* 説明文を yamato と似た雰囲気に */
.mizumore-body p {
  margin-bottom: 0.9em;
  line-height: 1.8;
}

/* 画像ギャラリー：yamato のカード風 */
.mizumore-gallery {
  margin-top: 1.5em;
  row-gap: 1.2rem;
}

.mizumore-gallery-item {
  background-color: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  padding: 0.6rem;
  text-align: center;
  box-sizing: border-box;
}

.mizumore-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.mizumore-gallery-item figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #666;
}

/* 「こんな症状ありませんか？」のボックス */
.mizumore-question {
  margin: 1.5em 0 1em;
  padding: 0.8em 1em;
  background: #fff8cc;
  border-left: 4px solid #f0c13b;
  font-weight: 600;
}

/* 症状リスト */
.mizumore-symptom ul {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}

.mizumore-symptom li {
  margin-bottom: .4em;
}

/* 説明ボックス：yamatoの淡い帯っぽく */
.mizumore-caption {
  margin-top: 1em;
  padding: 1.2em 1.4em;
  background: #f7f7f7;
  border-radius: 4px;
}

.mizumore-caption p {
  margin-bottom: .7em;
}

/* イラスト中央寄せ */
.mizumore-illust {
  margin-top: 2em;
  text-align: center;
}

.mizumore-illust img {
  max-width: 420px;
  width: 100%;
  height: auto;
}

/* 下部リンクボタン（another-link） */
.mizumore-links {
  margin-top: 3em;
}

.mizumore-links-inner {
  max-width: 520px;
  margin: 0 auto;
}

/* Cocoonの .btn をmizumore内だけ上書き */
.mizumore-links-inner .btn {
  display: block;
  width: 100%;
  margin-bottom: .75rem;
  padding: .8rem 1.2rem;
  border-radius: 3px;
  border: 1px solid #e3e3e3;
  background: #fff8cc;
  color: #333 !important;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
}

.mizumore-links-inner .btn:hover {
  background: #f5efc0;
}

/* 色バリエーション */
.mizumore-links-inner .btn-green { background: #e8f6e8; }
.mizumore-links-inner .btn-green:hover { background: #d9edd9; }

.mizumore-links-inner .btn-blue { background: #e8f3ff; }
.mizumore-links-inner .btn-blue:hover { background: #d9e9ff; }

.mizumore-links-inner .btn-yellow { background: #fff8cc; }
.mizumore-links-inner .btn-yellow:hover { background: #f5efc0; }

.mizumore-links-inner .btn-light-blue { background: #e9f7f9; }
.mizumore-links-inner .btn-light-blue:hover { background: #ddf0f3; }

/* mizumore レスポンシブ */
@media (max-width: 768px) {
  .mizumore-section {
    margin: 2.5em 0;
  }

  .mizumore-section-title {
    font-size: 1.3rem;
  }

  .mizumore-caption {
    padding: 1em;
  }

  .mizumore-links-inner {
    max-width: 100%;
  }
}

/* =========================================
   flow 固定ページ（新HTML構造：boric-steps / price-table）
   ========================================= */
.page .entry-content .flow-page {
  max-width: 1200px;
  margin: 0 auto;
}

/* 親要素のパディングを上書き */
body.page .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

body.page .entry {
  padding: 0 !important;
  margin: 0 !important;
}

body.page .main {
  padding: 1rem !important;
}

body.page article {
  padding: 0 !important;
  margin: 0 !important;
}

/* セクション自体をカード化して「だらだら」を止める */
.page .entry-content .flow-page .boric-section,
.page .entry-content .flow-page .price-section,
.page .entry-content .flow-page .boric-price-section {
  margin: 2.5rem 0;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(230, 230, 230, 0.70);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

/* 見出し差別化：h3は強く、h4は少し控えめ */
.page .entry-content .flow-page h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 900;
  letter-spacing: .02em;
  color: #0f2f23;
  margin: 0 0 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 6px solid rgba(16,185,129,.75);
  background: linear-gradient(120deg, rgba(16,185,129,.08), rgba(16,185,129,.02));
  border-radius: .5rem;
}

.page .entry-content .flow-page h4 {
  font-size: clamp(1.2rem, 1.05rem + 0.65vw, 1.5rem);
  font-weight: 800;
  color: #103a2a;
  margin: 2.5rem 0 1.25rem;
  padding-left: .75rem;
  border-left: 4px solid rgba(16,185,129,.55);
}

/* ステップ（相談〜/アフター） */
.page .entry-content .flow-page .boric-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.page .entry-content .flow-page .boric-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(230,230,230,.75);
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  position: relative;
}

/* ステップ間の矢印（独立要素として配置） */
.page .entry-content .flow-page .boric-step-arrow {
  display: block;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(16,185,129,.85);
  line-height: 1;
  margin: -.25rem 0;
  padding: 0;
  height: 2rem;
}

/* 画像：左固定＋カード感 */
.page .entry-content .flow-page .boric-step__media {
  margin: 0;
  flex: 0 0 80px;
}

.page .entry-content .flow-page .boric-step__media img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  border-radius: .95rem;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(230,230,230,.75);
  box-shadow: 0 8px 16px rgba(0,0,0,.06);
}

/* 本文：行間と余白を整えて読みやすく */
.page .entry-content .flow-page .boric-step__body {
  flex: 1;
  color: #2f3b34;
  line-height: 1.95;
  font-size: 1.05rem;
}

.page .entry-content .flow-page .boric-step__body p {
  margin: 0 0 .5rem;
}

.page .entry-content .flow-page .boric-step__body p:last-child {
  margin-bottom: 0;
}

/* 注記スタイル */
.page .entry-content .flow-page .boric-step__note {
  display: block;
  margin-top: .75rem;
  padding: .65rem .85rem;
  background: rgba(255,193,7,.08);
  border-left: 3px solid rgba(255,152,0,.45);
  border-radius: .5rem;
  font-size: .95rem;
  color: #805b12;
  line-height: 1.75;
}

/* 料金テーブル */
.page .entry-content .flow-page .price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
  margin: 1.5rem 0 2rem;
}

.page .entry-content .flow-page .price-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(230,230,230,.85);
  border-radius: 1rem;
  overflow: hidden;
}

.page .entry-content .flow-page .price-table caption {
  caption-side: top;
  text-align: left;
  padding: .75rem 1rem;
  font-weight: 900;
  color: #103a2a;
  background: rgba(245,245,245,.95);
  border-bottom: 1px solid rgba(230,230,230,.85);
}

.page .entry-content .flow-page .price-table th,
.page .entry-content .flow-page .price-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(235,235,235,.95);
  vertical-align: top;
  line-height: 1.85;
  color: #2f3b34;
  font-size: 1rem;
}

.page .entry-content .flow-page .price-table thead th {
  background: rgba(249,250,251,.98);
  font-weight: 900;
  color: #103a2a;
}

.page .entry-content .flow-page .price-table tbody tr:nth-child(even) td,
.page .entry-content .flow-page .price-table tbody tr:nth-child(even) th {
  background: rgba(250,250,250,.95);
}

.page .entry-content .flow-page .price-table img {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
  margin: .25rem auto;
  box-shadow: none;
}

/* 料金注記 */
.page .entry-content .flow-page .price-note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(16,185,129,.08);
  border-left: 4px solid rgba(16,185,129,.45);
  border-radius: .75rem;
  color: #0f2f23;
  line-height: 1.85;
  font-size: 1rem;
}

.page .entry-content .flow-page .price-note br,
.page .entry-content .flow-page .boric-step__note br,
.page .entry-content .flow-page table br {
  display: block !important;
  content: "";
  margin-top: .25rem;
}

/* 下部リンク（ボタン） - PC表示 */
body.page .entry-content .flow-page section#another-link {
  margin: 2.25rem 0 3rem !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: .9rem !important;
  padding: 0 !important;
}

body.page .entry-content .flow-page section#another-link a.button {
  display: block !important;
  text-align: center !important;
  padding: .95rem 1rem !important;
  border-radius: 9999px !important;
  background: rgba(16,185,129,.12) !important;
  border: 1px solid rgba(16,185,129,.24) !important;
  color: #0f2f23 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  width: auto !important;
  margin: 0 !important;
}

body.page .entry-content .flow-page section#another-link a.button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 22px rgba(0,0,0,.08) !important;
  background: rgba(16,185,129,.16) !important;
}

/* 画像ギャラリー（3列グリッド） */
.page .entry-content .flow-page .image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.page .entry-content .flow-page .image-gallery__item {
  overflow: hidden;
  border-radius: .75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.page .entry-content .flow-page .image-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.page .entry-content .flow-page .image-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  box-shadow: none;
}

/* 症状リスト */
.page .entry-content .flow-page .symptom-box {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(255,235,59,.1);
  border: 1px solid rgba(255,193,7,.3);
  border-radius: .75rem;
}

.page .entry-content .flow-page .symptom-box__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f57c00;
  margin: 0 0 1rem;
}

.page .entry-content .flow-page .symptom-box__list {
  margin: 0;
  padding-left: 1.5rem;
  list-style: none;
}

.page .entry-content .flow-page .symptom-box__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .5rem;
  color: #5d4037;
  line-height: 1.75;
}

.page .entry-content .flow-page .symptom-box__list li:before {
  content: "⚠";
  position: absolute;
  left: 0;
  color: #ff9800;
  font-weight: bold;
}

/* 説明ボックス */
.page .entry-content .flow-page .info-box {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(230,230,230,.75);
  border-radius: .75rem;
  line-height: 1.95;
}

.page .entry-content .flow-page .info-box p {
  margin: 0 0 1rem;
  color: #2f3b34;
}

.page .entry-content .flow-page .info-box p:last-child {
  margin-bottom: 0;
}

/* イラスト画像 */
.page .entry-content .flow-page .illust-image {
  text-align: center;
  margin: 2rem 0;
}

.page .entry-content .flow-page .illust-image img {
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: .75rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

/* スマホ最適化 */
@media (max-width: 768px) {
  body.page .main {
    padding: 0 !important;
  }

  body.page .entry-content .flow-page {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.page .entry-content .flow-page .boric-section,
  body.page .entry-content .flow-page .price-section,
  body.page .entry-content .flow-page .boric-price-section {
    padding: 1.25rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
  }

  body.page .entry-content .flow-page h3 {
    font-size: 1.35rem !important;
    padding: .85rem 1rem !important;
    margin: 0 0 1.25rem !important;
  }

  body.page .entry-content .flow-page section#another-link {
    grid-template-columns: 1fr !important;
    gap: .5rem !important;
    padding: 0 1rem !important;
    margin: 1.5rem 0 2rem !important;
  }

  body.page .entry-content .flow-page section#another-link a.button {
    width: 100% !important;
    padding: .85rem 1rem !important;
  }

  .page .entry-content .flow-page .boric-step__media {
    flex-basis: 60px;
  }

  .page .entry-content .flow-page .boric-step__media img {
    width: 60px;
    height: 60px;
  }

  .page .entry-content .flow-page .boric-step {
    padding: 1rem;
    gap: 1rem;
  }

  .page .entry-content .flow-page .boric-step__body {
    font-size: .95rem;
  }

  .page .entry-content .flow-page .boric-steps {
    gap: 1.25rem;
  }

  .page .entry-content .flow-page .boric-step-arrow {
    font-size: 2rem;
    height: 1.5rem;
  }

  .page .entry-content .flow-page .price-table-wrap {
    margin: 1rem -1rem;
  }

  .page .entry-content .flow-page .price-table {
    min-width: 700px;
    font-size: .9rem;
  }

  .page .entry-content .flow-page .price-table th,
  .page .entry-content .flow-page .price-table td {
    padding: .75rem .65rem;
    font-size: .9rem;
  }

  .page .entry-content .flow-page .image-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }

  .page .entry-content .flow-page .illust-image img {
    max-width: 100%;
  }

  .page .entry-content .flow-page .symptom-box,
  .page .entry-content .flow-page .info-box {
    padding: 1rem;
    font-size: .95rem;
  }
}

/* =========================================
   ヤマトシロアリページ用スタイル
   ========================================= */
.page .entry-content .flow-page .yamato-section {
  margin: 2rem 0;
}

.page .entry-content .flow-page .yamato-section h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 900;
  letter-spacing: .02em;
  color: #0f2f23;
  margin: 2.4rem 0 1rem;
  padding-left: .95rem;
  border-left: 6px solid rgba(16,185,129,.75);
}

.page .entry-content .flow-page .yamato-section p {
  font-size: 1.02rem;
  line-height: 1.95;
  color: #2f3b34;
  margin: .75rem 0;
}

.page .entry-content .flow-page .yamato-section p + p {
  margin-top: .85rem;
}

/* ヤマトシロアリプロフィール（画像と本文） */
.page .entry-content .flow-page .yamato-profile-section {
  margin: 2rem 0;
}

.page .entry-content .flow-page .yamato-profile {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(230,230,230,.65);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

.page .entry-content .flow-page .yamato-profile__image {
  flex: 0 0 350px;
}

.page .entry-content .flow-page .yamato-profile__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,.06);
}

.page .entry-content .flow-page .yamato-profile__body {
  flex: 1;
}

.page .entry-content .flow-page .yamato-profile__body h4 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f2f23;
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid rgba(16,185,129,.50);
}

.page .entry-content .flow-page .yamato-profile__body p {
  font-size: 1rem;
  line-height: 1.85;
  color: #2f3b34;
  margin: 0;
}

/* ギャラリーグリッド */
.page .entry-content .flow-page .yamato-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 100%;
  justify-items: center;
}

.page .entry-content .flow-page .yamato-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: .95rem;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.page .entry-content .flow-page .yamato-gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

/* ギャラリーカラムバリエーション */
.page .entry-content .flow-page .yamato-gallery--cols-4 {
  grid-template-columns: repeat(4, 1fr);
  margin: 2rem auto;
  width: 100%;
  max-width: 100%;
}

.page .entry-content .flow-page .yamato-gallery--cols-3 {
  grid-template-columns: repeat(3, 1fr);
  margin: 2rem auto;
  width: 100%;
  max-width: 100%;
}

/* タブレット対応（768px以上1024px未満） */
@media (min-width: 768px) and (max-width: 1024px) {
  .page .entry-content .flow-page .yamato-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .page .entry-content .flow-page .yamato-gallery--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .page .entry-content .flow-page .yamato-profile {
    flex-direction: column;
  }

  .page .entry-content .flow-page .yamato-profile__image {
    flex: none;
    width: 100%;
  }
}

/* モバイル対応（768px以下） */
@media (max-width: 767px) {
  .page .entry-content .flow-page .yamato-section {
    margin: 1.5rem 0;
  }

  .page .entry-content .flow-page .yamato-section h3 {
    margin: 1.8rem 0 0.8rem;
    font-size: 1.25rem;
  }

  .page .entry-content .flow-page .yamato-section p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .page .entry-content .flow-page .yamato-profile {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .page .entry-content .flow-page .yamato-profile__image {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .page .entry-content .flow-page .yamato-profile__body h4 {
    font-size: 1.1rem;
  }

  .page .entry-content .flow-page .yamato-profile__body p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .page .entry-content .flow-page .yamato-gallery {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin: 1.5rem 0;
  }

  .page .entry-content .flow-page .yamato-gallery img {
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
  }

  .page .entry-content .flow-page .yamato-gallery--cols-4 {
    grid-template-columns: 1fr;
  }

  .page .entry-content .flow-page .yamato-gallery--cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ライトボックス効果（画像クリックで拡大）
   - yamato-gallery内のimg
   - yamato-profile__image内のimg
   - image-gallery__item内のimg
   - illust-image内のimg
   ======================================== */

/* 対象画像の基本スタイル */
.page .entry-content .flow-page .yamato-gallery img,
.page .entry-content .flow-page .yamato-profile__image img,
.page .entry-content .flow-page .image-gallery__item img,
.page .entry-content .flow-page .illust-image img {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時の軽い拡大効果 */
.page .entry-content .flow-page .yamato-gallery img:hover,
.page .entry-content .flow-page .yamato-profile__image img:hover,
.page .entry-content .flow-page .image-gallery__item img:hover,
.page .entry-content .flow-page .illust-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* クリック（フォーカス）時の全画面拡大 */
.page .entry-content .flow-page .yamato-gallery img:focus,
.page .entry-content .flow-page .yamato-profile__image img:focus,
.page .entry-content .flow-page .image-gallery__item img:focus,
.page .entry-content .flow-page .illust-image img:focus {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  z-index: 9999;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,0.9);
  outline: none;
  object-fit: contain;
  border-radius: 4px;
}