/*!
Theme Name: むすび屋本舗（賢威8子テーマ）
Template: keni80_wp-woKPknAhbkKiyUUG
Theme URI: https://rider-store.jp/keni/
Author: 株式会社ウェブライダー
Author URI: https://web-rider.jp/
Description: 賢威8.0 スタンダード版テンプレートです。
Version: 8.0.1.9
Text Domain: keni
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-menu, custom-logo, translation-ready, fixed-header
 *
 * むすび屋本舗（賢威8カスタマイズ） v1.1.0 / Depost Inc.
*/

/* 賢威8の標準スタイルと併用するカスタマイズ用スタイル */

/* =========================================================================
   1. デザイントークン
   ========================================================================= */
:root {
  --font-body: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --font-heading: 'Noto Serif JP', 'Hiragino Mincho ProN', YuMincho, serif;
  --font-label: 'Noto Sans JP', sans-serif;

  /* 背景色トークン */
  --bg-50: 0.985 0.005 95;
  --bg-100: 0.97 0.008 93;
  --bg-200: 0.95 0.01 90;
  --bg-300: 0.92 0.015 88;
  --bg-400: 0.88 0.02 85;

  /* プライマリカラー（信頼・安心の深緑/グリーン系統） */
  --primary-50: 0.97 0.03 145;
  --primary-100: 0.93 0.05 145;
  --primary-200: 0.85 0.08 145;
  --primary-500: 0.55 0.14 145;
  --primary-600: 0.48 0.13 145;
  --primary-700: 0.40 0.11 145;
  --primary-900: 0.26 0.07 145;

  /* アクセントカラー（行動を促すオレンジ/ゴールド系統） */
  --accent-50: 0.97 0.04 80;
  --accent-500: 0.65 0.18 73;
  --accent-600: 0.57 0.16 70;
  --accent-700: 0.48 0.13 68;

  /* セカンダリカラー */
  --secondary-500: 0.60 0.05 68;
  --secondary-900: 0.28 0.03 60;

  /* テキスト・コントラストトークン（可読性/WCAG適合） */
  --fg-300: 0.75 0.005 270;
  --fg-400: 0.65 0.006 270;
  --fg-500: 0.55 0.007 270;
  --fg-600: 0.45 0.007 270;
  --fg-700: 0.35 0.008 270;
  --fg-800: 0.25 0.008 270;
  --fg-900: 0.18 0.008 270;
  --fg-950: 0.12 0.008 270;

  --mus-canvas: #f6f7f2;
  --mus-surface: #fff;
  --mus-panel: #e8f1ea;
  --mus-line: #d5e2d7;
  --mus-ink: #1d3027;
  --mus-text: #34463d;
  --mus-muted: #45584d;
  --mus-green: #20593e;
  --mus-green-hover: #174631;
  --mus-cta: #9a4515;
  --mus-cta-hover: #78350f;
  --mus-body-size: max(16px, 1rem);
  --mus-small-size: max(14px, 0.875rem);
  --mus-gutter: clamp(14px, 3vw, 28px);
  --mus-radius: 14px;
  --mus-shadow: 0 3px 16px rgb(31 55 40 / 7%);
  --mus-bar-space: max(128px, 8rem);
  --header-h: 64px;
}

/* =========================================================================
   2. ベース & リセット
   ========================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html:has(.m-header:not([hidden])) {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

html:has(.m-fixedbar:not([hidden])) {
  scroll-padding-bottom: calc(var(--mus-bar-space) + env(safe-area-inset-bottom, 0px));
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--mus-body-size);
  line-height: 1.8;
  color: var(--mus-text);
  background-color: var(--mus-canvas);
}

body:has(.m-fixedbar:not([hidden])):not(:has(.m-footer)) {
  padding-block-end: calc(var(--mus-bar-space) + env(safe-area-inset-bottom, 0px));
}

/* 見出しの基本書式 */
:where(.m-main, .m-footer) :is(h1, h2, h3, h4, h5, h6) {
  margin-block-start: 0;
  font-family: var(--font-heading);
  line-height: 1.5;
  color: var(--mus-ink);
  overflow-wrap: anywhere;
}

:where(.m-main, .m-header, .m-footer) img {
  max-width: 100%;
  height: auto;
}

:where(.m-header, .m-footer, .m-fixedbar) a {
  color: inherit;
  text-decoration: none;
}

:where(.m-header, .m-footer, .m-fixedbar) :is(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(.m-burger, .m-nav__toggle) {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--mus-green-hover);
  outline-offset: 3px;
}

:where(.m-footer, .m-fixedbar) :focus-visible {
  outline-color: #fff;
}

/* SEO・アクセシビリティ用スキップリンク */
.m-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  border-radius: 6px;
  background: oklch(var(--primary-700));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.m-skip-link:focus {
  left: 16px;
  top: 16px;
}

/* =========================================================================
   3. ヘッダー
   ========================================================================= */
.m-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: var(--mus-surface);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.m-header.is-scrolled {
  background: var(--mus-surface);
  border-bottom: 1px solid var(--mus-line);
  box-shadow: var(--mus-shadow);
}

.m-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.5vw, 16px);
  width: 100%;
  height: var(--header-h);
  padding: 0 16px;
  margin: 0 auto;
  max-width: 1280px;
}

/* ブランド */
.m-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}

.m-brand__mark,
.m-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.m-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(var(--primary-100));
  color: oklch(var(--primary-700));
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  border: 1px solid oklch(var(--primary-200));
}

.m-brand__logo {
  object-fit: contain;
}

.m-brand__name {
  font-family: var(--font-heading);
  font-size: max(16px, 1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: oklch(var(--fg-950));
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* ナビゲーション */
.m-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.m-nav-area {
  min-width: 0;
}

.m-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.m-nav > li {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  border-radius: 6px;
}

.m-nav > li > a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 8px clamp(6px, 0.75vw, 12px);
  border-radius: 6px;
  font-size: var(--mus-small-size);
  font-weight: 600;
  line-height: 1.4;
  color: var(--mus-ink);
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.m-nav > li.menu-item-has-children > a {
  padding-right: 4px;
}

.m-nav > li > a:hover,
.m-nav > li.current-menu-item > a {
  color: oklch(var(--primary-700));
  background: oklch(var(--primary-50));
}

.m-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 4px;
  color: oklch(var(--fg-500));
}

.m-nav__toggle i {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.m-nav > li.is-open .m-nav__toggle i {
  transform: rotate(180deg);
}

/* サブメニュー */
.m-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  display: none;
  width: min(260px, calc(100vw - 32px));
  max-height: calc(100vh - var(--header-h) - 16px);
  max-height: calc(100dvh - var(--header-h) - 16px);
  overflow: auto;
  margin: 0;
  padding: 6px 0;
  border: 1px solid oklch(var(--bg-200));
  border-radius: 8px;
  background: oklch(var(--bg-50));
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.m-nav > li:nth-last-child(-n + 2) > .sub-menu {
  right: 0;
  left: auto;
}

.m-nav .sub-menu .sub-menu {
  position: static;
  width: auto;
  max-height: none;
  margin-inline: 12px;
  border: 0;
  border-inline-start: 2px solid var(--mus-line);
  border-radius: 0;
  box-shadow: none;
}

.m-nav li.is-open > .sub-menu {
  display: block;
}

.m-nav .sub-menu li > a {
  display: block;
  min-height: 44px;
  padding: 10px 18px;
  font-size: var(--mus-small-size);
  font-weight: 500;
  color: oklch(var(--fg-700));
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.m-nav .sub-menu li > a:hover {
  color: oklch(var(--primary-700));
  background: oklch(var(--primary-50));
}

/* ヘッダー右側アクション */
.m-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.m-tel-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--mus-small-size);
  font-weight: 700;
  color: oklch(var(--primary-700));
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
}

.m-tel-link:hover {
  color: oklch(var(--primary-600));
  background: oklch(var(--primary-50));
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  border: 0;
  border-radius: 9999px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.m-btn--cta {
  padding: 10px clamp(12px, 1.6vw, 22px);
  font-size: var(--mus-small-size);
  background: var(--mus-cta);
  color: #fff;
}

.m-btn--cta:hover {
  background: var(--mus-cta-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.m-header__note {
  display: none;
  margin: 0;
}

/* ハンバーガー */
.m-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  color: oklch(var(--fg-900));
}

.m-burger i {
  font-size: 22px;
}

.m-overlay {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

/* =========================================================================
   4. メインコンテンツ（SEO構造・可読性強化）
   ========================================================================= */
.m-main {
  padding-top: var(--header-h);
}

.m-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-inline: var(--mus-gutter);
}

.m-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 60px) 0 clamp(48px, 7vw, 96px);
}

.m-page__title {
  margin: 0 0 28px;
  font-size: clamp(24px, 3.1vw, 32px);
  font-weight: 800;
  line-height: 1.4;
  border-bottom: 2px solid oklch(var(--primary-600));
  padding-bottom: 16px;
}

/* 記事本文エリアのSEO構造化デザイン */
.m-entry__body {
  font-size: var(--mus-body-size);
  line-height: 1.85;
  color: var(--mus-text);
  overflow-wrap: anywhere;
}

.m-entry__body p {
  margin: 0 0 1.35em;
}

.m-entry__body a:not(.m-btn):not(.wp-element-button) {
  color: var(--mus-green);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.m-entry__body h2 {
  position: relative;
  margin: clamp(28px, 4.4vw, 52px) 0 18px;
  padding: 12px clamp(12px, 2vw, 18px);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  background: var(--mus-panel);
  border-inline-start: 4px solid var(--mus-green);
  border-radius: 0 6px 6px 0;
}

.m-entry__body h3 {
  margin: 30px 0 14px;
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 700;
  border-bottom: 2px solid oklch(var(--bg-200));
  padding-bottom: 8px;
}

.m-entry__body h4 {
  margin: 24px 0 12px;
  font-size: max(17px, 1.0625rem);
  font-weight: 700;
}

.m-entry__body ul,
.m-entry__body ol {
  margin: 0 0 1.8em;
  padding-left: 1.5em;
}

.m-entry__body ul {
  list-style: disc;
}

.m-entry__body ol {
  list-style: decimal;
}

.m-entry__body li {
  margin-bottom: 0.5em;
}

.m-entry__body strong {
  font-weight: 700;
  color: oklch(var(--fg-950));
  background: linear-gradient(transparent 65%, oklch(var(--accent-50) / 0.8) 65%);
}

.m-entry__body blockquote {
  margin: 28px 0;
  padding: clamp(12px, 2vw, 24px);
  border-left: 4px solid oklch(var(--primary-500));
  background: oklch(var(--bg-100));
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.m-entry__body table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--mus-body-size);
}

.m-entry__body th,
.m-entry__body td {
  padding: clamp(8px, 1.5vw, 14px);
  border: 1px solid var(--mus-line);
  text-align: start;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

.m-entry__body th {
  background: oklch(var(--bg-100));
  font-weight: 700;
}

/* =========================================================================
   5. フッター（地域SEO & E-E-A-T）
   ========================================================================= */
.m-footer {
  background: oklch(var(--secondary-900));
  color: oklch(var(--bg-50));
  padding: clamp(32px, 5vw, 64px) var(--mus-gutter);
  overflow-wrap: anywhere;
}

body:has(.m-fixedbar:not([hidden])) .m-footer {
  padding-block-end: calc(var(--mus-bar-space) + 16px + env(safe-area-inset-bottom, 0px));
}

.m-footer__inner {
  width: 100%;
}

.m-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}

.m-footer__brand {
  grid-column: 1 / -1;
}

.m-footer__logo {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.m-footer__lead {
  margin: 0;
  font-size: var(--mus-body-size);
  line-height: 1.8;
  color: oklch(var(--bg-50) / 0.88);
}

.m-footer__tel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 16px;
  border-radius: 50%;
  background: oklch(var(--bg-50) / 0.12);
  color: #fff;
  font-size: 16px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.m-footer__tel-icon:hover {
  background: oklch(var(--primary-500));
  transform: scale(1.05);
}

.m-footer__title {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: var(--mus-body-size);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  border-bottom: 1px solid oklch(var(--bg-50) / 0.2);
  padding-bottom: 6px;
}

.m-footer__list li {
  margin-bottom: 10px;
}

.m-footer__list a {
  display: inline-block;
  font-size: var(--mus-small-size);
  color: oklch(var(--bg-50) / 0.86);
  transition: color 0.15s ease;
}

.m-footer__list a:hover {
  color: #fff;
  text-decoration: underline;
}

.m-footer__section {
  margin-top: clamp(26px, 4vw, 48px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid oklch(var(--bg-50) / 0.15);
}

/* エリア営業所（MEO・ローカルSEO） */
.m-offices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.m-office {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: oklch(var(--bg-50) / 0.06);
  border: 1px solid oklch(var(--bg-50) / 0.08);
  transition: background-color 0.2s ease;
}

.m-office:hover {
  background: oklch(var(--bg-50) / 0.12);
}

.m-office__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: oklch(var(--bg-50) / 0.12);
  font-size: 13px;
  color: oklch(var(--primary-200));
}

.m-office__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.m-office__name {
  font-size: var(--mus-body-size);
  font-weight: 700;
  color: #fff;
}

.m-office__address {
  margin-top: 3px;
  font-size: var(--mus-small-size);
  line-height: 1.6;
  color: oklch(var(--bg-50) / 0.85);
}

.m-office__cities {
  margin-top: 4px;
  font-size: var(--mus-small-size);
  color: oklch(var(--bg-50) / 0.8);
}

/* 47都道府県エリアリンク */
.m-prefs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.m-prefs__region {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: var(--mus-small-size);
  font-weight: 700;
  color: oklch(var(--bg-50) / 0.9);
  border-bottom: 1px dashed oklch(var(--bg-50) / 0.2);
  padding-bottom: 4px;
}

.m-prefs__region a:hover {
  color: #fff;
}

.m-prefs__list li {
  margin-bottom: 6px;
}

.m-prefs__list a {
  font-size: var(--mus-small-size);
  color: oklch(var(--bg-50) / 0.86);
  transition: color 0.15s ease;
}

.m-prefs__list a:hover {
  color: #fff;
}

/* サイトマップ誘導 */
.m-footer__sitemap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding: 16px 20px;
  background: oklch(var(--bg-50) / 0.04);
  border-radius: 8px;
}

.m-footer__sitemap-text {
  margin: 0;
  font-size: var(--mus-small-size);
  line-height: 1.7;
  color: oklch(var(--bg-50) / 0.86);
}

.m-footer__sitemap-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid oklch(var(--bg-50) / 0.25);
  border-radius: 9999px;
  font-size: var(--mus-small-size);
  font-weight: 600;
  color: oklch(var(--bg-50) / 0.85);
  transition: all 0.2s ease;
}

.m-footer__sitemap-link:hover {
  color: #fff;
  border-color: #fff;
  background: oklch(var(--bg-50) / 0.1);
}

/* 最下部表記 */
.m-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid oklch(var(--bg-50) / 0.15);
}

.m-footer__company p {
  margin: 0 0 6px;
  font-size: var(--mus-small-size);
  line-height: 1.6;
  color: oklch(var(--bg-50) / 0.86);
}

.m-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.m-footer__legal-links a {
  font-size: var(--mus-small-size);
  color: oklch(var(--bg-50) / 0.86);
  text-decoration: underline;
}

.m-footer__legal-links a:hover {
  color: #fff;
}

.m-footer__copy {
  margin: 8px 0 0;
  font-size: var(--mus-small-size);
  color: oklch(var(--bg-50) / 0.8);
}

/* =========================================================================
   6. 画面下部の固定追従コンバージョンバー
   ========================================================================= */
.m-fixedbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding-block-end: env(safe-area-inset-bottom, 0px);
  background: var(--mus-green-hover);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}

.m-fixedbar__desktop {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  width: 100%;
  padding: 10px var(--mus-gutter);
  background: var(--mus-green-hover);
  color: #fff;
}

.m-fixedbar__lead {
  min-width: 0;
  max-width: 22em;
  text-align: right;
}

.m-fixedbar__lead-en {
  margin: 0;
  font-size: var(--mus-small-size);
  line-height: 1.45;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: oklch(var(--bg-50) / 0.8);
}

.m-fixedbar__lead-ja {
  margin: 2px 0 0;
  font-size: var(--mus-body-size);
  font-weight: 700;
  line-height: 1.5;
}

.m-fixedbar__tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.m-fixedbar__tel-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-fixedbar__tel-row i {
  font-size: 24px;
}

.m-fixedbar__number {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.1vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.m-fixedbar__hours {
  font-size: var(--mus-small-size);
  line-height: 1.45;
  color: oklch(var(--bg-50) / 0.85);
}

.m-fixedbar__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.m-fixedbar__free {
  margin: 0;
  font-size: var(--mus-small-size);
  line-height: 1.45;
  color: oklch(var(--bg-50) / 0.9);
  text-align: center;
}

.m-fixedbar__mobile {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  min-height: 72px;
}

.m-fixedbar__mobile-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 8px;
  color: #fff;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.m-fixedbar__mobile-item--tel {
  background: var(--mus-green);
}

.m-fixedbar__mobile-item--mail {
  background: var(--mus-cta);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.m-fixedbar__mobile-item i {
  font-size: 18px;
  line-height: 1;
}

.m-fixedbar__mobile-label {
  font-size: max(15px, 0.9375rem);
  font-weight: 700;
}

.m-fixedbar__mobile-sub {
  font-size: var(--mus-small-size);
  line-height: 1.4;
  color: #fff;
}

/* =========================================================================
   7. レスポンシブ設計（ブレークポイント）
   ========================================================================= */
@media (min-width: 640px) {
  .m-footer__cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .m-footer__brand {
    grid-column: span 1;
  }

  .m-offices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .m-prefs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .m-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .m-footer__legal {
    align-items: flex-end;
  }
}

@media (min-width: 960px) {
  .m-fixedbar__desktop {
    display: flex;
  }

  .m-fixedbar__mobile {
    display: none;
  }
}

@media (min-width: 1024px) {
  .m-footer__cols {
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  }

  .m-offices {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .m-prefs {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1180px) {
  :root {
    --header-h: 76px;
  }

  .m-header__inner {
    padding: 0 24px;
  }

  .m-brand__mark,
  .m-brand__logo {
    width: 44px;
    height: 44px;
  }

  .m-brand__name {
    font-size: 20px;
  }

  /* ポインターとキーボードの両方でサブメニューを表示 */
  .m-nav li:hover > .sub-menu,
  .m-nav li:focus-within > .sub-menu {
    display: block;
  }
}

/* =========================================================================
   8. モバイルナビゲーション（バグ修正 & タップ領域最適化）
   ========================================================================= */
@media (width < 1180px) {
  .m-burger {
    display: inline-flex;
  }

  .m-nav-wrap {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 115;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    padding: 12px var(--mus-gutter) calc(20px + env(safe-area-inset-bottom, 0px));
    background: oklch(var(--bg-50));
    border-top: 1px solid oklch(var(--bg-200));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.1);
  }

  body.m-nav-open .m-nav-wrap {
    display: flex;
  }

  body.m-nav-open {
    overflow: hidden;
  }

  .m-nav-area {
    width: 100%;
  }

  .m-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .m-nav > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-radius: 8px;
    border-bottom: 1px solid oklch(var(--bg-200));
  }

  .m-nav > li > a {
    flex: 1 1 0;
    min-height: 48px;
    padding: 12px 14px;
    font-size: var(--mus-body-size);
    font-weight: 700;
    color: oklch(var(--fg-900));
  }

  .m-nav__toggle {
    width: 48px;
    height: 48px;
    color: oklch(var(--fg-600));
  }

  .m-nav__toggle i {
    font-size: 16px;
  }

  .m-nav .sub-menu {
    position: static;
    display: none;
    width: calc(100% - 8px);
    max-height: none;
    overflow: visible;
    margin: 0 0 8px 8px;
    border: 1px solid oklch(var(--bg-200));
    border-radius: 8px;
    background: oklch(var(--bg-100));
    box-shadow: none;
  }

  .m-nav .sub-menu li > a {
    min-height: 44px;
    padding: 12px 16px;
    font-size: var(--mus-small-size);
    color: oklch(var(--fg-700));
  }

  .m-header__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid oklch(var(--bg-200));
  }

  .m-tel-link {
    justify-content: center;
    min-height: 48px;
    font-size: var(--mus-body-size);
    white-space: normal;
    overflow-wrap: anywhere;
    background: oklch(var(--bg-100));
  }

  .m-btn--cta {
    width: 100%;
    min-height: 48px;
    font-size: var(--mus-body-size);
  }

  .m-header__note {
    display: block;
    text-align: center;
    font-size: var(--mus-small-size);
    color: var(--mus-muted);
  }
}

/* =========================================================================
   9. 賢威8標準テンプレート
   ========================================================================= */
@media screen {
  body .keni-header_wrap {
    padding-block-start: 0;
    border-block-start: 3px solid var(--mus-green);
    border-block-end: 1px solid var(--mus-line);
    background: linear-gradient(105deg, #fbfcf8, #fff 72%);
  }

  .keni-header .keni-header_inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(16px, 3.6vw, 48px);
    padding: clamp(14px, 2.25vw, 26px) var(--mus-gutter);
  }

  .keni-header .keni-header_inner::after {
    content: none;
  }

  .keni-header .keni-header_inner > .site-title {
    float: none;
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .keni-header .keni-header_inner > .site-title a {
    display: inline-block;
    max-width: 100%;
    color: var(--mus-ink);
  }

  .keni-header .site-title img {
    display: block;
    width: clamp(108px, 14vw, 176px);
    max-width: 100%;
    height: auto;
    margin: 0;
  }

  .keni-header .keni-header_inner > .keni-header_cont {
    float: none;
    flex: 1 1 25em;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .keni-header .keni-header_cont .site-description {
    max-width: 45em;
    margin: 0;
    color: var(--mus-text);
    font-family: var(--font-body);
    font-size: var(--mus-body-size);
    line-height: 1.85;
    text-align: start;
    overflow-wrap: anywhere;
  }

  body .keni-main_wrap {
    background-color: var(--mus-canvas);
  }

  .keni-main_wrap .keni-main {
    color: var(--mus-text);
    font-family: var(--font-body);
    font-size: var(--mus-body-size);
    line-height: 1.85;
  }

  .keni-main .keni-main_inner,
  .keni-main_outer > .keni-sub {
    padding-block: clamp(18px, 3vw, 34px);
  }

  .keni-main .entry-list > .entry-list_item {
    padding: clamp(14px, 2vw, 22px);
    border: 1px solid var(--mus-line);
    border-radius: var(--mus-radius);
    background: var(--mus-surface);
    box-shadow: var(--mus-shadow);
  }

  .keni-main .entry-list_style01 > .entry-list_item > .entry {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
  }

  .keni-main .entry-list_style01 .entry_thumb {
    float: none;
    flex: 1 1 12em;
    width: auto;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    margin: 0;
    border-radius: 10px;
  }

  .keni-main .entry-list_style01 .entry_thumb a {
    display: block;
  }

  .keni-main .entry-list_style01 .entry_thumb img {
    height: auto;
  }

  .keni-main .entry-list_style01 .entry_inner {
    flex: 2 1 18em;
    min-width: 0;
    overflow: visible;
  }

  .keni-main .entry-list .entry_inner,
  .keni-main .entry-list .entry_description,
  .keni-main .article-body,
  .keni-main .comment-content {
    color: var(--mus-text);
    font-size: var(--mus-body-size);
    line-height: 1.85;
    overflow-wrap: anywhere;
  }

  .keni-main .entry-list .entry_title,
  .keni-main .article-header > .entry_title {
    margin: 0 0 0.4em;
    padding: 0;
    border: 0;
    background: none;
    color: var(--mus-ink);
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.45vw, 28px);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .keni-main .entry-list .entry_title a {
    color: var(--mus-ink);
  }

  .keni-main .entry-list .entry_title a:hover {
    color: var(--mus-green);
    text-decoration: underline;
    text-underline-offset: 0.16em;
  }

  .keni-main .entry-list_style02 :is(.entry_title, .entry_title a, .entry_description) {
    display: block;
    max-height: none;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .keni-main .entry-list .entry_status {
    margin-block-end: 0.45em;
  }

  .keni-main .entry_status,
  .keni-main .entry_status .entry_category_item a {
    font-size: var(--mus-small-size);
    line-height: 1.55;
  }

  .keni-main .entry_status .entry_category_item a {
    display: inline-block;
    padding: 0.15em 0.65em;
    border-radius: 999px;
    background: var(--mus-panel);
    color: var(--mus-green-hover);
  }

  .keni-main .entry-list .ently_read-more {
    margin-block-start: 0.65em;
  }

  .keni-main .entry-list .ently_read-more .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 44px;
    max-width: 100%;
    padding: 9px 34px 9px 16px;
    border: 1px solid var(--mus-green);
    border-radius: 8px;
    background: var(--mus-surface);
    color: var(--mus-green);
    font-size: var(--mus-small-size);
    font-weight: 700;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .keni-main .entry-list .ently_read-more .btn:hover {
    background: var(--mus-panel);
    color: var(--mus-green-hover);
  }

  .keni-main .keni-section .article-body > :is(h2, h3, h4) {
    margin-block: 1.6em 0.65em;
    color: var(--mus-ink);
    font-family: var(--font-heading);
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .keni-main .keni-section .article-body > h2 {
    padding: 0.55em 0.7em;
    border: 0;
    border-inline-start: 4px solid var(--mus-green);
    border-radius: 0 8px 8px 0;
    background: var(--mus-panel);
    font-size: clamp(20px, 2.4vw, 24px);
  }

  .keni-main .keni-section .article-body > h3 {
    font-size: clamp(18px, 2vw, 21px);
  }

  .keni-main .article-body :where(p, li) > a:not(.btn, .m-btn, .wp-element-button, .wp-block-button__link) {
    color: var(--mus-green);
    text-decoration: underline;
    text-underline-offset: 0.16em;
  }

  .keni-main .article-body :is(.wp-block-table, pre) {
    max-width: 100%;
    overflow-x: auto;
  }

  .keni-sub .keni-section_wrap.widget {
    margin-block-end: 18px;
    color: var(--mus-text);
    font-size: var(--mus-small-size);
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .keni-main_outer .keni-sub .widget > .keni-section {
    min-width: 0;
    padding: clamp(11px, 1.5vw, 16px);
    border: 1px solid var(--mus-line);
    border-radius: 12px;
    background: var(--mus-surface);
    box-shadow: var(--mus-shadow);
  }

  .keni-main_outer .keni-sub .widget > .keni-section .wp-block-heading {
    margin: 0 0 0.65em;
    padding: 0 0 0.45em;
    border: 0;
    border-block-end: 1px solid var(--mus-line);
    background: none;
    color: var(--mus-green-hover);
    font-size: var(--mus-body-size);
    line-height: 1.5;
  }

  .keni-sub .widget a:not(.wp-element-button) {
    color: var(--mus-green);
    text-underline-offset: 0.16em;
  }

  .keni-sub .widget_search .wp-block-search__label {
    display: inline-block;
    margin-block-end: 0.3em;
    color: var(--mus-ink);
    font-weight: 700;
  }

  .keni-sub .widget_search .wp-block-search__inside-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
  }

  .keni-sub .widget_search .wp-block-search__input,
  .keni-main .comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
    min-width: 0;
    min-height: 44px;
    max-width: 100%;
    padding: 8px 11px;
    border: 1px solid #aebfb3;
    border-radius: 8px;
    background: var(--mus-surface);
    color: var(--mus-ink);
    font-family: inherit;
    font-size: var(--mus-body-size);
    line-height: 1.5;
  }

  .keni-sub .widget_search .wp-block-search__input {
    flex: 1 1 8em;
    width: auto;
    margin: 0;
  }

  .keni-main .comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
    width: 100%;
  }

  .keni-main .comment-form textarea {
    min-height: 130px;
    resize: vertical;
  }

  .keni-sub .widget_search .wp-block-search__button,
  .keni-main .comment-form input[type="submit"] {
    min-height: 44px;
    max-width: 100%;
    margin: 0;
    padding: 8px 13px;
    border: 1px solid var(--mus-green);
    border-radius: 8px;
    background: var(--mus-green);
    color: #fff;
    font-size: var(--mus-small-size);
    font-weight: 700;
    line-height: 1.5;
    white-space: normal;
  }

  .keni-sub .widget_search .wp-block-search__button:hover,
  .keni-main .comment-form input[type="submit"]:hover {
    background: var(--mus-green-hover);
  }

  body .keni-footer_wrap {
    border-block-start: 1px solid var(--mus-line);
    background: #eef3ee;
    color: var(--mus-muted);
  }

  .keni-footer_wrap .keni-copyright_wrap {
    border-block-start-color: var(--mus-line);
  }

  .keni-footer_wrap .keni-copyright small {
    color: var(--mus-muted);
    font-size: max(13px, 0.8125rem);
    line-height: 1.7;
    overflow-wrap: anywhere;
  }
}

@media screen and (width < 600px) {
  .keni-header .keni-header_inner {
    justify-content: center;
    gap: 12px;
  }

  .keni-header .keni-header_inner > .site-title {
    text-align: center;
  }

  .keni-header .keni-header_inner > .keni-header_cont {
    flex-basis: 100%;
  }

  .keni-main_outer > :is(.keni-main, .keni-sub) {
    min-width: 0;
    max-width: 100%;
  }
}

/* =========================================================================
   10. アクセシビリティ & 印刷対応（E-E-A-T対応）
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 12px;
  left: 12px;
  z-index: 999;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  background: var(--mus-surface);
  color: var(--mus-ink);
  white-space: normal;
}

/* 家族会議・印刷用スタイル */
@media print {
  .m-header,
  .m-fixedbar,
  .m-burger,
  .m-skip-link {
    display: none !important;
  }

  .m-main {
    padding-top: 0 !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }

  body:has(.m-fixedbar:not([hidden])):not(:has(.m-footer)) {
    padding-block-end: 0;
  }

  .m-footer {
    background: #fff !important;
    color: #333 !important;
    padding: 20px 0 !important;
    border-top: 1px solid #ccc;
  }

  a {
    text-decoration: underline !important;
    color: #000 !important;
  }
}