/*!
Theme Name: kono_kiyofumi
Author: 四国ITコンサルタント
Description: 江東区議会議員 こうのきよふみ 公式サイト用WordPressテーマ。白基調のヘッダーとSNSアイコン、メインビジュアル、プロフィール・新着ニュース・政策・動画/SNS・LINEバナー・事務所案内で構成する議員サイト向けデザイン。軽量・スマートフォン最優先・アクセシビリティ配慮。
Version: 2.0.3
Tested up to: 6.7
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: kono_kiyofumi
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template, block-styles

This theme is licensed under the GPL.
*/

/* ==========================================================================
   CSS Custom Properties
   --------------------------------------------------------------------------
   配色：信頼感のある紺（primary）× 明るい青（accent）× 白基調。
   primary / accent はカスタマイザー（テーマカラー）で変更できます。
   ========================================================================== */
:root {
  --kk-color-primary: #0b3c7d;
  --kk-color-accent: #0068b7;
  --kk-color-accent-light: #e9f3fb;
  --kk-color-highlight: #f5b800;
  --kk-color-bg: #ffffff;
  --kk-color-text: #1f2933;
  --kk-color-text-light: #56616f;
  --kk-color-border: #d9e2ec;
  --kk-color-bg-alt: #f3f7fb;
  --kk-color-line: #06c755;
  --kk-color-line-dark: #04813a;
  --kk-font-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "BIZ UDPGothic", Meiryo, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --kk-font-heading: var(--kk-font-body);
  --kk-font-en: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --kk-container-width: 1100px;
  --kk-container-narrow: 740px;
  --kk-spacing: 1.25rem;
  --kk-radius: 8px;
  --kk-header-h: 76px;
  --kk-shadow: 0 6px 24px rgba(11, 60, 125, 0.08);
}

/* ==========================================================================
   Reset / Normalize (minimal)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.8; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--kk-font-body); font-size: 16px; color: var(--kk-color-text); background-color: var(--kk-color-bg); letter-spacing: 0.03em; overflow-wrap: anywhere; }
h1, h2, h3, h4, h5, h6 { font-family: var(--kk-font-heading); line-height: 1.4; margin: 1.4em 0 0.6em; font-weight: 700; color: var(--kk-color-primary); }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.2em; }
a { color: var(--kk-color-accent); text-decoration: underline; text-underline-offset: 0.2em; }
a:hover, a:focus { color: var(--kk-color-primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--kk-color-highlight); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5em; }
blockquote { margin: 1em 0; padding: 0.8em 1.2em; border-left: 4px solid var(--kk-color-accent); background: var(--kk-color-bg-alt); }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 0.6em 0.9em; border: 1px solid var(--kk-color-border); text-align: left; }
th { background: var(--kk-color-accent-light); font-weight: 700; color: var(--kk-color-primary); }
code, pre { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.9em; }
pre { padding: 1em; background: var(--kk-color-bg-alt); overflow-x: auto; border-radius: var(--kk-radius); }
hr { border: none; border-top: 1px solid var(--kk-color-border); margin: 2em 0; }

/* ==========================================================================
   Layout
   ========================================================================== */
.kk-container {
  max-width: var(--kk-container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--kk-spacing);
  padding-right: var(--kk-spacing);
}

.kk-container-narrow {
  max-width: var(--kk-container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--kk-spacing);
  padding-right: var(--kk-spacing);
}

/* ==========================================================================
   Header（白基調／ロゴ・議員名 左、グローバルナビ＋SNS 右）
   ========================================================================== */
.site-header {
  background: #fff;
  color: var(--kk-color-text);
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: 4px solid var(--kk-color-primary);
  box-shadow: 0 2px 10px rgba(11, 60, 125, 0.08);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--kk-header-h);
}

.site-branding { display: flex; align-items: center; gap: 0.8em; min-width: 0; }
.site-branding-inner { display: flex; align-items: center; gap: 0.8em; margin: 0; font-weight: 700; font-size: 1rem; line-height: 1.2; }
.site-branding .custom-logo { max-height: 52px; width: auto; }

/* CLS: the <picture> wrapper added around the custom logo (for WebP
   delivery) has no intrinsic size of its own — `display: contents` makes
   the wrapper generate no box, so the sized <img> participates in layout. */
.kk-logo__picture { display: contents; }

.kk-brand { display: flex; flex-direction: column; text-decoration: none; color: var(--kk-color-primary); }
.kk-brand:hover, .kk-brand:focus { color: var(--kk-color-primary); }
.kk-brand__role { font-size: 0.78rem; font-weight: 700; color: var(--kk-color-accent); letter-spacing: 0.12em; }
.kk-brand__name { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.14em; margin-top: 0.15em; white-space: nowrap; }
.site-title { margin: 0; }
.site-description { margin: 0; }

/* Navigation */
.main-navigation { display: flex; align-items: center; }
.kk-nav-panel { display: flex; align-items: center; gap: 1rem; }
.site-header .kk-container { max-width: 1320px; }
.main-navigation ul.menu,
.main-navigation #primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.1em;
}
.main-navigation li { position: relative; }
.main-navigation #primary-menu a {
  display: block;
  padding: 0.6em 0.85em;
  color: var(--kk-color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
}
.main-navigation #primary-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0.85em; right: 0.85em; bottom: 0.25em;
  height: 3px;
  border-radius: 2px;
  background: var(--kk-color-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-navigation #primary-menu > li > a:hover::after,
.main-navigation #primary-menu > li > a:focus::after,
.main-navigation #primary-menu > .current-menu-item > a::after,
.main-navigation #primary-menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.main-navigation #primary-menu a:hover,
.main-navigation #primary-menu a:focus,
.main-navigation #primary-menu .current-menu-item > a { color: var(--kk-color-accent); }

/* Dropdown */
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: var(--kk-shadow);
  border-top: 3px solid var(--kk-color-accent);
  border-radius: 0 0 var(--kk-radius) var(--kk-radius);
  z-index: 110;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0.3em 0;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li.focus > .sub-menu { display: flex; }
.main-navigation .sub-menu a { font-weight: 500; }

.kk-nav-panel__extra { display: flex; align-items: center; gap: 0.8rem; }
.kk-sns--header { flex-wrap: nowrap; gap: 0.3rem; }
.kk-sns--header .kk-sns__link { width: 34px; height: 34px; }
.kk-sns--header .kk-icon { width: 18px; height: 18px; }
.kk-btn--contact { white-space: nowrap; }

/* SNS icons */
.kk-sns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.kk-sns__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--kk-color-primary);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.kk-sns__link:hover, .kk-sns__link:focus { color: #fff; transform: translateY(-2px); }
.kk-sns__link--x { background: #111; }
.kk-sns__link--facebook { background: #1877f2; }
.kk-sns__link--instagram { background: #c13584; }
.kk-sns__link--line { background: var(--kk-color-line-dark); }
.kk-sns__link--youtube { background: #d00000; }
.kk-sns__link--rss { background: #e06c00; }
.kk-icon { width: 20px; height: 20px; flex: none; }

/* Buttons */
.kk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1.3;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.kk-btn--contact { background: var(--kk-color-accent); color: #fff; padding: 0.55em 1.2em; font-size: 0.9rem; }
.kk-btn--contact:hover, .kk-btn--contact:focus { background: var(--kk-color-primary); color: #fff; }
.kk-btn--contact .kk-icon { width: 18px; height: 18px; }
.kk-btn--outline { color: var(--kk-color-primary); border-color: var(--kk-color-primary); background: #fff; min-width: 240px; }
.kk-btn--outline:hover, .kk-btn--outline:focus { background: var(--kk-color-primary); color: #fff; }
.kk-btn--white, .site-footer .kk-btn--white { background: #fff; color: var(--kk-color-primary); }
.kk-btn--white:hover, .kk-btn--white:focus, .site-footer .kk-btn--white:hover { background: var(--kk-color-highlight); color: var(--kk-color-primary); }
.kk-btn__arrow { transition: transform 0.15s ease; }
.kk-btn:hover .kk-btn__arrow { transform: translateX(4px); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column; align-items: center; gap: 4px;
  background: var(--kk-color-primary);
  border: none;
  color: #fff;
  width: 56px; height: 56px;
  padding: 10px 0 6px;
  border-radius: var(--kk-radius);
  cursor: pointer;
  font-family: inherit;
}
.menu-toggle__bars { position: relative; display: block; width: 24px; height: 18px; }
.menu-toggle__bars::before,
.menu-toggle__bars::after,
.menu-toggle__bars span {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: #fff; border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars span { top: 8px; }
.menu-toggle__bars::after { top: 16px; }
.menu-toggle__label { font-size: 0.62rem; letter-spacing: 0.08em; line-height: 1; }
.main-navigation.toggled .menu-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.main-navigation.toggled .menu-toggle__bars span { opacity: 0; }
.main-navigation.toggled .menu-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1180px) {
  :root { --kk-header-h: 68px; }
  .kk-brand__name { font-size: 1.35rem; }
  .menu-toggle { display: flex; }
  .kk-nav-panel {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    background: #fff;
    padding: 0.5rem var(--kk-spacing) 1.5rem;
    border-top: 1px solid var(--kk-color-border);
    box-shadow: 0 12px 24px rgba(11, 60, 125, 0.12);
    max-height: calc(100vh - var(--kk-header-h));
    overflow-y: auto;
  }
  .main-navigation.toggled .kk-nav-panel { display: flex; }
  .main-navigation #primary-menu { flex-direction: column; gap: 0; }
  .main-navigation #primary-menu > li { border-bottom: 1px solid var(--kk-color-border); }
  .main-navigation #primary-menu a { padding: 0.95em 0.25em; font-size: 1rem; }
  .main-navigation #primary-menu > li > a::after { display: none; }
  .main-navigation .sub-menu {
    display: flex;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0.5em 1em;
    min-width: 0;
  }
  .kk-nav-panel__extra { flex-direction: column; align-items: stretch; gap: 1rem; }
  .kk-sns--header { justify-content: center; gap: 0.75rem; }
  .kk-sns--header .kk-sns__link { width: 44px; height: 44px; }
  .kk-btn--contact { padding: 0.9em 1.2em; font-size: 1rem; }
}
@media (max-width: 480px) {
  .kk-brand__role { font-size: 0.7rem; }
  .kk-brand__name { font-size: 1.2rem; letter-spacing: 0.08em; }
  .site-branding .custom-logo { max-height: 42px; }
}

/* ==========================================================================
   Hero Section (LP Template)
   ========================================================================== */
.kk-hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--kk-color-primary);
  color: #fff;
  /* CLS: `contain: size` (tried in v1.4.0) was reverted — measured CLS
     got WORSE with it (0.21 → 0.427), most likely from combining it with
     a duplicated vh+svh height declaration that fought itself on the
     very viewport-resize event it was meant to guard against. Back to
     layout/style containment only, which is what actually measured
     better. `overflow-anchor: none` is a cheap, low-risk addition that
     prevents the browser's scroll-anchoring heuristic (which adjusts
     scroll position when off-screen content changes size) from ever
     touching this section. */
  contain: layout style;
  overflow-anchor: none;
}

/* When hero has a known aspect ratio, use it to reserve space */
.kk-hero--ar-16-9 { aspect-ratio: 16 / 9; min-height: auto; }
.kk-hero--ar-21-9 { aspect-ratio: 21 / 9; min-height: auto; }

.kk-hero--fullscreen { min-height: 100svh; }

.kk-hero__media {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

.kk-hero__picture {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.kk-hero__picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kk-hero__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 2;
}

.kk-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2em var(--kk-spacing);
  max-width: 800px;
}

.kk-hero__title {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.kk-hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Content Area
   ========================================================================== */
.site-main {
  padding: 2em 0;
}

/* LP (full-width) template - no container constraints */
.kk-lp .site-main {
  padding: 0;
}

.kk-lp .site-main .entry-content {
  max-width: none;
  padding: 0;
}

/* Optional per-page width constraint for the one-column LP template. */
.kk-lp .site-main .entry-content.kk-lp__content--constrained {
  width: 100%;
  max-width: var(--kk-lp-content-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Normal page content */
.entry-header { margin-bottom: 1.5em; }
.entry-title { font-size: 2rem; }
.entry-meta { font-size: 0.85rem; color: var(--kk-color-text-light); margin-top: 0.3em; }
.entry-content { margin-bottom: 2em; }
.entry-footer { font-size: 0.85rem; color: var(--kk-color-text-light); padding-top: 1em; border-top: 1px solid var(--kk-color-border); }

/* Post navigation */
.post-navigation { margin: 2em 0; padding: 1em 0; border-top: 1px solid var(--kk-color-border); border-bottom: 1px solid var(--kk-color-border); }
.nav-links { display: flex; justify-content: space-between; gap: 1em; }
.nav-subtitle { display: block; font-size: 0.8rem; color: var(--kk-color-text-light); }

/* ==========================================================================
   Block Editor Enhancements
   ========================================================================== */

/* --- Advanced Columns (kono-kiyofumi/columns) --- */
.kk-columns {
  display: grid;
  gap: var(--kk-columns-gap, 1.5rem);
  width: 100%;
}

.kk-columns--2 { grid-template-columns: repeat(2, 1fr); }
.kk-columns--3 { grid-template-columns: repeat(3, 1fr); }
.kk-columns--4 { grid-template-columns: repeat(4, 1fr); }
.kk-columns--sidebar-left { grid-template-columns: 300px 1fr; }
.kk-columns--sidebar-right { grid-template-columns: 1fr 300px; }
.kk-columns--golden { grid-template-columns: 1fr 1.618fr; }
.kk-columns--golden-reverse { grid-template-columns: 1.618fr 1fr; }

@media (max-width: 768px) {
  .kk-columns--2,
  .kk-columns--3,
  .kk-columns--4,
  .kk-columns--sidebar-left,
  .kk-columns--sidebar-right,
  .kk-columns--golden,
  .kk-columns--golden-reverse {
    grid-template-columns: 1fr;
  }
}

.kk-column {
  min-width: 0;
}

/* --- Section Block --- */
.kk-section {
  padding: 3em 0;
}

.kk-section--bg-alt { background: var(--kk-color-bg-alt); }
.kk-section--bg-dark { background: var(--kk-color-primary); color: #fff; }
.kk-section--bg-accent { background: var(--kk-color-accent); color: #fff; }

.kk-section--full-width {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* --- Card Block --- */
.kk-card {
  background: var(--kk-color-bg);
  border: 1px solid var(--kk-color-border);
  border-radius: var(--kk-radius);
  padding: 1.5em;
  transition: box-shadow 0.2s ease;
}

.kk-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.kk-card__image { margin: -1.5em -1.5em 1em; overflow: hidden; border-radius: var(--kk-radius) var(--kk-radius) 0 0; }
.kk-card__image img { width: 100%; display: block; }
.kk-card__title { font-size: 1.1rem; margin: 0 0 0.5em; }
.kk-card__text { font-size: 0.95rem; color: var(--kk-color-text-light); }

/* --- Button Block --- */
.kk-button {
  display: inline-block;
  padding: 0.7em 1.8em;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--kk-radius);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.kk-button--primary { background: var(--kk-color-accent); color: #fff; border-color: var(--kk-color-accent); }
.kk-button--primary:hover { background: transparent; color: var(--kk-color-accent); text-decoration: none; }
.kk-button--outline { background: transparent; color: var(--kk-color-accent); border-color: var(--kk-color-accent); }
.kk-button--outline:hover { background: var(--kk-color-accent); color: #fff; text-decoration: none; }
.kk-button--large { padding: 1em 2.5em; font-size: 1.1rem; }
.kk-button--small { padding: 0.4em 1em; font-size: 0.85rem; }
.kk-button--round { border-radius: 50px; }

/* --- Spacer Block --- */
.kk-spacer { display: block; }

/* --- Alert/Notice Block --- */
.kk-alert {
  padding: 1em 1.2em;
  border-radius: var(--kk-radius);
  margin-bottom: 1em;
  border-left: 4px solid;
}

.kk-alert--info { background: #e8f4fd; border-color: #2196f3; color: #1565c0; }
.kk-alert--success { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; }
.kk-alert--warning { background: #fff3e0; border-color: #ff9800; color: #e65100; }
.kk-alert--danger { background: #fce4ec; border-color: #f44336; color: #c62828; }

/* --- Accordion Block --- */
.kk-accordion { border: 1px solid var(--kk-color-border); border-radius: var(--kk-radius); margin-bottom: 1em; }
.kk-accordion__header,
.kk-accordion > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8em 1.2em;
  cursor: pointer;
  font-weight: 600;
  background: var(--kk-color-bg-alt);
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-family: inherit;
  list-style: none;
}
.kk-accordion > summary::-webkit-details-marker { display: none; }
.kk-accordion__header::after,
.kk-accordion > summary::after { content: "+"; font-size: 1.3rem; transition: transform 0.2s; }
.kk-accordion[open] .kk-accordion__header::after,
.kk-accordion[open] > summary::after { content: "−"; }
.kk-accordion__body { padding: 1em 1.2em; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.kk-layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2em;
  max-width: var(--kk-container-width);
  margin: 0 auto;
  padding: 0 var(--kk-spacing);
}

@media (max-width: 768px) {
  .kk-layout-sidebar { grid-template-columns: 1fr; }
}

.widget-area .widget {
  margin-bottom: 2em;
}

.widget-title {
  font-size: 1rem;
  border-bottom: 2px solid var(--kk-color-accent);
  padding-bottom: 0.3em;
  margin-bottom: 0.8em;
}

/* ==========================================================================
   Footer（紺背景／議員名・事務所案内・地図・SNS・コピーライト）
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--kk-color-primary);
  color: rgba(255, 255, 255, 0.92);
  padding: 3.5em 0 0;
  font-size: 0.92rem;
  margin-top: 0;
}
.site-footer a { color: #fff; }
.kk-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.kk-footer__grid--nomap { grid-template-columns: 1fr; }
.kk-footer__brand { margin: 0 0 1.4em; line-height: 1.3; }
.kk-footer__role { display: block; font-size: 0.8rem; letter-spacing: 0.12em; opacity: 0.85; }
.kk-footer__name { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: 0.14em; color: #fff; }
.kk-offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 1.5em; }
.kk-office__name { color: #fff; font-size: 1rem; margin: 0 0 0.4em; padding-left: 0.7em; border-left: 4px solid var(--kk-color-highlight); }
.kk-office__address { font-style: normal; margin: 0 0 0.3em; }
.kk-office__tel { margin: 0 0 0.3em; display: flex; flex-wrap: wrap; gap: 0 1.2em; }
.kk-office__note { margin: 0; font-size: 0.85rem; opacity: 0.85; }
.kk-footer__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; margin: 0 0 1.5em; }
.kk-footer__contact span { display: inline-flex; align-items: center; gap: 0.4em; }
.kk-sns--footer .kk-sns__link { background: rgba(255, 255, 255, 0.14); }
.kk-sns--footer .kk-sns__link:hover, .kk-sns--footer .kk-sns__link:focus { background: rgba(255, 255, 255, 0.28); }
.kk-footer__map { border-radius: var(--kk-radius); overflow: hidden; background: rgba(255, 255, 255, 0.08); aspect-ratio: 3 / 2; }
.kk-footer__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.footer-widgets { margin-top: 2em; }
.footer-widgets .widget-title { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

.kk-footer__bottom { margin-top: 3em; padding: 1.2em 0 1.4em; background: rgba(0, 0, 0, 0.18); text-align: center; }
.kk-footer-nav ul { list-style: none; margin: 0 0 0.8em; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2em 1.4em; }
.kk-footer-nav a { text-decoration: none; font-size: 0.88rem; }
.kk-footer-nav a:hover, .kk-footer-nav a:focus { text-decoration: underline; }
.site-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2em 1.4em; opacity: 0.85; }
.kk-pagetop {
  position: absolute; right: var(--kk-spacing); top: -26px;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--kk-color-accent); color: #fff; text-decoration: none; font-size: 0.9rem;
  box-shadow: var(--kk-shadow);
}
.kk-pagetop:hover, .kk-pagetop:focus { background: var(--kk-color-highlight); color: var(--kk-color-primary); }
@media (max-width: 768px) {
  .kk-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Forms
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="password"],
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.5em 0.8em;
  border: 1px solid var(--kk-color-border);
  border-radius: var(--kk-radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--kk-color-bg);
  color: var(--kk-color-text);
}

/* Perf: no `transition` here. Animating `border-color` (or box-shadow)
   runs on the main thread every frame — Lighthouse flags this as a
   non-composited animation. Focus is still shown instantly (just not
   animated); an instant state change isn't a "running animation" so it
   isn't flagged, and it's actually snappier for keyboard users too. */
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--kk-color-accent);
  outline-offset: 1px;
  border-color: var(--kk-color-accent);
}

button, .button, input[type="submit"] {
  display: inline-block;
  padding: 0.6em 1.5em;
  background: var(--kk-color-accent);
  color: #fff;
  border: none;
  border-radius: var(--kk-radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: opacity 0.15s;
}

button:hover, .button:hover, input[type="submit"]:hover { opacity: 0.85; }

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area { margin-top: 2em; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 1em 0; border-bottom: 1px solid var(--kk-color-border); }
.comment-author { font-weight: 600; }
.comment-metadata { font-size: 0.8rem; color: var(--kk-color-text-light); }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.kk-breadcrumb {
  padding: 0.8em 0;
  font-size: 0.85rem;
  color: var(--kk-color-text-light);
}

.kk-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em;
}

.kk-breadcrumb__item::after {
  content: "›";
  margin-left: 0.4em;
  color: var(--kk-color-text-light);
}

.kk-breadcrumb__item:last-child::after {
  display: none;
}

.kk-breadcrumb__item a {
  color: var(--kk-color-text-light);
  text-decoration: none;
}

.kk-breadcrumb__item a:hover {
  color: var(--kk-color-accent);
  text-decoration: underline;
}

.kk-breadcrumb__item span[aria-current] {
  color: var(--kk-color-text);
  font-weight: 600;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.alignwide {
  max-width: var(--kk-container-width);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1em; }
.alignright { float: right; margin-left: 1em; }

/* ==========================================================================
   WordPress Block Overrides (lightweight)
   ========================================================================== */
.wp-block-image { margin-bottom: 1em; }
.wp-block-image figcaption { font-size: 0.85rem; color: var(--kk-color-text-light); margin-top: 0.3em; }
.wp-block-separator { border-top: 2px solid var(--kk-color-border); }
.wp-block-quote { border-left: 4px solid var(--kk-color-accent); padding: 0.8em 1.2em; background: var(--kk-color-bg-alt); }
.wp-block-table { margin-bottom: 1em; }
.wp-block-columns { gap: 1.5em; }

/* Gallery */
.wp-block-gallery { gap: 0.5em; }
.wp-block-gallery .wp-block-image { margin: 0; }

/* 404 */
.error-404 .page-content { text-align: center; padding: 3em 0; }

/* ==========================================================================
   kono_kiyofumi：議員サイト デザイン
   ========================================================================== */

/* --- 下層ページのタイトル --- */
.site-main { padding: 2.5em 0 4em; }
.entry-header, .page-header { margin-bottom: 2em; }
.entry-title, .page-title {
  position: relative;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  margin: 0.4em 0 0;
  padding-bottom: 0.6em;
  border-bottom: 1px solid var(--kk-color-border);
  color: var(--kk-color-primary);
}
.entry-title::after, .page-title::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 72px; height: 3px; background: var(--kk-color-accent);
}
.entry-title a { color: inherit; text-decoration: none; }
.entry-meta { font-size: 0.88rem; color: var(--kk-color-text-light); margin-top: 0.8em; }
.entry-meta .byline { display: none; }
.post-thumbnail { margin: 0 0 2em; }
.post-thumbnail img { border-radius: var(--kk-radius); }

/* 本文の見出し */
.entry-content h2 {
  font-size: 1.45rem;
  padding: 0.55em 0.9em;
  background: var(--kk-color-accent-light);
  border-left: 5px solid var(--kk-color-accent);
  border-radius: 0 var(--kk-radius) var(--kk-radius) 0;
}
.entry-content h3 { font-size: 1.2rem; padding-bottom: 0.35em; border-bottom: 2px solid var(--kk-color-accent-light); }
.kk-lp .entry-content h2, .kk-front-content .entry-content h2 { background: none; border: 0; padding: 0; text-align: center; }

/* --- セクション共通 --- */
.kk-front-sec { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.kk-front-sec--alt { background: var(--kk-color-bg-alt); }
.kk-front .site-main, .kk-front { padding: 0; }
.kk-sec-head { text-align: center; margin: 0 0 2.4rem; }
.kk-sec-head__en {
  display: block;
  font-family: var(--kk-font-en);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.28em;
  color: var(--kk-color-accent);
}
.kk-sec-head__ja {
  position: relative;
  margin: 0.45em 0 0;
  font-size: clamp(1.35rem, 3.4vw, 1.8rem);
  letter-spacing: 0.12em;
  color: var(--kk-color-primary);
  padding-bottom: 0.7em;
}
.kk-sec-head__ja::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 48px; height: 3px; border-radius: 2px; background: var(--kk-color-accent);
}
.kk-sec-lead { text-align: center; max-width: 720px; margin: -0.8rem auto 2.4rem; color: var(--kk-color-text-light); }
.kk-more { text-align: center; margin: 2.4rem 0 0; }

/* --- メインビジュアル（Hero） --- */
.kk-front-page .kk-hero { background-color: var(--kk-color-primary); }
.kk-hero__title { letter-spacing: 0.1em; }

/* --- プロフィール --- */
.kk-profile__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.kk-profile__photo { position: relative; }
.kk-profile__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  background: var(--kk-color-accent-light); border-radius: var(--kk-radius); z-index: 0;
}
.kk-profile__img, .kk-profile__noimg { position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; border-radius: var(--kk-radius); }
.kk-profile__noimg { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--kk-color-primary), var(--kk-color-accent)); color: rgba(255,255,255,0.6); font-family: var(--kk-font-en); font-weight: 800; letter-spacing: 0.2em; }
.kk-profile__role { margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--kk-color-accent); letter-spacing: 0.1em; }
.kk-profile__name { margin: 0.1em 0 0.8em; font-size: clamp(1.8rem, 4.5vw, 2.4rem); font-weight: 800; letter-spacing: 0.14em; color: var(--kk-color-primary); line-height: 1.3; }
.kk-profile__name-en { display: block; font-family: var(--kk-font-en); font-size: 0.85rem; letter-spacing: 0.25em; color: var(--kk-color-text-light); font-weight: 700; }
.kk-profile__catch {
  display: inline-block;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem); font-weight: 800; color: var(--kk-color-primary);
  margin: 0 0 1em;
  background: linear-gradient(transparent 62%, rgba(245, 184, 0, 0.45) 62%);
}
.kk-profile__lead { margin-bottom: 1.6em; }
.kk-career { margin: 0; border-top: 1px solid var(--kk-color-border); }
.kk-career__row { display: grid; grid-template-columns: 7.5em 1fr; gap: 1em; padding: 0.75em 0; border-bottom: 1px solid var(--kk-color-border); }
.kk-career dt { font-weight: 700; color: var(--kk-color-accent); }
.kk-career dd { margin: 0; }
.kk-profile .kk-more { text-align: left; }

/* --- ニュース --- */
.kk-news__list { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; background: #fff; border-radius: var(--kk-radius); box-shadow: var(--kk-shadow); }
.kk-news__item { border-bottom: 1px solid var(--kk-color-border); }
.kk-news__item:last-child { border-bottom: 0; }
.kk-news__link { display: flex; align-items: baseline; gap: 0.6em 1.4em; padding: 1.15em 1.5em; color: var(--kk-color-text); text-decoration: none; transition: background 0.15s ease; }
.kk-news__link:hover, .kk-news__link:focus { background: var(--kk-color-accent-light); color: var(--kk-color-text); }
.kk-news__meta { display: inline-flex; align-items: center; gap: 0.9em; flex: none; }
.kk-news__date { font-family: var(--kk-font-en); font-weight: 700; color: var(--kk-color-text-light); font-size: 0.92rem; }
.kk-news__cat { display: inline-block; min-width: 6.5em; text-align: center; padding: 0.15em 0.8em; border-radius: 999px; background: var(--kk-color-primary); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1.6; }
.kk-news__title { font-weight: 700; margin: 0; font-size: 1rem; color: inherit; line-height: 1.6; }
.kk-news__link:hover .kk-news__title { color: var(--kk-color-accent); text-decoration: underline; }
.kk-news__empty { text-align: center; }
@media (max-width: 640px) {
  .kk-news__link { flex-direction: column; align-items: flex-start; padding: 1em 1.1em; gap: 0.35em; }
}

/* 一覧ページ（アーカイブ） */
.kk-news--archive { border-top: 1px solid var(--kk-color-border); }
.kk-news__item--row { border-bottom: 1px solid var(--kk-color-border); }
.kk-news__item--row .kk-news__link { align-items: flex-start; padding: 1.3em 0.5em; }
.kk-news__item--row .kk-news__body { display: flex; flex-direction: column; gap: 0.35em; min-width: 0; }
.kk-news__item--row .kk-news__title { font-size: 1.1rem; color: var(--kk-color-primary); }
.kk-news__thumb { flex: none; width: 160px; }
.kk-news__thumb img { width: 160px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--kk-radius); }
.kk-news__excerpt { font-size: 0.9rem; color: var(--kk-color-text-light); }
@media (max-width: 640px) {
  .kk-news__item--row .kk-news__link { flex-direction: row; gap: 0.9em; }
  .kk-news__thumb, .kk-news__thumb img { width: 96px; }
  .kk-news__excerpt { display: none; }
}
.pagination .nav-links { display: flex; justify-content: center; gap: 0.4em; margin-top: 2.5em; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 0.6em; border: 1px solid var(--kk-color-border); border-radius: var(--kk-radius); text-decoration: none; font-weight: 700; color: var(--kk-color-primary); }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--kk-color-primary); color: #fff; border-color: var(--kk-color-primary); }

/* --- 政策 --- */
.kk-policy__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.kk-policy__item {
  position: relative;
  background: #fff;
  border: 1px solid var(--kk-color-border);
  border-top: 5px solid var(--kk-color-accent);
  border-radius: var(--kk-radius);
  padding: 1.6em 1.5em 1.4em;
  box-shadow: var(--kk-shadow);
}
.kk-policy__num { font-family: var(--kk-font-en); font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--kk-color-accent); opacity: 0.35; }
.kk-policy__title { margin: 0.35em 0 0.5em; font-size: 1.2rem; }
.kk-policy__text { margin: 0; font-size: 0.95rem; color: var(--kk-color-text-light); }

/* --- 動画・SNS --- */
.kk-media__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem; align-items: center; }
.kk-media__grid--single { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.kk-yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--kk-radius); overflow: hidden; background: #000; box-shadow: var(--kk-shadow); }
.kk-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kk-yt__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.kk-yt__btn img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.kk-yt__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; transform: translate(-50%, -50%); background: #d00000; border-radius: 14px; }
.kk-yt__play::after { content: ""; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.kk-yt__btn:hover .kk-yt__play, .kk-yt__btn:focus .kk-yt__play { background: #a80000; }
.kk-media__sns-lead { font-weight: 700; color: var(--kk-color-primary); }
.kk-sns-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.kk-sns-card {
  display: flex; align-items: center; gap: 0.9em;
  padding: 0.95em 1.2em;
  border-radius: var(--kk-radius);
  background: #fff;
  border: 1px solid var(--kk-color-border);
  color: var(--kk-color-text);
  text-decoration: none; font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kk-sns-card:hover, .kk-sns-card:focus { transform: translateY(-2px); box-shadow: var(--kk-shadow); color: var(--kk-color-text); }
.kk-sns-card .kk-icon { width: 26px; height: 26px; }
.kk-sns-card--x .kk-icon { color: #111; }
.kk-sns-card--facebook .kk-icon { color: #1877f2; }
.kk-sns-card--instagram .kk-icon { color: #c13584; }
.kk-sns-card--line .kk-icon { color: var(--kk-color-line-dark); }
.kk-sns-card--youtube .kk-icon { color: #d00000; }
.kk-sns-card::after { content: "→"; margin-left: auto; color: var(--kk-color-accent); }
@media (max-width: 768px) { .kk-media__grid { grid-template-columns: 1fr; } }

/* --- LINE バナー --- */
.kk-front-sec--line { padding: 0 0 clamp(3rem, 7vw, 5rem); background: var(--kk-color-bg-alt); }
.kk-line__card {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.3rem 1.6rem;
  border-radius: var(--kk-radius);
  background: #fff;
  border: 3px solid var(--kk-color-line);
  color: var(--kk-color-text);
  text-decoration: none;
  max-width: 900px; margin: 0 auto;
}
.kk-line__card:hover, .kk-line__card:focus { color: var(--kk-color-text); box-shadow: var(--kk-shadow); }
.kk-line__icon { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--kk-color-line); color: #fff; display: flex; align-items: center; justify-content: center; }
.kk-line__icon .kk-icon { width: 36px; height: 36px; }
.kk-line__text { flex: 1; font-size: 0.95rem; line-height: 1.6; }
.kk-line__text strong { display: block; font-size: 1.1rem; color: var(--kk-color-line-dark); }
.kk-line__btn { flex: none; padding: 0.75em 1.6em; border-radius: 999px; background: var(--kk-color-line-dark); color: #fff; font-weight: 800; }
.kk-line__card:hover .kk-line__btn { background: #03612c; }
.kk-line__image img { margin: 0 auto; border-radius: var(--kk-radius); }
.kk-line--sidebar { margin-bottom: 2em; }
.kk-line--sidebar .kk-line__card { flex-direction: column; text-align: center; padding: 1.2rem; gap: 0.8rem; }
@media (max-width: 640px) {
  .kk-line__card { flex-direction: column; text-align: center; }
  .kk-line__btn { width: 100%; }
}

/* --- レスポンシブ（プロフィール） --- */
@media (max-width: 768px) {
  .kk-profile__grid { grid-template-columns: 1fr; }
  .kk-profile__photo { max-width: 320px; margin: 0 auto 1rem; width: 88%; }
  .kk-profile .kk-more { text-align: center; }
  .kk-career__row { grid-template-columns: 6em 1fr; }
}

/* --- サイドバー --- */
.widget-area .widget { background: #fff; }
.widget-title {
  font-size: 1rem; color: #fff; background: var(--kk-color-primary);
  padding: 0.6em 1em; border-radius: var(--kk-radius) var(--kk-radius) 0 0; margin: 0 0 0.8em;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { border-bottom: 1px dashed var(--kk-color-border); padding: 0.55em 0.2em; }
.widget li a { color: var(--kk-color-text); text-decoration: none; }
.widget li a:hover { color: var(--kk-color-accent); text-decoration: underline; }

/* --- 印刷 --- */
@media print {
  .site-header { position: static; box-shadow: none; }
  .menu-toggle, .kk-nav-panel, .kk-pagetop, .kk-footer__map { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* --- ブロックパターン用 --- */
.kk-career-table th, .kk-report-meta th { width: 8.5em; white-space: nowrap; }
.kk-policy-steps .kk-card { border-top: 4px solid var(--kk-color-accent); }
.kk-policy-steps .kk-card h3 { margin-top: 0; border: 0; }
.kk-qa { padding: 1em 1.3em; border-radius: var(--kk-radius); margin-bottom: 1em; }
.kk-qa p:last-child { margin-bottom: 0; }
.kk-qa--q { background: var(--kk-color-accent-light); border-left: 5px solid var(--kk-color-accent); }
.kk-qa--a { background: var(--kk-color-bg-alt); border-left: 5px solid var(--kk-color-text-light); }

/* --- ブロックウィジェット（WordPress 5.8以降の既定ウィジェット） --- */
button, .wp-block-search__button { white-space: nowrap; overflow-wrap: normal; }
.widget-area .widget .wp-block-heading,
.widget-area .wp-block-search__label {
  display: block;
  font-size: 1rem; color: #fff; background: var(--kk-color-primary);
  padding: 0.6em 1em; border-radius: var(--kk-radius) var(--kk-radius) 0 0; margin: 0 0 0.8em;
}
.wp-block-search__inside-wrapper { gap: 0.4em; }
