/*
Theme Name: 春日町学習会テーマ
Theme URI: https://example.com
Author: syshan株式会社
Author URI: https://example.com
Description: 学習塾・個人塾向けWordPressテーマ。春日町学習会をベースに制作。
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: kasugacho
*/

/* ============================================================
   CSS Variables
============================================================ */
:root {
  --color-primary: #284825;
  --color-primary-dark: #1a3118;
  --color-accent: #FFD762;
  --color-accent2: #e8750a;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-gray: #f5f5f5;
  --color-border: #dddddd;
  --color-header-bg: #ffffff;
  --color-footer-bg: #284825;
  --color-footer-text: #ffffff;
  --font-base: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, sans-serif;
  --max-width: 1100px;
  --sidebar-width: 240px;
  --header-height: 80px;
}

/* ============================================================
   Reset & Base
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 0.9375rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ============================================================
   Layout
============================================================ */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* サイドバー左・メインコンテンツ右 */
.content-area {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 40px;
  align-items: start;
}

.main-content { min-width: 0; }

.classroom-results {
  max-width: 760px;
  margin: 0 auto;
}

.classroom-results__title {
  margin: 0 0 24px;
  padding-bottom: 6px;
  border-bottom: 1px solid #284825;
  color: #06420d;
  font-size: 1.35rem;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0;
}

.classroom-results__gallery {
  margin: auto;
}

.classroom-results__gallery::after {
  content: "";
  display: block;
  clear: both;
}

.classroom-results__gallery .gallery-item {
  float: left;
  width: 33%;
  margin: 10px 0 0;
  text-align: center;
}

.classroom-results__gallery .gallery-icon {
  margin: 0;
}

.classroom-results__gallery img {
  width: calc(100% - 18px);
  max-width: 300px;
  height: auto;
  border: 2px solid #cfcfcf;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.classroom-results__bar {
  margin: 8px 0 12px;
  padding: 6px 12px;
  background: #6db853;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0;
}

.classroom-results__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.8;
}

.classroom-results__table th,
.classroom-results__table td {
  border: 1px solid #d7d7d7;
  padding: 14px 12px;
  vertical-align: top;
}

.classroom-results__table th {
  width: 15%;
  min-width: 95px;
  background: #f0f0f0;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
}

.classroom-results__table td {
  text-align: left;
}

.classroom-results__table p {
  margin: 0 0 12px;
}

.classroom-results__table p:last-child {
  margin-bottom: 0;
}

.classroom-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.78);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 2px,
    transparent 2px,
    transparent 7px
  );
}

.classroom-lightbox.is-open {
  display: flex;
}

.classroom-lightbox__dialog {
  position: relative;
  width: min(820px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 6px 6px 34px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.classroom-lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 112px);
  object-fit: contain;
  background: #f6f6f6;
}

.classroom-lightbox__close {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #bdbdbd;
  border-radius: 50%;
  background: #fff;
  color: #777;
  font-size: 16px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
}

.classroom-lightbox__footer {
  position: absolute;
  left: 8px;
  right: 34px;
  bottom: 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  color: #666;
  font-size: 11px;
}

.classroom-lightbox__nav {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #c8c8c8;
  border-radius: 50%;
  background: #fff;
  color: #777;
  font-size: 16px;
  line-height: 14px;
  text-align: center;
  cursor: pointer;
}

.classroom-lightbox__count {
  margin-left: 4px;
}

/* ============================================================
   Header（TOP画像に重ねる / absolute）
============================================================ */
.site-header {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: none;
}

/* WP管理バーがある場合はその分下げる */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* サブページは常に白背景・relative */
body:not(.page-home) .site-header {
  position: relative;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
body:not(.page-home) .site-header .header-tel,
body:not(.page-home) .site-header .header-tel a { color: var(--color-primary); }
body:not(.page-home) .site-header .header-address { color: var(--color-text-light); }

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo img { height: 50px; width: auto; }
.site-logo a { display: inline-block; }

.header-contact { text-align: right; line-height: 1.4; }

.header-tel {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}
.header-tel::before { content: '📞 '; font-size: 1rem; }
.header-tel a { color: #ffffff; }

.header-address { font-size: 0.75rem; color: rgba(255,255,255,0.85); }

/* スクロール後は緑文字に戻す */
.site-header.is-scrolled .header-tel,
.site-header.is-scrolled .header-tel a { color: var(--color-primary); }
.site-header.is-scrolled .header-address { color: var(--color-text-light); }

/* ============================================================
   Navigation
============================================================ */
.global-nav {
  background: #284825;
  width: 100%;
  position: relative;
  z-index: 98;
}

/* スクロールでfixed固定されたとき */
.global-nav.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 98;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* WP管理バーがある場合 */
.admin-bar .global-nav.is-fixed { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .global-nav.is-fixed { top: 46px; }
}

/* fixedになった時のスペーサー */
#global-nav-spacer { display: none; }
#global-nav-spacer.is-active { display: block; }

.global-nav ul {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 0;
}

.global-nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 18px;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  transition: background 0.2s;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.global-nav ul li:first-child a {
  border-left: 1px solid rgba(255,255,255,0.2);
}

.global-nav ul li a .nav-en {
  font-size: 0.6rem;
  font-weight: 400;
  color: #FFE999;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.global-nav ul li a:hover,
.global-nav ul li.current-menu-item a {
  background: var(--color-primary-dark);
  text-decoration: none;
}

/* ハンバーガー（SP） */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============================================================
   Hero / Main Visual
============================================================ */
/* ヘッダーがabsoluteのためheroでスペース確保 */
.hero {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* ヘッダーがabsoluteで重なるため、ヘッダー高さ分（80px）を含めた高さにする */
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   Breadcrumb
============================================================ */
.breadcrumb {
  background: var(--color-bg-gray);
  border-bottom: 1px solid var(--color-border);
  padding: 8px 20px;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 6px; }

/* ============================================================
   Page Titles / Headings
============================================================ */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  border-left: 5px solid var(--color-primary);
  padding-left: 14px;
  margin-bottom: 28px;
  line-height: 1.4;
}

h2.section-heading {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 6px;
  margin: 32px 0 16px;
}

h3 { font-size: 1rem; font-weight: 700; margin: 20px 0 10px; }

/* ============================================================
   HOME - メニューバナー（menu1 / menu2）
============================================================ */
.banner-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.banner-links a {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.banner-links a:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  text-decoration: none;
}

.banner-links a img { width: 100%; height: auto; display: block; }

/* ============================================================
   HOME - Greeting Section
============================================================ */
.greeting-section { margin-bottom: 32px; }

.greeting-section .highlight-box {
  background: #fff8e1;
  border: 1px solid #f5c518;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-weight: 700;
  color: #7a5c00;
}

/* ============================================================
   News List
============================================================ */
.news-section { margin-bottom: 36px; }
.news-list { border-top: 1px solid var(--color-border); }

.news-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
  font-size: 0.875rem;
}

.news-item .news-meta { display: flex; flex-direction: column; gap: 4px; }
.news-item .news-date { font-size: 0.8125rem; color: var(--color-text-light); }

.news-item .news-cat {
  display: inline-block;
  background: var(--color-accent2);
  color: #fff;
  font-size: 0.625rem;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 700;
}

.news-item a { color: var(--color-text); }
.news-item a:hover { color: var(--color-primary); }

/* ============================================================
   Sidebar（左配置）
============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* サイドバーバナー画像（sidebar1/sidebar2） */
.sidebar-banner-img {
  display: block;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.sidebar-banner-img:hover { opacity: 0.85; }
.sidebar-banner-img img { width: 100%; height: auto; display: block; }

/* サイドバーウィジェット共通 */
.sidebar-widget {
  border: 2px solid #FFD762;
  border-radius: 4px;
  overflow: hidden;
}
.sidebar-widget .widget-title {
  background: #FFD762;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 14px;
  margin: 0;
  text-align: center;
}
.sidebar-widget .widget-body { padding: 0; background: #ffffff; }
.sidebar-access-widget .widget-body { padding: 12px 14px; }

/* サイドバーナビ */
.sidebar-nav ul { padding: 0; }
.sidebar-nav ul li a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: #333;
  border-bottom: 1px solid #e0d080;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}
.sidebar-nav ul li:last-child a { border-bottom: none; }
.sidebar-nav ul li a:hover {
  background: rgba(40,72,37,0.08);
  color: #284825;
  text-decoration: none;
}

/* サイドバーアクセス */
.sidebar-access { font-size: 0.8125rem; line-height: 1.8; }

/* ============================================================
   About Page - Table
============================================================ */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 0.9375rem;
}
.info-table th, .info-table td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  vertical-align: top;
}
.info-table th {
  background: var(--color-bg-gray);
  font-weight: 700;
  width: 140px;
  color: var(--color-primary);
}

/* ============================================================
   Course/Fee Page
============================================================ */
.feature-list { margin: 12px 0 20px 1em; }
.feature-list li { list-style: disc; margin-bottom: 6px; line-height: 1.7; }
.feature-list li strong { color: var(--color-primary); }

.fee-list {
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 16px 0;
}
.fee-list ul { padding: 0; }
.fee-list ul li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.9375rem;
}
.fee-list ul li:last-child { border-bottom: none; }

.fee-note { font-size: 0.8125rem; color: var(--color-text-light); margin-top: 12px; line-height: 1.8; }

.cta-box {
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  padding: 18px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  margin: 24px 0;
}

/* ============================================================
   Classroom / Gallery
============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; }

.achievement-list {
  background: #e8f4e8;
  border: 1px solid #a0c8a0;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 16px 0;
}

/* ============================================================
   Map
============================================================ */
.map-container { width: 100%; height: 300px; border: 1px solid var(--color-border); margin: 16px 0; }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   Contact
============================================================ */
.contact-form table { width: 100%; border-collapse: collapse; }
.contact-form th, .contact-form td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  vertical-align: top;
}
.contact-form th { background: var(--color-bg-gray); width: 180px; font-weight: 700; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-family: var(--font-base);
  font-size: 0.9375rem;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.submit-btn {
  display: block;
  width: 200px;
  margin: 24px auto 0;
  padding: 14px 0;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover { background: var(--color-primary-dark); }

/* ============================================================
   Footer
============================================================ */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  margin-top: auto;
}

/* footer1.png 草花イラスト */
.footer-grass {
  width: 100%;
  height: 160px;
  background-color: #ffffff;
  background-image: url('assets/images/footer1.png');
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: auto 160px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-widget h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.footer-widget p,
.footer-widget address {
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

.footer-nav ul { padding: 0; }
.footer-nav ul li { border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-nav ul li a {
  display: block;
  padding: 7px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.footer-nav ul li a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  background: #58402D;
  padding: 10px 20px;
  text-align: center;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.7); }

.footer-sub-nav { margin-bottom: 8px; }
.footer-sub-nav a { color: rgba(255,255,255,0.7); font-size: 0.75rem; margin: 0 8px; }
.footer-sub-nav a:hover { color: #fff; }

/* ============================================================
   Utility
============================================================ */
.text-center { text-align: center; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ============================================================
   Responsive - Tablet/SP
============================================================ */
@media (max-width: 768px) {
  .content-area {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 24px;
  }

  /* SPではサイドバーをメイン下に */
  .sidebar { order: 1; }
  .main-content { order: 0; }

  .global-nav { display: none; }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; padding: 0; }
  .global-nav ul li a {
    border-right: none;
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
  .global-nav ul li:first-child a { border-left: none; border-top: 1px solid rgba(255,255,255,0.2); }

  .menu-toggle { display: block; }
  .header-inner { height: auto; padding: 10px 16px; }
  /* PCの電話・住所はSPでは非表示（SP専用バーを使う） */
  .header-contact { display: none; }
  /* TOP画像・メニューバナー：幅100%で全体表示（切り抜きなし） */
  .hero img { height: auto; object-fit: contain; }
  .banner-links { grid-template-columns: 1fr; }
  .banner-links a img { width: 100%; height: auto; object-fit: contain; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .page-title {
    font-size: 1.25rem;
    margin-bottom: 22px;
  }
  h2.section-heading {
    font-size: 1.05rem;
  }
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
  .info-table th {
    border-bottom: 0;
  }
  .info-table td {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .fee-list {
    padding: 16px;
  }
  .classroom-results__gallery .gallery-item {
    width: 50%;
  }
  .classroom-results__gallery img {
    width: calc(100% - 10px);
  }
  .classroom-results__table {
    font-size: 0.85rem;
  }
  .classroom-results__table th,
  .classroom-results__table td {
    padding: 10px 8px;
    overflow-wrap: anywhere;
  }
  .classroom-lightbox {
    padding: 10px;
  }
  .classroom-lightbox__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
  .classroom-lightbox__image {
    max-height: calc(100vh - 84px);
  }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .info-table th { font-size: 0.875rem; }
  .classroom-results__gallery .gallery-item {
    width: 100%;
  }
  .classroom-results__table,
  .classroom-results__table tbody,
  .classroom-results__table tr,
  .classroom-results__table th,
  .classroom-results__table td {
    display: block;
    width: 100%;
  }
  .classroom-results__table th {
    min-width: 0;
    border-bottom: 0;
    white-space: normal;
  }
  .kasugacho-contact-form {
    max-width: 100%;
  }
  .kasugacho-contact-form__intro {
    padding: 14px;
  }
}

/* ============================================================
   Sidebar - Map & Menu arrow style
============================================================ */

/* アクセスウィジェット内テキスト */
.sidebar-address {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: #333;
  text-align: center;
  margin-bottom: 10px;
}

/* マップ埋め込み */
.sidebar-map {
  margin-top: 8px;
}
.sidebar-map iframe {
  width: 100%;
  height: 160px;
  border: 1px solid #ccc;
  border-radius: 3px;
  display: block;
}
.sidebar-map-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #284825;
  font-weight: 700;
}
.sidebar-map-link:hover { text-decoration: underline; }

.sidebar-map-placeholder {
  font-size: 0.75rem;
  color: #888;
  text-align: center;
  padding: 12px 0;
}

/* MENUナビ矢印（センター寄せのため非表示） */
.sidebar-nav ul li a::before {
  content: none;
}

/* ヘッダーstickyをヘッダーのみに限定（ナビは通常フロー） */
.global-nav {
  position: relative;
  z-index: 90;
}



/* ============================================================
   SP専用 電話番号バー
============================================================ */
.sp-tel-bar {
  display: none; /* PCでは非表示 */
}

@media (max-width: 768px) {
  .sp-tel-bar {
    display: block;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    padding: 8px 16px;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 101; /* ヘッダーより前面 */
  }
  .sp-tel-bar a {
    color: var(--color-primary);
    text-decoration: none;
    display: block;
  }
  .sp-tel-bar a:hover {
    opacity: 0.85;
  }

  /* SPのヘッダーはabsoluteではなく通常フローに */
  .page-home .site-header {
    position: relative;
    background: #ffffff;
    box-shadow: none;
    border-bottom: 1px solid #eee;
  }
  .page-home .site-header .header-tel a,
  .page-home .site-header .header-tel { color: var(--color-primary); }
  .page-home .site-header .header-address { color: var(--color-text-light); }
}

/* ============================================================
   新着情報 詳細ページ
============================================================ */
.main-content .single-title,
.single-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #284825 !important;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.5;
  padding-bottom: 16px;
  border-bottom: 2px solid #284825;
}

/* ============================================================
   WP管理バー対応：ナビのfixed位置をずらす
============================================================ */
.admin-bar .global-nav--static {
  /* 管理バーはrelativeなので影響なし */
}

/* TOPページのfixedナビ：管理バー分は JS側で対応済み */

.single-date {
  text-align: right;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.single-back {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* SNSボタンを完全非表示（全主要プラグイン対応） */
.a2a_kit,
.sharedaddy,
.jp-relatedposts,
.sns-count-cache,
.wp-social-bookmarking-light,
[class*="addtoany"],
[class*="sns-share"],
[class*="share-btn"],
[class*="social-share"],
[id*="addtoany"],
/* ボタンのテキストで特定 */
a[href*="facebook.com/sharer"],
a[href*="twitter.com/intent/tweet"],
a[href*="x.com/intent/tweet"],
a[href*="b.hatena.ne.jp"],
a[href*="bsky.app"] {
  display: none !important;
}

/* SNSボタンの親コンテナも非表示（プラグインによって異なる） */
.entry-content > div:has(a[href*="facebook.com/sharer"]),
.entry-content > div:has(a[href*="twitter.com/intent"]),
.entry-content > div:has(a[href*="b.hatena.ne.jp"]) {
  display: none !important;
}

/* ============================================================
   サブページ用ナビ（static / fixed不要）
============================================================ */
.global-nav--static {
  position: relative !important;
  top: auto !important;
  box-shadow: none;
}

/* ============================================================
   WPカスタマイザープレビュー・管理バー時のナビ被り対策
============================================================ */
/* カスタマイザープレビュー内ではfixedナビを無効化 */
.wp-customizer-unloading .global-nav.is-fixed,
body.wp-customizer .global-nav.is-fixed {
  position: relative !important;
  top: auto !important;
}

/* 管理バーありでTOPページのヘッダーがずれる場合 */
.admin-bar.page-home .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar.page-home .site-header { top: 46px; }
}

/* ============================================================
   WPブロックエディタのスタイル干渉リセット
============================================================ */
.entry-content .wp-block-group,
.entry-content .wp-block-columns,
.entry-content figure,
.entry-content .alignwide,
.entry-content .alignfull {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* エディタのpadding・margin干渉を除去 */
.entry-content > * {
  max-width: 100%;
}

/* WPデフォルトのコンテンツ幅制限を解除 */
.wp-site-blocks,
.wp-block-post-content {
  padding: 0 !important;
}

/* ============================================================
   エディタ内見出しスタイル統一
============================================================ */
.entry-content h1,
.main-content h1:not(.page-title):not(.single-title) {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  border-left: 5px solid var(--color-primary);
  padding-left: 14px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.entry-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 6px;
  margin: 28px 0 14px;
  background: none !important;
  text-align: left !important;
}

.entry-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 20px 0 10px;
}

.entry-content p { margin-bottom: 1em; line-height: 1.8; }
.entry-content ul,
.entry-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.entry-content li { margin-bottom: 0.4em; line-height: 1.8; }

.contact-form-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-form-table th,
.contact-form-table td {
  border: 1px solid var(--color-border);
  padding: 12px;
  vertical-align: top;
}

.contact-form-table th {
  width: 32%;
  background: #f7f7f7;
  text-align: left;
  font-weight: 700;
}

.contact-form-table input[type="text"],
.contact-form-table input[type="email"],
.contact-form-table input[type="tel"],
.contact-form-table select,
.contact-form-table textarea {
  width: 100%;
  max-width: 100%;
}

.contact-form-table textarea {
  min-height: 160px;
}

.contact-form-table .required {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 2px;
  background: #c0392b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
}

.contact-submit {
  margin-top: 20px;
  text-align: center;
}

.kasugacho-contact-form {
  max-width: 720px;
  margin: 0 auto;
}

.kasugacho-contact-form__intro {
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid #d9e7d4;
  border-left: 5px solid var(--color-primary);
  background: #f7fbf5;
  color: var(--color-text);
}

.kasugacho-contact-form__intro p {
  margin: 0;
}

.kasugacho-contact-form__field {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
}

.kasugacho-contact-form__field label,
.kasugacho-contact-form__label {
  display: block;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.7;
}

.kasugacho-contact-form .fc-red {
  display: inline-block;
  margin-left: 8px;
  color: #c0392b;
  font-size: 0.82rem;
  font-weight: 700;
}

.kasugacho-contact-form input[type="text"],
.kasugacho-contact-form input[type="email"],
.kasugacho-contact-form input[type="tel"],
.kasugacho-contact-form textarea {
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid #ccd6c8;
  border-radius: 3px;
  background: #fff;
  color: var(--color-text);
  font-size: 1rem;
}

.kasugacho-contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.kasugacho-contact-form input:focus,
.kasugacho-contact-form textarea:focus {
  border-color: var(--color-primary);
  outline: 2px solid rgba(40, 72, 37, 0.14);
}

.kasugacho-contact-form__field--captcha .wpcf7-captchac {
  display: block;
  width: auto;
  height: auto;
  margin: 10px 0;
  padding: 6px;
  border: 1px solid #ccd6c8;
  background: #fff;
}

.kasugacho-contact-form__hint {
  margin: 6px 0 0;
  color: var(--color-text-light);
  font-size: 0.88rem;
}

.kasugacho-contact-form__submit {
  margin-top: 26px;
  text-align: center;
}

.kasugacho-contact-form .wpcf7-submit {
  min-width: 180px;
  padding: 13px 36px;
  border: 0;
  border-radius: 3px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.kasugacho-contact-form .wpcf7-submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.kasugacho-contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #c0392b;
  font-size: 0.86rem;
}

.kasugacho-contact-form + .wpcf7-response-output,
.wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .kasugacho-contact-form__field {
    padding: 14px;
  }

  .kasugacho-contact-form .wpcf7-submit {
    width: 100%;
  }
}
