/* =============================================================================
 * 土佐清水のまちことば site.css（案件CSS）
 *
 * 構成: A. 変数 / B. 用語詳細（mk-term・mk-topic・mk-termnames・mk-sources・
 *       mk-relbox・mk-faq） / C. 用語カード・50音索引・カテゴリ導線 /
 *       D. トップページ（mk-hero ほか） / E. フッター（ネットワークマーク） /
 *       F. 検索UI（mk-term-search・後段に結合）
 *
 * 禁止事項（AI感排除・inputs/マニュアル_AI感排除 §4-4 準拠）:
 *   グラデーション・多色・見出しの左縦棒(border-left)・::before短罫線・英文eyebrow
 * ============================================================================= */

/* --- A. 変数（theme.json palette と同値） --- */
:root {
  --mk-ink:    #1f2a33;
  --mk-base:   #ffffff;
  --mk-sub:    #f2f6f7;
  --mk-line:   #d9e2e5;
  --mk-muted:  #6b7b84;
  --mk-accent: #175e77;
  --mk-accent-deep: #124a5e;
  /* 見出し書体（明朝系＝ことばのメディアが文字を美しく扱うため） */
  --mk-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

/* 見出しの書体設計（トップの各バンド見出し・ロゴ・大数字に明朝を通す） */
.mk-hero__title,
.mk-band__title,
.mk-ask__title,
.mk-face__count,
.mk-top-term-search__title,
.mk-photocard__name,
.mk-header__logo-text {
  font-family: var(--mk-serif);
  font-weight: 600;
}

/* --- B. 用語詳細 --- */

.mk-term__title {
  line-height: 1.35;
}
.mk-term__reading {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--mk-muted);
}
.mk-term__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--mk-muted);
}
.mk-term__cats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mk-term-cat {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--mk-line);
  border-radius: 4px;
  background: var(--mk-sub);
  color: var(--mk-ink);
  font-size: 0.82rem;
  text-decoration: none;
}
.mk-term-cat:hover {
  border-color: var(--mk-accent);
  color: var(--mk-accent);
}

/* 高齢読者への配慮: 用語本文は基準よりわずかに大きく・行間広め */
.mk-term__content {
  font-size: 1.06em;
  line-height: 1.95;
}

/* 【Topic】独自ミニコラム（土佐清水Topic・題字風。ラベル文言は inc/site-glossary.php の表示置換）
 * 見出しは .entry-content h2（margin-top:1.9em / clamp30px）に詳細度で負けて
 * 箱の中に死んだ余白が出る。h2付きセレクタで確実に勝たせる。 */
.entry-content .mk-topic {
  margin: 2em 0;
  padding: 1.5em 1.7em 1.4em;
  background: var(--mk-sub);
  border: 1px solid var(--mk-line);
  border-radius: 10px;
}
.entry-content h2.mk-topic__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
  margin: 0 0 0.7em;
  padding: 0;
  font-family: var(--mk-serif);
  font-size: clamp(18px, 1.9vw, 21px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
}
.entry-content .mk-topic__label {
  flex-shrink: 0;
  padding: 0 0 0 0.24em; /* letter-spacing末尾ぶんの光学中央合わせ */
  border-radius: 0;
  background: none;
  color: var(--mk-accent);
  font-family: var(--mk-serif);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}
.entry-content .mk-topic__body p {
  margin: 0.5em 0 0;
  font-size: 0.98em;
}

/* 正式名称・読み参照ブロック（linker保護領域・控えめ表示） */
.mk-termnames {
  margin: 1.6em 0;
  padding: 14px 18px;
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  background: #fbfdfd;
}
.mk-termnames p {
  margin: 0.2em 0;
  font-size: 0.92em;
  color: var(--mk-ink);
}

/* 出典（relbox統合前の単独表示にも対応） */
.mk-sources {
  margin: 1.8em 0;
  padding: 12px 16px;
  border-top: 1px solid var(--mk-line);
  font-size: 0.88em;
  color: var(--mk-muted);
}
.mk-sources a {
  color: var(--mk-muted);
  text-decoration: underline;
}
.mk-sources a:hover {
  color: var(--mk-accent);
}

/* 関連用語＋出典のタブ箱 */
.mk-relbox {
  margin: 2.6em 0 1.4em;
  padding: 16px 18px 18px;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  background: var(--mk-base);
}
.mk-relbox__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--mk-line);
}
.mk-relbox__tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 8px 16px 10px;
  font-size: 0.92rem;
  color: var(--mk-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.mk-relbox__tab.is-active {
  color: var(--mk-accent);
  font-weight: 600;
  border-bottom-color: var(--mk-accent);
}
.mk-relbox__label {
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--mk-ink);
}
.mk-relbox__panel {
  display: none;
}
.mk-relbox__panel.is-active {
  display: block;
}
.mk-relbox--single .mk-relbox__panel {
  display: block;
}
.mk-relbox__panel[data-panel="related"] {
  display: none;
}
.mk-relbox__panel[data-panel="related"].is-active,
.mk-relbox--single .mk-relbox__panel[data-panel="related"] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* mk-relbox は本文（.entry-content）内に生成される。チップの text-decoration:none が
 * .entry-content a（下線・0,1,1）に詳細度で負けて下線が出ていた（mk-topic/mk-contrib と
 * 同型の欠陥）。.mk-relbox 前置で確実に勝たせる。
 * 教訓：entry-content 内に差し込む a/h2 のBEMセレクタは必ずルートクラスを前置する。 */
.mk-relbox .mk-relbox__term {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--mk-line);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--mk-ink);
  text-decoration: none;
  background: var(--mk-sub);
}
.mk-relbox .mk-relbox__term:hover {
  border-color: var(--mk-accent);
  color: var(--mk-accent);
}
.mk-relbox__source {
  display: block;
  padding: 4px 0;
  font-size: 0.88rem;
  color: var(--mk-muted);
  text-decoration: underline;
}
.mk-relbox__source:hover {
  color: var(--mk-accent);
}

/* 場所（Google Maps Embed）。mk_term_place_id がある語だけ描画される（inc/site-glossary.php） */
.mk-map {
  margin: 2.4em 0;
}
.mk-map__title {
  font-size: 1.15rem;
  margin-bottom: 0.8em;
}
.mk-map__frame {
  /* 枠は mk-relbox / mk-faq と同じ線・角丸で統一（装飾を足さない） */
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--mk-sub);
  /* 地図は横長。SPでも縦に伸びすぎないよう比率で持つ */
  aspect-ratio: 16 / 10;
  max-width: 100%;
}
.mk-map__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.mk-map__note {
  margin: 0.6em 0 0;
  font-size: 0.82rem;
  color: var(--mk-muted);
}
@media (max-width: 600px) {
  .mk-map__frame {
    /* SPは本文幅いっぱいに寄りすぎないよう98%。縦長比率で地図を見やすく */
    width: 98%;
    margin-inline: auto;
    aspect-ratio: 4 / 3;
  }
}

/* FAQ（details/summary） */
.mk-faq {
  margin: 2.4em 0;
}
.mk-faq__title {
  font-size: 1.15rem;
  margin-bottom: 0.8em;
}
.mk-faq__item {
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  margin-bottom: 10px;
  background: var(--mk-base);
}
.mk-faq__q {
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.mk-faq__q::-webkit-details-marker {
  display: none;
}
.mk-faq__q::after {
  content: "＋";
  float: right;
  color: var(--mk-muted);
}
.mk-faq__item[open] .mk-faq__q::after {
  content: "－";
}
.mk-faq__a {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--mk-ink);
}

.mk-term__back {
  margin: 2.5em 0 1em;
  text-align: center;
}
.mk-term__back a {
  color: var(--mk-accent);
  text-decoration: none;
  font-size: 0.95rem;
}
.mk-term__back a:hover {
  text-decoration: underline;
}

/* --- C. 用語カード・50音索引・カテゴリ導線 --- */

.mk-glossary-header__lead {
  color: var(--mk-muted);
  margin-top: 0.4em;
}
.mk-glossary-search {
  max-width: 720px;
  margin: 0 auto 2.2em;
}

.mk-term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 1.6em 0 2.2em;
}

/* 検索結果が0件のとき（search.php） */
.mk-search-none {
  max-width: 560px;
  margin: 2.5em auto;
  padding: 34px 26px;
  text-align: center;
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  background: var(--mk-sub);
}
.mk-search-none__text {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
}
.mk-search-none__sub {
  font-size: 15px;
  color: var(--mk-muted);
  margin: 0 0 20px;
}
.mk-search-none__cta {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  background: var(--mk-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}
.mk-search-none__cta:hover {
  background: var(--mk-accent-deep);
  color: #fff;
}
.mk-term-card {
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  background: var(--mk-base);
  transition: border-color 0.15s ease;
}
.mk-term-card:hover {
  border-color: var(--mk-accent);
}
.mk-term-card__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
}
.mk-term-card__title {
  margin: 0;
  font-family: var(--mk-serif);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.5;
}
.mk-term-card__reading {
  display: block;
  font-family: var(--wp--preset--font-family--sans, sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mk-accent);
  margin-top: 2px;
}
.mk-term-card__excerpt {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--mk-muted);
  flex-grow: 1;
}
.mk-term-card__cat {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--mk-sub);
  border: 1px solid var(--mk-line);
  font-size: 0.76rem;
  color: var(--mk-ink);
}

/* カテゴリ導線（チップ） */
.mk-glossary-cats {
  margin: 2em 0;
}
.mk-glossary-cats__title {
  font-size: 1.1rem;
  margin-bottom: 0.7em;
}
.mk-glossary-cats__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mk-glossary-cats__item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--mk-line);
  border-radius: 4px;
  background: var(--mk-base);
  color: var(--mk-ink);
  font-size: 0.98rem;
  text-decoration: none;
}
.mk-glossary-cats__item a:hover {
  border-color: var(--mk-accent);
  color: var(--mk-accent);
}
.mk-glossary-cats__count {
  font-size: 0.78rem;
  color: var(--mk-muted);
}
/* 0件カテゴリ＝「準備中」チップ（リンクなし・淡色） */
.mk-glossary-cats__chip.is-empty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px dashed var(--mk-line);
  border-radius: 4px;
  background: var(--mk-sub);
  color: var(--mk-muted);
  font-size: 0.98rem;
}

/* 50音索引 */
.mk-glossary-kana {
  margin: 2.6em 0;
}
.mk-glossary-kana__title {
  font-size: 1.1rem;
  margin-bottom: 0.7em;
}
.mk-glossary-index__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.6em;
}
.mk-glossary-index__nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  font-size: 1.05rem;
  color: var(--mk-accent);
  text-decoration: none;
  background: var(--mk-base);
}
.mk-glossary-index__nav-item:hover {
  border-color: var(--mk-accent);
  background: var(--mk-sub);
}
.mk-glossary-index__nav-item.is-empty {
  color: var(--mk-line);
  pointer-events: none;
}
.mk-glossary-index__row {
  margin-bottom: 1.8em;
}
.mk-glossary-index__row-title {
  font-size: 1.2rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--mk-line);
  margin-bottom: 0.6em;
}
.mk-glossary-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 4px 18px;
}
.mk-glossary-index__item a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 6px;
  color: var(--mk-ink);
  text-decoration: none;
  border-radius: 6px;
  font-size: 1.02rem;
}
.mk-glossary-index__item a:hover {
  background: var(--mk-sub);
  color: var(--mk-accent);
}
.mk-glossary-index__reading {
  font-size: 0.78rem;
  color: var(--mk-muted);
}
.mk-glossary-index__empty {
  color: var(--mk-muted);
}

/* --- D. トップページ --- */

.site-main--front {
  padding-block: 0;
}
.mk-band {
  padding: 64px 24px;
}
.mk-band__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.mk-band--tint {
  background: var(--mk-sub);
}
.mk-band__title {
  font-size: clamp(1.5rem, 2.6vw, 1.8rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.5em;
  text-align: center;
}
.mk-band__lead {
  text-align: center;
  color: var(--mk-muted);
  margin-bottom: 1.8em;
}
.mk-band__more {
  text-align: center;
  margin-top: 1.6em;
}
.mk-band__more a {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--mk-accent);
  border-radius: 999px;
  color: var(--mk-accent);
  text-decoration: none;
  font-size: 0.98rem;
}
.mk-band__more a:hover {
  background: var(--mk-accent);
  color: #fff;
}

/* ヒーロー（FV動画）
 * 実写動画=足摺岬の空撮（通常ライセンス・inputs/design/README.md が権利の正本）。
 * 文字の可読性のため単色の暗色オーバーレイを敷く（グラデ禁止=§4-4準拠）。
 * prefers-reduced-motion: reduce では動画を消し静止画背景へ（高齢者配慮）。 */
.mk-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(540px, 78vh, 780px);
  padding: 84px 24px 60px;
  background: var(--mk-ink);
  color: #fff;
  text-align: center;
}
.mk-hero__media {
  position: absolute;
  inset: 0;
}
.mk-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 34, 0.35);
}
.mk-hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mk-hero__place {
  position: absolute;
  right: 18px;
  bottom: 12px;
  z-index: 1;
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}
.mk-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}
.mk-hero__title {
  font-size: clamp(1.8rem, 4.8vw, 2.9rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0 0 0.6em;
  color: #fff;
  text-shadow: 0 2px 26px rgba(10, 20, 28, 0.5);
}
.mk-hero__lead {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 2;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 16px rgba(10, 20, 28, 0.55);
  margin: 0 0 1.6em;
}
@media (prefers-reduced-motion: reduce) {
  .mk-hero__video {
    display: none;
  }
  .mk-hero {
    background: var(--mk-ink) url(../img/hero_ashizuri-cliff_2560x1080.jpg) center / cover no-repeat;
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .mk-hero {
    background-image: url(../img/hero_ashizuri-cliff_sp_1080x1440.jpg);
  }
}
.mk-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.mk-hero__btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
}
.mk-hero__btn--primary {
  background: #fff;
  color: var(--mk-ink);
}
.mk-hero__btn--primary:hover {
  background: rgba(255, 255, 255, 0.85);
}
.mk-hero__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(15, 26, 34, 0.28);
  color: #fff;
}
.mk-hero__btn--ghost:hover {
  border-color: #fff;
  background: rgba(15, 26, 34, 0.5);
}

/* 万次郎特集バンド（トップでの格上げ:
 * 中央H2→グリッドの同一骨格を崩す非対称2カラム。左=特集の口上・右=3語の縦リスト。
 * 同型テキストカードの連続をカード8枚+リストに減らす狙い） */
.mk-manjiro {
  border-top: 1px solid var(--mk-line);
  border-bottom: 1px solid var(--mk-line);
}
.mk-manjiro__note {
  font-size: 0.85rem;
  color: var(--mk-muted);
  text-align: center;
  margin-top: 1.2em;
}
.mk-manjiro__cols {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
}
.mk-manjiro__intro .mk-band__title,
.mk-manjiro__intro .mk-band__lead {
  text-align: left;
}
.mk-manjiro__intro .mk-band__lead {
  margin-bottom: 1.4em;
}
.mk-manjiro__intro .mk-band__more {
  text-align: left;
  margin-top: 0;
}
.mk-manjiro__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--mk-line); /* hairline=意味的境界線（装飾罫線ではない） */
}
.mk-manjiro__item {
  border-bottom: 1px solid var(--mk-line);
}
.mk-manjiro__item a {
  display: block;
  padding: 18px 8px;
  color: inherit;
  text-decoration: none;
}
.mk-manjiro__item a:hover .mk-manjiro__item-title {
  color: var(--mk-accent);
}
.mk-manjiro__item-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-family: var(--mk-serif);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.5;
}
.mk-manjiro__item-reading {
  font-family: var(--wp--preset--font-family--sans, sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mk-accent);
}
.mk-manjiro__item-excerpt {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--mk-muted);
}

/* 写真カードバンド「景色から、ことばへ」 */
.mk-photoband__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mk-photocard {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  background: var(--mk-ink);
}
.mk-photocard__img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mk-photocard:hover .mk-photocard__img,
.mk-photocard:focus-visible .mk-photocard__img {
  transform: scale(1.04);
}
.mk-photocard:focus-visible {
  outline: 3px solid var(--mk-accent);
  outline-offset: 2px;
}
.mk-photocard__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 18px;
  background: rgba(15, 26, 34, 0.58);
}
.mk-photocard__name {
  color: #fff;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.mk-photocard__reading {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

/* 万次郎特集の3枚カード（auto-fillだと3枚で空きトラックが出るため固定3列） */
.mk-term-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

/* 出典主義バンド（単色の藍鼠・数字と主張だけの静かな一枚。
 * 夕景写真2連続が1つの暗色帯に溶けるため写真をやめ、
 * 「すべてに出典がある」というこのサイト唯一のUSPをここで言い切り、募集バンドへの橋を架ける） */
.mk-face {
  padding: clamp(64px, 9vw, 104px) 24px;
  background: var(--mk-ink);
  color: #fff;
  text-align: center;
}
.mk-face__inner {
  max-width: 760px;
  margin: 0 auto;
}
.mk-face__count {
  margin: 0 0 0.3em;
}
.mk-face__num {
  font-size: clamp(3.2rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.mk-face__unit {
  font-size: 1.15rem;
  font-weight: 600;
  margin-left: 8px;
}
.mk-face__text {
  margin: 0 0 1.2em;
  line-height: 2;
  color: rgba(255, 255, 255, 0.95);
}
.mk-face__bridge {
  margin: 0;
  font-size: 0.95rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.66);
}
.mk-face__about {
  margin: 1.6em 0 0;
  font-size: 0.9rem;
}
.mk-face__about a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mk-face__about a:hover {
  color: #fff;
}

/* 情報提供のお願いバンド（漁港の夕景動画） */
.mk-ask {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 10vw, 116px) 24px;
  background: var(--mk-ink);
  color: #fff;
  text-align: center;
}
.mk-ask__media {
  position: absolute;
  inset: 0;
}
.mk-ask__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 34, 0.45);
}
.mk-ask__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mk-ask__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.mk-ask__title {
  /* 下限1.3rem: SP390で「土佐清水のことば、教えてください」が2行に割れて
     最終行に1文字だけ落ちるのを防ぐ */
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: #fff;
  margin: 0 0 0.8em;
  text-shadow: 0 2px 20px rgba(10, 20, 28, 0.55);
}
.mk-ask__text {
  max-width: 640px;
  margin: 0 auto 1.6em;
  line-height: 2;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 12px rgba(10, 20, 28, 0.55);
}
.mk-ask__btn {
  display: inline-block;
  padding: 14px 42px;
  border-radius: 999px;
  background: #fff;
  color: var(--mk-ink);
  font-weight: 700;
  text-decoration: none;
}
.mk-ask__btn:hover {
  background: rgba(255, 255, 255, 0.86);
}
@media (prefers-reduced-motion: reduce) {
  .mk-ask__video {
    display: none;
  }
  .mk-ask {
    background: var(--mk-ink) url(../img/band_port-sunset_poster_1920x800.jpg) center / cover no-repeat;
  }
}

/* --- E. フッター ---
 * ネットワークマーク（.mk-network-mark）は表示を取り下げ＝markupごと削除。 */

@media (max-width: 860px) {
  .mk-manjiro__cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .mk-band {
    padding: 44px 18px;
  }
  .mk-hero {
    padding: 64px 18px 44px;
    min-height: clamp(480px, 72vh, 640px);
  }
  .mk-term-grid {
    grid-template-columns: 1fr;
  }
  .mk-glossary-index__list {
    grid-template-columns: 1fr;
  }
  .mk-photoband__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mk-face {
    padding: 52px 18px;
  }
  .mk-ask {
    padding: 64px 18px;
  }
  .entry-content .mk-topic {
    padding: 1.2em 1.1em 1.1em;
  }
}

/* --- F. 検索UI（以下結合） --- */
/* =====================================================================================
 * 12. [ns_blog_search] ライブサジェスト型 全文検索窓
 *
 *   - 大型・上質な検索フィールド + プレミアムなドロップダウン
 *   - 0件時の控えめな相談導線（押し売り感ゼロ）
 *   - 中立タグ（div / span / a）構成（A-9 教訓準拠）
 *   - prefers-reduced-motion 対応
 * ===================================================================================== */

/* ---------- ラッパー ---------- */
.mk-term-search{
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 28px auto 40px;
  padding: 0;
  isolation: isolate;
  font-family: inherit;
  z-index: 5;
}

.mk-term-search--compact{
  max-width: 540px;
  margin: 16px auto 24px;
}

/* インデックスJSONは画面に出さない */
.mk-term-search__index{
  display: none !important;
}

/* ---------- イントロ ---------- */
.mk-term-search__intro{
  margin: 0 0 14px;
  text-align: center;
  font-size: clamp(13px, 0.4vw + 0.7rem, 14.5px);
  color: #475569;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ---------- 検索フィールド（強化版：背景グラデ + 多層shadow + 常時アクセント） ---------- */
.mk-term-search__field{
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 16px rgba(15, 23, 42, 0.05),
    0 18px 36px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.22s ease, box-shadow 0.26s ease, transform 0.22s ease, background 0.26s ease;
  z-index: 2;
}

/* 検索窓の左端に常時カテゴリー赤の縦アクセント（細） */
.mk-term-search__field::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, #175e77 30%, #175e77 70%, transparent 100%);
  transform: translateY(-50%);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.mk-term-search__field:hover{
  border-color: color-mix(in srgb, #175e77 35%, #cbd5e1);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 10px 24px rgba(15, 23, 42, 0.08),
    0 22px 44px rgba(234, 67, 65, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.mk-term-search__field:focus-within{
  border-color: #175e77;
  background: linear-gradient(180deg, #ffffff 0%, #f6fafb 100%);
  box-shadow:
    0 0 0 5px rgba(234, 67, 65, 0.10),
    0 0 0 1px rgba(234, 67, 65, 0.20),
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 18px 44px rgba(234, 67, 65, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}
.mk-term-search__field:focus-within::before{
  opacity: 1;
}

/* 虫眼鏡アイコン（常時アクセント色寄り） */
.mk-term-search__icon{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: color-mix(in srgb, #175e77 65%, #94a3b8);
  transition: color 0.22s ease, transform 0.22s ease;
}
.mk-term-search__icon svg{ width: 100%; height: 100%; }

.mk-term-search__field:hover .mk-term-search__icon{
  color: #175e77;
  transform: scale(1.04);
}
.mk-term-search__field:focus-within .mk-term-search__icon{
  color: #175e77;
  transform: scale(1.08);
}

/* 入力欄 */
.mk-term-search__input{
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 4px 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: clamp(15px, 0.4vw + 0.85rem, 17px);
  color: #0f172a;
  font-weight: 500;
  letter-spacing: 0.005em;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.mk-term-search__input::-webkit-search-decoration,
.mk-term-search__input::-webkit-search-cancel-button,
.mk-term-search__input::-webkit-search-results-button,
.mk-term-search__input::-webkit-search-results-decoration{
  -webkit-appearance: none;
  display: none;
}

.mk-term-search__input::placeholder{
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.22s ease, transform 0.22s ease;
}
.mk-term-search__field:focus-within .mk-term-search__input::placeholder{
  color: #cbd5e1;
}

/* スピナー（入力中だけ表示） */
.mk-term-search__spinner{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 24px;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.mk-term-search__spinner.is-active{ opacity: 1; }
.mk-term-search__spinner-dot{
  width: 4px;
  height: 4px;
  background: #175e77;
  border-radius: 50%;
  animation: mk-term-search-pulse 1.05s ease-in-out infinite;
}
.mk-term-search__spinner-dot:nth-child(2){ animation-delay: 0.16s; }
.mk-term-search__spinner-dot:nth-child(3){ animation-delay: 0.32s; }

@keyframes mk-term-search-pulse{
  0%, 80%, 100%{ transform: scale(0.55); opacity: 0.4; }
  40%{ transform: scale(1.0); opacity: 1; }
}

/* クリアボタン */
.mk-term-search__clear{
  flex: 0 0 auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  background: #f1f5f9;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.22s ease;
}
.mk-term-search__clear.is-visible{ display: inline-flex; }
.mk-term-search__clear svg{ width: 14px; height: 14px; }
.mk-term-search__clear:hover{
  background: #175e77;
  color: #ffffff;
  transform: rotate(90deg);
}
.mk-term-search__clear:focus-visible{
  outline: 2px solid #175e77;
  outline-offset: 2px;
}

/* ---------- ドロップダウン ---------- */
.mk-term-search__dropdown{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: min(540px, 80vh);
  overflow: hidden auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 24px 56px rgba(15, 23, 42, 0.16);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  animation: mk-term-search-reveal 0.22s ease both;
}

.mk-term-search__dropdown[hidden]{ display: none; }

@keyframes mk-term-search-reveal{
  from{ opacity: 0; transform: translateY(-6px); }
  to  { opacity: 1; transform: translateY(0); }
}

.mk-term-search__dropdown::-webkit-scrollbar{ width: 6px; }
.mk-term-search__dropdown::-webkit-scrollbar-thumb{
  background: #cbd5e1;
  border-radius: 999px;
}

.mk-term-search__results{
  list-style: none !important;
  margin: 0 !important;
  padding: 8px !important;
}

/* 1件 = 1リンク */
.mk-term-search__result{
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr 18px;
  align-items: center;
  gap: 14px;
  margin: 0 !important;
  padding: 10px 12px !important;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.mk-term-search__result + .mk-term-search__result{
  margin-top: 2px !important;
}

.mk-term-search__result.is-active,
.mk-term-search__result:hover{
  background: #f8fafc;
}

.mk-term-search__result.is-active .mk-term-search__arrow,
.mk-term-search__result:hover .mk-term-search__arrow{
  transform: translateX(3px);
  color: #175e77;
}

.mk-term-search__result.is-active .mk-term-search__title,
.mk-term-search__result:hover .mk-term-search__title{
  color: #175e77;
}

/* サムネ */
.mk-term-search__thumb{
  display: block;
  width: 84px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  flex: 0 0 auto;
}
.mk-term-search__thumb img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}
.mk-term-search__result.is-active .mk-term-search__thumb img,
.mk-term-search__result:hover .mk-term-search__thumb img{
  transform: scale(1.06);
}
.mk-term-search__thumb--placeholder{
  background-image:
    linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%),
    radial-gradient(circle at 30% 30%, rgba(234,67,65,0.08), transparent 60%);
}

/* 本文 */
.mk-term-search__body{
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.mk-term-search__meta{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mk-term-search__cat{
  display: inline-block;
  padding: 2px 8px;
  background: var(--cat-color, #175e77);
  color: var(--cat-text, #fff);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
}
/* 読み仮名（タイトル横に小さく。日付は出さない＝用語はエバーグリーン） */
.mk-term-search__yomi{
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.mk-term-search__title{
  font-size: clamp(13.5px, 0.3vw + 0.75rem, 15px);
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s ease;
}

.mk-term-search__mark{
  background: linear-gradient(transparent 60%, rgba(234, 67, 65, 0.22) 60%);
  color: inherit;
  padding: 0 1px;
  font-weight: 800;
  border-radius: 0;
}

/* 矢印 */
.mk-term-search__arrow{
  flex: 0 0 auto;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
  transform: rotate(-45deg);
  transition: transform 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  margin-right: 4px;
  color: #cbd5e1;
}

/* ---------- 0件表示 ---------- */
.mk-term-search__empty{
  list-style: none !important;
  padding: 24px 22px 22px !important;
  margin: 0 !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mk-term-search__empty-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  color: #cbd5e1;
}
.mk-term-search__empty-icon svg{ width: 100%; height: 100%; }
.mk-term-search__empty-text{
  margin: 0 !important;
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.5;
  letter-spacing: 0.005em;
}
.mk-term-search__empty-sub{
  margin: 0 !important;
  font-size: 13px;
  color: #64748b;
  line-height: 1.65;
}
.mk-term-search__empty-actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.mk-term-search__empty-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #175e77;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 12px rgba(234, 67, 65, 0.22);
}
.mk-term-search__empty-cta:hover{
  background: #124a5e;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(234, 67, 65, 0.32);
}
.mk-term-search__empty-cta:hover .mk-term-search__empty-cta-arrow{
  transform: translateX(3px);
}
.mk-term-search__empty-cta-arrow{
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  transition: transform 0.22s ease;
}

.mk-term-search__empty-dismiss{
  padding: 10px 18px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.mk-term-search__empty-dismiss:hover{
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}
.mk-term-search__empty-dismiss:focus-visible{
  outline: 2px solid #175e77;
  outline-offset: 2px;
}

/* ---------- SP 調整 ---------- */
@media (max-width: 599px){
  .mk-term-search{ margin: 20px auto 28px; }
  .mk-term-search__field{
    padding: 12px 14px;
    border-radius: 14px;
    gap: 8px;
  }
  .mk-term-search__input{
    font-size: 16px; /* iOS ズーム抑制 */
  }
  .mk-term-search__icon{ width: 20px; height: 20px; }
  .mk-term-search__dropdown{
    border-radius: 14px;
    max-height: 70vh;
  }
  .mk-term-search__result{
    grid-template-columns: 64px 1fr 14px;
    gap: 10px;
    padding: 8px 10px !important;
  }
  .mk-term-search__thumb{ width: 64px; }
  .mk-term-search__title{
    font-size: 13.5px;
    line-height: 1.4;
  }
  .mk-term-search__cat{ font-size: 10px; }
  .mk-term-search__empty{ padding: 20px 16px !important; }
  .mk-term-search__empty-actions{ flex-direction: column; gap: 8px; width: 100%; }
  .mk-term-search__empty-cta,
  .mk-term-search__empty-dismiss{ width: 100%; justify-content: center; }
}

/* ---------- 検索窓 上ヘッドライン（検索窓を「指す」説明枠 / A-15 リライト） ----------
   - CTA見えしない矩形（角丸控えめ）
   - 検索窓と密着（margin-bottom: 6 + 検索窓の margin-top 上書き）
   - 控えめな赤ベース（透明感のあるグラデ）
   - 右端のアイコンは「下矢印」が上下にバウンス → 視覚的に検索窓を指す */
.mk-term-search-headline{
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: 24px auto 6px;
  padding: 10px 18px 10px 18px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #175e77 9%, #ffffff) 0%,
    color-mix(in srgb, #175e77 5%, #ffffff) 100%
  );
  color: #124a5e;
  border: 1px solid color-mix(in srgb, #175e77 22%, #f1f5f9);
  border-radius: 12px;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(234, 67, 65, 0.06);
}

/* headline 直後の検索窓は密着させる（説明枠 → 検索窓の流れ） */
.mk-term-search-headline + .mk-term-search{
  margin-top: 0;
}

.mk-term-search-headline__text{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.25;
  min-width: 0;
}
.mk-term-search-headline__title{
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #124a5e;
}
.mk-term-search-headline__sub{
  font-size: 11px;
  font-weight: 500;
  color: color-mix(in srgb, #124a5e 78%, #475569);
  letter-spacing: 0.04em;
}

/* 下矢印アイコン — 上下にバウンスして検索窓を指す */
.mk-term-search-headline__icon{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #175e77;
  animation: mk-term-search-headline-bounce 1.6s ease-in-out infinite;
}
.mk-term-search-headline__icon svg{ width: 100%; height: 100%; }

@keyframes mk-term-search-headline-bounce{
  0%, 100% { transform: translateY(0);   opacity: 0.65; }
  50%      { transform: translateY(5px); opacity: 1; }
}

@media (max-width: 599px){
  .mk-term-search-headline{
    max-width: calc(100% - 24px);
    margin: 12px auto 4px;
    padding: 9px 14px;
    gap: 10px;
    border-radius: 10px;
  }
  .mk-term-search-headline__title{ font-size: 12.5px; }
  .mk-term-search-headline__sub{ font-size: 10px; }
  .mk-term-search-headline__icon{ width: 20px; height: 20px; }
}

/* ---------- 検索窓ドロップダウン下: 「全て見る」リンク ---------- */
.mk-term-search__footer{
  border-top: 1px solid #f1f5f9;
  padding: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  position: sticky;
  bottom: 0;
  z-index: 5;
}
.mk-term-search__see-all{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: transparent;
  border-radius: 10px;
  color: #1e293b !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease, transform 0.22s ease;
}
.mk-term-search__see-all:hover{
  background: linear-gradient(135deg, color-mix(in srgb, #175e77 8%, #ffffff), color-mix(in srgb, #175e77 4%, #ffffff));
  color: #175e77 !important;
  transform: translateX(2px);
}
.mk-term-search__see-all:focus-visible{
  outline: 2px solid #175e77;
  outline-offset: 2px;
}
.mk-term-search__see-all-text{
  display: inline-flex;
  align-items: center;
}
.mk-term-search__see-all-keyword{
  font-weight: 800;
  color: #175e77;
  margin: 0 2px;
}
.mk-term-search__see-all-arrow{
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.22s ease;
  margin-bottom: 1px;
}
.mk-term-search__see-all:hover .mk-term-search__see-all-arrow{
  transform: rotate(-45deg) translate(2px, -2px);
}
@media (max-width: 599px){
  .mk-term-search__see-all{ font-size: 12.5px; padding: 10px 12px; }
}

/* ---------- 検索窓 bare スタイル（SP 開閉メニュー最上部用 / [ns_blog_search_bare]）
   - max-width 解除、margin 0、shadow 控えめ、上下 padding 圧縮 ---------- */
.mk-term-search--bare{
  max-width: none;
  margin: 0;
}
.mk-term-search--bare .mk-term-search__intro{ display: none; }
.mk-term-search--bare .mk-term-search__field{
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transform: none !important;
}
.mk-term-search--bare .mk-term-search__field::before{ display: none; }
.mk-term-search--bare .mk-term-search__field:hover{
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.mk-term-search--bare .mk-term-search__field:focus-within{
  border-color: #175e77;
  box-shadow:
    0 0 0 3px rgba(234, 67, 65, 0.10),
    0 4px 10px rgba(234, 67, 65, 0.10);
}
.mk-term-search--bare .mk-term-search__icon{ width: 18px; height: 18px; }
.mk-term-search--bare .mk-term-search__input{ font-size: 14px; }
@media (max-width: 599px){
  .mk-term-search--bare .mk-term-search__input{ font-size: 16px; } /* iOS ズーム抑制 */
}
.mk-term-search--bare .mk-term-search__dropdown{
  border-radius: 10px;
  margin-top: 4px;
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce){
  .mk-term-search__dropdown,
  .mk-term-search__field,
  .mk-term-search__icon,
  .mk-term-search__clear,
  .mk-term-search__result,
  .mk-term-search__thumb img,
  .mk-term-search__title,
  .mk-term-search__arrow,
  .mk-term-search__empty-cta,
  .mk-term-search__empty-cta-arrow,
  .mk-term-search__see-all,
  .mk-term-search__see-all-arrow,
  .mk-term-search-headline,
  .mk-term-search-headline__icon{
    transition: none !important;
    animation: none !important;
  }
  .mk-term-search__spinner-dot,
  .mk-term-search-headline__pulse,
  .mk-term-search-headline::before{ animation: none !important; opacity: 0.6; }
}


/* =====================================================================================
 * 14. [ns_top_blog_search] — トップページMV直下用 検索セクション
 *
 *   - 上下 padding 控えめ（PC 56-64 / SP 40-44）
 *   - 罫線 + eyebrow + タイトル + サブ + 検索窓
 *   - シンプルだが上品（薄いグラデ背景 + 上端薄ライン）
 *   - 内部の [ns_blog_search] スタイルは §12 を継承
 * ===================================================================================== */
.mk-top-term-search{
  position: relative;
  width: 100%;
  padding: 56px 16px 64px;
  /* 背景は上=薄赤 → 下=白 でグラデーション化（次セクション白背景に自然と馴染ませる） */
  background:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, #175e77 8%, transparent) 0%, transparent 52%),
    radial-gradient(circle at 78% 28%, color-mix(in srgb, #175e77 6%, transparent) 0%, transparent 48%),
    linear-gradient(
      180deg,
      color-mix(in srgb, #175e77 5%, #ffffff) 0%,
      color-mix(in srgb, #175e77 3%, #ffffff) 35%,
      color-mix(in srgb, #175e77 1%, #ffffff) 70%,
      #ffffff 100%
    );
  isolation: isolate;
  overflow: visible;             /* dropdown が detach されるため hidden は不要 */
  z-index: 5;                    /* 次セクションより手前を保証 */
}

/* 上端の薄いカテゴリー赤フェードライン */
.mk-top-term-search::before{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 90%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(234, 67, 65, 0.22) 50%,
    transparent 100%
  );
  z-index: 1;
}

.mk-top-term-search__inner{
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}

.mk-top-term-search__eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: #175e77;
  text-transform: uppercase;
}
.mk-top-term-search__eyebrow-line{
  display: inline-block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #175e77 50%, transparent 100%);
}

.mk-top-term-search__title{
  font-size: clamp(22px, 1.8vw + 0.7rem, 34px);
  font-weight: 800;
  line-height: 1.4;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.mk-top-term-search__sub{
  font-size: clamp(13px, 0.3vw + 0.7rem, 15px);
  line-height: 1.7;
  color: #475569;
  letter-spacing: 0.005em;
  margin: 0 0 28px;
}

.mk-top-term-search__field-wrap{
  margin: 0 auto;
}
.mk-top-term-search__field-wrap .mk-term-search{
  margin: 0 auto;
}

@media (max-width: 599px){
  .mk-top-term-search{ padding: 40px 14px 44px; }
  .mk-top-term-search__title{
    font-size: clamp(19px, 5.6vw, 26px);
    margin-bottom: 8px;
    letter-spacing: 0;
  }
  .mk-top-term-search__sub{ font-size: 12.5px; margin-bottom: 22px; }
  .mk-top-term-search__eyebrow{ font-size: 10px; gap: 12px; margin-bottom: 12px; letter-spacing: 0.28em; }
  .mk-top-term-search__eyebrow-line{ width: 22px; }
}

@media (prefers-reduced-motion: reduce){
  .mk-top-term-search::before{ background: rgba(234, 67, 65, 0.18); }
}


/* =====================================================================================
 * 15. 検索窓 ドロップダウン body detach + SP メニュー検索窓ラッパー
 * ===================================================================================== */

/* ドロップダウンを document.body 直下に移動した時のスタイル
   （フルワイドブロック = スタッキングコンテキスト超え用）
   top/left/width は JS が getBoundingClientRect から動的に設定 */
.mk-term-search__dropdown.is-detached{
  position: fixed !important;
  z-index: 9999 !important;
  margin: 0 !important;
  max-height: min(540px, 70vh);
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.10),
    0 28px 64px rgba(15, 23, 42, 0.22);
}

@media (max-width: 599px){
  .mk-term-search__dropdown.is-detached{
    max-height: 60vh;
  }
}

/* SP メニュー上部に自動挿入された検索窓のラッパー */
.ns-spmenu-search-wrap{
  padding: 8px 16px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}
.ns-spmenu-search-wrap .mk-term-search--bare .mk-term-search__field{
  background: #ffffff;
  border-color: #e2e8f0;
}
/* 念のため：body 直下に置かれた sleeper（移動前）は表示しない */
.ns-spmenu-search-wrap[hidden]{ display: none; }
body > .ns-spmenu-search-wrap:not([hidden]){
  /* SP メニューが見つからず移動できなかった保険として、body 直下にあるなら非表示 */
  display: none;
}

/* =====================================================================================
 * §H. ヘッダー
 *   透過→追従ヘッダー＋SPドロワー。DOM: template-parts/header.php ／
 *   機能: inc/site-header.php ／ JS: assets/js/site-header.js
 *   ブランド: 赤CTA→黒潮の藍(--mk-accent)。ドロワーは単色の藍鼠（グラデ禁止＝§4-4）。
 *   z-index体系: ヘッダー900 / 追従バー1000 / SPドロワー1400
 * ===================================================================================== */

/* -------------------------------------------------------------------------------------
 * H-1. 通常ヘッダー(.mk-header)— 下層=白・通常フロー / トップ=透過absolute
 * ------------------------------------------------------------------------------------- */
.mk-header{
  position: relative;
  z-index: 900;
  background: #fdfdfd;
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
}
.mk-header__inner{
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 6px clamp(20px, 3.33vw, 48px);
}
.mk-header__logo{
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--mk-ink); /* ロゴマーク(SVG fill=currentColor)の色はここを継承する */
}
.mk-header__logo-img{
  display: block;
  height: 42px;
  width: auto;
}
/* ロゴマーク「黒潮の三本波」＝単色＋opacityの濃淡。色はヘッダーの状態に自動追従 */
.mk-header__logo-mark{
  display: block;
  flex: 0 0 auto;
  width: 30px;
  height: 21px;
}
.mk-header__logo-text{
  color: var(--mk-ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  font-feature-settings: "palt" 1;
  white-space: nowrap;
}

/* トップページ: 透過ヘッダー（藍鼠ヒーローに重なる・文字白） */
.mk-header--transparent{
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
}
.mk-header--transparent .mk-header__logo{ color: #fff; }
.mk-header--transparent .mk-header__logo-text{ color: #fff; }

/* 透過ヘッダーが重なる分、トップのヒーローに上余白を足す（§D mk-hero の上書き） */
.mk-hero{
  padding-top: 150px;
}

/* -------------------------------------------------------------------------------------
 * H-2. PCグローバルナビ(.mk-gnav)— 下線アニメ・▼マーク
 * ------------------------------------------------------------------------------------- */
.mk-gnav{ margin-left: auto; }
.mk-gnav__list{
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mk-gnav__list li{ margin: 0; padding: 0; list-style: none; }
.mk-gnav__list > .menu-item > a{
  position: relative;
  display: block;
  padding: 10px 14px;
  color: var(--mk-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .05em;
  font-feature-settings: "palt" 1;
  text-decoration: none;
  border-radius: 3px;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.mk-gnav__list > .menu-item:not(.mk-menu-cta):hover > a,
.mk-gnav__list > .menu-item:not(.mk-menu-cta):focus-within > a{
  background: rgba(15, 23, 42, 0.04);
}

/* 透過ヘッダー時: ナビ白文字＋白ホバー */
.mk-header--transparent .mk-gnav__list > .menu-item > a{ color: #fff; }
.mk-header--transparent .mk-gnav__list > .menu-item:not(.mk-menu-cta):hover > a,
.mk-header--transparent .mk-gnav__list > .menu-item:not(.mk-menu-cta):focus-within > a{
  background: rgba(255, 255, 255, 0.10);
}

.mk-gnav__list > .menu-item > a .ttl{
  position: relative;
  display: inline-block;
}

/* 下線アニメ: 子なし・非CTAのみ（藍） */
.mk-gnav__list > .menu-item:not(.menu-item-has-children):not(.mk-menu-cta) > a .ttl::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--mk-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.mk-header--transparent .mk-gnav__list > .menu-item:not(.menu-item-has-children):not(.mk-menu-cta) > a .ttl::after{
  background: #fff;
}
.mk-gnav__list > .menu-item:not(.menu-item-has-children):not(.mk-menu-cta):hover > a .ttl::after,
.mk-gnav__list > .menu-item:not(.menu-item-has-children):not(.mk-menu-cta):focus-within > a .ttl::after{
  transform: scaleX(1);
}

/* 親項目(子あり)の▼マーク */
.mk-gnav__list > .menu-item-has-children > a .ttl{ padding-right: 16px; }
.mk-gnav__list > .menu-item-has-children > a .ttl::before{
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-65%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: .55;
  transition: transform .25s ease, opacity .2s ease;
}
.mk-gnav__list > .menu-item-has-children:hover > a .ttl::before{
  transform: translateY(-25%) rotate(225deg);
  opacity: 1;
}

/* -------------------------------------------------------------------------------------
 * H-3. PCサブメニュー(ドロップダウン)— 白面＋藍トップライン
 * ------------------------------------------------------------------------------------- */
.mk-gnav__list > .menu-item-has-children{ position: relative; }
.mk-gnav .sub-menu{
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--mk-line);
  border-top: 3px solid var(--mk-accent);
  border-radius: 0 0 6px 6px;
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.14),
    0 2px 8px rgba(15, 23, 42, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity .18s ease,
    transform .22s cubic-bezier(.2,.8,.2,1),
    visibility 0s linear .22s;
  z-index: 100;
}
.mk-gnav__list > .menu-item-has-children::before{
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
  pointer-events: none;
}
.mk-gnav__list > .menu-item-has-children:hover::before{ pointer-events: auto; }
.mk-gnav__list > .menu-item-has-children:hover > .sub-menu,
.mk-gnav__list > .menu-item-has-children:focus-within > .sub-menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity .18s ease,
    transform .22s cubic-bezier(.2,.8,.2,1),
    visibility 0s linear 0s;
}
.mk-gnav .sub-menu > .menu-item:not(:last-child) > a{ border-bottom: 1px solid #f5f5f5; }
.mk-gnav .sub-menu > .menu-item > a{
  display: block;
  padding: 13px 20px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--mk-ink);
  text-decoration: none;
  transition: background .18s ease, color .15s ease;
  white-space: nowrap;
}
.mk-gnav .sub-menu > .menu-item > a .ttl{ position: static; display: inline; padding-right: 0; }
.mk-gnav .sub-menu > .menu-item > a .ttl::after,
.mk-gnav .sub-menu > .menu-item > a .ttl::before{ content: none; display: none; }
.mk-gnav .sub-menu > .menu-item > a:hover{
  background: rgba(23, 94, 119, 0.06);
  color: var(--mk-accent);
}

/* -------------------------------------------------------------------------------------
 * H-4. PC CTAボタン(.mk-menu-cta =「ことばを教える」)
 * ------------------------------------------------------------------------------------- */
.mk-gnav__list > li.mk-menu-cta{ margin-left: 12px; }
.mk-gnav__list > li.mk-menu-cta > a{
  display: inline-block;
  padding: 13px 24px;
  background: var(--mk-accent);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 6px 18px rgba(23, 94, 119, 0.26);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.mk-gnav__list > li.mk-menu-cta > a .ttl{ color: #fff; display: inline; }
.mk-gnav__list > li.mk-menu-cta > a .ttl::after,
.mk-gnav__list > li.mk-menu-cta > a .ttl::before{ content: none; display: none; }
.mk-gnav__list > li.mk-menu-cta > a:hover{
  background: var(--mk-accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23, 94, 119, 0.32);
}

/* -------------------------------------------------------------------------------------
 * H-5. ヘッダー内 ことば検索窓（[mk_term_search_bare]）
 * ------------------------------------------------------------------------------------- */
.mk-header__search{
  flex: 0 0 auto;
  width: 250px;
}
/* 透過ヘッダー時: 半透明ダークフィールド（白文字） */
.mk-header--transparent .mk-header__search .mk-term-search__field{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.28);
  color: #e6edf1;
}
.mk-header--transparent .mk-header__search .mk-term-search__input{ color: #fff; }
.mk-header--transparent .mk-header__search .mk-term-search__input::placeholder{ color: rgba(255,255,255,.62); }

/* -------------------------------------------------------------------------------------
 * H-6. PC追従バー(.mk-fixbar)— スクロールでスライドイン
 * ------------------------------------------------------------------------------------- */
.mk-fixbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
  transform: translateY(-105%);
  transition: transform .34s cubic-bezier(.2,.8,.2,1);
}
.mk-fixbar.is-visible{ transform: translateY(0); }
.mk-fixbar__inner{
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px 2vw;
}
.mk-fixbar .mk-header__logo-text{ font-size: 15.5px; }
.mk-fixbar .mk-gnav__list > .menu-item > a{
  padding: 10px 12px;
  font-size: 13px;
}
.mk-fixbar .mk-gnav__list > li.mk-menu-cta > a{
  padding: 11px 20px;
  border-radius: 5px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(23, 94, 119, 0.24);
}
.mk-fixbar .mk-header__search{ width: 230px; }

/* 中間幅の収まり調整（SP切替959pxまでの間） */
@media (max-width: 1199px){
  .mk-header__search, .mk-fixbar .mk-header__search{ width: 200px; }
  .mk-gnav__list > .menu-item > a{ font-size: 13.5px; padding: 10px 10px; }
}
@media (max-width: 1023px) and (min-width: 960px){
  .mk-header__search{ display: none; }
}

/* -------------------------------------------------------------------------------------
 * H-7. SPハンバーガーボタン（3本線＋「メニュー」文字＝高齢者配慮・PCでは非表示）
 * ------------------------------------------------------------------------------------- */
.mk-spnav-btn{
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 60px;
  height: 58px;
  margin-left: auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.mk-spnav-btn__bar{
  display: block;
  width: 22px;
  height: 1.8px;
  border-radius: 1px;
  background: var(--mk-ink);
  transition: background .2s ease;
}
.mk-spnav-btn__label{
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  color: var(--mk-muted);
}
.mk-header--transparent .mk-spnav-btn__bar{ background: #fff; }
.mk-header--transparent .mk-spnav-btn__label{ color: rgba(255,255,255,.85); }

/* SPの「さがす」ボタン（虫めがね・ハンバーガーの左隣。SPで検索の在処を見せる） */
.mk-spnav-btn--search{
  margin-left: auto;
  color: var(--mk-ink);
}
.mk-spnav-btn--search ~ .mk-spnav-btn{ margin-left: 0; }
.mk-header--transparent .mk-spnav-btn--search{ color: #fff; }
.mk-header--transparent.is-stuck .mk-spnav-btn--search{ color: var(--mk-ink); }

/* -------------------------------------------------------------------------------------
 * H-8. レスポンシブ振り分け（PC≥960 / SP≤959）
 * ------------------------------------------------------------------------------------- */
@media (max-width: 959px){

  .mk-header{
    position: sticky;
    top: 0;
  }
  .mk-header--transparent{
    position: absolute;
    top: 0;
  }
  .mk-header__inner{
    min-height: 56px;
    padding: 0 0 0 18px;
    gap: 8px;
  }
  .mk-header__logo-text{ font-size: 15px; }
  .mk-header__logo-img{ height: 34px; }
  .mk-header .mk-gnav,
  .mk-header__search{ display: none; }
  .mk-spnav-btn{ display: inline-flex; }

  /* 追従バーはSPでは「画面下のCTAバー」になる。SPヘッダーはロゴと2ボタンで
     いっぱいでCTAを常設できないため、スクロール開始後に「ことばを教える」だけを
     画面下からスライドインさせる（出し入れのJSはPCの追従バーと共用） */
  .mk-fixbar{
    top: auto;
    bottom: 0;
    transform: translateY(105%);
    box-shadow: 0 -2px 10px rgba(0,0,0,.16);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mk-fixbar .mk-header__logo,
  .mk-fixbar .mk-header__search{ display: none; }
  .mk-fixbar__inner{
    min-height: 0;
    padding: 10px 16px;
    justify-content: center;
  }
  .mk-fixbar .mk-gnav{ width: 100%; margin: 0; }
  .mk-fixbar .mk-gnav__list{ justify-content: center; }
  .mk-fixbar .mk-gnav__list > .menu-item:not(.mk-menu-cta){ display: none; }
  .mk-fixbar .mk-gnav__list > li.mk-menu-cta{ margin: 0; width: 100%; max-width: 400px; }
  .mk-fixbar .mk-gnav__list > li.mk-menu-cta > a{
    display: block;
    padding: 13px 16px;
    font-size: 15px;
    border-radius: 8px;
  }
  /* 下部CTAバーの高さぶん、フッター末尾（運営者・©）が隠れないよう逃がす */
  .mk-footer{ padding-bottom: 76px; }

  /* SPトップの追従ヘッダー: 閾値超えで固定ソリッド化（JSが .is-stuck を付与） */
  .mk-header--transparent.is-stuck{
    position: fixed;
    top: 0;
    background: #fdfdfd;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    animation: mk-header-stick-in .34s cubic-bezier(.2,.8,.2,1);
  }
  .mk-header--transparent.is-stuck .mk-header__logo-text{ color: var(--mk-ink); }
  .mk-header--transparent.is-stuck .mk-spnav-btn__bar{ background: var(--mk-ink); }
  .mk-header--transparent.is-stuck .mk-spnav-btn__label{ color: var(--mk-muted); }

  /* SPトップのヒーロー上余白（ヘッダー高さぶん） */
  .mk-hero{ padding-top: 110px; }
}
@keyframes mk-header-stick-in{
  from{ transform: translateY(-100%); }
  to{ transform: translateY(0); }
}

@media (min-width: 960px){
  .mk-spnav-btn{ display: none; }
  .mk-spnav{ display: none; }
}

/* -------------------------------------------------------------------------------------
 * H-9. SP開閉ドロワー(.mk-spnav)— 藍鼠ダーク（単色・グラデ禁止＝§4-4）
 *   開閉トリガーは html[data-mk-spnav="opened"]（JS=site-header.js）
 * ------------------------------------------------------------------------------------- */
@media (max-width: 959px){

  .mk-spnav{
    position: fixed;
    inset: 0;
    z-index: 1400;
  }
  .mk-spnav[hidden]{ display: none; }

  .mk-spnav__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(2, 4, 8, .72);
    opacity: 0;
    transition: opacity .3s ease;
  }
  html[data-mk-spnav="opened"] .mk-spnav__backdrop{ opacity: 1; }

  /* パネル: 左からスライドイン（藍鼠の単色面） */
  .mk-spnav__panel{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(343px, 88vw);
    background: var(--mk-ink);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-103%);
    transition: transform .38s cubic-bezier(.22,1,.36,1);
    box-shadow: 8px 0 40px rgba(0,0,0,.35);
  }
  html[data-mk-spnav="opened"] .mk-spnav__panel{ transform: translateX(0); }
  .mk-spnav__panel:focus{ outline: none; }
  html[data-mk-spnav="opened"]{ overflow: hidden; }

  .mk-spnav__close{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    padding: 0;
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
  }

  /* 検索窓（半透明ダークフィールド） */
  .mk-spnav__search{
    position: relative;
    z-index: 5;
    padding: 0 20px 4px;
  }
  .mk-spnav__search .mk-term-search__field{
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 11px;
    color: #cbd5e1;
  }
  .mk-spnav__search .mk-term-search__input{
    color: #f1f5f9;
    background: transparent;
  }
  .mk-spnav__search .mk-term-search__input::placeholder{ color: rgba(203,213,225,.5); }

  /* メニューラベル（小・ミュート・字間広） */
  .mk-spnav__label{
    margin: 0;
    padding: 18px 22px 12px;
    color: #8b98a6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .28em;
    line-height: 1;
    text-align: left;
  }

  .mk-spnav__nav{ padding-top: 4px; }
  .mk-spnav__list{
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .mk-spnav__list > li{
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid rgba(255,255,255,.09);
  }
  .mk-spnav__list > li > a{
    position: relative;
    display: block;
    padding: 14px 22px;
    color: #f1f5f9;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .18s ease, background .18s ease;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
  }
  .mk-spnav__list > li:not(.mk-menu-cta) > a:hover,
  .mk-spnav__list > li:not(.mk-menu-cta) > a:active{
    background: rgba(255,255,255,.045);
    color: #ffffff;
  }
  .mk-spnav__list > li.current-menu-item > a{
    color: #ffffff;
    font-weight: 800;
    background: rgba(255,255,255,.05);
  }

  /* CTA「ことばを教える」= 白の主ボタン */
  .mk-spnav__list > li.mk-menu-cta{
    margin: 18px 20px 8px;
    border-bottom: none;
  }
  .mk-spnav__list > li.mk-menu-cta > a{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    background: #ffffff;
    color: var(--mk-ink);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(0,0,0,.30);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mk-spnav__list > li.mk-menu-cta > a:active{
    transform: scale(.99);
    box-shadow: 0 4px 14px rgba(0,0,0,.30);
  }

  /* 最下部のネットワーク加盟パネル（.mk-spnav__network）は取り下げ＝markup・CSSごと削除 */

  /* 段階リビール: blur→sharp で順に立ち上がる */
  @keyframes mkSpItemIn{
    0%   { opacity: 0; transform: translateY(22px); filter: blur(5px); }
    55%  { filter: blur(0); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
  }
  html[data-mk-spnav="opened"] .mk-spnav__search,
  html[data-mk-spnav="opened"] .mk-spnav__label,
  html[data-mk-spnav="opened"] .mk-spnav__list > li{
    animation: mkSpItemIn .55s cubic-bezier(.22,1,.36,1) both;
  }
  html[data-mk-spnav="opened"] .mk-spnav__search{ animation-delay: 0s; }
  html[data-mk-spnav="opened"] .mk-spnav__label{ animation-delay: .06s; }
  html[data-mk-spnav="opened"] .mk-spnav__list > li:nth-child(1){ animation-delay: .12s; }
  html[data-mk-spnav="opened"] .mk-spnav__list > li:nth-child(2){ animation-delay: .18s; }
  html[data-mk-spnav="opened"] .mk-spnav__list > li:nth-child(3){ animation-delay: .24s; }
  html[data-mk-spnav="opened"] .mk-spnav__list > li:nth-child(4){ animation-delay: .30s; }
  html[data-mk-spnav="opened"] .mk-spnav__list > li:nth-child(n+5){ animation-delay: .36s; }
}

@media (max-width: 959px) and (prefers-reduced-motion: reduce){
  .mk-header--transparent.is-stuck{ animation: none; }
  .mk-spnav__panel{ transition: none; }
  html[data-mk-spnav="opened"] .mk-spnav__search,
  html[data-mk-spnav="opened"] .mk-spnav__label,
  html[data-mk-spnav="opened"] .mk-spnav__list > li{
    animation: none;
  }
}

/* -------------------------------------------------------------------------------------
 * §J. 404ページ（F4・迷子にしない導線）
 * ------------------------------------------------------------------------------------- */
.mk-notfound{
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 0 32px;
  text-align: center;
}
.mk-notfound__title{
  font-size: 1.5rem;
  line-height: 1.4;
}
.mk-notfound__lead{
  margin-top: 14px;
  color: var(--mk-muted);
  line-height: 1.9;
}
.mk-notfound__search{
  margin: 26px auto 0;
  max-width: 520px;
  text-align: left;
}
.mk-notfound__actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.mk-notfound__btn{
  display: inline-block;
  min-width: 200px;
  padding: 14px 26px;
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  background: var(--mk-base);
  color: var(--mk-ink);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.mk-notfound__btn:hover{
  border-color: var(--mk-accent);
  color: var(--mk-accent);
}
.mk-notfound__btn--primary{
  background: var(--mk-accent);
  border-color: var(--mk-accent);
  color: #fff;
}
.mk-notfound__btn--primary:hover{
  background: var(--mk-accent-deep);
  border-color: var(--mk-accent-deep);
  color: #fff;
}


/* =====================================================================================
 * §L 用語募集LP（/glossary-form/）＋用語ページ下部の募集・補足導線
 * ===================================================================================== */
.mk-lp{
  color: var(--mk-ink);
  line-height: 1.9;
}
.mk-lp__sec{
  padding: 60px 20px;
  margin: 0;
}
.mk-lp__sec--tint{ background: var(--mk-sub); }
.mk-lp__inner{
  max-width: 760px;
  margin: 0 auto;
}
.mk-lp__title,
.mk-lp__h2{
  font-family: var(--mk-serif);
  color: var(--mk-ink);
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
}
.mk-lp__title{
  font-size: 36px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 18px;
}
.mk-lp__h2{
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 22px;
  text-align: center;
}
.mk-lp__sec p{ margin: 0 0 1.3em; }

/* FV */
.mk-lp__hero{ text-align: center; padding-top: 72px; }
.mk-lp__hero-lead{ font-size: 17px; margin: 0 0 6px; }
.mk-lp__hero-sub{ font-size: 16px; font-weight: 700; color: var(--mk-accent); margin: 0; }
.mk-lp__hero-note{ font-size: 14px; color: var(--mk-muted); margin: 12px 0 0; }

/* CTA */
.mk-lp__cta{ text-align: center; margin: 28px 0 0; }
.mk-lp__btn{
  position: relative;
  display: inline-block;
  min-width: 320px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 18px 56px;
  border-radius: 999px;
  background: var(--mk-accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(18,74,94,.24);
  transition: background .2s ease, transform .1s ease;
}
.mk-lp__btn:hover{ background: var(--mk-accent-deep); color: #fff; transform: translateY(-1px); }
.mk-lp__btn::after{
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

/* 例示リスト */
.mk-lp__examples{ list-style: none; margin: 0; padding: 0; }
.mk-lp__examples li{ margin: 0; padding: 17px 4px; border-top: 1px solid var(--mk-line); }
.mk-lp__examples li:last-child{ border-bottom: 1px solid var(--mk-line); }
.mk-lp__examples strong{ display: block; font-size: 17px; margin: 0 0 4px; }
.mk-lp__examples span{ display: block; font-size: 15px; color: var(--mk-muted); }
.mk-lp__note{ margin: 22px 0 0; text-align: center; }

/* 3ステップ */
.mk-lp__steps{ list-style: none; margin: 0; padding: 0; }
.mk-lp__steps li{
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  padding: 18px 4px;
  border-top: 1px solid var(--mk-line);
}
.mk-lp__steps li:last-child{ border-bottom: 1px solid var(--mk-line); }
.mk-lp__step-num{
  font-family: var(--mk-serif);
  font-size: 32px;
  line-height: 1.2;
  color: var(--mk-accent);
  min-width: 34px;
  text-align: center;
}
.mk-lp__step-body strong{ display: block; font-size: 17px; margin: 0 0 2px; }

/* はじめての方へ */
.mk-lp__safe{ margin: 0; }
.mk-lp__safe dt{ font-weight: 700; font-size: 17px; margin: 0; padding: 16px 4px 2px; border-top: 1px solid var(--mk-line); }
.mk-lp__safe dd{ margin: 0; padding: 0 4px 16px; color: var(--mk-muted); }
.mk-lp__safe dd:last-child{ border-bottom: 1px solid var(--mk-line); }

/* FAQ */
.mk-lp__faq{
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  background: var(--mk-base);
  margin: 0 0 12px;
}
.mk-lp__faq summary{
  list-style: none;
  cursor: pointer;
  position: relative;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 48px 16px 18px;
  min-height: 44px;
  box-sizing: border-box;
}
.mk-lp__faq summary::-webkit-details-marker{ display: none; }
.mk-lp__faq summary::after{
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--mk-accent);
  border-bottom: 2px solid var(--mk-accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.mk-lp__faq[open] summary::after{ transform: translateY(-30%) rotate(225deg); }
.mk-lp__faq-body{ padding: 0 18px 4px; border-top: 1px solid var(--mk-line); }
.mk-lp__faq-body p{ margin: 12px 0; }

#mk-form{ scroll-margin-top: 90px; }
.mk-lp__form-lead{ text-align: center; margin: 0 0 24px; }

@media (max-width: 600px){
  .mk-lp__sec{ padding: 34px 16px; }
  .mk-lp__hero{ padding-top: 34px; }
  .mk-lp__title{ font-size: 28px; }
  .mk-lp__h2{ font-size: 22px; }
  .mk-lp__btn{ display: block; min-width: 0; width: 100%; padding: 16px 24px; }
  .mk-lp__btn::after{ right: 18px; }
  .mk-lp__note{ text-align: left; }
}

/* -------------------------------------------------------------------------------------
 * 用語ページ下部：このことばに情報を足す／ことばを教える（2つの導線を1箱に）
 *   - 左＝この語への補足（用語名を引き継ぐ）／右＝新しいことばの募集
 * ----------------------------------------------------------------------------------- */
.mk-contrib{
  margin: 44px 0 0;
  padding: 26px 24px 24px;
  background: var(--mk-sub);
  border: 1px solid var(--mk-line);
  border-radius: 12px;
}
/* mk-contrib は the_content 差し込み＝.entry-content の内側に入る。
 * .entry-content h2（margin-top:1.9em / clamp30px）と .entry-content a（下線）に
 * 詳細度で負けて「箱内の死に余白＋見出し肥大＋ボタン下線」が出ていた
 * （mk-topic と同型の欠陥）。.mk-contrib 前置で確実に勝たせる。 */
.mk-contrib .mk-contrib__title{
  font-family: var(--mk-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 8px;
  color: var(--mk-ink);
}
.mk-contrib .mk-contrib__lead{
  font-size: 15px;
  color: var(--mk-muted);
  margin: 0 0 18px;
  line-height: 1.85;
}
.mk-contrib__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.mk-contrib .mk-contrib__btn{
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.mk-contrib__btn--primary{
  background: var(--mk-accent);
  color: #fff;
  border: 1px solid var(--mk-accent);
}
.mk-contrib__btn--primary:hover{ background: var(--mk-accent-deep); border-color: var(--mk-accent-deep); color: #fff; }
.mk-contrib__btn--ghost{
  background: transparent;
  color: var(--mk-accent);
  border: 1px solid var(--mk-accent);
}
.mk-contrib__btn--ghost:hover{ background: var(--mk-accent); color: #fff; }
@media (max-width: 600px){
  .mk-contrib{ padding: 22px 18px 20px; }
  .mk-contrib__actions{ flex-direction: column; }
  .mk-contrib__btn{ text-align: center; }
}


/* =====================================================================================
 * §M フォーム共通（.mk-formbox）
 *   用語募集フォーム（CF7）と /form/ 問い合わせフォームの共通CSS。
 *   正本は src/uketsuke/css/mk-glossary-form.css（#mk-glossary-submit → .mk-formbox に
 *   スコープを一般化して site.css へ統合）。藍ブランド＝docs/15§5。
 * ===================================================================================== */
/* ---------- 全体 ---------- */
.mk-formbox {
  max-width: 680px;
  margin: 0 auto;
  color: #1f2a33;
  font-size: 16px;
  line-height: 1.8;
}

.mk-formbox .mk-form-lead {
  font-size: 16px;
  margin: 0 0 28px;
}

/* ---------- ハニーポット(画面外へ・display:noneは使わない) ---------- */
.mk-formbox .mk-hp-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 各項目 ---------- */
.mk-formbox .mk-field {
  margin: 0 0 26px;
}

.mk-formbox .mk-label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #1f2a33;
  margin: 0 0 6px;
  line-height: 1.6;
}

.mk-formbox .mk-hint {
  font-size: 15px;
  color: #5a6b73;
  margin: 0 0 8px;
  line-height: 1.7;
}

.mk-formbox .mk-badge-req,
.mk-formbox .mk-badge-opt {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  color: #ffffff;
}
.mk-formbox .mk-badge-req { background: #175e77; }
.mk-formbox .mk-badge-opt { background: #6b7b84; }

/* ---------- 入力欄(テーマ干渉に勝つ) ---------- */
.mk-formbox input[type="text"],
.mk-formbox input[type="email"],
.mk-formbox input[type="url"],
.mk-formbox select,
.mk-formbox textarea {
  width: 100% !important;
  border: 1px solid #d9e2e5 !important;
  background: #f2f6f7 !important;
  color: #1f2a33 !important;
  border-radius: 8px !important;
  padding: 14px 14px !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mk-formbox textarea {
  min-height: 130px !important;
}

.mk-formbox input[type="text"]:focus,
.mk-formbox input[type="email"]:focus,
.mk-formbox input[type="url"]:focus,
.mk-formbox select:focus,
.mk-formbox textarea:focus {
  outline: none !important;
  border-color: #175e77 !important;
  box-shadow: 0 0 0 3px rgba(23, 94, 119, 0.18) !important;
  background: #ffffff !important;
}

.mk-formbox input[type="file"] {
  font-size: 15px !important;
  padding: 8px 0 !important;
}

/* ---------- 任意項目の開閉(details) ---------- */
.mk-formbox details.mk-more {
  border: 1px solid #d9e2e5;
  border-radius: 10px;
  margin: 0 0 22px;
  background: #ffffff;
}

.mk-formbox .mk-more-summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  font-size: 16px;
  font-weight: 700;
  color: #124b5f;
  padding: 16px 48px 16px 18px;
  min-height: 44px;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}
.mk-formbox .mk-more-summary::-webkit-details-marker {
  display: none;
}

/* 開閉マーク(CSS borderで描画・SVG不使用) */
.mk-formbox .mk-more-summary::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #124b5f;
  border-bottom: 2px solid #124b5f;
  border-top: none;
  border-left: none;
  background: none;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
  pointer-events: none;
}
.mk-formbox details.mk-more[open] .mk-more-summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.mk-formbox .mk-more-inner {
  padding: 6px 18px 4px;
  border-top: 1px solid #e6eef0;
}
.mk-formbox .mk-more-inner .mk-field:first-child {
  margin-top: 14px;
}

/* ---------- ラジオ(縦並び・タップしやすく) ---------- */
.mk-formbox .mk-radio-list .wpcf7-list-item {
  display: block;
  margin: 0 0 4px;
}
.mk-formbox .mk-radio-list .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  min-height: 44px;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 16px;
}
.mk-formbox .mk-radio-list input[type="radio"] {
  width: 22px !important;
  height: 22px !important;
  accent-color: #175e77;
  flex-shrink: 0;
  margin: 0 !important;
}

/* ---------- 同意チェック ---------- */
.mk-formbox .mk-consent {
  background: #f2f6f7;
  border: 1px solid #d9e2e5;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 30px;
}
.mk-formbox .mk-consent .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.7;
}
.mk-formbox .mk-consent input[type="checkbox"] {
  width: 24px !important;
  height: 24px !important;
  accent-color: #175e77;
  flex-shrink: 0;
  margin: 3px 0 0 !important;
}
.mk-formbox .mk-consent-required {
  font-size: 15px;
  font-weight: 700;
  color: #124b5f;
  margin: 12px 0 0;
  line-height: 1.7;
}
/* エラー表示中は常時案内を隠して重複を防ぐ（CF7の同意未チェックエラーが同内容を表示するため） */
.wpcf7-form.invalid .mk-formbox .mk-consent-required {
  display: none;
}
.mk-formbox .mk-consent-note {
  font-size: 14px;
  color: #5a6b73;
  margin: 10px 0 0;
  line-height: 1.7;
}
.mk-formbox .mk-consent-note a {
  color: #175e77;
  text-decoration: underline;
}

/* ---------- 送信ボタンエリア(CF7自動挿入のpとspinner対策込み) ---------- */
.mk-formbox .mk-submit-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mk-formbox .mk-micro-copy {
  font-size: 15px;
  color: #5a6b73;
  margin: 0 0 10px;
}

.mk-formbox .mk-btn-wrap {
  position: relative;
  display: inline-block;
}

.mk-formbox .mk-btn-wrap p {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  width: auto !important;
}
.mk-formbox .mk-btn-wrap p::before,
.mk-formbox .mk-btn-wrap p::after {
  content: none !important;
  display: none !important;
}

.mk-formbox .mk-btn-wrap .wpcf7-spinner {
  position: absolute !important;
  top: 50%;
  left: calc(100% + 12px);
  transform: translateY(-50%);
  margin: 0 !important;
}

.mk-formbox input.mk-submit-btn {
  display: block !important;
  width: auto !important;
  min-width: 340px !important;
  max-width: 100% !important;
  padding: 18px 56px !important;
  text-align: center !important;
  white-space: nowrap !important;
  border-radius: 50px !important;
  background: #175e77 !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 3px 10px rgba(20, 40, 50, 0.22) !important;
  cursor: pointer;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  letter-spacing: 0.04em;
}
.mk-formbox input.mk-submit-btn:hover {
  background: #124b5f !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(20, 40, 50, 0.3) !important;
}

/* 矢印(CSS borderで描画・SVG不使用) */
.mk-formbox .mk-btn-wrap::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  border-bottom: none;
  border-left: none;
  background: none;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.2s ease;
}
.mk-formbox .mk-btn-wrap:hover::after {
  transform: translateY(-50%) rotate(45deg) translate(2px, -2px);
}

/* 送信中の二度押し防止(CF7が.submittingを付与) */
.mk-formbox .wpcf7-form.submitting input.mk-submit-btn {
  opacity: 0.6;
  pointer-events: none;
}

.mk-formbox .mk-privacy-note {
  font-size: 14px;
  color: #5a6b73;
  margin: 14px 0 0;
}

/* ---------- エラー表示(平易・見える) ---------- */
.mk-formbox .wpcf7-not-valid-tip {
  display: block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #d93025 !important;
  margin-top: 6px !important;
  padding: 0 !important;
  background: none !important;
}

.mk-formbox .wpcf7-response-output {
  border: 2px solid #d93025 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  margin: 20px 0 0 !important;
  font-size: 15px !important;
  color: #1f2a33 !important;
}
.mk-formbox .wpcf7-form.sent .wpcf7-response-output {
  border-color: #2e7d32 !important;
}

/* ---------- SP(600px以下) ---------- */
@media (max-width: 600px) {
  .mk-formbox {
    font-size: 16px;
  }

  .mk-formbox .mk-btn-wrap {
    display: block;
    width: 100%;
    position: relative;
  }
  .mk-formbox .mk-btn-wrap p {
    display: block !important;
    width: 100% !important;
  }
  .mk-formbox input.mk-submit-btn {
    min-width: 0 !important;
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 17px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  /* SP矢印: 全プロパティ明示(PC定義の継承に頼らない) */
  .mk-formbox .mk-btn-wrap::after {
    content: '' !important;
    position: absolute !important;
    right: 18px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    border-bottom: none;
    border-left: none;
    background: none !important;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
    z-index: 2;
  }

  .mk-formbox .mk-btn-wrap .wpcf7-spinner {
    left: auto;
    right: 50px;
  }
}

/* =====================================================================================
 * §N 用語ページ「辞書の版面」
 *   視覚順「読み（ルビ位置）→ 見出し語＋とは」は grid の並べ替えで作る。
 * ===================================================================================== */

.mk-termhead {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--mk-line);
}
h1.mk-termhead__title {
  display: grid;
  grid-template-areas:
    "reading"
    "word";
  row-gap: 6px;
  margin: 0;
  line-height: 1.25;
}
.mk-termhead__reading {
  grid-area: reading;
  font-family: var(--mk-serif);
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mk-muted);
}
.mk-termhead__word {
  grid-area: word;
  font-family: var(--mk-serif);
  font-size: clamp(1.9rem, 4.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 0;
  overflow-wrap: anywhere;
}
.mk-termhead__toha {
  margin-left: 0.4em;
  font-family: var(--mk-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--mk-muted);
  white-space: nowrap;
}
.mk-termhead .mk-term__meta {
  margin-top: 14px;
}
/* 「出典 N件」刻印（出典主義の可視化。押すと出典タブへ） */
.mk-termhead__proof {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border: 1px solid var(--mk-accent);
  border-radius: 4px;
  background: transparent;
  color: var(--mk-accent);
  font-size: 0.82rem;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}
.mk-termhead__proof:hover {
  background: var(--mk-accent);
  color: #fff;
}

/* リード（定義文）は辞書の語釈らしく、本文よりわずかに立てる */
.mk-term__content > p:first-of-type {
  font-size: 1.13em;
  line-height: 2;
  color: var(--mk-ink);
}

/* 写真の器（アイキャッチを設定するだけでヒーロー写真になる・Phase 2受け入れ先） */
.mk-termhero {
  margin: 4px 0 30px;
}
.mk-termhero__img,
.mk-termhero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.mk-termhero__cap {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--mk-muted);
  text-align: right;
}

/* =====================================================================================
 * §O まちことばフッター（3段: ブランド → 導線 → 運営者）
 * ===================================================================================== */

.mk-footer {
  background: var(--mk-ink);
  color: #cfdbe1;
}
.mk-footer a {
  color: inherit;
  text-decoration: none;
}
.mk-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.mk-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 28px;
}
.mk-footer__brand {
  text-align: center;
  margin-bottom: 38px;
}
.mk-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.mk-footer__logo:hover {
  text-decoration: none;
}
.mk-footer__logo-text {
  font-family: var(--mk-serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
}
.mk-footer__tagline {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: #9fb2bb;
}
.mk-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  max-width: 720px;
  margin: 0 auto 40px;
}
.mk-footer__head {
  margin: 0 0 12px;
  font-family: var(--mk-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff;
}
.mk-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}
.mk-footer__list a {
  display: inline-block;
  padding: 2px 0;
}
.mk-footer__teach {
  margin: 14px 0 0;
}
.mk-footer__teach a {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid #cfdbe1;
  border-radius: 4px;
  font-size: 0.9rem;
}
.mk-footer__teach a:hover {
  background: #fff;
  border-color: #fff;
  color: var(--mk-ink);
  text-decoration: none;
}
.mk-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  text-align: center;
}
.mk-footer__operator {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: #9fb2bb;
}
.mk-footer__copy {
  margin: 0;
  color: #9fb2bb;
}
@media (max-width: 640px) {
  .mk-footer__cols {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .mk-footer__inner {
    padding-top: 46px;
  }
}

/* =====================================================================================
 * §P モーション（site-motion.js と対）
 *   初期透明はすべて html.mk-motion スコープ配下＝JS無効・reduced-motion環境では
 *   一切適用されず静的に全表示される（プログレッシブエンハンスメント）。
 * ===================================================================================== */

.mk-motion .mk-rv {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease-out,
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mk-motion .mk-rv.is-rv {
  opacity: 1;
  transform: none;
}

/* ヒーロー: パララックス余白（JSが media を下方向へ動かすぶん上下に伸ばしておく） */
.mk-motion .mk-hero__media {
  inset: -14% 0;
}

/* ヒーローの初回出現（ロード時・順次） */
@keyframes mk-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.mk-motion .mk-hero__title {
  animation: mk-fade-up 0.8s 0.08s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.mk-motion .mk-hero__lead {
  animation: mk-fade-up 0.8s 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.mk-motion .mk-hero__actions {
  animation: mk-fade-up 0.8s 0.52s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.mk-motion .mk-hero__place {
  animation: mk-fade-up 0.9s 0.8s ease both;
}

/* カードホバーの浮き（AI感排除: 影は単色・控えめ） */
.mk-term-card,
.mk-photocard {
  transition:
    transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.2s ease;
}
.mk-term-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(31, 42, 51, 0.1);
}
.mk-photocard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(31, 42, 51, 0.18);
}

/* =====================================================================================
 * §Q カード・50音索引の版面強化
 * ===================================================================================== */

/* 用語カード: 読みをルビ位置（見出し語の上）へ */
.mk-term-card__title {
  display: flex;
  flex-direction: column;
}
.mk-term-card__reading {
  order: -1;
  margin: 0 0 3px;
  letter-spacing: 0.08em;
  color: var(--mk-muted);
}

/* 50音索引: 行ナビを追従化＋現在位置ハイライト */
.mk-glossary-index__nav {
  position: sticky;
  top: 64px;
  z-index: 20;
  margin: 0 -8px 1.6em;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.93);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.mk-glossary-index__nav-item.is-current {
  background: var(--mk-accent);
  border-color: var(--mk-accent);
  color: #fff;
}

/* ディスプレイ見出しの行間を締める（本文行間のままの大見出しは「大きくした本文」に見える） */
.mk-hero__title {
  line-height: 1.32;
}
.mk-term-card__title {
  line-height: 1.4;
}

/* FVリードの問い→答えページへの直リンク（問いを立てたら答えへの経路を渡す） */
.mk-hero__lead-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}
.mk-hero__lead-link:hover {
  text-decoration-color: #fff;
}

/* 記事末「つぎに読む」（読了直後に次の一語を具体で差し出す） */
.mk-next {
  max-width: var(--content-max, 720px);
  margin: 40px auto 0;
}
.mk-next__title {
  font-family: var(--mk-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}
.mk-next__grid {
  display: grid;
}

/* =====================================================================================
 * §R 固定ページ（LP白紙テンプレート）の追加パーツ
 *   about（このサイトについて）を §L の器に載せるための追加パーツ。
 *   §L の .mk-lp__* をそのまま使い、ここには「§L に無い部品」だけを置く。
 * ===================================================================================== */

/* 写真の器（[mk_page_photo]＝アイキャッチを設定するだけで出る。用語ページの .mk-termhero と同じ運用） */
.mk-pagephoto {
  margin: 0 0 26px;
}
.mk-pagephoto__img,
.mk-pagephoto img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.mk-pagephoto__cap {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--mk-muted);
  text-align: right;
}
/* about の写真は人物（運営者）を想定＝本文幅いっぱいにはしない */
.mk-about .mk-pagephoto {
  max-width: 380px;
  margin-inline: auto;
}
.mk-about .mk-pagephoto__cap {
  text-align: center;
}

/* 協力のお願い（宛先ごとのブロック。地元の方と、自治体・団体の方を並べて置く） */
.mk-lp__ask {
  margin: 0;
  padding: 24px 4px 4px;
  border-top: 1px solid var(--mk-line);
}
.mk-lp__ask:last-of-type {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--mk-line);
}
.mk-lp__ask-to {
  font-family: var(--mk-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
}
.mk-lp__sec .mk-lp__ask p {
  margin: 0 0 1.1em;
}
.mk-lp__ask .mk-lp__cta {
  margin: 4px 0 0;
  text-align: left;
}
/* ボタン直下の一言（不安の解消は、押す直前に置かないと読まれない） */
.mk-lp__sec .mk-lp__ask-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--mk-muted);
}
/* 辞典本体への導線は about では中央のまま（§L のSP左寄せだと本文に埋もれる） */
.mk-about .mk-lp__note {
  text-align: center;
}
.mk-lp__ask .mk-lp__btn {
  min-width: 0;
  padding: 13px 52px 13px 26px;
  font-size: 15px;
}

/* about の版面（用語ページの「辞書の版面」を固定ページにも通す）
   語りの本文は行長を全角40字までに絞り、段落間を行送りより広く取り、
   見出しと同じ明朝で組む（名乗る本文だけゴシックだと、声が変わって聞こえる） */
.mk-about .mk-lp__inner { max-width: 640px; }
.mk-about .mk-lp__sec p {
  font-family: var(--mk-serif);
  margin-bottom: 2em;
}
.mk-about .mk-lp__sec .mk-lp__ask p { margin-bottom: 1.1em; }
.mk-about .mk-lp__sec p.mk-lp__hero-lead { margin-bottom: 16px; }
.mk-about .mk-lp__sec p.mk-lp__hero-sub,
.mk-about .mk-lp__sec p.mk-lp__hero-note,
.mk-about .mk-lp__sec p.mk-lp__note,
.mk-about .mk-lp__sec p.mk-lp__ask-note { margin-bottom: 0; }

/* ヒーローの級数：H1（棚のラベル）を小さな刻印に落とし、
   いちばん読ませたい一行（誰がつくっているか）を主役の級数にする */
.mk-about .mk-lp__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--mk-muted);
  margin-bottom: 30px;
}
.mk-about .mk-lp__hero-lead {
  font-size: 20px;
  line-height: 2;
}
.mk-about .mk-lp__hero-sub {
  font-size: 25px;
  line-height: 1.75;
}

/* 運営者情報（ラベル＋値の対。素の <br> 並べより読みやすく、行政担当者が拾いやすい） */
.mk-lp__meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0 0 1.5em;
}
.mk-lp__meta dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--mk-muted);
}
.mk-lp__meta dd {
  margin: 0;
}

@media (max-width: 600px) {
  /* about の見出しは長い問い（「なぜ、横浜の人間が…」）＝SPで最終行に1文字だけ落ちるのを防ぐ。
     .mk-about スコープに閉じる＝募集LP（§L）の見出しには影響させない。 */
  .mk-about .mk-lp__h2 {
    font-size: 21px;
    line-height: 1.45;
    letter-spacing: 0;
  }
  .mk-about .mk-lp__title { font-size: 13px; margin-bottom: 22px; }
  .mk-about .mk-lp__hero-lead { font-size: 16px; }
  .mk-about .mk-lp__hero-sub { font-size: 20px; }
  .mk-lp__meta {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mk-lp__meta dt {
    margin-top: 10px;
  }
  .mk-lp__meta dd {
    margin: 2px 0 0;
  }
  .mk-lp__ask .mk-lp__btn {
    width: 100%;
    /* 左右対称のパディング＋中央揃え。非対称パディングのまま中央揃えにすると
       ラベルの実描画中心がボタン中心から左へずれる（矢印は right 固定なので干渉しない） */
    text-align: center;
    padding: 14px 34px;
  }
}
