/*
Theme Name: Apricot Animal Hospital
Theme URI: https://www.apricot-ah.jp/
Author: Apricot Animal Hospital
Description: アプリコット動物病院のオリジナルテーマ。現サイトの配色・構成を踏襲しています。
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: apricot
*/

/* ==========================================================================
   1. トークン（現サイトから実測した値）
   ========================================================================== */
:root {
  --orange:      #FF8400;   /* メインの橙。看板・見出し・アイコン */
  --orange-2:    #FF9900;   /* 補助。バナー・ホバー */
  --orange-deep: #E67902;   /* 濃いめ。リンクホバー */
  --peach:       #FDE1B9;   /* 淡い橙。枠線・帯 */
  --cream:       #FDF7EB;   /* セクション背景 */
  --cream-lt:    #FFFDF2;   /* ヘッダー背景 */
  --tan:         #C9B89C;   /* 罫線・サブ文字 */
  --ink:         #333333;   /* 本文 */
  --ink-2:       #463F38;   /* 見出しの茶 */
  --red:         #FF0000;   /* 重要なお知らせ */
  --green:       #339966;   /* 補足のお知らせ */
  --white:       #FFFFFF;

  --font: メイリオ, Meiryo, verdana, "ヒラギノ角ゴ Pro W3",
          "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;

  --wrap: 1000px;
  --radius: 8px;
}

/* ==========================================================================
   2. ベース
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 150px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   3. ヘッダー（実測：内容幅1000px / ロゴ400x90 / 右ブロック491x94）
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream-lt);
}

.header-inner {
  width: var(--wrap); max-width: 100%;
  margin-inline: auto; padding: 20px 20px 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
}

/* --- ロゴ（白い雲は画像に含まれる。背景を敷かないこと） --- */
.brand { display: block; flex: 0 1 400px; min-width: 0; line-height: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 100%; max-width: 400px; height: auto; display: block; }

/* --- 右ブロック：バッジ＋電話 --- */
.header-right {
  flex: 0 1 491px; min-width: 0;
  display: flex; align-items: flex-start; gap: 18px;
}

.badges { list-style: none; margin: 0; padding: 0; flex: 0 1 205px; min-width: 0; display: grid; gap: 5px; }
.badges li {
  display: flex; align-items: center; gap: 9px; height: 28px;
  background: var(--white); border: 1px solid var(--peach); border-radius: 4px;
  padding-inline: 7px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap;
}
.badge-icon {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: var(--orange); display: grid; place-items: center;
}
.badge-icon svg { width: 12px; height: 12px; fill: var(--white); }
.badge-icon.is-num { font-size: 8.5px; color: var(--white); font-weight: 700; letter-spacing: -.02em; }
.badges li > span:last-child { margin-inline: auto; }

.header-tel { flex: 1 1 auto; min-width: 0; }
.tel-num {
  display: flex; align-items: center; gap: 7px;
  font-size: clamp(22px, 2.7vw, 34px); color: var(--orange); line-height: 1.15; white-space: nowrap;
}
.tel-num:hover { text-decoration: none; color: var(--orange-deep); }
.tel-num svg { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* 午前・午後を必ず縦に揃える（グリッドで列を固定） */
.hours { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
.hours-label {
  flex: none; background: var(--orange); color: var(--white);
  font-size: 11px; line-height: 1.3; text-align: center;
  padding: 3px 5px; border-radius: 3px;
}
.hours-table {
  display: grid;
  grid-template-columns: auto auto auto;
  column-gap: 7px; row-gap: 1px;
  font-size: 13px; line-height: 1.5; text-align: left;
  color: var(--ink);
}
.hours-table .sep { color: var(--tan); }

/* --- グローバルナビ --- */
.nav-toggle {
  display: none;
  border: 1px solid var(--peach); background: var(--white);
  border-radius: 6px; padding: 9px 14px;
  font-family: var(--font); font-size: 13px; color: var(--ink-2); cursor: pointer;
}

.site-nav { background: var(--cream-lt); padding-bottom: 8px; }
.site-nav ul {
  list-style: none; margin: 6px auto 0; padding: 0;
  width: var(--wrap); max-width: 100%;
  display: flex;
}
.site-nav li { flex: 1 1 0; min-width: 0; border-left: 1px solid var(--peach); }
.site-nav li:last-child { border-right: 1px solid var(--peach); }
.site-nav a { display: block; padding: 8px 4px 10px; text-align: center; color: var(--ink-2); line-height: 1.3; }
.site-nav a:hover { text-decoration: none; color: var(--orange); }
.site-nav .current-page a { color: var(--orange); }
.nav-ja { display: block; font-size: 17px; }
.nav-en { display: block; font-size: 12px; color: var(--tan); margin-top: 1px; }
.nav-arrow { display: block; font-size: 9px; color: var(--tan); line-height: 1; }

/* --- プルダウン（本家と同じく、親にマウスを乗せると下に開きます） --- */
.site-nav li { position: relative; }
.site-nav li.has-sub > a,
.site-nav li.menu-item-has-children > a { padding-bottom: 18px; }

/* 親の下に出る小さな▼ */
.site-nav li.has-sub > a::after,
.site-nav li.menu-item-has-children > a::after {
  content: ""; display: block; margin: 4px auto 0;
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--tan);
}
.site-nav li.has-sub:hover > a::after,
.site-nav li.menu-item-has-children:hover > a::after { border-top-color: var(--orange); }

.site-nav .sub-menu {
  display: block; position: absolute; z-index: 120;
  top: 100%; left: -1px; min-width: 100%; width: max-content; max-width: 280px;
  margin: 0; padding: 0; list-style: none;
  background: var(--cream);
  border: 1px solid var(--peach); border-top: 2px solid var(--orange);
  box-shadow: 0 6px 14px rgba(70, 63, 56, .12);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu,
.site-nav li.is-sub-open > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav .sub-menu li {
  flex: none; border: none; border-top: 1px solid var(--peach); position: static;
}
.site-nav .sub-menu li:first-child { border-top: none; }
.site-nav .sub-menu a {
  display: block; padding: 11px 18px; text-align: left;
  font-size: 15px; color: var(--ink-2); white-space: nowrap;
}
.site-nav .sub-menu a:hover { background: var(--white); color: var(--orange); }

/* ＋印。パソコンでは隠し、スマートフォンでだけ出します */
.sub-toggle { display: none; }

/* ==========================================================================
   4. 右端固定のお問い合わせタブ（実測 130x150）
   ========================================================================== */
.side-contact { position: fixed; right: 0; top: 270px; z-index: 90; line-height: 0; }
.side-contact:hover { opacity: .85; text-decoration: none; }
.side-contact img { width: 130px; height: auto; display: block; }

/* ==========================================================================
   5. メインビジュアル（実測：1枚画像を cover で敷く。だから崩れない）
   ========================================================================== */
.hero {
  aspect-ratio: 2.578;
  background-color: var(--cream);
  background-image: url("assets/main_image.jpg");
  background-position: 50% 0;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ==========================================================================
   6. お知らせ（実測：全幅・中央揃え・行間28.8px固定）
   ※ 日付リストは本家にありません。置かないこと。
   ========================================================================== */
.notice { padding: 60px 20px 50px; text-align: center; }
.notice p { margin: 0 0 16px; line-height: 28.8px; }
.notice .gap { height: 32px; margin: 0; }

.n-red    { color: var(--red);      font-size: clamp(19px, 2.4vw, 30.4px); }
.n-red2   { color: var(--red);      font-size: clamp(18px, 2.3vw, 28.8px); }
.n-plain  { color: var(--ink);      font-size: clamp(18px, 2.5vw, 32px); }
.n-orange { color: var(--orange-2); font-size: clamp(18px, 2.4vw, 30.4px); }
.n-lime   { color: #99CC00;         font-size: clamp(24px, 3.4vw, 43.2px); }
.n-small  { color: var(--ink);      font-size: clamp(15px, 1.7vw, 20.8px); }
.n-green  { color: #008000;         font-size: clamp(15px, 1.9vw, 24px); }
.n-green2 { color: var(--green);    font-size: clamp(15px, 1.9vw, 24px); }
.n-orange-s { color: var(--orange-2); font-size: clamp(15px, 1.7vw, 20.8px); }

/* 投稿本文をここに出すとき用 */
.notice-latest p { margin: 0 0 16px; line-height: 28.8px; font-size: clamp(18px, 2.5vw, 32px); }

/* --- 診療方針（実測：bg01.png / 白80%の箱 / 見出しは濃橙#E67902の角丸 40px） --- */
.policy-section {
  background: var(--cream-lt) url("assets/bg01.jpg") 50% 0 / cover no-repeat;
  padding: 0;
}
.policy-inner {
  width: 1000px; max-width: 100%; margin-inline: auto;
  background: rgba(255, 255, 255, .8);
  padding: 40px 20px 55px; text-align: center;
}
.policy-title {
  display: inline-block; position: relative;
  margin: 0 0 34px; padding: 15px 85px 25px;
  background: var(--orange-deep); color: var(--white);
  border-radius: 5px; font-weight: 400;
  font-size: clamp(21px, 3.2vw, 40px); line-height: 1.2;
}
.policy-title::after {
  content: ""; position: absolute; left: 50%; bottom: -14px;
  transform: translateX(-50%);
  border: 15px solid transparent; border-top-color: var(--orange-deep); border-bottom: 0;
}
.policy-inner p { margin: 0 0 22px; font-size: 16px; line-height: 28.8px; }
.policy-sign { margin-top: 30px !important; }

/* ==========================================================================
   7. 特徴6枚（実測：全幅3列・1枚412px・文字20.8px・行間28.8px）
   ※ 本家は2列にならない。3列 → 1列で切り替える。
   ========================================================================== */
.circles {
  list-style: none; margin: 0 auto; padding: 0 0 32px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px 26px; width: 100%;
}
.circle-photo { margin: 0 0 8px; }
.circle-photo img { width: 100%; height: auto; display: block; }
.circles p { margin: 0; font-size: clamp(15px, 1.65vw, 20.8px); line-height: 1.42; padding-inline: 4px; }

/* ==========================================================================
   8. 診療メニュー
   ========================================================================== */
.menu-section { background: var(--cream); padding: 46px 0 54px; }
.menu-title {
  text-align: center; margin: 0 0 34px;
  font-size: clamp(23px, 3.2vw, 33px); font-weight: 400;
  color: var(--orange); letter-spacing: .06em;
}

.menu-grid {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 1240px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.menu-grid a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white);
  border: 1px solid var(--peach);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
  text-align: center; color: var(--ink);
  transition: border-color .2s, transform .2s;
}
.menu-grid a:hover {
  border-color: var(--orange); transform: translateY(-3px); text-decoration: none;
}
.menu-grid h3 {
  margin: 0 0 12px; font-size: 18px; font-weight: 400; color: var(--orange);
}
.menu-icon { display: block; margin: 0 auto 12px; width: 100px; max-width: 100%; }
.menu-icon img { width: 100%; height: auto; display: block; }
.menu-grid p { margin: 0 0 16px; font-size: 14px; line-height: 1.8; text-align: left; }
.menu-paw {
  width: 36px; height: 36px; margin: auto auto 0;
  border-radius: 50%; background: var(--orange);
  display: grid; place-items: center;
}
.menu-paw svg { width: 20px; height: 20px; fill: var(--white); }

/* --- ブログ2本のバナー（画像） --- */
.blog-banners { display: flex; justify-content: center; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.blog-banners a { line-height: 0; }
.blog-banners a:hover { opacity: .85; text-decoration: none; }
.blog-banners img { width: 240px; height: auto; display: block; }

/* ==========================================================================
   9. 固定ページ・投稿の本文
   ========================================================================== */
.page-hero {
  background: var(--cream); padding: 34px 0; text-align: center;
  border-bottom: 1px solid var(--peach);
}
.page-hero h1 {
  margin: 0; font-size: clamp(23px, 3.2vw, 31px);
  font-weight: 400; color: var(--orange); letter-spacing: .05em;
}
.page-eyebrow { margin: 0 0 4px; font-size: 12px; color: var(--tan); letter-spacing: .2em; }

.content-area { padding: 46px 0 64px; }
.content-main { max-width: 100%; margin-inline: auto; }
.entry-body > *:first-child { margin-top: 0; }

.entry-body h2 {
  font-size: clamp(21px, 3.3vw, 34px); font-weight: 700; color: var(--white);
  margin: 46px 0 22px; padding: 22px 22px 23px 66px;
  background-color: var(--orange-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 45'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.1' stroke-linejoin='round'%3E%3Cellipse cx='8' cy='18.5' rx='4.4' ry='5.9' transform='rotate(-28 8 18.5)'/%3E%3Cellipse cx='17' cy='11' rx='4.5' ry='6.2' transform='rotate(-10 17 11)'/%3E%3Cellipse cx='27' cy='11' rx='4.5' ry='6.2' transform='rotate(12 27 11)'/%3E%3Cellipse cx='35' cy='19' rx='4.1' ry='5.6' transform='rotate(32 35 19)'/%3E%3Cpath d='M19 22.6c6.5 0 12 4.8 12 10.4 0 5.2-4.3 8.6-9 8.1-2.4-.25-3.6-.25-6 0-4.7.5-9-2.9-9-8.1 0-5.6 5.5-10.4 12-10.4z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
  background-size: 38px 43px;
  border: 0; border-radius: 5px;
  line-height: 1.35;
  scroll-margin-top: 160px;
  clear: both;
}
.entry-body h3 {
  font-size: 19px; font-weight: 700; color: var(--ink-2);
  margin: 34px 0 14px; padding: 9px 14px;
  background: var(--cream); border-left: 6px solid var(--orange); border-radius: 3px;
  scroll-margin-top: 160px; clear: both;
}
.entry-body h4 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; }
.entry-body p { margin: 0 0 18px; }
.entry-body ul, .entry-body ol { margin: 0 0 20px; padding-left: 1.4em; }
.entry-body li { margin-bottom: 7px; }
.entry-body img { border-radius: 6px; margin-block: 20px; }

.entry-body blockquote {
  margin: 24px 0; padding: 16px 22px;
  background: var(--cream); border-left: 4px solid var(--orange); border-radius: 6px;
}
.entry-body blockquote p:last-child { margin-bottom: 0; }

.entry-body table {
  width: 100%; border-collapse: collapse; margin: 0 0 26px;
  font-size: 16px; background: var(--white); clear: both;
}
.entry-body th, .entry-body td {
  border: 1px solid #ccc; padding: 10px 8px;
  text-align: center; vertical-align: middle;
}
.entry-body th { background: #FFF8EC; font-weight: 700; }
/* 左そろえにしたい表（医院概要など）。本家も表ごとにそろえ方が違います */
.entry-body table.tbl-left th, .entry-body table.tbl-left td {
  text-align: left; padding: 11px 14px;
}

.entry-meta { font-size: 14px; color: var(--tan); margin: 0 0 24px; }
.entry-cat {
  display: inline-block; margin-left: 10px; padding: 2px 12px;
  background: var(--orange); color: var(--white);
  border-radius: 999px; font-size: 12px;
}

/* --- 写真ギャラリー --- */
.entry-body figure { margin: 0 0 22px; }
.entry-body figure img { width: 100%; margin: 0; border-radius: 6px; }
.entry-body figcaption { font-size: 13px; color: var(--tan); margin-top: 7px; line-height: 1.7; }
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 20px; margin: 0 0 30px;
}
.photo-grid figure { margin: 0; }
.photo-grid img { aspect-ratio: 4/3; object-fit: cover; background: var(--cream); }
.photo-grid figcaption strong {
  display: block; color: var(--ink-2); font-weight: 700; font-size: 15px; margin-bottom: 2px;
}
.portrait { float: right; width: 320px; margin: 4px 0 16px 28px; }
.portrait img { width: 100%; margin: 0; }

/* 本文の写真。本家と同じく、見出し下の写真は右に回り込ませます */
.entry-body p.img-right {
  float: right; width: 350px; max-width: 42%;
  margin: 4px 0 18px 28px;
}
.entry-body p.img-right img { width: 100%; margin: 0; }
.entry-body p.img-lead { margin: 0 0 26px; }
.entry-body p.img-lead img { width: 100%; margin: 0; }

/* --- ページ内リンク（本家の見出しリンク一覧に相当） --- */
.page-anchors {
  list-style: none; margin: 0 0 34px; padding: 18px 20px;
  background: var(--cream); border: 0; border-radius: 4px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 0;
}
.page-anchors li {
  margin: 0; padding: 3px 22px 3px 20px; border: 0;
  position: relative; line-height: 1.8;
}
.page-anchors li::before {
  content: ""; position: absolute; left: 5px; top: 50%; margin-top: -5px;
  width: 0; height: 0;
  border-left: 7px solid var(--orange);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.page-anchors a { color: var(--ink); font-size: 16px; }
.page-anchors a:hover { color: var(--orange); text-decoration: underline; }

/* --- 注意書き・特典などの囲み --- */
.callout {
  margin: 0 0 26px; padding: 18px 22px;
  background: var(--cream); border: 1px solid var(--peach); border-radius: 6px;
}
.callout > *:last-child { margin-bottom: 0; }
.callout ul { margin-bottom: 12px; }
.callout-red { background: #FFF4F4; border-color: #F3C9C9; }
.callout-red strong { color: var(--red); }

.lead-warn { color: var(--red); margin: 0 0 14px; }
.source-note { font-size: 13px; color: var(--tan); }

/* --- お問い合わせフォーム --- */
.apricot-form { margin: 0 0 10px; }
.apricot-form p { margin: 0 0 18px; }
.apricot-form label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--ink-2); }
.apricot-form .req {
  display: inline-block; margin-left: 8px; padding: 1px 9px;
  background: var(--orange); color: var(--white);
  border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: 2px;
}
.apricot-form input[type="text"],
.apricot-form input[type="email"],
.apricot-form input[type="tel"],
.apricot-form textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--tan); border-radius: 6px;
  font-family: var(--font); font-size: 16px; color: var(--ink);
  background: var(--white); box-sizing: border-box;
}
.apricot-form input:focus, .apricot-form textarea:focus {
  outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange);
}
.apricot-note { font-size: 13px; color: var(--tan); margin-top: -8px; }
.apricot-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apricot-submit { text-align: center; margin-top: 28px; }
.apricot-form button {
  min-width: 260px; padding: 14px 30px;
  background: var(--orange); color: var(--white);
  border: none; border-radius: 999px;
  font-family: var(--font); font-size: 17px; cursor: pointer;
  transition: background .2s;
}
.apricot-form button:hover { background: var(--orange-deep); }

/* --- 症例集へのリンク一覧 --- */
.case-lead { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.case-list { list-style: none; margin: 0 0 30px; padding: 0; }
.case-list li { margin: 0; border-bottom: 1px dotted var(--tan); }
.case-list li:first-child { border-top: 1px dotted var(--tan); }
.case-list a {
  display: block; padding: 9px 4px 9px 20px; font-size: 15px; color: var(--ink-2);
  position: relative;
}
.case-list a::before {
  content: ""; position: absolute; left: 4px; top: 50%; margin-top: -3px;
  width: 0; height: 0; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
  border-left: 5px solid var(--orange);
}
.case-list a:hover { background: var(--cream); color: var(--orange); text-decoration: none; }

/* --- 地図 --- */
.map-embed { position: relative; padding-bottom: 50%; height: 0; margin: 0 0 26px; border-radius: 6px; overflow: hidden; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- ブログ（本家と同じ2段組：本文＋サイドバー） --- */
.blog-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px;
  max-width: var(--wrap); margin-inline: auto;
}
.blog-main { min-width: 0; }

.blog-entry { margin: 0 0 52px; }
.blog-date { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
.blog-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px; padding: 12px 18px;
  background: var(--orange); border-radius: 4px;
  font-size: clamp(19px, 2.4vw, 26px); font-weight: 400; line-height: 1.35;
  border: none;
}
.blog-title a { color: var(--white); }
.blog-title a:hover { color: var(--white); text-decoration: underline; }
.blog-title { color: var(--white); }
.blog-paw { flex: none; width: 30px; height: 30px; display: grid; place-items: center; }
.blog-paw svg { width: 26px; height: 26px; fill: var(--white); }
.blog-author { font-size: 13px; color: var(--tan); margin: 18px 0 0; }
.blog-entry .entry-body img { max-width: 100%; height: auto; }

/* サイドバー */
.blog-side { min-width: 0; }
.side-block { margin: 0 0 34px; }
.side-block h2 {
  margin: 0 0 12px; padding: 0 0 8px;
  font-size: 15px; letter-spacing: .18em; color: var(--orange); font-weight: 400;
  border-bottom: 2px solid var(--peach); text-align: center;
  border-left: none;
}
.side-block ul { list-style: none; margin: 0; padding: 0; }
.side-block li { margin: 0 0 8px; padding-left: 14px; position: relative; font-size: 14px; line-height: 1.6; }
.side-block li::before {
  content: ""; position: absolute; left: 2px; top: .6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--orange);
}
.side-block a { color: var(--ink); }
.side-block a:hover { color: var(--orange); }

.side-search { display: flex; flex-direction: column; gap: 8px; }
.side-search input {
  width: 100%; padding: 8px 10px; box-sizing: border-box;
  border: 1px solid var(--tan); border-radius: 4px;
  font-family: var(--font); font-size: 14px;
}
.side-search button {
  align-self: center; padding: 6px 22px;
  background: var(--orange); color: var(--white);
  border: none; border-radius: 4px;
  font-family: var(--font); font-size: 14px; cursor: pointer;
}
.side-search button:hover { background: var(--orange-deep); }

/* --- 記事一覧 --- */
.archive-list { list-style: none; margin: 0 0 36px; padding: 0; }
.archive-list li { border-bottom: 1px dotted var(--tan); }
.archive-list a {
  display: grid; grid-template-columns: 108px 1fr; gap: 4px 18px;
  padding: 18px 8px; color: var(--ink);
}
.archive-list a:hover { background: var(--cream); text-decoration: none; }
.archive-date { font-size: 14px; color: var(--tan); }
.archive-excerpt { grid-column: 2; font-size: 14px; color: var(--tan); margin: 4px 0 0; }

.pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding-inline: 12px;
  border: 1px solid var(--peach); border-radius: 6px; background: var(--white); color: var(--ink);
}
.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
  background: var(--orange); color: var(--white); border-color: var(--orange); text-decoration: none;
}
.post-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--peach); font-size: 14px;
}

/* ==========================================================================
   10. 電話CTA・フッター
   ========================================================================== */
.site-footer { background: var(--white); border-top: 3px solid var(--peach); padding: 40px 0 22px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr 1.8fr; gap: 34px; margin-bottom: 26px; }
.footer-grid h2 {
  margin: 0 0 12px; padding-bottom: 7px;
  font-size: 12px; letter-spacing: .2em; color: var(--orange);
  border-bottom: 1px solid var(--peach); font-weight: 700;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink); }
.footer-grid address { font-style: normal; line-height: 2; color: var(--ink); }
.footer-links { text-align: center; margin: 0 0 14px; font-size: 13px; }
.footer-links a { color: var(--ink-2); margin-inline: 12px; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--peach); padding-top: 16px;
  font-size: 12px; color: var(--tan); text-align: center; line-height: 1.9;
}
.footer-bottom a { color: var(--tan); margin-inline: 8px; }

/* ==========================================================================
   11. レスポンシブ
   ========================================================================== */
/* 画面を拡大・縮小しても横にはみ出さないようにする共通の指定 */
body { overflow-wrap: break-word; }
.entry-body table { max-width: 100%; }
.entry-body pre { overflow-x: auto; }

@media (max-width: 1040px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); padding-inline: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  /* ヘッダー：ロゴと電話が窮屈にならないように少しずつ縮めます */
  .header-inner { padding-inline: 14px; }
  .brand { flex: 0 1 340px; }
  .brand-logo { max-width: 340px; }
  .header-right { flex: 1 1 auto; gap: 12px; }

  /* メニュー：文字を少し小さくして6項目が1行に収まるようにします */
  .site-nav ul { padding-inline: 14px; }
  .nav-ja { font-size: 15px; }
  .nav-en { font-size: 11px; }
  .site-nav a { padding-inline: 2px; }

  /* 本文とサイドバーの2段組：サイドバーを少し細くします */
  .blog-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 26px; }
}

@media (max-width: 900px) {
  /* バッジ（年中無休など）は電話番号を優先して隠します */
  .badges { display: none; }
  .header-right { justify-content: flex-end; }
  .nav-ja { font-size: 13.5px; }
  .nav-en { display: none; }
  .site-nav li.has-sub > a,
  .site-nav li.menu-item-has-children > a { padding-bottom: 14px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 90px; }

  .header-inner { align-items: center; padding: 10px 14px; gap: 10px; }
  .brand { flex: 1 1 auto; }
  .brand-logo { width: 100%; max-width: 230px; }

  .header-right { flex: 0 0 auto; gap: 10px; }
  .badges { display: none; }
  .tel-num { font-size: 21px; }
  .tel-num svg { width: 17px; height: 17px; }
  .hours { display: none; }

  .nav-toggle { display: block; }
  .site-nav { display: none; padding-bottom: 0; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav li { flex: none; border-left: none; border-top: 1px solid var(--peach); }
  .site-nav li:last-child { border-right: none; border-bottom: 1px solid var(--peach); }
  .site-nav a { padding: 13px 20px; text-align: left; }
  .site-nav li.has-sub > a, .site-nav li.menu-item-has-children > a { padding-bottom: 13px; }
  .site-nav li.has-sub > a::after,
  .site-nav li.menu-item-has-children > a::after { display: none; }

  /* プルダウンはアコーディオンに切り替え */
  .site-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; max-width: none; width: auto;
    border: none; border-top: 1px solid var(--peach); box-shadow: none;
    background: var(--cream);
  }
  .site-nav li.is-sub-open > .sub-menu { display: block; }
  .site-nav .sub-menu a { padding: 12px 20px 12px 34px; font-size: 15px; white-space: normal; }

  .sub-toggle {
    display: block; position: absolute; top: 0; right: 0;
    width: 52px; height: 48px; padding: 0;
    background: transparent; border: none; border-left: 1px solid var(--peach);
    cursor: pointer;
  }
  .sub-toggle::before, .sub-toggle::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 14px; height: 2px; margin: -1px 0 0 -7px;
    background: var(--orange); transition: transform .2s;
  }
  .sub-toggle::after { transform: rotate(90deg); }
  .site-nav li.is-sub-open > .sub-toggle::after { transform: rotate(0); }
  .nav-en { display: inline; margin-left: 10px; }
  .nav-arrow { display: none; }

  .side-contact { top: auto; bottom: 8px; right: 8px; }
  .side-contact img { width: 74px; }

  .hero {
    /* aspect-ratio を打ち消さないと、padding-bottom と組み合わさって
       横幅が画面より広くなり、横スクロールが出ます */
    aspect-ratio: auto;
    width: 100%;
    height: 0; padding-bottom: 53.7%;
    background-image: url("assets/main_image_sp.jpg");
    background-size: contain;
  }

  .notice { padding: 32px 0 30px; }
  .notice-list a, .archive-list a { grid-template-columns: 1fr; gap: 2px; padding: 14px 8px; }
  .archive-excerpt { grid-column: 1; }

  .menu-grid { grid-template-columns: 1fr; }
  .circles { grid-template-columns: 1fr; gap: 26px; }
  .circle-photo { max-width: 340px; margin-inline: auto; }
  .circles p { max-width: 400px; margin-inline: auto; }
  .notice { padding: 34px 16px 30px; }
  .notice p { line-height: 1.5; }
  .policy-inner { padding: 26px 16px 34px; }
  .policy-title { padding: 12px 24px 18px; }

  .entry-body table { display: block; overflow-x: auto; white-space: nowrap; }
  .portrait { float: none; width: 100%; max-width: 250px; margin: 0 0 18px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .blog-layout { grid-template-columns: 1fr; gap: 34px; }
  .blog-side { border-top: 1px solid var(--peach); padding-top: 26px; }
  .page-anchors { grid-template-columns: 1fr; }
  .entry-body p.img-right, .portrait {
    float: none; width: 100%; max-width: 100%; margin: 0 0 18px;
  }
  .entry-body table { font-size: 15px; }
  .entry-body th, .entry-body td { padding: 9px 6px; }
  .map-embed { padding-bottom: 75%; }
  .post-nav { flex-direction: column; gap: 10px; }

  body { padding-bottom: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* お知らせ欄に出す投稿本文（管理画面で書いた内容がここに入ります） */
.notice-latest { font-size: clamp(18px, 2.5vw, 32px); line-height: 1.55; }
.notice-latest p { margin: 0 0 34px; }
.notice-latest h2, .notice-latest h3 {
  font-weight: 400; margin: 0 0 30px; border: none; padding: 0;
  background: none; color: var(--ink-2);
  font-size: clamp(21px, 3vw, 40px);
}
.notice-latest img { margin-inline: auto; }

/* お知らせは本家と同じく全幅（左右に余白だけ） */
.notice-inner { width: 100%; }
