/*
Theme Name: SWELL Child - Erimo Shokokai
Theme URI: https://erimomisaki.xsrv.jp/
Description: Child theme for SWELL - Erimo Town Chamber of Commerce
Author: Erimo Town Chamber of Commerce
Template: swell
Version: 1.0.0
*/

@charset "UTF-8";

/* ==========================================================================
   えりも町商工会 公式Webサイト
   SWELL Design System & Theme Styles
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --color-primary: #0088cc;
  --color-primary-dark: #006699;
  --color-primary-light: #e0f2fe;
  --color-accent: #e65100;
  --color-accent-hover: #f57c00;
  
  /* Category Colors */
  --cat-notice: #0284c7;       /* お知らせ */
  --cat-subsidy: #ea580c;      /* 補助金・助成金 */
  --cat-seminar: #16a34a;      /* 講習会・講演会 */
  --cat-event: #7c3aed;        /* 行事・イベント */

  /* Neutral Colors */
  --color-text: #334155;
  --color-text-dark: #0f172a;
  --color-text-muted: #64748b;
  --color-bg: #f8fafc;
  --color-bg-white: #ffffff;
  --color-bg-alt: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-subtle: #edf2f7;

  /* Typography */
  --font-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-heading: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-en: "Outfit", "Inter", sans-serif;

  /* Shadows (SWELL style soft shadows) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.75;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .two-col-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

/* ==========================================================================
   Top Bar & Header
   ========================================================================== */
.top-subbar {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-subbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-subbar-links {
  display: flex;
  gap: 16px;
}

.top-subbar-links a {
  color: #cbd5e1;
  font-size: 0.78rem;
}

.top-subbar-links a:hover {
  color: #38bdf8;
}

.site-header {
  background-color: var(--color-bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.header-logo a {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo img {
  height: 46px;
  width: auto;
}

.header-tagline {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.header-contact {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 860px) {
  .header-contact {
    display: flex;
  }
}

.contact-tel-block {
  text-align: right;
}

.tel-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: block;
}

.tel-number {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.tel-time {
  font-size: 0.72rem;
  color: #94a3b8;
}

.btn-header-consult {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 136, 204, 0.25);
  transition: var(--transition);
}

.btn-header-consult:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 136, 204, 0.35);
  color: #ffffff;
}

/* Global Navigation */
.global-nav {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 2px solid var(--color-primary);
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}

.nav-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.nav-link {
  display: block;
  padding: 13px 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text-dark);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--color-primary);
  background-color: #f0f9ff;
  border-bottom-color: var(--color-primary);
}

.nav-link .nav-en {
  display: block;
  font-size: 0.68rem;
  font-family: var(--font-en);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: block;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

@media (min-width: 860px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-dark);
  margin: 5px auto;
  transition: var(--transition);
}

.mobile-nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background-color: #ffffff;
  z-index: 105;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  padding: 80px 24px 40px;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 104;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-item a {
  display: block;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--color-text-dark);
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-item a:hover {
  background-color: #f0f9ff;
  color: var(--color-primary);
}

@media (max-width: 859px) {
  .global-nav {
    display: none;
  }
}

/* ==========================================================================
   Hero First View (FV) with Video & Sumi-ami Mesh Filter
   ========================================================================== */
.hero-fv {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-color: #0b192c;
}

@media (min-width: 768px) {
  .hero-fv {
    height: 580px;
  }
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*
 * スミ網（平網 / ドットメッシュ）オーバーレイ
 * 半透明グレー/濃紺グラデーション + 繊細なドットメッシュパターン
 * 低解像度動画のブロックノイズをカバーし、重厚感とテキスト視認性を極大化
 */
.hero-sumiami-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: 
    radial-gradient(circle, rgba(0, 0, 0, 0.45) 1px, transparent 1px) 0 0 / 4px 4px,
    linear-gradient(135deg, rgba(8, 24, 46, 0.58) 0%, rgba(15, 23, 42, 0.42) 50%, rgba(3, 105, 161, 0.45) 100%);
  backdrop-filter: blur(0.5px);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 18px;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65);
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
  }
}

.hero-title span {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: #bae6fd;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin-top: 8px;
}

@media (min-width: 768px) {
  .hero-title span {
    font-size: 1.8rem;
  }
}

.hero-description {
  font-size: 0.98rem;
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0284c7;
  color: #ffffff;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transition: var(--transition);
}

.btn-hero-primary:hover {
  background: #0369a1;
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* ==========================================================================
   重要なお知らせティッカー
   ========================================================================== */
.ticker-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.88rem;
}

.ticker-content a {
  color: var(--color-text-dark);
}

.ticker-content a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.ticker-date {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  margin-right: 8px;
}

/* ==========================================================================
   旭川商工会形式 記事スライダー
   ========================================================================== */
.pickup-slider-section {
  padding: 40px 0 30px;
  background-color: #f8fafc;
}

.section-head-slider {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.slider-title-group h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-title-group h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 2px;
}

.slider-title-group p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.slider-controls {
  display: flex;
  gap: 8px;
}

.slider-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.slider-btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.slider-container {
  overflow: hidden;
  position: relative;
  padding: 6px 2px 14px;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.slide-card {
  flex: 0 0 290px;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

@media (min-width: 640px) {
  .slide-card {
    flex: 0 0 340px;
  }
}

.slide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.slide-thumb {
  position: relative;
  height: 170px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.slide-card:hover .slide-thumb img {
  transform: scale(1.05);
}

.slide-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.badge-notice {
  background-color: var(--cat-notice);
}

.badge-subsidy {
  background-color: var(--cat-subsidy);
}

.badge-seminar {
  background-color: var(--cat-seminar);
}

.slide-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.slide-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.slide-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.slide-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  align-self: flex-start;
}

.slide-more svg {
  transition: transform 0.2s;
}

.slide-card:hover .slide-more svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Main Content Area & Section Blocks
   ========================================================================== */
.main-content-wrapper {
  padding: 40px 0 70px;
}

/* Section Title SWELL style */
.swell-section-heading {
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.swell-section-heading h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.swell-section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background: var(--color-primary);
}

.swell-section-heading .en-sub {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* ==========================================================================
   News / Posts Tabs & List
   ========================================================================== */
.news-block {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  padding: 24px;
  margin-bottom: 45px;
}

.news-tab-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.news-tab-btn {
  background: #f1f5f9;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.news-tab-btn:hover {
  background: #e2e8f0;
}

.news-tab-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 136, 204, 0.25);
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: var(--transition);
}

@media (min-width: 640px) {
  .news-item {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background-color: #f8fafc;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: var(--radius-md);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.news-date {
  font-family: var(--font-en);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.news-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: #ffffff;
}

.news-title {
  flex: 1;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.news-title a {
  color: inherit;
}

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

.news-more-btn-wrap {
  text-align: center;
  margin-top: 24px;
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 24px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.86rem;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* ==========================================================================
   3大PRブロック (商工会について / 支援業務 / 行事予定表)
   ========================================================================== */
.pr-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .pr-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pr-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.pr-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pr-card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
  background-color: #e2e8f0;
}

.pr-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pr-card:hover .pr-card-img img {
  transform: scale(1.08);
}

.pr-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.pr-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pr-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.pr-card-desc {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.pr-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ==========================================================================
   えりも町の魅力と地域振興 (Special Erimo Showcase)
   ========================================================================== */
.nature-showcase-section {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid #bae6fd;
  margin-bottom: 50px;
  box-shadow: var(--shadow-sm);
}

.showcase-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}

.showcase-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0369a1;
  margin-bottom: 8px;
}

.showcase-header p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .showcase-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.showcase-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.showcase-card-img {
  height: 140px;
  overflow: hidden;
}

.showcase-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.showcase-card:hover .showcase-card-img img {
  transform: scale(1.06);
}

.showcase-card-body {
  padding: 12px;
}

.showcase-card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0284c7;
  display: inline-block;
  margin-bottom: 4px;
}

.showcase-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.4;
}

/* ==========================================================================
   Sidebar & Widget Styles
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.widget {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Office Info Widget */
.office-info-list {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.office-info-list dt {
  font-weight: 700;
  color: var(--color-text-dark);
}

.office-info-list dd {
  color: var(--color-text-muted);
}

/* Banner List Widget */
.banner-widget-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banner-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background-color: #ffffff;
}

.banner-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.banner-item a {
  display: block;
}

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

/* Quick Nav Widget */
.quick-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-dark);
  background-color: #f8fafc;
  transition: var(--transition);
}

.quick-nav-list a:hover {
  background-color: #f0f9ff;
  color: var(--color-primary);
  padding-left: 16px;
}

/* ==========================================================================
   Footer Section & Footer Banners
   ========================================================================== */
.footer-banner-section {
  background-color: #f1f5f9;
  border-top: 1px solid var(--color-border);
  padding: 30px 0;
}

.footer-banner-heading {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .footer-banner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-banner-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.footer-banner-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: #ffffff;
  transition: var(--transition);
}

.footer-banner-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.footer-banner-item img {
  width: 100%;
  height: auto;
  display: block;
}

.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: 50px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 1.5fr 2fr;
  }
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #94a3b8;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.footer-nav-col h4 {
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-col a {
  color: #94a3b8;
  font-size: 0.82rem;
}

.footer-nav-col a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-bottom {
  background-color: #090d16;
  padding: 18px 0;
  text-align: center;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom a {
  color: #cbd5e1;
}

/* Page Top Floating Button */
.btn-page-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.4);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: none;
}

.btn-page-top.visible {
  opacity: 1;
  visibility: visible;
}

.btn-page-top:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* ==========================================================================
   Page Header (For Subpages: about, support, events, news, contact)
   ========================================================================== */
.page-hero-header {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 60%, #38bdf8 100%);
  color: #ffffff;
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.page-hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px) 0 0 / 8px 8px;
  opacity: 0.5;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

.page-hero-en {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #bae6fd;
  display: block;
  margin-bottom: 6px;
}

.page-hero-title {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.breadcrumb-nav {
  background-color: #f1f5f9;
  padding: 10px 0;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb-list li::after {
  content: ">";
  margin-left: 8px;
  color: #94a3b8;
}

.breadcrumb-list li:last-child::after {
  content: "";
}

.breadcrumb-list a {
  color: var(--color-text-muted);
}

.breadcrumb-list a:hover {
  color: var(--color-primary);
}

.breadcrumb-list span {
  color: var(--color-text-dark);
  font-weight: 600;
}

/* ==========================================================================
   Content Elements (Cards, Tables, Calendars, Modals)
   ========================================================================== */
.content-box {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.content-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
}

.content-box p {
  margin-bottom: 16px;
  line-height: 1.8;
}

/* 7 Support Services Grid */
.support-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .support-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: #f0f9ff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card h4 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--color-text-dark);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  flex: 1;
}

.service-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tag {
  background-color: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* Event Calendar UI */
.calendar-widget-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-dark);
}

.calendar-nav-btns {
  display: flex;
  gap: 8px;
}

.cal-btn {
  background: #f1f5f9;
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.cal-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.calendar-grid {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.calendar-grid th {
  width: 14.2857% !important;
  max-width: 14.2857% !important;
  box-sizing: border-box !important;
  background-color: #f8fafc !important;
  padding: 12px 2px !important;
  text-align: center !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.calendar-grid th.sun { color: #ef4444 !important; }
.calendar-grid th.sat { color: #3b82f6 !important; }

.calendar-grid td {
  width: 14.2857% !important;
  max-width: 14.2857% !important;
  height: 96px !important;
  min-height: 96px !important;
  border: 1px solid var(--color-border);
  vertical-align: top;
  padding: 8px 6px;
  position: relative;
  font-size: 0.82rem;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background-color: #ffffff;
}

.cal-date-num {
  display: block !important;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--color-text-dark);
  margin-bottom: 4px;
  white-space: nowrap !important;
}

.calendar-grid td.sun .cal-date-num { color: #ef4444; }
.calendar-grid td.sat .cal-date-num { color: #3b82f6; }
.calendar-grid td.other-month { background-color: #fbfcfe; color: #cbd5e1; }
.calendar-grid td.other-month .cal-date-num { color: #cbd5e1; }

/* カレンダー凡例対応ピル */
.cal-event-pill {
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
  margin-top: 3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  cursor: pointer !important;
  line-height: 1.35 !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.cal-event-pill.cat-notice {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  border-left: 3px solid #0284c7 !important;
}
.cal-event-pill.cat-notice:hover { background-color: #0284c7 !important; color: #ffffff !important; }

.cal-event-pill.cat-subsidy {
  background-color: #ffedd5 !important;
  color: #c2410c !important;
  border-left: 3px solid #ea580c !important;
}
.cal-event-pill.cat-subsidy:hover { background-color: #ea580c !important; color: #ffffff !important; }

.cal-event-pill.cat-seminar {
  background-color: #dcfce7 !important;
  color: #15803d !important;
  border-left: 3px solid #16a34a !important;
}
.cal-event-pill.cat-seminar:hover { background-color: #16a34a !important; color: #ffffff !important; }

.cal-event-pill.cat-event {
  background-color: #f3e8ff !important;
  color: #6b21a8 !important;
  border-left: 3px solid #7c3aed !important;
}
.cal-event-pill.cat-event:hover { background-color: #7c3aed !important; color: #ffffff !important; }


/* Modal Popup */
.article-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.article-modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  padding: 32px;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--color-text-dark);
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.form-label .required {
  color: #ef4444;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--color-text-dark);
  background-color: #ffffff;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
  transition: var(--transition);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 136, 204, 0.45);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


