/*
Theme Name: 横内地区まちづくり協議会
Theme URI:
Author: ブラキオデザイン
Author URI:
Description: 横内地区まちづくり協議会の公式サイトテーマ
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yokouchi
*/

/* ===== VARIABLES ===== */
:root {
  --ai-tetsu: #1b3a5e;
  --hanada: #2d5f8a;
  --shu: #b5452a;
  --kuchiba: #9a8a5e;
  --shironeri: #f7f4ef;
  --sumi: #232323;
  --sub: #787872;
  --border: #d8d3ca;
  --card-bg: #fff;
  --font-serif: "Noto Serif JP", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", system-ui, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--sumi);
  background: var(--shironeri);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.icon { width: 18px; height: 18px; fill: currentColor; vertical-align: middle; }
.icon-sm { width: 15px; height: 15px; fill: currentColor; vertical-align: middle; }

/* ===== SKIP NAV ===== */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--ai-tetsu);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  z-index: 200;
}
.skip-nav:focus { top: 8px; }

/* ===== FOCUS STYLES ===== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--hanada);
  outline-offset: 2px;
}

/* ===== HEADER ===== */
.header {
  background: var(--ai-tetsu);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}
.header-logo {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .5px;
}
.header-nav {
  display: flex;
  gap: 20px;
  list-style: none;
}
.header-nav a {
  color: rgba(255,255,255,.75);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: color .15s;
}
.header-nav a:hover { color: #fff; }
.header-nav .is-current,
.header-nav .current-menu-item a,
.header-nav .current_page_item a { color: #fff; }
.header-sns {
  display: flex;
  gap: 12px;
}
.header-sns a { color: rgba(255,255,255,.6); transition: color .15s; }
.header-sns a:hover { color: #fff; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  background: var(--ai-tetsu);
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-nav.is-open { display: block; }
.mobile-nav-list {
  list-style: none;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 24px 16px;
}
.mobile-nav-list li {
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav-list li:last-child { border-bottom: none; }
.mobile-nav-list a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
}
.mobile-nav-list a:hover { color: #fff; }
.mobile-nav-sns {
  display: flex;
  gap: 16px;
  padding: 8px 0 4px;
}
.mobile-nav-sns a { color: rgba(255,255,255,.5); }
.mobile-nav-sns a:hover { color: #fff; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 11px;
  color: var(--sub);
}
.breadcrumb a { color: var(--sub); }
.breadcrumb a:hover { color: var(--sumi); }

/* ===== FOOTER ===== */
.footer {
  background: var(--sumi);
  padding: 36px 24px 24px;
  color: rgba(255,255,255,.6);
  font-size: 12.5px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 14px;
  color: rgba(255,255,255,.9);
  margin-bottom: 6px;
}
.footer-info { line-height: 1.8; }
.footer-sns {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.footer-sns a { color: rgba(255,255,255,.4); }
.footer-sns a:hover { color: rgba(255,255,255,.8); }
.footer-nav {
  list-style: none;
  text-align: right;
}
.footer-nav li { margin-bottom: 6px; }
.footer-nav a { color: rgba(255,255,255,.5); }
.footer-nav a:hover { color: rgba(255,255,255,.8); }
.footer-copy {
  text-align: center;
  font-size: 10px;
  color: rgba(255,255,255,.25);
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ===== PAGE TOP BUTTON ===== */
.pagetop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--ai-tetsu);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, background .2s;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.pagetop.visible { opacity: 1; visibility: visible; }
.pagetop:hover { background: var(--hanada); }

/* ===== MAIN VISUAL (front page) ===== */
.mv {
  position: relative;
  overflow: hidden;
  height: 420px;
}
.mv-slider {
  position: absolute;
  inset: 0;
}
.mv-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.mv-slide.active {
  opacity: 1;
}
.mv-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mv-dots {
  position: absolute;
  bottom: 16px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.mv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.mv-dot.active,
.mv-dot:hover {
  background: #fff;
}
.mv-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 32px;
  background: linear-gradient(to top, rgba(27,58,94,.85) 0%, transparent 100%);
}
.mv-overlay-inner {
  max-width: 960px;
  margin: 0 auto;
}
.mv-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.4;
  font-weight: 600;
}
.mv-sub {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-top: 6px;
  letter-spacing: 1px;
}

/* ===== NEBUTA FEATURE (front page) ===== */
.nebuta-feature {
  background: var(--ai-tetsu);
  color: #fff;
}
.nebuta-feature-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 160px 1fr 280px;
  gap: 24px;
  align-items: center;
}
.nebuta-feature-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nebuta-feature-year {
  writing-mode: vertical-rl;
  font-size: 14px;
  color: var(--kuchiba);
  letter-spacing: 6px;
  font-weight: 600;
}
.nebuta-feature-logo {
  margin: 0;
}
.nebuta-logo-v {
  height: 220px;
  width: auto;
}
.nebuta-logo-h {
  display: none;
}
.nebuta-feature-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
}
.nebuta-feature-desc {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.8;
  margin-bottom: 16px;
}
.nebuta-feature-links {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}
.nebuta-feature-links li {
  flex-shrink: 0;
}
.nebuta-feature-links a {
  display: block;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.nebuta-feature-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.4);
}
.nebuta-feature-more {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .5px;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 4px;
  transition: background .2s, border-color .2s;
}
.nebuta-feature-more:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}
.nebuta-feature-photo {
  width: 100%;
  height: 240px;
  background: #3a4a52;
  overflow: hidden;
}
.nebuta-feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== INTRO (front page) ===== */
.intro {
  border-bottom: 1px solid var(--border);
}
.intro-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 24px;
}
.intro-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ai-tetsu);
  margin-bottom: 10px;
  letter-spacing: .5px;
}
.intro-text {
  font-size: 14px;
  color: var(--sumi);
  line-height: 2;
  max-width: 680px;
}
.intro-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hanada);
}
.intro-more:hover { color: var(--ai-tetsu); }

/* ===== ACTIVITIES (front page) ===== */
.activities {
  border-bottom: 1px solid var(--border);
}
.activities-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px;
}
.activities-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ai-tetsu);
  margin-bottom: 20px;
  letter-spacing: .5px;
}
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.activity-item {
  background: var(--card-bg);
  padding: 20px 16px;
}
.activity-name {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--ai-tetsu);
  margin-bottom: 6px;
}
.activity-desc {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.7;
}

/* ===== NOTICE (front page) ===== */
.notice {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.notice-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.notice-label {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--shu);
  padding: 2px 12px;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.notice-body {
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex: 1;
  min-width: 0;
}
.notice-date {
  font-size: 11px;
  color: var(--sub);
  flex-shrink: 0;
}
.notice-text {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-text:hover { color: var(--hanada); }

/* ===== CONTENT AREA (front page) ===== */
.content {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--sumi);
  padding-bottom: 8px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 1px;
}
.section-more {
  font-size: 12px;
  color: var(--sub);
}
.section-more:hover { color: var(--sumi); }

/* ===== NEWS (front page) ===== */
.news-section {
  background: var(--shironeri);
  padding: 48px 24px;
}
.news-section-inner {
  max-width: 960px;
  margin: 0 auto;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.news-card-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ai-tetsu);
}
.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.news-card:hover .news-card-thumb img {
  transform: scale(1.05);
}
.news-card-noimg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ai-tetsu), var(--hanada));
}
.news-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-date {
  font-size: 11px;
  color: var(--sub);
  letter-spacing: .5px;
}
.news-cat {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  padding: 1px 8px;
  letter-spacing: .3px;
}
.news-cat--info { background: var(--hanada); }
.news-cat--event { background: var(--shu); }
.news-cat--recruit { background: var(--kuchiba); }
.news-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--sumi);
}

/* ===== Q&A (front page) ===== */
.faq {
  border-bottom: 1px solid var(--border);
}
.faq-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px;
}
.faq-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ai-tetsu);
  margin-bottom: 20px;
  letter-spacing: .5px;
}
.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--sumi);
  line-height: 1.6;
  margin-bottom: 6px;
}
.faq-q::before {
  content: "Q.";
  color: var(--hanada);
  font-weight: 700;
  margin-right: 6px;
}
.faq-a {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.8;
  padding-left: 24px;
}

/* ===== PAGE CONTENT (shared: nebuta / about) ===== */
.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.page-title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--ai-tetsu);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.page-title-desc {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 36px;
}
.page-section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}
.page-section:last-child { margin-bottom: 0; }
.page-section-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ai-tetsu);
  letter-spacing: 1px;
  border-bottom: 2px solid var(--ai-tetsu);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* ===== INFO TABLE (shared) ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th,
.info-table td {
  padding: 12px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.info-table th {
  width: 140px;
  font-weight: 600;
  color: var(--ai-tetsu);
  background: rgba(27,58,94,.04);
  white-space: nowrap;
}

/* ===== NEBUTA HERO ===== */
.nebuta-hero {
  position: relative;
  overflow: hidden;
}
.nebuta-hero-photo {
  width: 100%;
  height: 320px;
  background: url('') center/cover no-repeat;
}
.nebuta-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 28px;
  background: linear-gradient(to top, rgba(27,58,94,.9) 0%, transparent 100%);
}
.nebuta-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.nebuta-hero-logo-v {
  height: 120px;
  width: auto;
}
.nebuta-hero-logo-h {
  display: none;
}
.nebuta-hero-text h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: #fff;
  letter-spacing: 2px;
}
.nebuta-hero-sub {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
  letter-spacing: 1px;
}

/* ===== VIDEO (nebuta) ===== */
.nebuta-video {
  background: var(--shironeri);
  padding: 40px 24px;
}
.nebuta-video-inner {
  max-width: 720px;
  margin: 0 auto;
}
.nebuta-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.nebuta-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ===== YEAR TABS (nebuta) ===== */
.year-tabs {
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}
.year-tabs-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
}
.year-tab {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s;
}
.year-tab:hover { color: var(--sumi); }
.year-tab.is-active {
  color: var(--ai-tetsu);
  border-bottom-color: var(--ai-tetsu);
}

/* ===== SECTION NAV (nebuta) ===== */
.section-nav {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 54px;
  z-index: 90;
}
.section-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.section-nav a {
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sub);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.section-nav a:hover { color: var(--sumi); }
.section-nav a.is-active {
  color: var(--shu);
  border-bottom-color: var(--shu);
}

/* ===== COURSE LAYOUT (nebuta) ===== */
.course-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.course-map {
  text-align: center;
}
.course-map img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.course-map-caption {
  font-size: 11px;
  color: var(--sub);
  margin-top: 6px;
}
.course-schedule-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ai-tetsu);
  margin-bottom: 12px;
}

/* ===== SCHEDULE (nebuta) ===== */
.schedule-list { list-style: none; }
.schedule-item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.schedule-time {
  flex-shrink: 0;
  width: 80px;
  font-weight: 600;
  color: var(--ai-tetsu);
}

/* ===== JOIN (nebuta) ===== */
.join-text {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 16px;
}
.join-note {
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.8;
  padding: 14px 16px;
  background: rgba(27,58,94,.04);
  border-left: 3px solid var(--ai-tetsu);
}

/* ===== DONATION (nebuta) ===== */
.donation-info {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 16px;
}
.bank-info {
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
}
.bank-info dt {
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 2px;
}
.bank-info dd {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.bank-info dd:last-child { margin-bottom: 0; }

/* ===== CAROUSEL (nebuta) ===== */
.carousel-wrap {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: box-shadow .2s;
}
.carousel-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.carousel-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sub);
  font-size: 11px;
  overflow: hidden;
}
.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-body {
  padding: 12px 14px 14px;
}
.carousel-date {
  font-size: 11px;
  color: var(--sub);
  margin-bottom: 4px;
}
.carousel-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--sumi);
}
.carousel-card:hover .carousel-title { color: var(--hanada); }
.carousel-text {
  font-size: 12px;
  color: var(--sub);
  margin-top: 6px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}
.carousel-btn:hover {
  background: var(--shironeri);
  border-color: var(--ai-tetsu);
}
.carousel-btn svg {
  width: 14px;
  height: 14px;
  fill: var(--ai-tetsu);
}
.carousel-btn:disabled {
  opacity: .3;
  cursor: default;
}

/* ===== PAST (nebuta) ===== */
.past-note {
  font-size: 13.5px;
  color: var(--sub);
  line-height: 1.8;
  margin-bottom: 16px;
}
.past-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--hanada);
}
.past-link:hover { color: var(--ai-tetsu); }

/* ===== HISTORY SECTION (nebuta) ===== */
.history-section {
  background: rgba(27,58,94,.04);
  border-top: 1px solid var(--border);
  padding: 48px 24px 60px;
  scroll-margin-top: 100px;
}
.history-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* ===== YEAR PANEL (nebuta) ===== */
.year-panel { display: none; }
.year-panel.is-active { display: block; }
.year-summary {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 16px;
}
.year-highlight {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.year-highlight-item {
  flex: 1 1 200px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.7;
}
.year-highlight-item strong {
  display: block;
  color: var(--ai-tetsu);
  margin-bottom: 4px;
}

/* ===== PHOTO GALLERY (nebuta) ===== */
.photo-gallery { margin-top: 20px; }
.photo-gallery-main {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.photo-gallery-main .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.photo-gallery-main .slide.is-active { opacity: 1; }
.photo-gallery-main .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .2s;
}
.photo-gallery-nav:hover { background: rgba(0,0,0,.7); }
.photo-gallery-nav.prev { left: 10px; }
.photo-gallery-nav.next { right: 10px; }
.photo-gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 14px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 10px;
  z-index: 2;
}
.photo-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.photo-gallery-thumbs .thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .6;
  transition: opacity .2s, border-color .2s;
  background: var(--border);
}
.photo-gallery-thumbs .thumb.is-active {
  border-color: var(--hanada);
  opacity: 1;
}
.photo-gallery-thumbs .thumb:hover { opacity: 1; }
.photo-gallery-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-gallery-caption {
  font-size: 13px;
  color: var(--sub);
  margin-top: 10px;
}

/* ===== SPONSOR CAROUSEL (nebuta) ===== */
.sponsor-section {
  padding: 32px 0 24px;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}
.sponsor-section-title {
  font-family: var(--font-serif);
  font-size: 16px;
  text-align: center;
  color: var(--ai-tetsu);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.sponsor-carousel {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.sponsor-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: sponsor-scroll 40s linear infinite;
}
.sponsor-track:hover { animation-play-state: paused; }
.sponsor-track img {
  height: 180px;
  width: auto;
  border-radius: 4px;
  flex-shrink: 0;
}
@keyframes sponsor-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 6px)); }
}

/* ===== DONATION CTA (nebuta) ===== */
.donation-cta {
  background: var(--ai-tetsu);
  color: #fff;
  padding: 40px 24px;
  text-align: center;
  scroll-margin-top: 100px;
}
.donation-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.donation-cta h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.donation-cta p {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255,255,255,.8);
  margin-bottom: 20px;
}
.donation-cta .bank-info {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}
.donation-cta .bank-info dt { color: rgba(255,255,255,.6); }
.donation-cta .bank-info dd { color: #fff; }

/* ===== ABOUT PAGE ===== */
.about-lead {
  font-size: 14px;
  line-height: 2;
}
.about-lead p { margin-bottom: 16px; }
.about-lead p:last-child { margin-bottom: 0; }
.slogan-box {
  text-align: center;
  padding: 28px 24px;
  margin: 24px 0;
  background: rgba(27,58,94,.04);
  border-top: 2px solid var(--ai-tetsu);
  border-bottom: 2px solid var(--ai-tetsu);
}
.slogan-text {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ai-tetsu);
  letter-spacing: 3px;
  line-height: 1.6;
}
.org-chart { margin-top: 16px; }
.org-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.org-role {
  flex-shrink: 0;
  width: 120px;
  font-weight: 600;
  color: var(--ai-tetsu);
}
.org-desc {
  color: var(--sub);
  font-size: 12.5px;
  margin-top: 2px;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.activity-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ai-tetsu);
  margin-bottom: 6px;
}
.activity-item-text {
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.7;
}

/* ===== ARCHIVE / SINGLE (reports) ===== */
.archive-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.post-list {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}
.post-list-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.post-list-item:first-child { border-top: 1px solid var(--border); }
.post-list-date {
  font-size: 11px;
  color: var(--sub);
  flex-shrink: 0;
  width: 72px;
}
.post-list-cat {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  padding: 1px 8px;
  flex-shrink: 0;
  background: var(--hanada);
}
.post-list-link {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.post-list-link:hover { color: var(--hanada); }
.single-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}
.single-content .entry-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ai-tetsu);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.single-content .entry-meta {
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 24px;
}
.single-content .entry-body {
  font-size: 14px;
  line-height: 2;
}
.single-content .entry-body p { margin-bottom: 16px; }
.single-content .entry-body img {
  border-radius: 4px;
  margin: 16px 0;
}
.pagination {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--border);
}
.pagination .current {
  background: var(--ai-tetsu);
  color: #fff;
  border-color: var(--ai-tetsu);
}

/* ===== NEWS ARCHIVE GRID ===== */
.news-grid--archive {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-sns { display: none; }
  .menu-btn { display: block; }
  .mv { height: 280px; }
  .mv-title { font-size: 20px; }
  .content { padding: 32px 16px; }
  .nebuta-feature-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 24px 16px;
  }
  .nebuta-feature-left {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    margin-bottom: 16px;
  }
  .nebuta-feature-year { writing-mode: horizontal-tb; font-size: 12px; letter-spacing: 3px; }
  .nebuta-logo-v { display: none; }
  .nebuta-logo-h { display: block; height: 36px; width: auto; }
  .nebuta-feature-right { padding-bottom: 16px; }
  .nebuta-feature-photo { height: 200px; }
  .nebuta-feature-heading {
    display: none;
  }
  .nebuta-feature-links { flex-wrap: wrap; gap: 6px; }
  .nebuta-feature-links a { padding: 6px 10px; font-size: 11px; }
  .news-section { padding: 32px 16px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .news-grid--archive { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0 16px; }
  .news-card-body { padding: 10px; }
  .news-card-title { font-size: 12px; }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .notice-inner { flex-wrap: wrap; gap: 8px; }
  .course-layout { grid-template-columns: 1fr; gap: 20px; }
  .nebuta-hero-photo { height: 220px; }
  .nebuta-hero-logo-v { display: none; }
  .nebuta-hero-logo-h { display: block; height: 40px; width: auto; }
  .nebuta-hero-text h1 { font-size: 22px; }
  .year-tabs-inner { overflow-x: auto; }
  .year-tab { white-space: nowrap; padding: 12px 14px; font-size: 12px; }
  .info-table th { width: 100px; padding: 10px 12px; font-size: 12.5px; }
  .info-table td { padding: 10px 12px; font-size: 12.5px; }
  .page-title { font-size: 20px; }
  .slogan-text { font-size: 17px; letter-spacing: 2px; }
  .activity-grid { grid-template-columns: 1fr; }
  .org-role { width: 90px; }
  .footer-inner { flex-direction: column; }
  .footer-nav { text-align: left; }
}

@media (max-width: 600px) {
  .sponsor-track img { height: 140px; }
  .sponsor-track { animation-duration: 30s; }
}

/* ===== ACTIVITIES LIST PAGE ===== */
.page-lead {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.8;
  margin-bottom: 32px;
}
.year-section {
  margin-bottom: 32px;
}
.year-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ai-tetsu);
  border-left: 4px solid var(--shu);
  padding: 8px 0 8px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.year-count {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--sub);
  background: var(--shironeri);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 10px;
}
.year-list {
  display: flex;
  flex-direction: column;
}
.year-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--sumi);
  transition: background .15s;
}
.year-item:first-child {
  border-top: 1px solid var(--border);
}
.year-item:hover {
  background: var(--shironeri);
}
.year-item-date {
  font-size: 13px;
  color: var(--sub);
  min-width: 60px;
  white-space: nowrap;
}
.year-item-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--hanada);
  background: rgba(45, 95, 138, .08);
  border-radius: 3px;
  padding: 2px 8px;
  white-space: nowrap;
}
.year-item-title {
  font-size: 14px;
  flex: 1;
}
.year-item:hover .year-item-title {
  color: var(--hanada);
}
.year-empty {
  font-size: 13px;
  color: var(--sub);
  padding: 12px 14px;
  background: var(--shironeri);
  border-radius: 4px;
}
