/*
Theme Name: 七宝堂 — Arkhe Child
Description: 七宝堂テストサイト用初版。静的トップページと共通ヘッダー・フッター。
Author: 七宝堂
Template: arkhe
Version: 0.4.2
Requires at least: 6.8
Requires PHP: 8.0
Text Domain: shichihoudou-arkhe
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* ==========================================================================
   目次
   1. 共通の色・書体（変数）
   2. サイト共通：リンク・ボタン・ヘッダー・フッター
   3. トップページ（.sh7-home）
   4. 本文共通（.sh7-content）：見出し・表・ボタン・強調・部品
   5. ページの枠：通常の固定ページ／個人レッスン
   6. 七宝堂について（.sh7-about-*）
   7. ブログ（.sh7-blog-view）
   8. お問い合わせフォーム（Contact Form 7）

   ブレークポイント（画面幅）
   1150px以下：PC小　／　1000px以下：タブレット（メニューが縦並び）
   640px以下：スマホ　／　560px以下：スマホの本文余白
   ========================================================================== */


/* ==========================================================================
   1. 共通の色・書体（変数）
   色を変えるときは、まずここを変更します。
   ========================================================================== */
.sh7-site {
  --sh7-cream: #faf7ec;        /* 薄いクリーム：タイトル帯・枠の背景 */
  --sh7-ink: #303c35;          /* 文字の基本色 */
  --sh7-muted: #64695d;        /* 補足の文字色 */
  --sh7-yellow: #edca57;       /* 黄色：ボタン・番号の丸 */
  --sh7-green: #c2ce8c;        /* 黄緑：H2の下線 */
  --sh7-line: #d9ddcd;         /* 罫線 */
  --sh7-hover: #f2bd68;        /* ボタン・リンクに触れたとき */
  --sh7-hover-strong: #eeb04b; /* 黄色ボタンに触れたとき */
  --sh7-outline: #7c8975;      /* 枠線ボタンの線 */
  --sh7-rule: #63745d;         /* H3の下線・フォーカス枠 */
  --sh7-space: 56px;           /* 本文セクションの上下余白 */
  --sh7-serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sh7-heading-font: "秀英にじみ丸ゴシック B", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4", "Yu Gothic", Meiryo, sans-serif;
}

/* 追従ヘッダーがWordPressの管理バーに隠れないための余白 */
body.sh7-site { overflow-x: clip; --sh7-admin-offset: 0px; }
body.sh7-site.admin-bar { --sh7-admin-offset: 32px; }
@media (max-width: 782px) { body.sh7-site.admin-bar { --sh7-admin-offset: 46px; } }
@media (max-width: 600px) { body.sh7-site.admin-bar { --sh7-admin-offset: 0px; } }

/* ページ内リンクで飛んだとき、見出しがヘッダーに隠れないようにする */
.sh7-site :where(main, [id^="sh7-"]) { scroll-margin-top: 140px; }


/* ==========================================================================
   2. サイト共通：リンク・ボタン・ヘッダー・フッター
   ========================================================================== */
.sh7-header, .sh7-footer, .sh7-home {
  color: var(--sh7-ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.9;
  letter-spacing: .045em;
}
.sh7-shell { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.sh7-header a, .sh7-footer a, .sh7-home a { color: inherit; text-decoration: none; }
.sh7-header a:hover, .sh7-footer a:hover, .sh7-home a:hover { text-decoration: underline; text-underline-offset: 6px; }
.sh7-site :where(a, button):focus-visible { outline: 3px solid #536b37; outline-offset: 5px; }

/* 黄色のボタン（ヘッダーの予約ボタン・トップの主要ボタン） */
.sh7-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 30px;
  min-height: 56px; padding: 14px 27px;
  border: 0; border-radius: 28px; box-shadow: none;
  background: var(--sh7-yellow); color: var(--sh7-ink) !important;
  font-size: 14px; line-height: 1.5;
  transition: background .18s;
}
.sh7-button:hover, .sh7-button:focus-visible { background: var(--sh7-hover-strong); }
.sh7-button:hover { text-decoration: none !important; }
.sh7-button-small { min-height: 44px; padding: 12px 17px; font-size: 12px; gap: 12px; }

/* 文字リンク（トップでは枠線ボタンとして表示：3章） */
.sh7-link { display: inline-flex; gap: 20px; font-size: 13px; border-bottom: 1px solid #919781; padding: 8px 0; line-height: 1.7; }
.sh7-unset { font-size: 12px; color: var(--sh7-muted); display: inline-block; } /* リンク先が未設定のとき */

/* ヘッダー：背景は透明で、白い角丸のバーだけが本文の上に浮いている形。画面上部に追従
   --sh7-header-h はヘッダーの高さ。その分だけ本文を下にずらし、本文の背景がヘッダーの裏まで続くようにする */
.sh7-site { --sh7-header-h: 88px; }
.sh7-header {
  position: sticky; top: var(--sh7-admin-offset); z-index: 1000; flex-shrink: 0;
  padding-block: 10px; background: transparent;
  margin-bottom: calc(-1 * var(--sh7-header-h));
  pointer-events: none; /* バーの外側（透明な部分）は下の本文をクリックできるようにする */
}
.sh7-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 68px;
  padding-inline: 28px 12px; background: #fff; border-radius: 999px; box-shadow: 0 4px 18px #303c3514;
  pointer-events: auto; transition: background .25s, box-shadow .25s;
}
.sh7-header .sh7-brand { transition: opacity .25s, visibility .25s; }
/* 本文の最初の要素を、ヘッダーの高さ分だけ下げる */
.sh7-landing .sh7-hero-stage { padding-top: var(--sh7-header-h); }
body.sh7-site #breadcrumb { padding-top: calc(var(--sh7-header-h) + 14px); }
.sh7-header [hidden] { display: none !important; }

/* ロゴ（ヘッダー・フッター共通） */
.sh7-brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 0; line-height: 0; }
.sh7-logo-image { display: block; width: 84px; height: 56px; max-width: 100%; object-fit: contain; }

/* メニュー */
.sh7-navigation { display: flex; gap: 24px; align-items: center; font-size: 12px; }
.sh7-menu, .sh7-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; }
.sh7-menu li { position: relative; margin: 0; list-style: none; }
.sh7-menu .sh7-link { border: 0; padding: 10px 0; gap: 0; }
.sh7-menu .sh7-link span { display: none; }
.sh7-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 14px;
  list-style: none; background: #fff; border: 1px solid var(--sh7-line); box-shadow: 0 10px 25px #303c3510;
}
.sh7-menu .sub-menu .sub-menu { left: 100%; top: 0; }
.sh7-menu li:hover > .sub-menu, .sh7-menu li:focus-within > .sub-menu { display: block; }
.sh7-menu .sub-menu a { display: block; padding: 8px; }

/* 現在のページと上位メニューをオレンジにする（ページ内リンクは対象外）
   aria-current：テーマ標準メニュー　current-menu-*：「外観→メニュー」で作ったメニュー */
.sh7-header .sh7-menu a[aria-current="page"],
.sh7-header .sh7-menu .current-menu-item > a:not([href*="#"]),
.sh7-header .sh7-menu .current-menu-ancestor > a:not([href*="#"]),
body.single-post .sh7-header .sh7-menu .current_page_parent > a:not([href*="#"]) { color: #d96500; }

/* スマホ・タブレット用のメニューボタン（三本線。開くと×に変わる） */
.sh7-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 8px; background: #819650; color: #fff; cursor: pointer;
}
.sh7-toggle:hover { background: #6d8241; }
.sh7-toggle-bars { position: relative; display: block; width: 18px; height: 14px; }
.sh7-toggle-bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s, top .2s; }
.sh7-toggle-bars i:nth-child(1) { top: 0; }
.sh7-toggle-bars i:nth-child(2) { top: 6px; }
.sh7-toggle-bars i:nth-child(3) { top: 12px; }
.sh7-toggle[aria-expanded="true"] .sh7-toggle-bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.sh7-toggle[aria-expanded="true"] .sh7-toggle-bars i:nth-child(2) { opacity: 0; }
.sh7-toggle[aria-expanded="true"] .sh7-toggle-bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.sh7-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* 読み上げ用 */

/* 本文へのスキップリンク */
.sh7-skip { position: absolute; left: 20px; top: -150px; background: white; color: #303c35; padding: 14px; z-index: 99999; }
.sh7-skip:focus { top: 10px; }

/* フッター：小さいロゴの右側にコピーとメニュー */
.sh7-footer { background: #fff; padding: 28px 0 20px; }
.sh7-footer-top { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; margin-bottom: 0; }
.sh7-footer .sh7-logo-image { width: 100.8px; height: 67.2px; }
.sh7-footer-copy { min-width: 0; text-align: left; }
.sh7-footer .sh7-footer-copy > p {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-size: 19px; font-weight: 400; line-height: 1.5; text-align: left; margin: 0 0 6px; padding: 0;
}
.sh7-footer-copy > nav, .sh7-footer-copy > nav > ul { margin: 0; padding: 0; text-align: left; }
.sh7-footer :is(.sh7-menu, .sh7-footer-menu) { flex-wrap: wrap; font-size: 12px; }
.sh7-footer-copy :is(.sh7-footer-menu, .sh7-menu) { justify-content: flex-start; gap: 4px 24px; }
/* フッター右端のSNSアイコン（リンク先・画像は「外観 → カスタマイズ → 七宝堂：SNSリンク」） */
.sh7-footer-top:has(.sh7-footer-sns) { grid-template-columns: auto minmax(0, 1fr) auto; }
.sh7-footer-sns { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.sh7-footer-sns a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 50%; }
.sh7-footer-sns img { display: block; width: 32px; height: 32px; object-fit: contain; }
.sh7-footer .sh7-footer-sns a:is(:hover, :focus-visible) { background: var(--sh7-hover); text-decoration: none; }
.sh7-footer-sns-text { padding: 0 10px; font-size: 12px; }
.sh7-footer .sh7-footer-sns a:has(.sh7-footer-sns-text) { border: 1px solid var(--sh7-outline); border-radius: 22px; height: 36px; }
.sh7-footer-widgets { margin-top: 35px; display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.sh7-footer-bottom { border-top: 1px solid var(--sh7-line); margin-top: 24px; padding-top: 16px; display: flex; justify-content: space-between; font-size: 10px; }

@media (min-width: 1001px) {
  .sh7-navigation { display: flex !important; }
  .sh7-toggle { display: none !important; }
}
@media (max-width: 1150px) {
  .sh7-shell { width: calc(100% - 64px); }
  .sh7-navigation { gap: 16px; }
  .sh7-menu { gap: 15px; }
}
@media (max-width: 1000px) {
  .sh7-site { --sh7-header-h: 76px; }
  .sh7-header-inner { flex-wrap: wrap; min-height: 56px; padding: 4px 20px; border-radius: 28px; } /* 開いたメニューも収まる角丸の箱。左右の余白はロゴ側とボタン側で同じ */
  .sh7-header .sh7-logo-image { width: 72px; height: 48px; }
  /* スクロール中（navigation.js が is-compact を付ける）：白いバーとロゴを消し、メニューボタンだけ残す */
  .sh7-header.is-compact .sh7-header-inner { background: transparent; box-shadow: none; pointer-events: none; }
  .sh7-header.is-compact .sh7-brand { opacity: 0; visibility: hidden; }
  .sh7-header.is-compact .sh7-toggle { pointer-events: auto; box-shadow: 0 4px 12px #303c3540; }
  .sh7-footer .sh7-logo-image { width: 86.4px; height: 57.6px; }
  /* メニューを縦並びにし、長いときはメニュー内でスクロール */
  .sh7-navigation {
    width: 100%; display: block; padding: 12px 0 20px;
    max-height: calc(100vh - 100px - var(--sh7-admin-offset));
    max-height: calc(100dvh - 100px - var(--sh7-admin-offset));
    overflow-y: auto; overscroll-behavior: contain;
  }
  .sh7-navigation .sh7-menu { display: block; }
  .sh7-navigation .sh7-menu > li { border-top: 1px solid var(--sh7-line); }
  .sh7-navigation .sh7-menu a { display: block; padding: 12px 0; }
  .sh7-navigation .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 20px; background: transparent; }
  .sh7-navigation .sh7-button { margin-top: 15px; }
}
@media (max-width: 640px) {
  .sh7-shell { width: calc(100% - 40px); }
  .sh7-header-inner { gap: 12px; padding-inline: 16px; }
  .sh7-header .sh7-logo-image { width: 64px; height: 43px; }
  .sh7-button { max-width: 100%; }
  .sh7-footer-top { gap: 16px; align-items: start; }
  .sh7-footer .sh7-logo-image { width: 76.8px; height: 51.2px; }
  .sh7-footer-copy :is(.sh7-footer-menu, .sh7-menu) { gap: 4px 16px; }
  .sh7-footer-top:has(.sh7-footer-sns) { grid-template-columns: auto minmax(0, 1fr); }
  .sh7-footer-sns { grid-column: 2; margin-left: -10px; }  /* スマホではメニューの下に並べる */
  .sh7-footer-widgets { grid-template-columns: 1fr; }
  .sh7-footer-bottom { gap: 15px; }
}


/* ==========================================================================
   3. トップページ（.sh7-home）
   front-page.php が出力する部分です。
   ========================================================================== */
.sh7-landing #content { margin: 0; padding: 0; background: var(--sh7-cream); }
.sh7-landing #content > .l-content__body { max-width: none; width: 100%; padding: 0; display: block; margin: 0; }

/* 文字の基本 */
.sh7-home h1, .sh7-home h2, .sh7-home h3, .sh7-home p, .sh7-home figure { margin: 0; padding: 0; }
.sh7-home h2 { font-family: var(--sh7-serif); font-weight: 500; letter-spacing: .07em; }
.sh7-home h2 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.65; }
.sh7-home p { font-size: 14px; }
.sh7-home .sh7-eyebrow { font-family: Arial, sans-serif; font-size: 10px; font-weight: 500; letter-spacing: .18em; line-height: 1.6; }

/* 見出しの下の細い線 */
.sh7-home h2::after { content: ""; display: block; width: 48px; border-bottom: 1px solid var(--sh7-rule); margin: 14px 0 0; }
.sh7-shortcut h2::after, .sh7-contact h2::after { margin-inline: auto; }

/* トップ用の枠線ボタン（.sh7-link） */
.sh7-home .sh7-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 44px; max-width: 100%; padding: 10px 18px;
  border: 1px solid var(--sh7-outline); border-radius: 24px; background: transparent;
  line-height: 1.5; text-decoration: none !important;
}
.sh7-home a.sh7-link:is(:hover, :focus-visible) { background: var(--sh7-hover); border-color: #ab762d; }

/* 丸い矢印ボタン（カードの下の →） */
.sh7-card-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  min-width: 50px; min-height: 50px; padding: 4px;
  font-size: 11px; line-height: 1.7; text-align: center;
}
.sh7-card-link > span {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--sh7-outline); border-radius: 50%; background: transparent; color: #344638;
  font: 20px/1 Arial, sans-serif;
  transition: background .15s, border-color .15s;
}
.sh7-card-link:hover { text-decoration: none !important; }
.sh7-card-link:hover > span, .sh7-card-link:focus-visible > span { background: var(--sh7-hover); border-color: #ab762d; }

/* 絵文字アイコン（functions.php の sh7_icon） */
.sh7-icon { display: block; width: 61px; height: 61px; flex-shrink: 0; color: #526344; }


/* --- ファーストビュー --- */
.sh7-hero-stage { position: relative; isolation: isolate; overflow: hidden; }
.sh7-hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 90px 72px; align-items: center;
  padding-block: 75px; min-height: 620px;
}
.sh7-hero-copy { grid-column: 2; grid-row: 1; min-width: 0; }
.sh7-home .sh7-draft { font-size: 10px; margin: 18px 0 14px; color: #62674b; border: 1px solid var(--sh7-line); padding: 2px 8px; width: fit-content; }
.sh7-home .sh7-hero-title { font-size: 14px; font-weight: 400; line-height: 1.6; letter-spacing: .12em; color: var(--sh7-muted); } /* 何の教室かを示すH1：見た目は控えめな見出し上の一文 */
.sh7-home .sh7-catch { /* キャッチコピー：一番大きく読ませる文字。書体は見出しと同じ丸ゴシック */
  font-family: var(--sh7-heading-font); font-weight: 500; letter-spacing: .07em;
  font-size: clamp(31px, 3.35vw, 46px); line-height: 1.7; margin: 14px 0 24px;
  container-type: inline-size; /* 行の中で改行させず、欄の幅に合わせて文字を縮める */
}
/* 1行ずつ（カスタマイズ画面で改行した単位）：途中で折り返さず、欄に収まる大きさまで自動で縮小。目安は1行12文字程度 */
.sh7-catch-line { display: block; white-space: nowrap; font-size: min(1em, 7.1cqi); }
.sh7-home .sh7-lead { max-width: 460px; line-height: 2.25; }
.sh7-actions { margin-top: 30px; }
.sh7-home .sh7-hero-note { font-size: 11px; margin-top: 28px; letter-spacing: .2em; color: var(--sh7-muted); }

/* 講師の写真（左） */
.sh7-portrait { position: relative; isolation: isolate; grid-column: 1; grid-row: 1; width: 100%; max-width: 500px; min-width: 0; justify-self: center; }
.sh7-photo {
  position: relative; z-index: 1; display: block;
  width: 100%; height: auto; max-height: 480px; object-fit: contain; object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 92%, transparent 100%);
}
.sh7-portrait figcaption { font-size: 12px; text-align: center; margin-top: 12px; }
.sh7-portrait figcaption span { font: 9px Arial, sans-serif; letter-spacing: .15em; margin-right: 14px; }

/* 背景の丸（画面端から一部が見える） */
.sh7-hero-pattern { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sh7-hero-pattern i { position: absolute; display: block; border-radius: 50%; }
.sh7-hero-pattern i:nth-child(1) { width: 230px; height: 230px; left: -150px; top: 28px; background: #efcf60; }
.sh7-hero-pattern i:nth-child(2) { width: 90px; height: 90px; left: 30%; top: -48px; background: #b7ca91; }
.sh7-hero-pattern i:nth-child(3) { width: 200px; height: 200px; right: -105px; top: -60px; background: #94c6ce; }
.sh7-hero-pattern i:nth-child(4) { width: 140px; height: 140px; right: -76px; bottom: 18px; background: #edc95a; }
.sh7-hero-pattern i:nth-child(5) { width: 104px; height: 104px; right: 12px; top: 43%; background: radial-gradient(circle, #d98573 1.6px, transparent 2px) 0 0 / 13px 13px; opacity: .65; }
.sh7-hero-pattern i:nth-child(6) { width: 70px; height: 70px; left: 22px; bottom: 34px; background: radial-gradient(circle, #849b64 1.4px, transparent 1.8px) 0 0 / 11px 11px; opacity: .5; }


/* --- お知らせバナー（ファーストビューの直下。設定は「七宝堂：お知らせバナー」） --- */
.sh7-banner { margin-top: 32px; }
.sh7-banner a { display: block; border-radius: 9px; transition: opacity .2s; }
.sh7-banner a:hover { opacity: .85; }
.sh7-banner img { display: block; width: 100%; height: auto; border-radius: 9px; }

/* --- 4つの案内カード --- */
.sh7-shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; padding-block: 24px 0; margin-bottom: 44px; }
.sh7-shortcut {
  display: flex; flex-direction: column; align-items: center; min-width: 0;
  padding: 30px 18px 24px; text-align: center;
  background: #fffdf7; border: 1px solid #d8d9cd; border-radius: 9px;
}
/* カードごとのアイコン背景色・線の色 */
.sh7-shortcut:nth-child(1) { --sh7-icon-bg: #f2d25e; --sh7-icon-color: #907721; }
.sh7-shortcut:nth-child(2) { --sh7-icon-bg: #bbce94; --sh7-icon-color: #344638; }
.sh7-shortcut:nth-child(3) { --sh7-icon-bg: #efa18d; --sh7-icon-color: #ad6656; }
.sh7-shortcut:nth-child(4) { --sh7-icon-bg: #9eced6; --sh7-icon-color: #49848d; }
.sh7-shortcut .sh7-icon { width: 88px; height: 88px; padding: 18px; margin: 0 auto 21px; border-radius: 50%; background: var(--sh7-icon-bg); color: var(--sh7-icon-color); }
.sh7-shortcut h2 { font-family: inherit; font-size: 17px; font-weight: 600; letter-spacing: .035em; line-height: 1.7; }
.sh7-shortcut p { font-size: 12px; margin-top: 12px; margin-bottom: 22px; line-height: 1.9; min-height: 2em; }
.sh7-shortcut .sh7-card-link { margin-top: auto; }


/* --- 受講生の声（2件の引用） --- */
.sh7-voices { padding-block: 0 56px; }
.sh7-voices h2 { font-family: inherit; font-size: 21px; font-weight: 600; margin-top: 8px; }
.sh7-voices-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.sh7-home .sh7-voice { position: relative; margin: 0; padding: 30px 28px 22px 64px; background: #fff; border: 1px solid #d8d9cd; border-radius: 9px; }
.sh7-voice::before { content: "“"; position: absolute; left: 22px; top: 8px; font: 56px/1 Georgia, serif; color: var(--sh7-yellow); }
.sh7-voice blockquote { margin: 0; padding: 0; border: 0; background: none; }
.sh7-home .sh7-voice blockquote p { font-size: 15px; line-height: 1.9; }
.sh7-voice figcaption { margin-top: 10px; font-size: 12px; color: var(--sh7-muted); text-align: left; }
.sh7-voices-more { margin-top: 22px; text-align: right; }

/* --- レッスン会場（全幅の黄緑の帯） --- */
.sh7-venues { background: #edf1dd; }
.sh7-venue-grid { display: grid; grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr)); gap: 0; align-items: stretch; padding: 44px 28px; }
.sh7-venue-intro { padding: 5px 25px 0 5px; }
.sh7-venue-intro h2 { font-family: inherit; font-size: 24px; font-weight: 600; margin: 12px 0 18px; }
.sh7-venue-intro p { font-size: 12px; line-height: 2; }
.sh7-venue { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 8px 18px; text-align: center; border-left: 1px solid #cbd5b6; }
.sh7-venue:nth-child(2) { --sh7-icon-bg: #f2d25e; --sh7-icon-color: #897329; }
.sh7-venue:nth-child(3) { --sh7-icon-bg: #b9cb91; --sh7-icon-color: #344638; }
.sh7-venue:nth-child(4) { --sh7-icon-bg: #eeb19a; --sh7-icon-color: #a66250; }
.sh7-venue .sh7-icon { width: 90px; height: 90px; padding: 17px; margin: 0 auto 20px; border-radius: 50%; background: var(--sh7-icon-bg); color: var(--sh7-icon-color); }
.sh7-venue h3 { font-size: 17px; font-weight: 600; }
.sh7-venue .sh7-card-link { margin-top: auto; }


/* --- 講座・ブログの2枚 --- */
.sh7-features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-block: 72px 45px; }
.sh7-feature { display: flex; gap: 25px; align-items: center; justify-content: space-between; padding: 36px; }
.sh7-feature-blue { background: #e4eff0; }
.sh7-feature-pink { background: #f4e8df; }
.sh7-feature h2 { font-family: inherit; font-size: 21px; font-weight: 600; line-height: 1.6; margin-block: 12px; }
.sh7-feature p { font-size: 12px; }
.sh7-feature .sh7-link { font-size: 12px; margin-top: 15px; }
.sh7-feature .sh7-icon { width: 100px; height: 100px; color: #58675c; }


/* --- 新着情報（4列） --- */
.sh7-news { padding-block: 15px 75px; }
.sh7-news-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.sh7-news-heading h2 { font-family: inherit; font-size: 21px; font-weight: 600; margin: 0; }
.sh7-news-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.sh7-news-list article { border-left: 1px solid var(--sh7-line); padding: 0 23px; }
.sh7-news-list article:first-child { border-left: 0; padding-left: 0; }
.sh7-news-list article a { display: grid; grid-template-columns: 1fr 14px; gap: 8px; align-items: center; padding: 0; }
.sh7-news-list time { grid-column: 1 / -1; font-size: 11px; color: var(--sh7-muted); }
.sh7-news-list h3 { font-size: 12px; font-weight: 400; line-height: 1.9; overflow-wrap: anywhere; }
.sh7-news-list .sh7-empty { grid-column: 1 / -1; }
.sh7-empty { padding: 30px 0; border-block: 1px solid var(--sh7-line); color: var(--sh7-muted); }

/* トップの固定ページ本文（管理画面で入力した内容） */
.sh7-page-content { padding-bottom: 70px; }


/* --- お問い合わせの帯（ページ下部） --- */
.sh7-contact { position: relative; isolation: isolate; overflow: hidden; padding-block: 65px; background: #f7f2db; text-align: center; }
.sh7-contact::before, .sh7-contact::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; }
.sh7-contact::before { width: 340px; height: 340px; left: -135px; bottom: -160px; background: #efcf60; }
.sh7-contact::after { width: 175px; height: 175px; right: -65px; top: 16px; background: #ed9987; }
.sh7-contact-pattern { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sh7-contact-pattern i { display: block; position: absolute; border-radius: 50%; }
.sh7-contact-pattern i:nth-child(1) { width: 112px; height: 112px; right: 85px; top: 24px; background: #b7ca91; opacity: .8; }
.sh7-contact-pattern i:nth-child(2) { width: 120px; height: 120px; right: 90px; bottom: 15px; background: radial-gradient(circle, #db8b79 1.6px, transparent 2px) 0 0 / 14px 14px; opacity: .7; }
.sh7-contact-pattern i:nth-child(3) { width: 78px; height: 78px; right: 70px; bottom: -8px; background: #94c6ce; opacity: .85; }
.sh7-contact-pattern::before { content: ""; display: block; position: absolute; width: 160px; height: 160px; left: 115px; bottom: -75px; border-radius: 50%; background: #b7ca91; opacity: .85; }
.sh7-contact .sh7-shell { position: relative; z-index: 1; }
.sh7-contact h2 { font-family: inherit; font-size: 25px; font-weight: 600; line-height: 1.7; margin: 20px 0 30px; }
.sh7-contact h2 br { display: none; }
.sh7-contact .sh7-button { min-width: 270px; }
.sh7-contact p:last-child { font-size: 11px; margin-top: 20px; }


/* --- トップページ：タブレット（1000px以下） --- */
@media (max-width: 1000px) {
  .sh7-hero { gap: 45px 38px; min-height: 0; }
  .sh7-hero-pattern i:nth-child(1) { left: -185px; }
  .sh7-hero-pattern i:nth-child(3) { right: -145px; }
  .sh7-hero-pattern i:nth-child(5) { width: 65px; height: 65px; right: -25px; }
  .sh7-hero-pattern i:nth-child(6) { left: -28px; }
  .sh7-shortcuts { gap: 14px; margin-bottom: 34px; }
  .sh7-shortcut { padding: 26px 12px 20px; }
  .sh7-shortcut h2 { font-size: 15px; }
  .sh7-venue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 30px 24px; row-gap: 28px; }
  .sh7-venue-intro { grid-column: 1 / -1; border-bottom: 1px solid #cbd5b6; padding: 0 0 24px; }
  .sh7-venue:nth-child(2) { border-left: 0; }
  .sh7-feature { padding: 28px; gap: 15px; }
  .sh7-feature h2 { font-size: 18px; }
  .sh7-feature .sh7-icon { width: 60px; height: 60px; }
  .sh7-contact::before { width: 280px; height: 280px; left: -165px; bottom: -145px; }
  .sh7-contact::after { right: -125px; }
  .sh7-contact-pattern i:nth-child(1) { right: -30px; }
  .sh7-contact-pattern i:nth-child(2) { right: -45px; }
  .sh7-contact-pattern i:nth-child(3) { right: -15px; }
  .sh7-contact-pattern::before { width: 125px; height: 125px; left: 55px; bottom: -65px; }
}

/* --- トップページ：スマホ（640px以下） --- */
@media (max-width: 640px) {
  .sh7-home h2::after { width: 36px; margin-top: 10px; }

  /* ファーストビュー：写真の右に教室名、その下にコピー・導入文・ボタンを全幅で */
  .sh7-hero { grid-template-rows: auto auto auto auto; }
  .sh7-hero-copy { display: contents; }
  .sh7-hero .sh7-portrait { grid-row: 1; }
  .sh7-hero .sh7-hero-title { grid-column: 2; grid-row: 1; align-self: center; }
  .sh7-hero .sh7-catch { grid-column: 1 / -1; grid-row: 2; margin-top: 18px; }
  .sh7-home .sh7-hero .sh7-lead { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
  .sh7-hero .sh7-actions { grid-column: 1 / -1; grid-row: 4; }
  .sh7-hero { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 0 12px; padding-block: 30px 28px; }
  .sh7-hero .sh7-portrait { width: 100%; max-width: none; margin: 0 !important; align-self: center; }
  .sh7-hero .sh7-photo { max-height: 245px; }
  .sh7-hero .sh7-portrait figcaption { font-size: 10px; line-height: 1.6; margin-top: 6px; letter-spacing: .02em; }
  .sh7-hero .sh7-portrait figcaption span { display: block; font-size: 8px; margin: 0 0 2px; }
  .sh7-hero .sh7-eyebrow { font-size: 8px; letter-spacing: .08em; overflow-wrap: anywhere; }
  .sh7-hero .sh7-draft { font-size: 9px; margin: 8px 0 6px; padding: 2px 5px; line-height: 1.6; max-width: 100%; }
  .sh7-home .sh7-hero-title { font-size: 13px; letter-spacing: .04em; line-height: 1.7; }
  .sh7-home .sh7-hero .sh7-catch { font-size: clamp(20px, 6.6vw, 28px); line-height: 1.55; letter-spacing: .02em; margin: 8px 0 10px; }
  .sh7-home .sh7-hero .sh7-lead { max-width: 100%; font-size: 12px; line-height: 1.85; letter-spacing: .025em; }
  .sh7-home .sh7-hero-note { display: none; }
  .sh7-hero .sh7-actions { margin-top: 16px; }
  .sh7-hero .sh7-button { width: 100%; min-height: 44px; padding: 10px 12px; gap: 8px; font-size: 12px; line-height: 1.5; letter-spacing: 0; }
  .sh7-hero .sh7-button span { flex-shrink: 0; }
  .sh7-hero-pattern i:nth-child(1) { width: 120px; height: 120px; left: -95px; top: 130px; }
  .sh7-hero-pattern i:nth-child(2) { width: 60px; height: 60px; left: 15%; top: -43px; }
  .sh7-hero-pattern i:nth-child(3) { width: 100px; height: 100px; right: -64px; top: -48px; }
  .sh7-hero-pattern i:nth-child(4) { width: 85px; height: 85px; right: -60px; bottom: 10px; }
  .sh7-hero-pattern i:nth-child(5) { width: 62px; height: 62px; top: auto; bottom: 32px; right: -20px; }
  .sh7-hero-pattern i:nth-child(6) { display: none; }

  .sh7-banner { margin-top: 20px; }

  /* 案内カード：2列 */
  .sh7-shortcuts { grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; padding-top: 20px; margin-bottom: 28px; }
  .sh7-shortcut { padding: 20px 10px 14px; }
  .sh7-shortcut .sh7-icon { width: 64px; height: 64px; padding: 13px; margin-bottom: 14px; }
  .sh7-shortcut h2 { font-size: 14px; line-height: 1.6; }
  .sh7-shortcut p { font-size: 11px; min-height: 0; margin-top: 8px; margin-bottom: 6px; line-height: 1.7; }
  .sh7-card-link { font-size: 10px; }
  .sh7-shortcut .sh7-card-link { margin-top: 0; min-height: 48px; min-width: 48px; padding: 3px; }

  /* 受講生の声：1列 */
  .sh7-voices { padding-bottom: 40px; }
  .sh7-voices-list { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
  .sh7-home .sh7-voice { padding: 22px 18px 16px 52px; }
  .sh7-voice::before { left: 16px; font-size: 44px; }
  .sh7-home .sh7-voice blockquote p { font-size: 14px; }

  /* 会場：1列 */
  .sh7-venue-grid { grid-template-columns: 1fr; padding: 28px 22px; row-gap: 0; }
  .sh7-venue-intro { border: 0; padding: 0 0 24px; }
  .sh7-venue { border-left: 0; border-top: 1px solid #cbd5b6 !important; padding: 28px 0; }
  .sh7-venue:last-child { padding-bottom: 0; }
  .sh7-venue .sh7-icon { width: 82px; height: 82px; padding: 15px; }

  /* 講座・ブログ：1列 */
  .sh7-features { grid-template-columns: 1fr; gap: 18px; padding-block: 48px 30px; }
  .sh7-feature .sh7-icon { width: 72px; height: 72px; }

  /* 新着情報：1列 */
  .sh7-news { padding-block: 5px 45px; }
  .sh7-news-list { grid-template-columns: 1fr; }
  .sh7-news-list article, .sh7-news-list article:first-child { padding: 18px 0; border: 0; border-top: 1px solid var(--sh7-line); }
  .sh7-news-list h3 { font-size: 13px; }

  /* お問い合わせの帯 */
  .sh7-contact { padding-block: 48px; }
  .sh7-contact h2 { font-size: 23px; }
  .sh7-contact h2 br { display: block; }
  .sh7-contact::before { width: 220px; height: 220px; left: -155px; bottom: -120px; }
  .sh7-contact::after { width: 140px; height: 140px; right: -112px; top: 0; }
  .sh7-contact-pattern i:nth-child(1) { width: 70px; height: 70px; right: -40px; top: 75px; }
  .sh7-contact-pattern i:nth-child(2) { width: 74px; height: 74px; right: -36px; bottom: 16px; }
  .sh7-contact-pattern i:nth-child(3) { width: 58px; height: 58px; right: -28px; bottom: -12px; }
  .sh7-contact-pattern::before { width: 95px; height: 95px; left: 22px; bottom: -55px; }
}
@media (max-width: 360px) {
  .sh7-hero { width: calc(100% - 28px); grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); column-gap: 10px; }
  .sh7-hero .sh7-button { padding-inline: 9px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .sh7-button, .sh7-card-link > span, .sh7-toggle-bars i, .sh7-header-inner, .sh7-header .sh7-brand { transition: none; }
}


/* ==========================================================================
   4. 本文共通（.sh7-content）
   固定ページとブログ記事の本文に、functions.php が自動で付けるクラスです。
   ここにある部品（.sh7-entry-* など）は、どの固定ページの本文でも使えます。
   使い方は README の「本文で使えるクラス」を参照してください。
   ========================================================================== */
.sh7-content {
  color: var(--sh7-ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color-scheme: light;
}
.sh7-content p { margin: 0 0 16px; }
.sh7-content a { color: inherit; text-underline-offset: 4px; }
.sh7-content ul { padding-left: 1.25em; margin: 0; }
.sh7-content li + li { margin-top: 8px; }

/* --- 見出し：丸ゴシック・下に短い線（個人レッスン冒頭の大きなコピーは線なし） --- */
.sh7-content :is(h1, h2, h3) { font-family: var(--sh7-heading-font); color: var(--sh7-ink); }
.sh7-content :is(h2, h3) { line-height: 1.6; font-weight: 700; padding: 0; border: 0; background: transparent; box-shadow: none; }
.sh7-content h2 { font-size: 25px; margin: 0 0 24px; letter-spacing: .04em; }
.sh7-content h3 { font-size: 18px; margin: 0 0 10px; }
.sh7-content h2:not(.sh7-entry-hero-title)::after, .sh7-content h3::after {
  content: ""; display: block; position: static; width: 48px; height: 0;
  border: 0; border-bottom: 3px solid var(--sh7-green); background: none; margin: 14px 0 0; transform: none;
}
.sh7-content h3::after { border-bottom-width: 1px; border-bottom-color: var(--sh7-rule); }
.sh7-content .has-text-align-center::after,
.sh7-content .sh7-entry-contact h2::after { margin-inline: auto; }  /* 中央揃えの見出しは線も中央 */

/* --- 表（料金表など） --- */
.sh7-content table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 16px 0; border: 0; }
.sh7-content :is(th, td) {
  text-align: left; vertical-align: top; padding: 14px 10px !important;
  border: 0; border-bottom: 1px solid var(--sh7-line); background: transparent; color: var(--sh7-ink); word-break: normal;
}
.sh7-content td:last-child { text-align: right; white-space: nowrap; }

/* --- ボタン --- */
/* 枠線ボタン：<a class="sh7-entry-pill"> */
.sh7-content .sh7-entry-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 20px;
  min-height: 44px; padding: 10px 22px;
  border: 1px solid var(--sh7-outline); border-radius: 40px;
  font-size: 14px; text-decoration: none;
}
/* 黄色のボタン：<a class="sh7-entry-pill sh7-entry-cta"> */
.sh7-content .sh7-entry-cta { background: var(--sh7-yellow); border: 0; padding: 14px 28px; }
.sh7-content .sh7-entry-pill:hover { background: var(--sh7-hover); }
/* WordPressのボタンブロック：通常は黄色、「輪郭」スタイルは枠線のみ */
.sh7-content .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 14px 28px;
  border: 0; border-radius: 40px; background: var(--sh7-yellow); color: var(--sh7-ink);
  font-size: 14px; text-decoration: none;
}
.sh7-content .is-style-outline .wp-block-button__link { border: 1px solid var(--sh7-outline); background: transparent; }
.sh7-content .wp-block-button__link:hover { background: var(--sh7-hover); }

/* --- 文字の強調 --- */
.sh7-content .sh7-mark {      /* 淡い黄色のマーカー */
  color: inherit;
  background: linear-gradient(transparent 62%, #f5e3a1 62%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.sh7-content .sh7-emphasis { font-weight: 700; }                 /* 太字 */
.sh7-content .sh7-note { font-size: .875em; color: #636e65; }    /* 小さめの補足 */
.sh7-content .sh7-entry-small { font-size: 13px; color: #62695f; } /* 段落ごと小さく */
.sh7-content .sh7-entry-kicker { font-size: 12px; letter-spacing: .18em; margin: 0 0 10px; color: var(--sh7-muted); } /* 見出し上の英字 */

/* --- 開閉する質問（FAQ・受講生の声）：<div class="sh7-accordion"><details>… --- */
.sh7-accordion details { border-bottom: 1px solid var(--sh7-line, #d9ddcd); padding: 17px 0; }
.sh7-accordion summary { font-weight: 700; min-height: 44px; align-content: center; cursor: pointer; }
.sh7-accordion details p { padding-top: 12px; margin: 0; }

/* --- セクション・並べ方 --- */
.sh7-content .sh7-entry-section { padding: var(--sh7-space) 0; }  /* 段落のまとまり（背景はページの色） */
.sh7-content .sh7-entry-white { background: #fff; }                   /* 白背景のセクション：通常のセクションと交互に置く */
/* 背景と同じ色で枠が見えなくならないよう、枠の色をセクションの背景に合わせて入れ替える */
.sh7-content .sh7-entry-white .sh7-entry-first { background: var(--sh7-cream); }
.sh7-content .sh7-entry-section:not(.sh7-entry-white) .sh7-entry-terms { background: #fff; }
.sh7-content .sh7-entry-intro { max-width: 650px; }                    /* 導入文の幅を狭める */
.sh7-content .sh7-entry-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; } /* ボタンの横並び */
.sh7-content .sh7-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }  /* 3列 */
.sh7-content .sh7-entry-principles { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }               /* 2列 */
.sh7-content .sh7-entry-concern h3 { margin-bottom: 18px; }

/* 番号つきの手順：<ol class="sh7-entry-steps"><li><span class="sh7-entry-num">1</span><div>…</div></li> */
.sh7-content .sh7-entry-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 24px; }
.sh7-content .sh7-entry-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; margin: 0; }
.sh7-content .sh7-entry-steps p { margin: 0; }
.sh7-content .sh7-entry-num {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--sh7-yellow); font-size: 17px; font-family: serif;
}

/* 枠で囲む */
.sh7-content .sh7-entry-first { border: 1px solid var(--sh7-line); border-radius: 12px; padding: 25px 28px; margin-bottom: 22px; background: #fff; } /* 白い角丸枠 */
.sh7-content .sh7-entry-price { font-size: 27px; font-weight: 700; white-space: nowrap; }  /* 大きな金額 */
.sh7-content .sh7-entry-terms { margin-top: 32px; padding: 25px; background: var(--sh7-cream); }  /* クリーム色の枠（規約など） */

/* 会場カード：<div class="sh7-entry-venues"><div class="sh7-entry-venue">… */
.sh7-content .sh7-entry-venues { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sh7-content .sh7-entry-venue { padding: 22px; background: #fff; border-radius: 8px; border: 1px solid var(--sh7-line); }
.sh7-content .sh7-entry-venue p:last-child { margin-bottom: 0; }

/* 写真を横3：縦2に切り抜く：<figure class="sh7-entry-room-photo"><img …></figure> */
.sh7-content .sh7-entry-room-photo { position: relative; width: 100%; height: auto; aspect-ratio: 3 / 2; margin: 18px 0 20px; padding: 0; overflow: hidden; border-radius: 6px; }
.sh7-content .sh7-entry-room-photo > img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none;
  margin: 0; padding: 0; object-fit: cover; object-position: center;
}

/* お問い合わせの案内枠：<div class="sh7-entry-contact"> */
.sh7-content .sh7-entry-contact { position: relative; overflow: hidden; text-align: center; background: #f6f2dc; padding: 55px 24px; }
.sh7-content .sh7-entry-contact::before,
.sh7-content .sh7-entry-contact::after { content: ""; position: absolute; border-radius: 50%; bottom: -55px; }
.sh7-content .sh7-entry-contact::before { width: 180px; height: 180px; left: -90px; background: #edca5780; }
.sh7-content .sh7-entry-contact::after { width: 110px; height: 110px; left: 5px; background: #b7c88b99; }
.sh7-content .sh7-entry-contact > * { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .sh7-content h2:not(.sh7-entry-hero-title)::after, .sh7-content h3::after { width: 36px; margin-top: 10px; }
}
@media (max-width: 560px) {
  .sh7-content h2 { font-size: 22px; }
  .sh7-content :is(th, td) { padding: 12px 5px !important; }
  .sh7-content :is(.sh7-entry-grid, .sh7-entry-principles, .sh7-entry-venues) { grid-template-columns: 1fr; gap: 22px; }
  .sh7-content .sh7-entry-section { padding: calc(var(--sh7-space) * .7) 0; }
  .sh7-content .sh7-entry-first { padding: 20px; }
  .sh7-content .sh7-entry-steps li { grid-template-columns: 36px 1fr; gap: 14px; }
  .sh7-content .sh7-entry-num { width: 34px; height: 34px; }
}


/* ==========================================================================
   5. ページの枠
   通常の固定ページ（.sh7-standard-page）：タイトル帯＋最大820pxの本文枠を自動で付けます。
   個人レッスン（.sh7-lesson）：本文の中で冒頭部分と幅を自前で持つ特別なページです。
   ========================================================================== */
body.page #top_title_area,
body.page .p-page__title { display: none !important; }  /* 親テーマのタイトルは使わない */

/* 親テーマの外側の幅制限・余白を外す */
body.sh7-standard-page .l-content__body,
body:has(.sh7-lesson) .l-content__body { width: 100%; max-width: none; padding-inline: 0; margin-block: 0; }
body.sh7-standard-page :is(.l-main, .l-article) { width: 100%; max-width: none; }
body:has(.sh7-lesson) .l-article { max-width: none; }

/* パンくず：タイトル帯と同じ背景・幅 */
body.sh7-standard-page #breadcrumb,
body.page:has(.sh7-lesson) #breadcrumb { background: var(--sh7-cream); color: var(--sh7-ink); margin: 0; padding: calc(var(--sh7-header-h) + 14px) 0 0; border: 0; }
body.sh7-standard-page #breadcrumb .p-breadcrumb__list,
body.page:has(.sh7-lesson) #breadcrumb .p-breadcrumb__list { width: min(calc(100% - 48px), 820px); max-width: none; padding: 0; margin: 0 auto; }

/* タイトル帯（通常ページはページ名、個人レッスンは冒頭のコピー） */
.sh7-page-heading { position: relative; overflow: hidden; background: var(--sh7-cream); color: var(--sh7-ink); padding: 64px 0 44px; }
.sh7-page-heading .sh7-page-width { position: relative; z-index: 1; }
.sh7-page-lead { margin: 0; max-width: 650px; font-size: 15px; line-height: 1.9; } /* 抜粋欄のサブタイトル */
.sh7-page-heading h1 { font-family: var(--sh7-heading-font); color: var(--sh7-ink); }
.sh7-page-heading h1,
.sh7-lesson h2.sh7-entry-hero-title {
  font-size: clamp(27px, 4.5vw, 40px); line-height: 1.6; letter-spacing: .035em; margin: 10px 0 20px; font-weight: 700;
}
.sh7-page-heading h1 { padding: 0; border: 0; background: transparent; box-shadow: none; overflow-wrap: anywhere; }
.sh7-page-heading h1::before, .sh7-page-heading h1::after { content: none; }

/* --- 通常の固定ページ --- */
.sh7-standard-page .sh7-page-width { box-sizing: border-box; width: min(calc(100% - 48px), 820px); margin-inline: auto; }
.sh7-standard-page .sh7-page-body { padding-block: 48px 64px; }
.sh7-standard-page .sh7-page-body > .c-postContent { margin-top: 0; }
.sh7-standard-page .c-postContent h2 { margin-top: 48px; margin-bottom: 24px; }
.sh7-standard-page .c-postContent h3 { margin-top: 32px; margin-bottom: 18px; }
.sh7-standard-page .c-postContent > :first-child { margin-top: 0; }
.sh7-standard-page .c-postContent :is(h2, h3, h4)[id] { scroll-margin-top: 150px; }
.sh7-standard-page .c-postContent img { max-width: 100%; height: auto; }
.sh7-standard-page .sh7-page-body :is(.alignwide, .alignfull) { width: 100%; max-width: 100%; margin-inline: 0; }  /* 全幅ブロックも本文枠内に */

/* --- 個人レッスン --- */
.sh7-lesson { background: var(--sh7-cream); }
body:has(.sh7-lesson) .c-postContent:has(.sh7-lesson) { margin-top: 0; }
.sh7-lesson .sh7-entry-wrap { width: min(100% - 48px, 820px); margin: auto; }
.sh7-lesson .sh7-entry-hero { position: relative; overflow: hidden; padding: 64px 0 44px; }
/* タイトル帯の右側の丸（通常の固定ページ・個人レッスン共通） */
.sh7-page-heading::before, .sh7-page-heading::after,
.sh7-lesson .sh7-entry-hero::before,
.sh7-lesson .sh7-entry-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.sh7-page-heading::before,
.sh7-lesson .sh7-entry-hero::before { width: 180px; height: 180px; right: -75px; top: 15px; background: #edca5755; }
.sh7-page-heading::after,
.sh7-lesson .sh7-entry-hero::after { width: 90px; height: 90px; right: 34px; top: 130px; background: #c2ce8c88; }
.sh7-lesson .sh7-entry-hero .sh7-entry-wrap { position: relative; z-index: 1; }

@media (max-width: 560px) {
  .sh7-standard-page .sh7-page-width,
  body.sh7-standard-page #breadcrumb .p-breadcrumb__list,
  body.page:has(.sh7-lesson) #breadcrumb .p-breadcrumb__list { width: calc(100% - 36px); }
  .sh7-page-heading { padding: 38px 0 30px; }
  .sh7-standard-page .sh7-page-body { padding-block: 32px 48px; }
  .sh7-lesson .sh7-entry-wrap { width: calc(100% - 36px); }
  .sh7-lesson .sh7-entry-hero { padding: 38px 0 30px; }
  /* タイトル帯の丸：スマホでは小さくして文字に重なりにくくする */
  .sh7-page-heading::before, .sh7-lesson .sh7-entry-hero::before { width: 120px; height: 120px; right: -60px; top: 10px; }
  .sh7-page-heading::after, .sh7-lesson .sh7-entry-hero::after { width: 60px; height: 60px; right: 18px; top: 92px; }
}


/* --- 404ページ（404.php） --- */
.sh7-404-body { padding-block: 48px 64px; }
.sh7-content .sh7-404-links { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sh7-content .sh7-404-links li { margin: 0; }
.sh7-content .sh7-404-links .sh7-entry-pill { width: 100%; justify-content: space-between; padding: 10px 22px; }
.sh7-content h2.sh7-404-search-title { font-size: 18px; margin-bottom: 16px; }
@media (max-width: 560px) {
  .sh7-404-body { padding-block: 32px 48px; }
  .sh7-content .sh7-404-links { grid-template-columns: 1fr; }
}


/* ==========================================================================
   6. 七宝堂について（.sh7-about-*）
   ========================================================================== */
/* 写真と講師紹介：PCは横並び、スマホは縦並び */
.sh7-about-profile { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 40px; align-items: center; margin-block: 36px 56px; }
.sh7-about-profile figure { margin: 0; }
.sh7-about-profile figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.sh7-content .sh7-about-profile h2,
.sh7-standard-page .sh7-about-profile h2 { margin-top: 0; }
.sh7-about-name { display: inline-block; font-size: 1.5em; font-weight: 700; margin-bottom: 8px; }
.sh7-about-social { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.sh7-about-social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.sh7-about-social img { width: 30px; height: 30px; object-fit: contain; margin: 0; }
.sh7-about-logo { margin: 24px 0; }
.sh7-about-logo img { display: block; width: 240px; max-width: 100%; height: auto; }
.sh7-about-logo figcaption { font-size: 12px; color: #636e65; margin-top: 8px; }
@media (max-width: 640px) {
  .sh7-about-profile { grid-template-columns: 1fr; gap: 24px; margin-block: 28px 40px; }
  .sh7-about-profile figure { width: min(100%, 260px); margin-inline: auto; }
}


/* ==========================================================================
   7. ブログ（.sh7-blog-view：記事・一覧・カテゴリーなど）
   ========================================================================== */
/* 記事の見出し前後の余白（固定ページには適用しません） */
body.single-post .c-postContent.sh7-content h2 { margin-top: 56px; margin-bottom: 24px; }
body.single-post .c-postContent.sh7-content h3 { margin-top: 36px; margin-bottom: 18px; }
body.single-post .c-postContent.sh7-content h4 { margin-top: 28px; margin-bottom: 14px; }
body.single-post .c-postContent :is(h2, h3, h4, .ez-toc-section) { scroll-margin-top: calc(var(--sh7-toc-top, 138px) + 12px); }

/* 記事冒頭の目次（Easy Table of Contents） */
body.single-post .c-postContent #ez-toc-container {
  width: 50%; max-width: 100%; margin: 32px 0; padding: 22px 24px;
  background: var(--sh7-cream); border: 1px solid var(--sh7-line); border-radius: 8px; box-shadow: none;
  color: var(--sh7-ink); font-size: 14px;
}
body.single-post .c-postContent #ez-toc-container .ez-toc-title { color: var(--sh7-ink); font-weight: 700; margin: 0 0 12px; }
body.single-post .c-postContent #ez-toc-container ul a,
body.single-post .c-postContent #ez-toc-container ul a:visited { color: var(--sh7-ink); line-height: 1.8; }
body.single-post .c-postContent #ez-toc-container ul a:hover,
body.single-post .c-postContent #ez-toc-container ul a:focus-visible { color: var(--sh7-ink); background: var(--sh7-hover); text-decoration: underline; }

/* リンクカード（Pz-LinkCard）：目次と同じ配色 */
body.single-post .c-postContent .linkcard { max-width: 100%; margin: 28px 0; }
body.single-post .c-postContent .linkcard :is(.lkc-internal-wrap, .lkc-external-wrap) { background: var(--sh7-cream); border: 1px solid var(--sh7-line); border-radius: 8px; box-shadow: none; }
body.single-post .c-postContent .linkcard .lkc-card { background: transparent; border: 0; box-shadow: none; color: var(--sh7-ink); }
body.single-post .c-postContent .linkcard .lkc-link:is(:hover, :focus-visible) .lkc-card { background: var(--sh7-hover); }

/* サイドバー：区切り線・リンクに触れたときの色 */
.sh7-blog-view #sidebar {
  --ark-color--border: var(--sh7-line);
  --ark-color--gray--hover: var(--sh7-hover);
  --ark-menulist_border: 1px solid var(--sh7-line);
  color: var(--sh7-ink);
}
.sh7-blog-view #sidebar :is(.widget_recent_entries, .widget_categories, .widget_archive, .wp-block-latest-posts, .wp-block-categories, .wp-block-archives) a:is(:hover, :focus-visible) { background: var(--sh7-hover); color: var(--sh7-ink); }

/* サイドバーの見出し（最近の投稿・カテゴリーなど）：薄い黄緑の帯 */
.sh7-blog-view #sidebar .c-widget__title {
  margin-bottom: 12px; padding: 10px 14px;
  background: #edf1dd; border-left: 4px solid var(--sh7-green);
  color: var(--sh7-ink); font-size: 16px; line-height: 1.6;
}

/* サイドバーの記事目次（functions.php が追加） */
.sh7-blog-view .sh7-blog-panel { padding: 20px; margin: 0 0 28px; background: var(--sh7-cream); border: 1px solid var(--sh7-line); border-radius: 8px; color: var(--sh7-ink); }
.sh7-blog-view .sh7-blog-panel h2 { font-size: 16px; line-height: 1.6; margin: 0 0 14px; }
.sh7-blog-view .sh7-blog-panel[hidden] { display: none; }
.sh7-blog-view .sh7-blog-toc ul { margin: 0; padding: 0; list-style: none; }
.sh7-blog-view .sh7-blog-toc ul ul { padding-left: 16px; }
.sh7-blog-view .sh7-blog-toc li { margin: 0; }
.sh7-blog-view .sh7-blog-toc a { display: block; padding: 7px 5px; color: var(--sh7-ink); font-size: 13px; line-height: 1.7; text-decoration: none; overflow-wrap: anywhere; }
.sh7-blog-view .sh7-blog-toc a:is(:hover, :focus-visible) { background: var(--sh7-hover); text-decoration: underline; }
/* 目次の現在地：薄い黄緑の背景と濃い緑の文字・左線 */
.sh7-blog-view #sh7-sidebar-toc a { border-left: 3px solid transparent; }
.sh7-blog-view #sh7-sidebar-toc a.is-active { color: #39552c; background: #edf1e2; border-left-color: #819650; font-weight: 700; }
.sh7-blog-view #sh7-sidebar-toc a:is(:hover, :focus-visible) { background: var(--sh7-hover); }

/* --- ブログ一覧：枠つきカード（左に写真、右に日付・タイトル・抜粋・「続きを読む」） --- */
body.blog .p-home > .p-page__title {   /* 「ブログ」の大見出しは画面には出さず、読み上げ用に残す */
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.sh7-blog-view .p-postList.-type-list .p-postList__item { margin-bottom: 32px; }
.sh7-blog-view .p-postList.-type-list .p-postList__link {
  position: relative; align-items: stretch; padding: 24px;
  background: #fff; border: 1px solid var(--sh7-line); border-radius: 0; transition: border-color .2s;
}
.sh7-blog-view .p-postList.-type-list .p-postList__link:hover { border-color: var(--sh7-outline); }
.sh7-blog-view .p-postList.-type-list .p-postList__thumb { width: 40%; max-width: 320px; align-self: flex-start; }
.sh7-blog-view .p-postList.-type-list .p-postList__body { position: static; display: flex; flex-direction: column; padding-left: 28px; }
.sh7-blog-view .p-postList.-type-list > .p-postList__item:hover .p-postList__body { opacity: 1; }
.sh7-blog-view .p-postList.-type-list .p-postList__meta { position: static; order: -1; margin: 0 0 6px; font-size: 13px; color: var(--sh7-muted); }
.sh7-blog-view .p-postList.-type-list .p-postList__title { font-size: 19px; line-height: 1.6; color: var(--sh7-ink); }
.sh7-blog-view .p-postList.-type-list .p-postList__excerpt { margin: 12px 0 18px; font-size: 14px; line-height: 1.9; }
/* カテゴリー：写真の左上に色付きのラベルで表示 */
.sh7-blog-view .p-postList.-type-list .p-postList__category {
  position: absolute; top: 24px; left: 24px; z-index: 2; margin: 0; padding: 3px 14px; opacity: 1; /* 親テーマの半透明を解除 */
  background: var(--sh7-hover-strong); color: var(--sh7-ink); font-size: 12px; font-weight: 700; letter-spacing: .05em; line-height: 1.7;
}
.sh7-blog-view .p-postList.-type-list .p-postList__category .c-postMetas__icon { display: none; }
/* 「続きを読む」ボタン（カード全体がリンク） */
.sh7-blog-view .p-postList.-type-list .p-postList__body::after {
  content: "続きを読む ›"; align-self: flex-end; margin-top: auto; padding: 8px 22px;
  border: 1px solid var(--sh7-outline); border-radius: 40px; font-size: 13px; line-height: 1.5; color: var(--sh7-ink);
  transition: background .2s;
}
.sh7-blog-view .p-postList.-type-list .p-postList__link:is(:hover, :focus-visible) .p-postList__body::after { background: var(--sh7-hover); }

/* 同じ段落に複数の画像：PCは最大3列（切り取らず元の比率） */
body.single-post .c-postContent .sh7-blog-image-row {
  display: grid; grid-template-columns: repeat(var(--sh7-image-columns, 3), minmax(0, 1fr));
  gap: 16px; align-items: start; margin: 28px 0;
}
body.single-post .c-postContent .sh7-blog-image-row > a { display: block; min-width: 0; margin: 0; }
body.single-post .c-postContent .sh7-blog-image-row img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; float: none; }
body.single-post .c-postContent .sh7-blog-image-row > br { display: none; }

/* PC：サイドバーの目次を追従させ、長い目次は枠内でスクロール */
@media (min-width: 1000px) {
  body.single-post.sh7-blog-view #sidebar { align-self: stretch; }
  .sh7-blog-view #sh7-sidebar-toc { position: sticky; top: var(--sh7-toc-top, 150px); margin-bottom: 0; }
  .sh7-blog-view #sh7-sidebar-toc nav { max-height: calc(100vh - var(--sh7-toc-top, 150px) - 110px); overflow-y: auto; overscroll-behavior: contain; }
}
/* タブレット・スマホ：サイドバーの目次は隠し、記事本文の目次を使う */
@media (max-width: 999px) {
  .sh7-blog-view #sh7-sidebar-toc { display: none; }
}
@media (max-width: 600px) {
  /* ブログ一覧：写真を上、文章を下に */
  .sh7-blog-view .p-postList.-type-list .p-postList__link { flex-direction: column; padding: 16px; }
  .sh7-blog-view .p-postList.-type-list .p-postList__thumb { width: 100%; max-width: none; }
  .sh7-blog-view .p-postList.-type-list .p-postList__body { padding: 14px 0 0; }
  .sh7-blog-view .p-postList.-type-list .p-postList__category { top: 16px; left: 16px; }
  .sh7-blog-view .p-postList.-type-list .p-postList__title { font-size: 17px; }
  .sh7-blog-view .p-postList.-type-list .p-postList__excerpt { font-size: 13px; }
  body.single-post .c-postContent.sh7-content h2 { margin-top: 40px; margin-bottom: 20px; }
  body.single-post .c-postContent.sh7-content h3 { margin-top: 28px; margin-bottom: 16px; }
  body.single-post .c-postContent #ez-toc-container { padding: 18px; }
  body.single-post .c-postContent .sh7-blog-image-row { grid-template-columns: 1fr; gap: 20px; }
}


/* ==========================================================================
   8. お問い合わせフォーム（Contact Form 7）
   フォームのHTMLで使っているクラス：toiawase-table / toiawase-item / toiawase-body / hissu / center
   ========================================================================== */
/* 項目名40％・入力欄60％の表 */
.sh7-content .wpcf7 .toiawase-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.sh7-content .wpcf7 .toiawase-table th.toiawase-item { width: 40%; padding: 20px 18px 20px 0; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.sh7-content .wpcf7 .toiawase-table td.toiawase-body { width: 60%; padding: 20px 0 20px 18px; text-align: left; vertical-align: top; }
.sh7-content .wpcf7 .toiawase-table td[colspan] { width: auto; padding: 24px 0; }
.sh7-content .wpcf7 .hissu { color: #b3261e; font-weight: 700; white-space: nowrap; }  /* 必須表示 */

/* 入力欄：右の列いっぱい・スマホでも入力しやすい大きさ */
.sh7-content .wpcf7 .toiawase-body .wpcf7-form-control-wrap { display: block; }
.sh7-content .wpcf7 .toiawase-body :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select) {
  box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px;
  border: 1px solid #a8b09e; border-radius: 6px; background: #fff; color: var(--sh7-ink);
  font: inherit; font-size: 16px;
}
.sh7-content .wpcf7 .toiawase-body textarea { min-height: 120px; resize: vertical; }
.sh7-content .wpcf7 .toiawase-body :is(input, textarea, select):focus-visible { outline: 2px solid var(--sh7-rule); outline-offset: 2px; }
.sh7-content .wpcf7 .toiawase-body .wpcf7-list-item { margin: 0 18px 8px 0; }
.sh7-content .wpcf7 .toiawase-body .wpcf7-list-item label { display: inline-flex; align-items: baseline; gap: 6px; padding-block: 6px; }

/* 送信ボタン：黄色のボタンと同じ見た目 */
.sh7-content .wpcf7 p.center { text-align: center; }
.sh7-content .wpcf7 .wpcf7-submit {
  display: inline-block; width: auto; max-width: 100%; min-width: 180px; min-height: 48px; padding: 14px 36px;
  border: 0; border-radius: 40px; background: var(--sh7-yellow); color: var(--sh7-ink); box-shadow: none;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.6;
  cursor: pointer; appearance: none;
}
.sh7-content .wpcf7 .wpcf7-submit:hover:not(:disabled) { background: var(--sh7-hover); }
.sh7-content .wpcf7 .wpcf7-submit:focus-visible { outline: 2px solid var(--sh7-rule); outline-offset: 3px; }
.sh7-content .wpcf7 .wpcf7-submit:disabled { opacity: .6; cursor: not-allowed; }

/* スマホ：項目名の下に入力欄 */
@media (max-width: 640px) {
  .sh7-content .wpcf7 :is(.toiawase-table, .toiawase-table tbody, .toiawase-table tr) { display: block; width: 100%; }
  .sh7-content .wpcf7 .toiawase-table th.toiawase-item { display: block; width: 100%; padding: 18px 0 8px; border-bottom: 0; }
  .sh7-content .wpcf7 .toiawase-table td.toiawase-body { display: block; width: 100%; padding: 0 0 18px; }
  .sh7-content .wpcf7 .toiawase-table td[colspan] { display: block; width: 100%; }
}
