/* =============================================
   TOWAKURU WordPress Theme - Main Stylesheet
   Version: 1.0.0
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary:  #2D6A4F;
  --color-accent:   #F4A623;
  --color-dark:     #1A1A2E;
  --color-text:     #2C2C2C;
  --color-text-sub: #6B7280;
  --color-bg:       #FFFFFF;
  --color-bg-light: #F8F9FA;
  --color-bg-dark:  #1A1A2E;
  --color-border:   #E5E7EB;
  --font-main: 'Noto Sans JP', sans-serif;
  --font-en:   'Inter', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --max-width: 1100px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 96px 0; }
.bg-light { background: var(--color-bg-light); }
.bg-dark  { background: var(--color-bg-dark); }

/* ---------- Section Header ---------- */
.section-header { text-align: center; margin-bottom: 60px; }

.section-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: 12px;
}
.section-label.light { color: var(--color-accent); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-dark);
  margin-bottom: 16px;
}
.section-title.light { color: #fff; }

.section-desc {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  max-width: 560px;
  margin: 0 auto;
}
.section-desc.light { color: rgba(255,255,255,0.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: #1e5038; border-color: #1e5038; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--color-dark); border-color: var(--color-dark); }
.btn-outline-dark:hover { background: var(--color-dark); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--color-primary); border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--color-primary); transform: translateY(-2px); }

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s !important; }
.delay-2 { transition-delay: 0.30s !important; }
.delay-3 { transition-delay: 0.45s !important; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.site-logo { flex-shrink: 0; }
.site-logo img { height: 40px; width: auto; max-width: 160px; transition: opacity var(--transition); }
.site-logo:hover img { opacity: 0.8; }
.site-logo a { display: flex; align-items: center; }
/* ロゴ未設定時のテキストフォールバック */
.site-logo .custom-logo-link img { height: 40px; width: auto; max-width: 160px; }
.site-logo .site-name-fallback {
  font-size: 1.1rem; font-weight: 700; color: var(--color-primary);
  white-space: nowrap; letter-spacing: -0.02em;
}

/* Global Nav (WordPress menu) */
.global-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0; padding: 0;
  list-style: none;
  flex-wrap: nowrap;
}
.global-nav ul li a {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 50px;
  transition: var(--transition);
  color: var(--color-text);
  display: block;
  white-space: nowrap;
}
.global-nav ul li a:hover { background: var(--color-bg-light); color: var(--color-primary); }
.global-nav ul li.menu-cta a,
.global-nav ul li:last-child a {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  white-space: nowrap;
}
.global-nav ul li.menu-cta a:hover,
.global-nav ul li:last-child a:hover { background: #1e5038; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--color-text); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 40%, #fef9c3 100%);
  padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(45,106,79,0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(244,166,35,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(45,106,79,0.06);
  animation: floatBg 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 350px; height: 350px; border-radius: 50%;
  background: rgba(244,166,35,0.08);
  animation: floatBg 10s ease-in-out infinite reverse;
}
@keyframes floatBg {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(5deg); }
}
.hero-content { position: relative; z-index: 1; padding-top: 0; }
.hero-label {
  font-family: var(--font-en);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-label::before {
  content: ''; display: block;
  width: 32px; height: 2px; background: var(--color-primary);
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.25;
  color: var(--color-dark); margin-bottom: 28px;
}
.hero-title .accent {
  color: var(--color-primary); position: relative;
}
.hero-title .accent::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px; background: var(--color-accent); border-radius: 2px;
}
.hero-sub {
  font-size: 1rem; color: var(--color-text-sub);
  max-width: 560px; margin-bottom: 40px; line-height: 1.9;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1;
}
.hero-scroll span {
  font-family: var(--font-en); font-size: 0.65rem;
  letter-spacing: 0.2em; color: var(--color-text-sub);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--color-text-sub), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================
   MISSION
   ============================================= */
.mission-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.mission-text .section-label,
.mission-text .section-title { text-align: left; }
.mission-text .section-title { margin-bottom: 24px; }
.body-text { color: var(--color-text-sub); font-size: 0.95rem; line-height: 1.9; margin-bottom: 16px; }
.mission-stats { display: flex; flex-direction: column; gap: 20px; }
.stat-card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 28px 32px;
  display: flex; flex-direction: column; gap: 6px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--color-primary); border-radius: 0 2px 2px 0;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.stat-num {
  font-family: var(--font-en); font-size: 2.4rem;
  font-weight: 700; color: var(--color-primary); line-height: 1;
}
.stat-unit { font-size: 1rem; font-weight: 400; color: var(--color-text-sub); }
.stat-label { font-size: 0.85rem; color: var(--color-text-sub); }

/* =============================================
   ABOUT
   ============================================= */
.about-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.about-card {
  background: var(--color-bg); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.about-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.about-card-img { aspect-ratio: 4/3; overflow: hidden; }
.about-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.about-card:hover .about-card-img img { transform: scale(1.05); }
.about-card-body { padding: 24px; }
.about-card-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-dark); margin-bottom: 10px; }
.about-card-body p { font-size: 0.875rem; color: var(--color-text-sub); line-height: 1.8; }

/* =============================================
   SERVICES
   ============================================= */
.services-list { display: flex; flex-direction: column; gap: 20px; }
.service-item {
  position: relative; border-radius: var(--radius-md);
  overflow: hidden; display: block;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.service-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-img img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.service-item:hover .service-img img { transform: scale(1.03); }
.service-overlay {
  position: absolute; inset: 0;
  background: rgba(26,26,46,0);
  display: flex; align-items: center; justify-content: flex-end;
  padding: 24px 32px; transition: var(--transition);
}
.service-overlay span {
  font-family: var(--font-en); font-size: 0.9rem; font-weight: 600;
  color: #fff; background: var(--color-primary);
  padding: 10px 20px; border-radius: 50px;
  opacity: 0; transform: translateX(16px); transition: var(--transition);
}
.service-item:hover .service-overlay { background: rgba(26,26,46,0.15); }
.service-item:hover .service-overlay span { opacity: 1; transform: translateX(0); }

/* =============================================
   RESULTS
   ============================================= */
.results-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-bottom: 60px; }
.result-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); padding: 32px; transition: var(--transition);
}
.result-card:hover { background: rgba(255,255,255,0.10); transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.result-icon { font-size: 2rem; margin-bottom: 16px; }
.result-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.result-card p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 16px; }
.result-date { font-family: var(--font-en); font-size: 0.75rem; color: var(--color-accent); font-weight: 600; letter-spacing: 0.05em; }
.partners-section { text-align: center; margin-top: 60px; }
.partners-label {
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 32px;
  font-family: var(--font-en); font-weight: 600;
}

/* ロゴグリッド */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.partner-logo {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  min-width: 160px;
  max-width: 220px;
  flex: 1 1 160px;
}
.partner-logo:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}
.partner-logo img {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity var(--transition);
}
.partner-logo:hover img { opacity: 1; }

/* カラーロゴの場合は .partner-logo.color クラスを追加することで白黒反転を解除できます */
.partner-logo.color img { filter: none; opacity: 0.85; }
.partner-logo.color:hover img { opacity: 1; }

/* =============================================
   COMPANY
   ============================================= */
.company-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.company-table table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.company-table th,
.company-table td { padding: 16px 20px; font-size: 0.9rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.company-table th { width: 120px; font-weight: 600; color: var(--color-text-sub); white-space: nowrap; }
.company-table td a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.company-table td a:hover { opacity: 0.75; }
.company-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.company-img img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* =============================================
   NEWS (トップページ用)
   ============================================= */
.news-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 40px; border-top: 1px solid var(--color-border); }
.news-item {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--color-border); transition: var(--transition);
}
.news-item:hover { color: var(--color-primary); }
.news-item:hover .news-arrow { transform: translateX(6px); }
.news-date { font-family: var(--font-en); font-size: 0.8rem; color: var(--color-text-sub); white-space: nowrap; min-width: 90px; }
.news-tag { font-size: 0.72rem; font-weight: 600; color: var(--color-primary); background: rgba(45,106,79,0.1); padding: 3px 10px; border-radius: 50px; white-space: nowrap; }
.news-title-text { flex: 1; font-size: 0.9rem; font-weight: 500; }
.news-arrow { font-size: 1rem; color: var(--color-text-sub); transition: transform var(--transition); }
.news-more { text-align: center; }

/* =============================================
   CTA
   ============================================= */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e5038 100%);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; color: #fff; margin-bottom: 20px; }
.cta-sub { font-size: 0.95rem; color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 40px; line-height: 1.9; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,0.8); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-nav h4,
.footer-info h4 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-nav ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-nav ul li a:hover { color: #fff; }
.footer-info address { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 2; }
.footer-info address a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-info address a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }
.copyright { color: rgba(255,255,255,0.3); }

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--color-primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: var(--transition); z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: #1e5038; transform: translateY(-4px); }

/* =============================================
   INNER PAGES (固定ページ・投稿)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 60%, #fef9c3 100%);
  padding: 140px 0 64px;
  text-align: center;
}
.page-hero-label {
  font-family: var(--font-en); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-primary); display: block; margin-bottom: 12px;
}
.page-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
  color: var(--color-dark); line-height: 1.3;
}

.page-content { padding: 80px 0; }
.page-content .container { max-width: var(--max-width); }

/* 投稿・固定ページ本文スタイル */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-weight: 700; line-height: 1.4; color: var(--color-dark); margin: 2em 0 0.8em;
}
.entry-content h2 { font-size: 1.5rem; border-left: 4px solid var(--color-primary); padding-left: 16px; }
.entry-content h3 { font-size: 1.2rem; }
.entry-content p  { margin-bottom: 1.4em; color: var(--color-text); line-height: 1.9; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em 1.5em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content a  { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { opacity: 0.75; }
.entry-content img { border-radius: var(--radius-md); margin: 1.5em 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th, .entry-content td { padding: 12px 16px; border: 1px solid var(--color-border); }
.entry-content th { background: var(--color-bg-light); font-weight: 600; }
.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 16px 24px; margin: 1.5em 0;
  background: var(--color-bg-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-sub);
}

/* ブログ一覧 */
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.post-card {
  background: var(--color-bg); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card-thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-body { padding: 20px 24px; }
.post-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-card-date { font-family: var(--font-en); font-size: 0.75rem; color: var(--color-text-sub); }
.post-card-cat { font-size: 0.72rem; font-weight: 600; color: var(--color-primary); background: rgba(45,106,79,0.1); padding: 2px 8px; border-radius: 50px; }
.post-card-title { font-size: 0.95rem; font-weight: 700; color: var(--color-dark); line-height: 1.5; margin-bottom: 10px; }
.post-card-excerpt { font-size: 0.85rem; color: var(--color-text-sub); line-height: 1.7; }

/* ページネーション */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination .page-numbers {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.875rem; font-weight: 600;
  border: 1px solid var(--color-border); transition: var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* お問い合わせフォーム (Contact Form 7) */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%; padding: 14px 18px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--color-bg);
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--color-primary); }
.wpcf7 input[type="submit"] {
  background: var(--color-primary); color: #fff;
  border: none; padding: 14px 40px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.wpcf7 input[type="submit"]:hover { background: #1e5038; transform: translateY(-2px); }

/* =============================================
   RESPONSIVE
   ============================================= */

/* ナビメニュー数が多い場合の中間ブレークポイント */
@media (max-width: 1200px) {
  .global-nav ul li a {
    font-size: 0.75rem;
    padding: 7px 8px;
  }
  .global-nav ul li.menu-cta a,
  .global-nav ul li:last-child a {
    padding: 9px 12px;
  }
}

@media (max-width: 1024px) {
  .mission-inner { grid-template-columns: 1fr; gap: 48px; }
  .mission-stats { flex-direction: row; gap: 16px; }
  .stat-card { flex: 1; }
  .company-inner { grid-template-columns: 1fr; gap: 40px; }
  .company-img { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .archive-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }
  .global-nav {
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
    padding: 24px; border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: var(--transition);
  }
  .global-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .global-nav ul { flex-direction: column; gap: 4px; }
  .global-nav ul li a { display: block; padding: 12px 16px; font-size: 1rem; }
  .hamburger { display: flex; }
  .hero-title { font-size: 2rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }
  .about-cards { grid-template-columns: 1fr; gap: 20px; }
  .results-grid { grid-template-columns: 1fr; gap: 16px; }
  .mission-stats { flex-direction: column; }
  .news-item { flex-wrap: wrap; gap: 8px; }
  .news-title-text { width: 100%; order: 3; }
  .news-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .back-to-top { bottom: 20px; right: 20px; }
  .archive-grid { grid-template-columns: 1fr; }
  .page-content .container { padding: 0 20px; max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .company-btns { flex-direction: column; }
  .cta-btns { flex-direction: column; align-items: center; }
}
