/**
 * hanwa.css
 * Theme-specific styles not covered by Tailwind.
 * Includes WCAG 2.1 AA focus styles, reduced-motion, high-contrast support.
 */

/* ── Root tokens ── */
:root {
  --site-max: 1200px;
  --site-gutter: clamp(16px, calc(100vw / 14), 106px);
  --color-dark:  #1a3a2a;
  --color-pail: #E1F0E6;
  --color-green: #009E42;
  --color-focus: #009E42;
}

/* ── Base ── */
html { font-size: 16px; }

/* 英語ページでだけ無効にしたい br */
html[lang="en"] br.for-ja { display: none; }

/* 日本語ページでだけ無効にしたい br（必要な場合） */
html[lang="ja"] br.for-en { display: none; }

body { font-family: 'Noto Sans JP', sans-serif; font-size: 1rem; }
.font-en { font-family: 'Montserrat', sans-serif; }
nav.desktop-nav {  }

/* ─────────────────────────────────────
 * ACCESSIBILITY: Focus styles
 * WCAG 2.4.7 — visible focus indicator
 * ───────────────────────────────────── */

/* Remove default outline only when :focus-visible replaces it */
*:focus { outline: none; }

*:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* High-contrast mode support */
@media (forced-colors: active) {
  *:focus-visible { outline: 3px solid ButtonText; }
  .tab-btn.active { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.sr-only.focus\:not-sr-only:focus,
.sr-only.focus\:not-sr-only:focus-visible {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ─────────────────────────────────────
 * ACCESSIBILITY: Reduced motion
 * WCAG 2.3.3 (AAA) / 2.3.1
 * ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .slider-track { transition: none !important; }
  #searchBar    { transition: none !important; }
  .mega-panel   { transition: none !important; }
}

/* ─────────────────────────────────────
 * LAYOUT: Site-wrap container
 * ───────────────────────────────────── */
.site-wrap,
.section-pad {
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (max-width: 767px){
  .site-wrap,
  .section-pad {
    padding-left: 40px;
    padding-right: 40px;
  }

  /* SPヘッダーのみ左右余白を16pxに */
  header[role="banner"] > .site-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* SP時、阪和の歴史・事業構成・基本方針・WHO WE ARE・数字で読み解く阪和・阪和のサステナビリティ・沿革ボタンセクションも左右余白を16pxに統一 */
  #history > .site-wrap,
  #business-segments > .site-wrap,
  #philosophy > .site-wrap,
  #who-we-are > .site-wrap,
  #numbers > .site-wrap,
  #sustainability > .site-wrap,
  #hanwa-3min-footer-nav {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ─────────────────────────────────────
 * MAIN CONTENT — Full-page padding
 * Applies to all page main element
 * ───────────────────────────────────── */
main {
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  /* padding-left: var(--site-gutter);
  padding-right: var(--site-gutter); */
}
main:has(.hk-container) {
  max-width: none;
}

/* ─────────────────────────────────────
 * COLORS (Tailwind custom utilities)
 * ───────────────────────────────────── */
.accent           { color: var(--color-green); }
.bg-hanwa-dark    { background-color: var(--color-dark); }
.bg-hanwa-green   { background-color: var(--color-green); }
.bg-hanwa-ltgreen { background-color: #f3f6f3; }
.bg-hanwa-pail { background-color:  var(--color-pail); }
.border-hanwa-green { border-color: var(--color-green); }
.text-hanwa-dark  { color: var(--color-dark); }
.text-hanwa-green { color: var(--color-green); }

/* ─────────────────────────────────────
 * HEADER
 * ───────────────────────────────────── */
header { position: sticky; top: 0; z-index: 10; }
nav.desktop-nav { position: static; }

/* Nav hover underline */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--color-green);
  transition: width 0.3s;
}
.nav-link:hover::after,
.nav-link:focus-visible::after { width: 100%; }

/* ─────────────────────────────────────
 * MEGA MENU
 * ───────────────────────────────────── */
.mega-trigger { position: static; }

.mega-panel {
  isolation: isolate;
  position: fixed;
  top: 65px;
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 3px solid var(--color-green);
  box-shadow: 0 16px 40px rgba(0,0,0,0.13);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 9999;
  border-radius: 0 0 8px 8px;
}
.mega-trigger:hover .mega-panel,
.mega-panel:hover,
.mega-panel[data-open] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  align-items: stretch;
}
@media (width >= 768px) {
    .hk-heading-2 {
        gap: 16px;
        font-size: 36px;
        line-height: 1.25;
    }
}
.hk-heading-2 {
    color: #252f3f;
    overflow-wrap: anywhere;
    flex-direction: column;
    font-weight: 700;
    display: flex;
        gap: 16px;
        font-size: 36px;
        line-height: 1.25;
    }
.hk-heading-2:after {
    content: "";
    background-color: #009e42;
    block-size: 4px;
    inline-size: 80px;
}
/* Column configurations */
.mega-inner[data-cols="1"] { grid-template-columns: 200px 1fr repeat(3, 1fr); }
.mega-inner[data-cols="1"] .mega-highlights { grid-column: 3 / span 3; }
.mega-inner[data-cols="2"] { grid-template-columns: 200px repeat(2, 1fr) repeat(2, 1fr); }
.mega-inner[data-cols="2"] .mega-highlights { grid-column: 4; }
.mega-inner[data-cols="3"] { grid-template-columns: 200px repeat(3, 1fr) 1fr; }
.mega-inner[data-cols="3"] .mega-highlights { grid-column: 5; }
.mega-inner[data-cols="4"] { grid-template-columns: 200px repeat(4, 1fr); }
.mega-inner[data-cols="4"] .mega-highlights { display: none; }

@media (max-width: 1399px) {
  .mega-inner[data-cols="1"] { grid-template-columns: 200px 1fr repeat(2, 1fr); }
  .mega-inner[data-cols="1"] .mega-highlights { grid-column: 3 / span 2; }
  .mega-inner[data-cols="2"] { grid-template-columns: 200px repeat(2, 1fr) 1fr; }
  .mega-inner[data-cols="2"] .mega-highlights { grid-column: 4; }
  .mega-inner[data-cols="3"] { grid-template-columns: 200px repeat(3, 1fr); }
  .mega-inner[data-cols="3"] .mega-highlights { display: none; }
  .mega-inner[data-cols="4"] { grid-template-columns: 200px repeat(4, 1fr); }
  .mega-inner[data-cols="4"] .mega-highlights { display: none; }
  .mega-highlight.xl-only { display: none; }
}
@media (max-width: 1199px) {
  .mega-inner { gap: 0; }
  .mega-inner[data-cols="1"] { grid-template-columns: 160px 1fr repeat(2, 1fr); }
  .mega-inner[data-cols="2"] { grid-template-columns: 160px repeat(2, 1fr) 1fr; }
  .mega-inner[data-cols="3"] { grid-template-columns: 160px repeat(3, 1fr); }
  .mega-inner[data-cols="4"] { grid-template-columns: 160px repeat(4, 1fr); }
  .mega-left { min-width: 160px; padding: 16px 12px; }
  .mega-col { padding: 16px 10px; }
  .mega-link { font-size: 0.75rem; }
  .mega-heading { font-size: 0.75rem; }
  .mega-left__title { font-size: 0.85rem; }
  .mega-left__sub { font-size: 0.7rem; }
}
.mega-highlights {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 16px;
  background: #f8faf9;
  border-left: 1px solid #e5e7eb;
  align-items: stretch;
}

.mega-highlight {
  position: relative;
  border-radius: 6px;
  padding: 16px;
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  overflow: hidden;
  /* Fallback dark gradient if image not loaded */
  background: linear-gradient(135deg, #1a3a2a 0%, #2d6a4f 100%);
}

/* Background image applied inline via Twig (Drupal-managed file) */
.mega-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: var(--mega-bg, none);
  z-index: 0;
}
/* Dark overlay on top of image for text legibility */
.mega-highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,40,20,0.75) 0%, rgba(20,70,40,0.65) 100%);
  z-index: 1;
}
/* All children above the overlay */
.mega-highlight > * {
  position: relative;
  z-index: 2;
}

.mega-highlight p { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.85); margin-top: 4px; }
.mega-highlight .hl-title { font-size: 16px; font-weight: 700; color: #fff; }
.mega-highlight .hl-link {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: #86efac; transition: color 0.15s;
}
.mega-highlight .hl-link:hover,
.mega-highlight .hl-link:focus-visible { color: #fff; }

.mega-col { padding: 20px 0px 20px 0px; border-right: 1px solid #e5e7eb; }
.mega-col:last-of-type { border-right: none; }

.mega-col-list li a { padding: 4px 0px 4px 0px; }

.mega-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--color-green); text-transform: uppercase;
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
}

.mega-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: #374151; padding: 5px 0;
  transition: color 0.15s, padding-left 0.15s; white-space: nowrap;
  margin-left: -3px;
}
.mega-link:hover,
.mega-link:focus-visible { color: var(--color-green); padding-left: 4px; }

/* Left nav panel */
.mega-left-nav {
  padding: 20px 16px; background: #f3f6f4;
  border-right: 1px solid #e5e7eb;
  display: flex; flex-direction: column; gap: 4px;
}
.mega-left-title  { font-size: 16px; font-weight: 700; color: var(--color-dark); line-height: 1.3; margin-bottom: 2px; }
.mega-left-subtitle { font-size: 12px; color: var(--color-green); font-weight: 600; letter-spacing: .06em; margin-bottom: 10px; }
.mega-left-top-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--color-dark);
  border: 1.5px solid var(--color-dark); border-radius: 3px;
  padding: 5px 10px; margin-bottom: 14px; transition: background 0.15s, color 0.15s;
  width: fit-content;
}
.mega-left-top-btn:hover,
.mega-left-top-btn:focus-visible { background: var(--color-dark); color: #fff; }

/* Trigger arrow underline */
.mega-trigger > a { position: relative; }
.mega-trigger > a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--color-green); transition: width 0.3s;
}
.mega-trigger:hover > a::after,
.mega-trigger > a:focus-visible::after { width: 100%; }
/* Mega menu — flat layout: hide heading labels */
.mega-col-heading {
  display: none;
}

/* ─────────────────────────────────────
 * LANGUAGE DROPDOWN
 * ───────────────────────────────────── */
.lang-trigger { position: relative; }
.lang-panel::before {
  content: '';
  position: absolute;
  top: -11px;  /* covers the 8px gap + 3px border-top */
  left: 0;
  right: 0;
  height: 11px;
}
.lang-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid #e5e7eb;
  border-top: 3px solid var(--color-green);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  min-width: 160px; border-radius: 0 0 6px 6px;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px); transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999; overflow: hidden; list-style: none; padding: 0; margin: 0;
}
.lang-trigger:hover .lang-panel,
.lang-trigger:focus-within .lang-panel,
.lang-trigger--open .lang-panel {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.lang-option {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 12.5px; color: #374151;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.lang-option:hover,
.lang-option:focus-within { background: #f0fdf4; color: var(--color-green); }
.lang-option.active { color: var(--color-dark); font-weight: 600; background: #f9fafb; }
.lang-flag { font-size: 15px; }

/* ─────────────────────────────────────
 * SEARCH OVERLAY
 * ───────────────────────────────────── */
#searchOverlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 20, 15, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
#searchOverlay.open { opacity: 1; pointer-events: auto; }

#searchBar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 301;
  background: #fff; border-bottom: 2px solid var(--color-green);
  height: 64px; display: flex; align-items: center;
  transform: translateY(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
#searchBar.open { transform: translateY(0); }
#searchBar .search-inner {
  display: flex; align-items: center; width: 100%; height: 100%;
  padding: 0 var(--site-gutter);
  max-width: var(--site-max); margin: 0 auto; gap: 12px;
}
#searchInput {
  flex: 1; border: none; outline: none; font-size: 1.05rem;
  color: var(--color-dark); background: transparent;
  font-family: 'Noto Sans JP', sans-serif;
}
#searchInput::placeholder { color: #9ca3af; font-size: 0.95rem; }
#searchCloseBtn {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid #e5e7eb; background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color 0.15s, background 0.15s; color: #6b7280;
}
#searchCloseBtn:hover,
#searchCloseBtn:focus-visible { border-color: var(--color-green); color: var(--color-dark); background: #f0fdf4; }
#searchSubmitBtn {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  background: var(--color-dark); color: #fff; border: none; border-radius: 4px;
  padding: 8px 16px; font-size: 13px; cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif; transition: background 0.15s;
}
#searchSubmitBtn:hover,
#searchSubmitBtn:focus-visible { background: var(--color-green); }

/* Header — remove site-wrap padding on mobile */
@media (max-width: 767px) {
  header[role="banner"] > .site-wrap {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ─────────────────────────────────────
 * MOBILE MENU
 * ───────────────────────────────────── */
#mobileMenu[hidden] { display: none; }
#mobileMenu:not([hidden]) { display: block; overflow-y: auto; }

.mob-section { border-bottom: 1px solid #e5e7eb; }
.mob-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px; cursor: pointer; font-size: 14px; font-weight: 600;
  width: 100%; background: none; border: none; text-align: left;background: #f3f6f3; transition: background 0.15s;
}
.mob-section-head svg { transition: transform 0.2s; flex-shrink: 0; }
.mob-section-head.open svg { transform: rotate(180deg); }
.mob-section-body[hidden] { display: none; }
.mob-section-body:not([hidden]) { display: block; padding-bottom: 4px; }
.mob-sub-link {
  display: block; padding: 10px 12px 10px 18px; color: #374151;
  font-size: 13.5px; font-weight: 400;
  transition: color 0.15s;
}
.mob-sub-link:hover,
.mob-sub-link:focus-visible { color: var(--color-green, #1a7a3a); }

/* ─────────────────────────────────────
 * HERO SLIDER
 * ───────────────────────────────────── */
.slider-wrapper { overflow: hidden; position: relative;  }
.slider-track { display: flex; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.slide {
  min-width: calc(100% - 48px); flex-shrink: 0;
  position: relative; border-radius: 16px; overflow: hidden;
  margin-right: 24px; margin-left: 0;
}
.slide:first-child { margin-left: 24px; }
/* Hero slider dot indicator */
.dot.active {
  background-color: #1a2332;
  border-color: #1a2332;
}
.dot:hover {
  border-color: #1b7a43;
  background-color: #1b7a43;
}
/* Slider controls tight spacing */
#sliderDots { gap: 6px; }
#sliderDots + button { margin-left: 4px; }
button:has(+ #sliderDots) { margin-right: 4px; }
@media (max-width: 767px) {
  .dot { width: 8px; height: 8px; }
}
/* Hero slider controls — force center on all screen sizes */
.hero-slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Slider controls — equal spacing */
@media (max-width: 1023px) {
  #sliderDots { margin: 0 8px; }
}
/* Slider arrow buttons — equal size */
.hero-slider-controls button,
[id="sliderDots"] ~ button,
[id="sliderDots"] + button { padding: 4px; }
/* ─────────────────────────────────────
 * NEWS TABS
 * ───────────────────────────────────── */
.tab-btn { cursor: pointer; transition: all 0.2s; }
.tab-btn.active { background: #1a3a2a; color: #fff; }
.tab-btn:hover:not(.active),
.tab-btn:focus-visible:not(.active) { background: #e5e7eb; }

/* ─────────────────────────────────────
 * BUSINESS CARDS
 * ───────────────────────────────────── */
.biz-card {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; text-decoration: none; transition: opacity 0.2s;
  container-type: inline-size; /* 円の幅に応じてアイコン・文字サイズを切り替える */
}
.biz-card:hover,
.biz-card:focus-visible { opacity: 0.7; }
/* デザイン：円 165×159 / アイコン 60px / 文字 16px Bold。円は列幅いっぱいに広がる */
.biz-icon-circle {
  display: flex;
  width: 100%;
  padding: 8px 8px 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 165/159;
  border-radius: 100px;
  background: #ffffff;
  box-shadow: 0 4px 12px 0 rgba(13, 10, 44, 0.06);
  transition: border-color 0.2s;
}
.biz-icon-circle img {
  width: 60px; height: 60px; flex-shrink: 0;
}
.biz-card:hover .biz-icon-circle,
.biz-card:focus-visible .biz-icon-circle { border-color: var(--color-green); }
.biz-circle-label { font-size: 16px; font-weight: 700; color: #252f3f; text-align: center; line-height: 1.5; }
/* 円が小さい場合（タブレット幅など）は、円に収まるよう段階的に縮小 */
@container (max-width: 140px) {
  .biz-icon-circle img { width: 48px; height: 48px; }
  .biz-circle-label { font-size: 14px; }
}
@container (max-width: 115px) {
  .biz-icon-circle { gap: 4px; }
  .biz-icon-circle img { width: 36px; height: 36px; }
  .biz-circle-label { font-size: 12px; }
}
@container (max-width: 94px) {
  .biz-icon-circle img { width: 28px; height: 28px; }
  .biz-circle-label { font-size: 10px; }
}

/* TOPページ 事業紹介：4個＋3個の2段（デザインの幅 682px = 円 165px × 4 ＋ 間隔 8px × 3） */
.biz-grid--top {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 682px; margin: 0 auto 8px;
}
.biz-grid--top > .biz-card { width: calc((100% - 24px) / 4); }

.biz-row-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 8px; text-decoration: none; color: var(--color-dark);
  font-size: 0.9375rem; font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.biz-row-btn:hover,
.biz-row-btn:focus-visible { background: #f0fdf4; border-color: var(--color-green); }
.biz-row-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: #fff;
}

/* ─────────────────────────────────────
 * BUTTONS
 * ───────────────────────────────────── */
.arrow-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--color-dark); padding: 8px 20px;
  font-size: 13px; transition: all 0.2s; border-radius: 2px;
}
.arrow-btn:hover,
.arrow-btn:focus-visible { background: var(--color-dark); color: #fff; }
.arrow-btn-green {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--color-green); padding: 8px 20px;
  font-size: 13px; transition: all 0.2s; border-radius: 2px; color: var(--color-dark);
}
.arrow-btn-green:hover,
.arrow-btn-green:focus-visible { background: var(--color-green); color: #fff; }

/* ─────────────────────────────────────
 * SCROLL TO TOP
 * ───────────────────────────────────── */
#scrollTopBtn {
  position: fixed; right: 24px; bottom: 40px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-dark); color: #fff;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: background 0.2s;
  border: none;
}
#scrollTopBtn:hover,
#scrollTopBtn:focus-visible { background: var(--color-green); }

/* Misc fade animation */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.fade-up { animation: fadeUp 0.7s ease both; }

/* ═══════════════════════════════════════════════════
 * BUTTON COMPONENT — hanwa-btn
 * Uses CSS custom properties for 3 independent colours:
 *   --btn-bg    : background
 *   --btn-label : label text colour
 *   --btn-arrow : arrow icon colour
 * Each variant sets these for default / hover / active.
 * ═══════════════════════════════════════════════════ */

/* ── Base ── */
.hanwa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  line-height: 1;
  border-radius: 6px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  background-color: var(--btn-bg, transparent);
  border-color:     var(--btn-border, transparent);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.hanwa-btn:focus-visible {
  outline: 3px solid var(--color-green, #009E42);
  outline-offset: 3px;
}
.hanwa-btn__label {
  color: var(--btn-label, inherit);
  transition: color 0.18s ease;
}
.hanwa-btn__arrow-wrap {
  display: inline-flex;
  align-items: center;
  color: var(--btn-arrow, inherit);
  transition: color 0.18s ease, transform 0.18s ease;
}
.hanwa-btn:hover  .hanwa-btn__arrow-wrap { transform: translateX(3px); }
.hanwa-btn:active .hanwa-btn__arrow-wrap { transform: translateX(5px); }

/* Left arrow: flip icon and move to the left on interaction. */
.hanwa-btn__arrow-wrap--left svg { transform: scaleX(-1); }
.hanwa-btn:hover  .hanwa-btn__arrow-wrap--left { transform: translateX(-3px); }
.hanwa-btn:active .hanwa-btn__arrow-wrap--left { transform: translateX(-5px); }

/* ════════════════════════════════════════════════════
 * VARIANT TOKENS
 * Format: --btn-bg / --btn-border / --btn-label / --btn-arrow
 * ════════════════════════════════════════════════════ */

/* ── outline-dark ── */
.hanwa-btn--outline-dark {
  --btn-bg:     #ffffff;
  --btn-border: #1a3a2a;
  --btn-label:  #1a3a2a;
  --btn-arrow:  #009E42;
}
.hanwa-btn--outline-dark:hover {
  --btn-bg:     #1a3a2a;
  --btn-border: #1a3a2a;
  --btn-label:  #ffffff;
  --btn-arrow:  #86efac;
}
.hanwa-btn--outline-dark:active {
  --btn-bg:     #0d1f16;
  --btn-border: #0d1f16;
  --btn-label:  #ffffff;
  --btn-arrow:  #d1fae5;
}

/* ── outline-green ── */
.hanwa-btn--outline-green {
  --btn-bg:     #ffffff;
  --btn-border: #009E42;
  --btn-label:  #1a3a2a;
  --btn-arrow:  #009E42;
}
.hanwa-btn--outline-green:hover {
  --btn-bg:     #009E42;
  --btn-border: #009E42;
  --btn-label:  #ffffff;
  --btn-arrow:  #d1fae5;
}
.hanwa-btn--outline-green:active {
  --btn-bg:     #007a33;
  --btn-border: #007a33;
  --btn-label:  #ffffff;
  --btn-arrow:  #a7f3d0;
}

/* ── outline-light ── */
.hanwa-btn--outline-light {
  --btn-bg:     #ffffff;
  --btn-border: #d1d5db;
  --btn-label:  #6b7280;
  --btn-arrow:  #9ca3af;
}
.hanwa-btn--outline-light:hover {
  --btn-bg:     #f9fafb;
  --btn-border: #9ca3af;
  --btn-label:  #374151;
  --btn-arrow:  #009E42;
}
.hanwa-btn--outline-light:active {
  --btn-bg:     #f3f4f6;
  --btn-border: #6b7280;
  --btn-label:  #1f2937;
  --btn-arrow:  #007a33;
}

/* ── solid-green (CTA お問い合わせ) ── */
.hanwa-btn--solid-green {
  --btn-bg:     #009E42;
  --btn-border: #009E42;
  --btn-label:  #ffffff;
  --btn-arrow:  #d1fae5;
}
.hanwa-btn--solid-green:hover {
  --btn-bg:     #1a3a2a;
  --btn-border: #1a3a2a;
  --btn-label:  #ffffff;
  --btn-arrow:  #86efac;
}
.hanwa-btn--solid-green:active {
  --btn-bg:     #0d1f16;
  --btn-border: #0d1f16;
  --btn-label:  #ffffff;
  --btn-arrow:  #a7f3d0;
}

/* ── solid-dark ── */
.hanwa-btn--solid-dark {
  --btn-bg:     #1a3a2a;
  --btn-border: #1a3a2a;
  --btn-label:  #ffffff;
  --btn-arrow:  #86efac;
}
.hanwa-btn--solid-dark:hover {
  --btn-bg:     #009E42;
  --btn-border: #009E42;
  --btn-label:  #ffffff;
  --btn-arrow:  #d1fae5;
}
.hanwa-btn--solid-dark:active {
  --btn-bg:     #007a33;
  --btn-border: #007a33;
  --btn-label:  #ffffff;
  --btn-arrow:  #a7f3d0;
}

/* ── solid-green-dark ── */
.hanwa-btn--solid-green-dark {
  --btn-bg:     #009E42;
  --btn-border: #009E42;
  --btn-label:  #ffffff;
  --btn-arrow:  #d1fae5;
}
.hanwa-btn--solid-green-dark:hover {
  --btn-bg:     #007a33;
  --btn-border: #007a33;
  --btn-label:  #ffffff;
  --btn-arrow:  #86efac;
}
.hanwa-btn--solid-green-dark:active {
  --btn-bg:     #005c26;
  --btn-border: #005c26;
  --btn-label:  #ffffff;
  --btn-arrow:  #a7f3d0;
}

/* ── solid-green-mid ── */
.hanwa-btn--solid-green-mid {
  --btn-bg:     #4DC47A;
  --btn-border: #4DC47A;
  --btn-label:  #ffffff;
  --btn-arrow:  #d1fae5;
}
.hanwa-btn--solid-green-mid:hover {
  --btn-bg:     #38a864;
  --btn-border: #38a864;
  --btn-label:  #ffffff;
  --btn-arrow:  #a7f3d0;
}
.hanwa-btn--solid-green-mid:active {
  --btn-bg:     #2a8c50;
  --btn-border: #2a8c50;
  --btn-label:  #ffffff;
  --btn-arrow:  #86efac;
}

/* ── solid-green-light ── */
.hanwa-btn--solid-green-light {
  --btn-bg:     #A8E0BC;
  --btn-border: #A8E0BC;
  --btn-label:  #1a3a2a;
  --btn-arrow:  #009E42;
}
.hanwa-btn--solid-green-light:hover {
  --btn-bg:     #82d1a0;
  --btn-border: #82d1a0;
  --btn-label:  #1a3a2a;
  --btn-arrow:  #007a33;
}
.hanwa-btn--solid-green-light:active {
  --btn-bg:     #5ec087;
  --btn-border: #5ec087;
  --btn-label:  #1a3a2a;
  --btn-arrow:  #005c26;
}

/* ── soft-dark ── */
.hanwa-btn--soft-dark {
  --btn-bg:     #D9F0E3;
  --btn-border: #D9F0E3;
  --btn-label:  #1a3a2a;
  --btn-arrow:  #009E42;
}
.hanwa-btn--soft-dark:hover {
  --btn-bg:     #b8e0cb;
  --btn-border: #b8e0cb;
  --btn-label:  #1a3a2a;
  --btn-arrow:  #007a33;
}
.hanwa-btn--soft-dark:active {
  --btn-bg:     #96cfb3;
  --btn-border: #96cfb3;
  --btn-label:  #0d1f16;
  --btn-arrow:  #005c26;
}


/* ── soft-light ── */
.hanwa-btn--soft-light {
  --btn-bg:     #F0FAF4;
  --btn-border: #F0FAF4;
  --btn-label:  #374151;
  --btn-arrow:  #4DC47A;
}
.hanwa-btn--soft-light:hover {
  --btn-bg:     #d4f0e1;
  --btn-border: #d4f0e1;
  --btn-label:  #1f2937;
  --btn-arrow:  #38a864;
}
.hanwa-btn--soft-light:active {
  --btn-bg:     #b8e5cc;
  --btn-border: #b8e5cc;
  --btn-label:  #111827;
  --btn-arrow:  #2a8c50;
}

/* ── ghost (green text) ── */
.hanwa-btn--ghost {
  --btn-bg:     transparent;
  --btn-border: transparent;
  --btn-label:  #009E42;
  --btn-arrow:  #1a3a2a;
  padding-left: 0;
  padding-right: 0;
}
.hanwa-btn--ghost:hover {
  --btn-label:  #007a33;
  --btn-arrow:  #009E42;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hanwa-btn--ghost:active {
  --btn-label:  #005c26;
  --btn-arrow:  #007a33;
}

/* ── ghost-dark ── */
.hanwa-btn--ghost-dark {
  --btn-bg:     transparent;
  --btn-border: transparent;
  --btn-label:  #1a3a2a;
  --btn-arrow:  #009E42;
  padding-left: 0;
  padding-right: 0;
}
.hanwa-btn--ghost-dark:hover {
  --btn-label:  #009E42;
  --btn-arrow:  #007a33;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hanwa-btn--ghost-dark:active {
  --btn-label:  #007a33;
  --btn-arrow:  #005c26;
}

/* ── ghost-light ── */
.hanwa-btn--ghost-light {
  --btn-bg:     transparent;
  --btn-border: transparent;
  --btn-label:  #9ca3af;
  --btn-arrow:  #d1d5db;
  padding-left: 0;
  padding-right: 0;
}
.hanwa-btn--ghost-light:hover {
  --btn-label:  #6b7280;
  --btn-arrow:  #9ca3af;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hanwa-btn--ghost-light:active {
  --btn-label:  #374151;
  --btn-arrow:  #6b7280;
}

/* ghost-sm size modifier */
.hanwa-btn--ghost-sm {
  font-size: 0.75rem;
  gap: 4px;
}
.hanwa-btn--ghost-sm .hanwa-btn__arrow-wrap svg {
  width: 12px;
  height: 12px;
}

/* ── outline ── */
.hanwa-btn--outline {
  --btn-bg:     #ffffff;
  --btn-border: #252F3F;
  --btn-label:  #252F3F;
  --btn-arrow:  #252F3F;
}
.hanwa-btn--outline:hover {
  --btn-bg:     #E1F0E6;
  --btn-border: #009E42;
  --btn-label:  #009E42;
  --btn-arrow:  #009E42;
}

/* ── nav-top (mega menu compact) ── */
.hanwa-btn--nav-top {
  --btn-bg:     transparent;
  --btn-border: #1a3a2a;
  --btn-label:  #1a3a2a;
  --btn-arrow:  #009E42;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 5px 10px;
  width: fit-content;
  margin-bottom: 14px;
}
.hanwa-btn--nav-top:hover {
  --btn-bg:     #1a3a2a;
  --btn-border: #1a3a2a;
  --btn-label:  #ffffff;
  --btn-arrow:  #86efac;
}
.hanwa-btn--nav-top:active {
  --btn-bg:     #0d1f16;
  --btn-border: #0d1f16;
  --btn-label:  #ffffff;
  --btn-arrow:  #d1fae5;
}

/* ═══════════════════════════════════════════════════
 * BANNER CARD COMPONENT
 * Used for: Company Info, Sustainability, IR, Recruit
 * ═══════════════════════════════════════════════════ */

.banner-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

/* Hover: darken overlay slightly */
.banner-card > .absolute.inset-0 {
  transition: opacity 0.2s ease;
}
.banner-card:hover > .absolute.inset-0 {
  opacity: 0.9;
}

/* ── Circular arrow button ── */
.banner-card__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* green-border: green ring, green icon → filled green on hover */
.banner-card__arrow--green-border {
  border: 2px solid var(--color-green);
  color: var(--color-green);
  background: transparent;
}
.banner-card:hover .banner-card__arrow--green-border,
.banner-card:active .banner-card__arrow--green-border {
  background: var(--color-green);
  color: #fff;
}
/* green-fill: solid black bg → solid dark bg on hover */
.banner-card__arrow--blk-fill {
  border: none;
  background: #252F3F;
  color: #fff;
}
.banner-card:hover .banner-card__arrow--blk-fill,
.banner-card:active .banner-card__arrow--blk-fill {
  background: #1a3a2a;
}
.banner-card__arrow--white-fill {
  border: none;
  background: #fff;
  color: #252F3F;
}
/* white-border: white ring, white icon → filled white on hover, green icon */
.banner-card__arrow--white {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
.banner-card:hover .banner-card__arrow--white,
.banner-card:active .banner-card__arrow--white {
  background: #fff;
  color: var(--color-green);
}

/* green-fill: solid green bg → solid dark bg on hover */
.banner-card__arrow--green-fill {
  border: none;
  background: rgba(0, 158, 66, 0.8);
  color: #fff;
}
.banner-card:hover .banner-card__arrow--green-fill,
.banner-card:active .banner-card__arrow--green-fill {
  background: var(--color-green);
}

/* Arrow icon stays fixed in place on hover/active */

/* Focus ring */
.banner-card:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════
 * ADDITIONAL BUTTON VARIANTS (from Button.png spec)
 * Each variant has 3 colour tones × 3 states
 * ═══════════════════════════════════════════════════ */

/* ── Solid variants — Group 1 & 2 ──────────────────
   solid-green-dark  : #009E42 bg
   solid-green-mid   : #4DC47A bg (medium green)
   solid-green-light : #A8E0BC bg (light green)
   Group 1 = strong fill, Group 2 = same but lighter shade on hover/active
   ─────────────────────────────────────────────────── */

/* solid-green-dark (already exists as solid-green — alias) */
.hanwa-btn--solid-green-dark {
  background:   #009E42;
  color:        #ffffff;
  border-color: #009E42;
}
.hanwa-btn--solid-green-dark:hover {
  background:   #007a33;
  border-color: #007a33;
  color:        #ffffff;
}
.hanwa-btn--solid-green-dark:active {
  background:   #005c26;
  border-color: #005c26;
  color:        #ffffff;
}

/* solid-green-mid: medium green */
.hanwa-btn--solid-green-mid {
  background:   #4DC47A;
  color:        #ffffff;
  border-color: #4DC47A;
}
.hanwa-btn--solid-green-mid:hover {
  background:   #38a864;
  border-color: #38a864;
  color:        #ffffff;
}
.hanwa-btn--solid-green-mid:active {
  background:   #2a8c50;
  border-color: #2a8c50;
  color:        #ffffff;
}

/* solid-green-light: light green — text must be dark for contrast */
.hanwa-btn--solid-green-light {
  background:   #A8E0BC;
  color:        #1a3a2a;
  border-color: #A8E0BC;
}
.hanwa-btn--solid-green-light:hover {
  background:   #82d1a0;
  border-color: #82d1a0;
  color:        #1a3a2a;
}
.hanwa-btn--solid-green-light:active {
  background:   #5ec087;
  border-color: #5ec087;
  color:        #1a3a2a;
}

/* ── Soft/tinted fill variants — Group 2 style ──────
   These use the same colours but with a softer fill feel
   (lighter bg, darker text, used for secondary actions)
   ─────────────────────────────────────────────────── */

/* soft-dark: light dark-green tint bg, dark text */
.hanwa-btn--soft-dark {
  background:   #D9F0E3;
  color:        #1a3a2a;
  border-color: #D9F0E3;
}
.hanwa-btn--soft-dark:hover {
  background:   #b8e0cb;
  border-color: #b8e0cb;
  color:        #1a3a2a;
}
.hanwa-btn--soft-dark:active {
  background:   #96cfb3;
  border-color: #96cfb3;
  color:        #1a3a2a;
}

/* soft-green: light green tint */
.hanwa-btn--soft-green {
  display:         flex;
  height:          48px;
  padding:         var(--size-gap-sm, 8px) var(--size-button-padding-x-md, 16px);
  justify-content: center;
  align-items:     center;
  flex-shrink:     0;
  align-self:      stretch;
  background:   #BBE5C8;
  color:        #009E42;
}
.hanwa-btn--soft-green .hanwa-btn__label {
  flex:        1;
  color:       var(--Text-primary, #252F3F);
  font-family: "Noto Sans JP";
  font-size:   16px;
  font-style:  normal;
  font-weight: 700;
  line-height: 150%; /* 24px */
  text-align:  center;
}
.hanwa-btn--soft-green .hanwa-btn__arrow-wrap {
  display:         flex;
  flex-shrink:     0;
  width:           18px;
  height:          18px;
  justify-content: center;
  align-items:     center;
  aspect-ratio:    1/1;
  background-color: currentColor;
  mask-image:      url(../img/icons/arrow-solid.svg);
  mask-repeat:     no-repeat;
  mask-position:   center;
  mask-size:       contain;
  -webkit-mask-image:    url(../img/icons/arrow-solid.svg);
  -webkit-mask-repeat:   no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size:     contain;
}
.hanwa-btn--soft-green .hanwa-btn__arrow-wrap svg {
  display: none;
}
.hanwa-btn--soft-green:hover {
  background:   #c8ecd7;
  border-color: #c8ecd7;
  color:        #007a33;
}
.hanwa-btn--soft-green:active {
  background:   #a8dfbf;
  border-color: #a8dfbf;
  color:        #005c26;
}

/* PC: label stays left-aligned, arrow on the right, width follows text length */
@media (width >= 768px) {
  .hanwa-btn--soft-green {
    justify-content: space-between;
    width:           fit-content;
    align-self:      auto;
  }
  .hanwa-btn--soft-green .hanwa-btn__label {
    flex:       none;
    text-align: left;
  }
}

/* soft-light: very light tint */
.hanwa-btn--soft-light {
  background:   #F0FAF4;
  color:        #4DC47A;
  border-color: #F0FAF4;
}
.hanwa-btn--soft-light:hover {
  background:   #d4f0e1;
  border-color: #d4f0e1;
  color:        #38a864;
}
.hanwa-btn--soft-light:active {
  background:   #b8e5cc;
  border-color: #b8e5cc;
  color:        #2a8c50;
}

/* ── Outline variants — Group 3 ─────────────────────
   outline-dark  : dark border (already exists)
   outline-green : green border (already exists)
   outline-light : light gray border, muted text
   ─────────────────────────────────────────────────── */

/* outline-light: gray/light border, muted styling */
.hanwa-btn--outline-light {
  border-color: #d1d5db;
  color:        #6b7280;
  background:   #ffffff;
}
.hanwa-btn--outline-light:hover {
  border-color: #9ca3af;
  color:        #374151;
  background:   #f9fafb;
}
.hanwa-btn--outline-light:active {
  border-color: #6b7280;
  color:        #1f2937;
  background:   #f3f4f6;
}

/* ── Ghost variants — Group 4 (large) & 5 (small) ──
   ghost-dark  : dark text, no border/bg
   ghost-green : green text (already exists as ghost)
   ghost-light : muted gray text
   ─────────────────────────────────────────────────── */

/* ghost-dark */
.hanwa-btn--ghost-dark {
  background:   transparent;
  border-color: transparent;
  color:        #1a3a2a;
  padding-left: 0;
  padding-right: 0;
}
.hanwa-btn--ghost-dark:hover {
  color:            #009E42;
  text-decoration:  underline;
  text-underline-offset: 3px;
}
.hanwa-btn--ghost-dark:active {
  color:            #007a33;
  text-decoration:  underline;
}

/* ghost (already defined — green text) is ghost-green */

/* ghost-light: muted gray */
.hanwa-btn--ghost-light {
  background:   transparent;
  border-color: transparent;
  color:        #9ca3af;
  padding-left: 0;
  padding-right: 0;
}
.hanwa-btn--ghost-light:hover {
  color:            #6b7280;
  text-decoration:  underline;
  text-underline-offset: 3px;
}
.hanwa-btn--ghost-light:active {
  color:            #374151;
  text-decoration:  underline;
}

/* ghost-sm: small size modifier — apply alongside any ghost variant */
.hanwa-btn--ghost-sm {
  font-size:    0.75rem;   /* 12px */
  gap:          4px;
}
.hanwa-btn--ghost-sm .hanwa-btn__arrow {
  width:  12px;
  height: 12px;
}

/* ═══════════════════════════════════════════════════
 * BUTTON LABEL / ARROW COLOUR SPLIT
 * Label and arrow icon use different colours per
 * variant, with independent hover/active transitions.
 * ═══════════════════════════════════════════════════ */

.hanwa-btn__label {
  transition: color 0.18s ease;
  font-size: 1rem;
}
.hanwa-btn--solid-green .hanwa-btn__icon-wrap svg {
  color: white;
  stroke: white;
}
.hanwa-btn__arrow-wrap {
  display: inline-flex;
  align-items: center;
  transition: color 0.18s ease, transform 0.18s ease;
}
.hanwa-btn:hover  .hanwa-btn__arrow-wrap { transform: translateX(3px); }
.hanwa-btn:active .hanwa-btn__arrow-wrap { transform: translateX(5px); }

/* Left arrow: flip icon and move to the left on interaction. */
.hanwa-btn__arrow-wrap--left svg { transform: scaleX(-1); }
.hanwa-btn:hover  .hanwa-btn__arrow-wrap--left { transform: translateX(-3px); }
.hanwa-btn:active .hanwa-btn__arrow-wrap--left { transform: translateX(-5px); }

/* ── outline-dark ── */
.hanwa-btn--outline-dark .hanwa-btn__label     { color: var(--color-dark, #1a3a2a); }
.hanwa-btn--outline-dark .hanwa-btn__arrow-wrap { color: #009E42; }
.hanwa-btn--outline-dark:hover .hanwa-btn__label     { color: #ffffff; }
.hanwa-btn--outline-dark:hover .hanwa-btn__arrow-wrap { color: #86efac; }
.hanwa-btn--outline-dark:active .hanwa-btn__label     { color: #ffffff; }
.hanwa-btn--outline-dark:active .hanwa-btn__arrow-wrap { color: #d1fae5; }

/* ── outline-green ── */
.hanwa-btn--outline-green .hanwa-btn__label     { color: #1a3a2a; }
.hanwa-btn--outline-green .hanwa-btn__arrow-wrap { color: #009E42; }
.hanwa-btn--outline-green:hover .hanwa-btn__label     { color: #ffffff; }
.hanwa-btn--outline-green:hover .hanwa-btn__arrow-wrap { color: #d1fae5; }
.hanwa-btn--outline-green:active .hanwa-btn__label     { color: #ffffff; }
.hanwa-btn--outline-green:active .hanwa-btn__arrow-wrap { color: #a7f3d0; }

/* ── outline-light ── */
.hanwa-btn--outline-light .hanwa-btn__label     { color: #6b7280; }
.hanwa-btn--outline-light .hanwa-btn__arrow-wrap { color: #9ca3af; }
.hanwa-btn--outline-light:hover .hanwa-btn__label     { color: #374151; }
.hanwa-btn--outline-light:hover .hanwa-btn__arrow-wrap { color: #009E42; }
.hanwa-btn--outline-light:active .hanwa-btn__label     { color: #1f2937; }
.hanwa-btn--outline-light:active .hanwa-btn__arrow-wrap { color: #007a33; }

/* ── solid-green / solid-green-dark ── */
.hanwa-btn--solid-green .hanwa-btn__label,
.hanwa-btn--solid-green-dark .hanwa-btn__label     { color: #ffffff; }
.hanwa-btn--solid-green .hanwa-btn__arrow-wrap,
.hanwa-btn--solid-green-dark .hanwa-btn__arrow-wrap { color: #d1fae5; }
.hanwa-btn--solid-green:hover .hanwa-btn__label,
.hanwa-btn--solid-green-dark:hover .hanwa-btn__label     { color: #ffffff; }
.hanwa-btn--solid-green:hover .hanwa-btn__arrow-wrap,
.hanwa-btn--solid-green-dark:hover .hanwa-btn__arrow-wrap { color: #86efac; }

/* ── solid-dark ── */
.hanwa-btn--solid-dark .hanwa-btn__label     { color: #ffffff; }
.hanwa-btn--solid-dark .hanwa-btn__arrow-wrap { color: #86efac; }
.hanwa-btn--solid-dark:hover .hanwa-btn__label     { color: #ffffff; }
.hanwa-btn--solid-dark:hover .hanwa-btn__arrow-wrap { color: #d1fae5; }

/* ── solid-green-mid ── */
.hanwa-btn--solid-green-mid .hanwa-btn__label     { color: #ffffff; }
.hanwa-btn--solid-green-mid .hanwa-btn__arrow-wrap { color: #d1fae5; }
.hanwa-btn--solid-green-mid:hover .hanwa-btn__arrow-wrap { color: #a7f3d0; }

/* ── solid-green-light ── */
.hanwa-btn--solid-green-light .hanwa-btn__label     { color: #1a3a2a; }
.hanwa-btn--solid-green-light .hanwa-btn__arrow-wrap { color: #009E42; }
.hanwa-btn--solid-green-light:hover .hanwa-btn__label     { color: #1a3a2a; }
.hanwa-btn--solid-green-light:hover .hanwa-btn__arrow-wrap { color: #007a33; }

/* ── soft-dark ── */
.hanwa-btn--soft-dark .hanwa-btn__label     { color: #1a3a2a; }
.hanwa-btn--soft-dark .hanwa-btn__arrow-wrap { color: #009E42; }
.hanwa-btn--soft-dark:hover .hanwa-btn__label     { color: #1a3a2a; }
.hanwa-btn--soft-dark:hover .hanwa-btn__arrow-wrap { color: #007a33; }

/* ── soft-green ── */
/* label color for soft-green is set earlier (var(--Text-primary, #252F3F)) — not repeated here */
.hanwa-btn--soft-green .hanwa-btn__arrow-wrap { color: #009E42; }
.hanwa-btn--soft-green:hover .hanwa-btn__arrow-wrap { color: #007a33; }

/* ── soft-light ── */
.hanwa-btn--soft-light .hanwa-btn__label     { color: #374151; }
.hanwa-btn--soft-light .hanwa-btn__arrow-wrap { color: #4DC47A; }
.hanwa-btn--soft-light:hover .hanwa-btn__label     { color: #1f2937; }
.hanwa-btn--soft-light:hover .hanwa-btn__arrow-wrap { color: #38a864; }

/* ── ghost (green) ── */
.hanwa-btn--ghost .hanwa-btn__label     { color: #009E42; }
.hanwa-btn--ghost .hanwa-btn__arrow-wrap { color: #1a3a2a; }
.hanwa-btn--ghost:hover .hanwa-btn__label     { color: #007a33; }
.hanwa-btn--ghost:hover .hanwa-btn__arrow-wrap { color: #009E42; }

/* ── ghost-dark ── */
.hanwa-btn--ghost-dark .hanwa-btn__label     { color: #1a3a2a; }
.hanwa-btn--ghost-dark .hanwa-btn__arrow-wrap { color: #009E42; }
.hanwa-btn--ghost-dark:hover .hanwa-btn__label     { color: #009E42; }
.hanwa-btn--ghost-dark:hover .hanwa-btn__arrow-wrap { color: #007a33; }

/* ── ghost-light ── */
.hanwa-btn--ghost-light .hanwa-btn__label     { color: #9ca3af; }
.hanwa-btn--ghost-light .hanwa-btn__arrow-wrap { color: #d1d5db; }
.hanwa-btn--ghost-light:hover .hanwa-btn__label     { color: #6b7280; }
.hanwa-btn--ghost-light:hover .hanwa-btn__arrow-wrap { color: #9ca3af; }

/* ── nav-top ── */
.hanwa-btn--nav-top .hanwa-btn__label     { color: #1a3a2a; }
.hanwa-btn--nav-top .hanwa-btn__arrow-wrap { color: #009E42; }
.hanwa-btn--nav-top:hover .hanwa-btn__label     { color: #ffffff; }
.hanwa-btn--nav-top:hover .hanwa-btn__arrow-wrap { color: #86efac; }

/* ═══════════════════════════════════════════════════
 * IR PAGE STYLES
 * ═══════════════════════════════════════════════════ */

/* IR calendar highlighted day arrow */
.ir-cal-event {
  position: relative;
}

/* Stock widget number */
.ir-stock-price {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* IR content card sub-links */
.ir-card-link {
  display: block;
  padding: 2px 0;
  font-size: 12px;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.ir-card-link:hover { color: var(--color-green); }

/* ═══════════════════════════════════════════════════
 * IR SIDEBAR NAVIGATION
 * ═══════════════════════════════════════════════════ */

.ir-sidenav ul { border-radius: 0.5rem; overflow: hidden; }

.ir-sidenav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
  border-bottom: 1px solid #f3f4f6;
}
.ir-sidenav a:last-child { border-bottom: none; }

/* Active state */
.ir-sidenav a[aria-current="page"] {
  background: #009E42;
  color: #fff;
}

/* Hover */
.ir-sidenav a:not([aria-current="page"]):hover {
  background: #f9fafb;
  color: #009E42;
}

/* Child links */
.ir-sidenav ul ul a {
  padding-left: 1.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  border-bottom: 1px solid #f3f4f6;
  background: #f9fafb;
}
.ir-sidenav ul ul a:hover { color: #009E42; background: #f0fdf4; }

/* ═══════════════════════════════════════════════════
 * ALERT NEWS COMPONENT
 * ═══════════════════════════════════════════════════ */

:root {
  --color-red:       #c0392b;
  --color-red-bg:    #fdf0ef;
  --color-red-border: #f5c6c2;
}

.alert-news {
  width: 100%;
  background: #fff5f5;
}

.alert-news__item {
  border-bottom: 1px solid #ffd7d7;
}
.alert-news__item:first-child {
  border-top: 1px solid #ffd7d7;
}

.alert-news__item-inner {
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding: 14px var(--site-gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Tag badge — left side, red pill */
.alert-news__meta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Hide date — design shows tag only */
.alert-news__date {
  display: none;
}

.alert-news__tag {
  display: inline-block;
  background: #c0392b;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  min-width: 100px;
  text-align: center;
}

/* Title — dark, underlined link */
.alert-news__title {
  margin: 0;
  font-size: 0.9375rem;
  flex: 1;
}

.alert-news__link {
  color: #1a2e1a;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.alert-news__link:hover { color: #c0392b; }

/* ═══════════════════════════════════════════════════
 * OFFICES PAGE — MAP, FILTER, LIST
 * ═══════════════════════════════════════════════════ */

/* ── World Map ── */
.offices-map-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  /* Horizontal scroll on very small screens */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Min width so labels stay readable */
  min-width: 320px;
}

/* On mobile, allow horizontal scroll so the SVG doesn't crush */
@media (max-width: 767px) {
  .gom-label { display: none; }
}
@media (max-width: 480px) {
  .offices-map-wrap {
    /* Let SVG render at 480px minimum so labels are legible */
  }
  .offices-map-wrap svg[viewBox] {
    min-width: 480px;
  }
}
/* Mobile map — show pin markers instead of text labels */
@media (max-width: 767px) {
  /* Hide text bubble labels on mobile */
  .gom-label__bg { display: none; }
  .gom-label__text { display: none; }
  
  /* Show pin marker using CSS */
  .gom-label::before { display: none; }
  
  /* Style the gom-label group as a pin circle */
  .gom-label circle {
    display: block;
    r: 4;
    fill: #1a3a2a;
  }
  .gom-label.is-active circle,
  .gom-label:hover circle {
    fill: #009E42;
  }
}
@media (max-width: 767px) {
  .gom-label__bg,
  .gom-label__text { display: none; }
  
  /* Make gom-label show just a pin dot */
  .gom-label rect {
    width: 6px;
    height: 6px;
    rx: 50%;
    fill: #1a3a2a;
    stroke: #fff;
    stroke-width: 0.5;
  }
}
/* Label text scales with SVG viewBox — font-size in SVG units
   are relative to the 1058px viewBox, so they scale correctly */

/* ── Region Filter Tabs ── */
.offices-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
}
@media (max-width: 767px) {
  .offices-filter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
  }
}


.offices-filter__btn {
  padding: 6px 14px;
  border: none;
  border-bottom: 2px solid #d1d5db;
  border-radius: 0;
  background: transparent;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
}
.offices-filter__btn:hover {
  border-bottom-color: #009E42;
  color: #009E42;
}
.offices-filter__btn.active {
  background: transparent;
  border-bottom: 2px solid #009E42;
  color: #009E42;
  font-weight: 700;
}

.offices-filter__btn:focus { outline: none; }
.offices-filter__btn:focus-visible {
  outline: 2px solid #009E42;
  outline-offset: 2px;
}

/* ── Office Country Heading ── */
.offices-country-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a3a2a;
  padding: 8px 0 12px;
  margin-bottom: 0;
  display: inline-block;
}

/* ── Office Card ── */
.offices-card {
  display: grid;
  grid-template-columns: 320px 1fr auto;
  gap: 0;
  padding: 20px 0px 20px 20px;
  background: #fff;
  transition: background 0.15s;
}
.offices-card:hover { background: #f9fafb; }

@media (max-width: 767px) {
  .offices-card { grid-template-columns: 1fr; gap: 16px; }
}

.offices-card__name-col {
  padding: 20px 20px 20px 20px;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
  margin: -20px 0 -20px -20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: normal;
}
@media (max-width: 767px) {
  .offices-card__name-col { border-right: none; border-bottom: 1px solid #e5e7eb; padding-right: 16px; padding-bottom: 12px; margin-bottom: 0; }
}

.offices-card__city {
  font-weight: 700;
  color: #1a3a2a;
  margin-bottom: 4px;
}

.offices-card__name {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 8px;
}

.offices-card__site-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  color: #009E42;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  transition: opacity 0.15s;
}
.offices-card__site-link:hover {
  opacity: 0.7;
}

.offices-card__detail-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-left: 20px;
  padding-right: 16px;
}
@media (max-width: 767px) {
  .offices-card__detail-col { flex-direction: column; align-items: flex-start; padding-left: 0; }
  .offices-card__detail-col .offices-card__site-link { align-self: flex-end; }
}

.offices-card__detail-main {
  max-width: 44rem;
}
@media (max-width: 767px) {
  .offices-card__detail-main { max-width: none; }
}

.offices-card__address {
  color: #374151;
  line-height: 1.7;
  margin-bottom: 4px;
  margin-top: 8px;
}
.offices-card__address--ja {
  color: #6b7280;
}

.offices-card__contact {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.offices-card__contact-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #374151;
}
.offices-card__contact-row a {
  color: #374151;
  text-decoration: none;
}
.offices-card__contact-row a:hover {
  color: var(--color-green);
}
.offices-card__contact-row dt {
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
/* Offices map link column */
.offices-card__map-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
  padding-left: 16px;
  padding-right: 20px;
  flex-shrink: 0;
}
.offices-card__map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-green);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.offices-card__map-link:hover {
  text-decoration: underline;
}
/* Hidden groups (filtered out) */
.offices-group[hidden] { display: none; }

/* ── SVG Map Labels + Mobile Pin Markers ── */
.gom-label { display: inline !important; }
.gom-label__pin { display: none; }
@media (max-width: 767px) {
  .gom-label { display: inline !important; }
  .gom-label__bg,
  .gom-label__text { display: none !important; }
  .gom-label__pin {
    display: inline !important;
    transition: filter 0.2s;
  }
  .gom-label.is-active .gom-label__pin,
  .gom-label:hover .gom-label__pin {
    /* Colorize dark navy to green #009E42 */
    filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(101deg) brightness(97%) contrast(97%) !important;
  }
}

/* ── Map Modal ── */
.offices-map-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.offices-map-modal[hidden] { display: none; }
.offices-map-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
}
.offices-map-modal__box {
  position: relative; z-index: 1;
  background: #fff; border-radius: 8px;
  width: min(90vw, 800px); height: min(80vh, 560px);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.offices-map-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.offices-map-modal__title {
  font-size: 0.9rem; font-weight: 600;
  color: var(--color-dark); margin: 0;
}
.offices-map-modal__close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: transparent; cursor: pointer;
  color: #6b7280; transition: background 0.15s, color 0.15s;
}
.offices-map-modal__close:hover { background: #f3f4f6; color: var(--color-dark); }
.offices-map-modal__body { flex: 1; overflow: hidden; }
.offices-map-modal__body iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ══════════════════════════════════════════════════════════════
   サステナビリティTOP
   ══════════════════════════════════════════════════════════════ */

/* ── Message cards ── */
.sus-messages {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  /* padding-left: var(--site-gutter);
  padding-right: var(--site-gutter); */
  padding-top: 40px;
  padding-bottom: 40px;
}

.sus-messages__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr; /* 25% 25% 50% */
  gap: 16px;
  align-items: stretch; /* all cards same height */
}

/* Image fills remaining height so all cards stretch equally */
.sus-messages__card {
  display: flex;
  flex-direction: column;
}

/* Fixed image height — all 3 cards identical regardless of column width */
.sus-messages__img-wrap {
  height: 280px;
  aspect-ratio: unset;
  flex-shrink: 0;
}

.sus-messages__card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

/* Image */
.sus-messages__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e0e0e0;
}



.sus-messages__img-wrap--empty {
  background: #c8d8c8;
}

.sus-messages__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sus-messages__card:hover .sus-messages__img {
  transform: scale(1.04);
}

/* SP overlay — title + arrow over image (hidden on desktop) */
.sus-messages__overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  padding: 20px 0px 20px 20px;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  color: white;
}

.sus-messages__overlay-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.sus-messages__overlay-sub {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.sus-messages__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  background: #252F3F;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* PC text below image */
.sus-messages__text {
  padding: 16px 0 8px;
}

.sus-messages__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a2e1a;
  margin-bottom: 4px;
}

.sus-messages__body {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* ── Quick links with background image ── */
.sus-quicklink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-left: 4px solid #009E42;
  border-radius: 2px;
  text-decoration: none;
  background-color: #f5f5f5; /* fallback if image missing */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s;
  min-height: 72px;
}

/* Semi-transparent overlay so text stays readable over any image */
.sus-quicklink::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245, 245, 245, 0.82);
  transition: background 0.2s;
}

.sus-quicklink:hover::before {
  background: rgba(235, 235, 235, 0.82);
}

/* Ensure text and icon sit above the overlay */
.sus-quicklink > * {
  position: relative;
  z-index: 1;
}

/* ── ESG banner panels ── */
.sus-esg__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.sus-esg__card {
  display: block;
  text-decoration: none;
  position: relative;
  height: 200px;
  overflow: hidden;
  transition: opacity 0.2s;
  background-size: cover;            /* fills card, crops on resize */
  background-position: right center; /* crop anchored to right */
  background-repeat: no-repeat;
}

.sus-esg__card:hover { opacity: 0.92; }

/* Per-panel background colours (left side solid, right fades to show image) */
.sus-esg__card--env { background-color: #3a9e3f; }
.sus-esg__card--soc { background-color: #1a8fa0; }
.sus-esg__card--gov { background-color: #3d5a6e; }

/* ::before: left-to-right gradient — opaque colour left, transparent right so image shows */
.sus-esg__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sus-esg__card--env::before {
  background:
    radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(to right, #3a9e3f 0%, #3a9e3f 35%, rgba(58,158,63,0.6) 60%, rgba(58,158,63,0) 100%);
}

.sus-esg__card--soc::before {
  background:
    radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(to right, #1a8fa0 0%, #1a8fa0 35%, rgba(26,143,160,0.6) 60%, rgba(26,143,160,0) 100%);
}

.sus-esg__card--gov::before {
  background:
    radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(to right, #3d5a6e 0%, #3d5a6e 35%, rgba(61,90,110,0.6) 60%, rgba(61,90,110,0) 100%);
}

.sus-esg__card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  color: white;
  gap: 16px;
}

.sus-esg__label {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.sus-esg__label-en {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

.sus-esg__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgb(19, 19, 19);
}

/* ── Mobile ── */
@media (max-width: 768px) {

  /* Messages: stack vertically, image with overlay */
  .sus-messages__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sus-messages__img-wrap {
    aspect-ratio: 16/9;
  }

  .sus-messages__overlay {
    display: flex;
  }

  .sus-messages__text {
    display: none; /* hidden on mobile — info is in overlay */
  }

  /* ESG: stack vertically, full width */
  .sus-esg__grid {
    grid-template-columns: 1fr;
  }

  .sus-esg__card {
    height: 160px;
  }

  .sus-esg__card-content {
    padding: 20px 0px 20px 20px;
  }

  .sus-esg__label {
    font-size: 20px;
  }
}

/* ── Empty state placeholder ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  color: #9ca3af;
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  color: #d1d5db;
}

.empty-state__icon svg {
  width: 100%;
  height: 100%;
}

.empty-state__title {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 8px;
}

.empty-state__message {
  font-size: 14px;
  line-height: 1.7;
  color: #9ca3af;
  max-width: 400px;
  margin: 0 0 24px;
}

.empty-state__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #009E42;
  border: 1.5px solid #009E42;
  border-radius: 6px;
  padding: 8px 20px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.empty-state__cta:hover {
  background: #009E42;
  color: #fff;
}
.hwborder-b-1 {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #009E42;
}
/* ══════════════════════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════════════════════ */

/* 5-col grid: logo | company-left | company-right | business | news */
.footer-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  padding-right: 16px;
}
.footer-bg{
  background: #e5e7eb;
}
/* Column headings */
.footer-col-heading {
  font-size: 13px;
  font-weight: 700;
  color: #1a2e1a;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d1d5db;
}

/* Link lists */
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 12px;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.4;
}

.footer-link:hover {
  color: #009E42;
}

/* Bold links for news column */
.footer-link-list--bold .footer-link {
  font-size: 13px;
  font-weight: 600;
  color: #1a2e1a;
}

.footer-link-list--bold .footer-link:hover {
  color: #009E42;
}

/* Bottom bar */
.footer-bottom {
  background: #1a2332;
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-policy-links li + li::before {
  content: '|';
  margin: 0 12px;
  color: #4b5563;
}

.footer-policy-link {
  font-size: 11px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-policy-link:hover { color: #fff; }

/* Mobile */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 24px;
    padding-right: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #d1d5db;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-policy-links {
    justify-content: center;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   ニュースTOP
   ══════════════════════════════════════════════════════════════ */

/* ── Pick up carousel ── */
.pickup-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.pickup-track::-webkit-scrollbar { display: none; }

.pickup-card {
  flex: 0 0 calc(25% - 12px);
  min-width: 260px;
  scroll-snap-align: start;
}

.pickup-card__img {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: #e0e0e0;
  margin-bottom: 12px;
}

.pickup-card__body { padding: 0 2px; }

.pickup-card__date {
  font-size: 12px;
  color: #6b7280;
  display: block;
  margin-bottom: 6px;
}

.pickup-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.pickup-card__tag {
  font-size: 11px;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 1px 8px;
  border-radius: 2px;
}

.pickup-card__title {
  font-size: 13px;
  font-weight: 500;
  color: #1a2e1a;
  line-height: 1.6;
  margin: 0;
}

.pickup-card a:hover .pickup-card__title { color: #009E42; }

/* ── News filter bar: SP縦積み・PC横並び ── */
.news-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .news-filter-bar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .news-filter-bar [role="tablist"] { flex: 1; flex-wrap: nowrap; min-width: 0; }
  .news-filter-bar .news-tab { flex: 1; min-width: 0; padding: 6px 4px; font-size: 12px; }
  /* フロントページのニュースタブ */
  .flex > [role="tablist"] { flex-wrap: nowrap; min-width: 0; }
  .flex > [role="tablist"] .news-tab { flex: 1; min-width: 0; padding: 6px 4px; font-size: 12px; }
}

/* ── News tab filters ── */
@media (max-width: 767px) {
  [role="tablist"] { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
}
.news-tab {
  font-size: 13px;
  padding: 6px 18px;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.news-tab:hover   { border-color: #009E42; color: #009E42; }
.news-tab.active  { background: #009E42; color: #fff; border-color: #009E42; }

/* ── Year dropdown ── */
.news-year-select {
  font-size: 12px;
  padding: 6px 32px 6px 14px;
  border: 1px solid #009E42;
  border-radius: 4px;
  background: #E8F7EE;
  color: #1a3a2a;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
}
@media (max-width: 767px) {
  .news-filter-bar .relative { width: 100%; }
  .news-year-select { width: 100%; box-sizing: border-box; }
}
/* ── News list rows ── */
.news-row {
  padding: 16px 0;
}

.news-row__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.news-row__date {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.news-row__tag {
  font-size: 11px;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 1px 8px;
  border-radius: 2px;
}

.news-row__title { margin: 0; }

.news-row__link {
  font-size: 14px;
  color: #1a2e1a;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.15s;
}
.news-row__link:hover { color: #009E42; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .pickup-card {
    flex: 0 0 80vw;
  }

  .news-tab { font-size: 11px; padding: 4px 8px; }
}

/* ── News article detail ── */
.news-article-body { font-size: 15px; line-height: 1.9; color: #374151; }
.news-article-body p { margin: 0 0 20px; }
.news-article-body h2 { font-size: 20px; font-weight: 700; color: #1a2e1a; margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #009E42; }
.news-article-body h3 { font-size: 17px; font-weight: 700; color: #1a2e1a; margin: 24px 0 10px; }
.news-article-body ul { list-style: disc; padding-left: 24px; margin: 0 0 20px; }
.news-article-body ol { list-style: decimal; padding-left: 24px; margin: 0 0 20px; }
.news-article-body li { margin-bottom: 6px; }
.news-article-body a { color: #009E42; text-decoration: underline; }
.news-article-body img { max-width: 100%; border-radius: 8px; margin: 16px 0; }

/* ── News PDF badge ── */
.news-row__pdf-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  vertical-align: middle;
}
.news-row__link--plain {
  font-size: 14px;
  color: #1a2e1a;
  line-height: 1.6;
}

/* ── CONTACT PAGE  /contact
 * ═══════════════════════════════════════════════════════════════
 * CONTACT PAGE  /contact
 * ═══════════════════════════════════════════════════════════════ */

/* ── アンカーナビゲーション ── */
.contact-anchor-nav {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
.contact-anchor-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-anchor-nav__link {
  display: block;
  padding: 14px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.contact-anchor-nav__link:hover,
.contact-anchor-nav__link:focus-visible {
  color: var(--color-green);
  border-bottom-color: var(--color-green);
  outline: none;
}

/* アンカーリンクの下矢印インジケーター */
.contact-anchor-nav__link::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  vertical-align: middle;
  opacity: 0.75;
}
@media (max-width: 767px) {
  .contact-anchor-nav__list {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .contact-anchor-nav__list::-webkit-scrollbar { display: none; }
  .contact-anchor-nav__link { padding: 12px 16px; }
}

/* ── FAQ セクション全体 ── */
.contact-faq {
  background: #E1F0E6;
}
/* Figma: padding 64px 120px — 横は site-wrap が担当、縦は上書き */
.contact-faq > .site-wrap {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* 見出し上部ラベルバッジ (Figma: bg #009E42, padding 0 16px, height 26px) */
.contact-faq__heading-label {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 16px;
  background: var(--color-green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* h2 見出し — 緑アクセントライン */
.contact-faq__heading {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 0;
}
.contact-faq__heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--color-green);
  border-radius: 1px;
}
.contact-faq__category {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}
/* 最終カテゴリの余分なmarginを除去 */
.contact-faq__category:last-child {
  margin-bottom: 0;
}
.contact-faq__category-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}

/* ── FAQ リスト / アコーディオンアイテム ── */
.contact-faq__list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-faq__item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

/* Q ボタン */
.contact-faq__question {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--color-dark);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: background 0.15s;
}
.contact-faq__question:hover {
  background: #f9fafb;
}
.contact-faq__question:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: -2px;
}
.contact-faq__q-icon {
  color: var(--HANWA-GREEN, #009E42);
  font-family: YuGothic;
  font-size: 15.8px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
}
.contact-faq__q-text {
  flex: 1;
  color: #252F3F;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.contact-faq__chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.contact-faq__question.is-open .contact-faq__chevron {
  color: var(--color-green);
  transform: rotate(180deg);
}
/* オープン時はQ行の背景変更なし（白カードで壁面提供） */
.contact-faq__question.is-open {
  background: none;
}

/* ═══════════════════════════════════════════════════
 * BUSINESS DETAIL PAGE  /business/*
 * ═══════════════════════════════════════════════════ */

/* ── 部門タブナビゲーション ── */
.biz-dept-tabs-wrap {
  margin-bottom: 3rem;
}
.biz-dept-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.biz-dept-tab {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 170px;
  height: 40px;
  padding: 0 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.biz-dept-tab:hover,
.biz-dept-tab:focus-visible {
  background: var(--color-dark);
  color: #fff;
  outline: none;
}
/* ↓ 矢印 */
.biz-dept-tab__arrow {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

/* ── 部門セクション ── */
.biz-dept-section {
  margin-bottom: 4rem;
  scroll-margin-top: 80px; /* sticky header offset */
}

/* ── 部門見出し ── */
.biz-dept-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-dark);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--color-green);
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* ── 事業部ブロック ── */
.biz-subdept-block {
  margin-bottom: 3rem;
}

/* ── 事業部見出し ── */
.biz-subdept-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

/* ── 事業部画像 ── */
.biz-subdept-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d1d5db;
}
.biz-subdept-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── 主要取扱い品目ラベル ── */
.biz-items-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.biz-items-label::before {
  content: '■ ';
  color: var(--color-green);
}

/* Offices header component */
.offices-header {
  padding: 24px 0 18px;
}

.offices-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding-right: 16px;
}

/* Title */
.offices-header__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #222;
  position: relative;
  padding-left: 0 !important;
  line-height: 1.1;
}

/* left accent block */
.offices-header__title::before {
    display: none !important;
  content: none !important;
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 28px;
  background: #cfcfcf;
  border-radius: 2px;
}

/* thin horizontal rule across the full content width */
.offices-header__inner::after {
  content: "";
  display: block;
  height: 4px;
  background: #e6e6e6;
  margin-top: 5px;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .offices-header__title {
    font-size: 20px;
    padding-left: 14px;
  }
  .offices-header__title::before {
    width: 6px;
    height: 22px;
    top: 4px;
  }
}

/* 定義リスト（dl/dt/dd 構造） */
.ethics-list {
  margin: 0;
  counter-reset: ethics-counter;
}

/* 項目タイトル（dt） */
.ethics-list__term {
  counter-increment: ethics-counter;
  font-weight: normal;
  font-size: 14px;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  line-height: 1.5;
  display: table-row;
}

.ethics-list__term::before {
  padding-right: 0.4em;
  content: counter(ethics-counter) ". ";
  display: table-cell;
  text-align: right;
}

/* 項目説明文（dd） */
.ethics-list__desc {
  font-size: 14px;
  line-height: 1.9;
  color: #333;
  margin: 0 0 0 18px;
}

/* 箇条書き dd */
.ethics-list__bullet {
  padding-left: calc(18px + 1.2em);
  text-indent: -1.2em;
  margin-bottom: 2px;
}

.ethics-list__bullet::before {
  content: "・";
  position: absolute;
}

@media (max-width: 640px) {
  .ethics-list__desc {
    margin-left: 0;
  }
}

/* ══════════════════════════════════════════════════════════════
   COMPANY OVERVIEW TABLE  /company/overview
   ══════════════════════════════════════════════════════════════ */

.overview-table {
  border-top: 1px solid #e5e7eb;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.overview-table__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid #e5e7eb;
  min-height: 64px;
}

.overview-table__label {
  padding: 20px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background: #f9fafb;
  display: flex;
  align-items: flex-start;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.overview-table__value {
  padding: 20px 32px;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.8;
  background: #fff;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.overview-table__note {
  color: #6b7280;
  font-size: 0.8125rem;
}

/* Region label (北米・中南米 etc.) */
.overview-table__region {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-top: 12px;
  margin-bottom: 2px;
}
.overview-table__region:first-child {
  margin-top: 0;
}

/* Office list per region */
.overview-table__offices {
  font-size: 0.875rem;
  line-height: 1.8;
  margin: 0;
}

/* Alternating row tint */
/* Removed alternating row tint to keep a single background across rows */

/* ══════════════════════════════════════════════════════════════
   COMPANY HISTORY  /company/history
   ══════════════════════════════════════════════════════════════ */

/* Era navigation tabs (3×2 grid) */
.history-era-nav {
  margin-bottom: 48px;
  width: 100%;
}

.history-era-nav__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-era-nav__list li {
  width: calc((100% - 36px) / 3);
  margin-right: 18px;
  margin-bottom: 18px;
  border: 2px solid #009E42;
  box-sizing: border-box;
}

.history-era-nav__list li:nth-child(3n) {
  margin-right: 0;
}

.history-era-tab {
  display: block;
  text-align: center;
  padding: 14px 8px;
  text-decoration: none;
  color: #1a3a2a;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: background 0.15s, color 0.15s;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.history-era-tab__name {
  display: block;
}

.history-era-tab p {
  margin: 0;
}

.history-era-tab:hover,
.history-era-tab.is-active {
  background: #009E42;
  color: #fff;
}

.history-era-tab__years {
  display: block;
  font-size: 0.8rem;
  color: #4b5563;
}

.history-era-tab:hover .history-era-tab__years,
.history-era-tab.is-active .history-era-tab__years {
  color: rgba(255,255,255,0.85);
}

/* Era section heading */
.history-era-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d1d5db;
}

.history-era-heading__years {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a3a2a;
  letter-spacing: -0.01em;
}

.history-era-heading__name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a3a2a;
}

/* History table rows */
.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.history-table__row {
  display: grid;
  grid-template-columns: 90px 100px 1fr;
  padding: 14px 0;
  border-bottom: 1px dashed #e5e7eb;
  align-items: baseline;
  gap: 16px;
}

.history-table__year-ad {
  font-size: 0.9rem;
  color: #374151;
}

.history-table__year-jp {
  font-size: 0.9rem;
  color: #374151;
}

.history-table__event {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.7;
}

/* Photo grid */
.history-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.history-photo__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  filter: grayscale(0.3);
}

.history-photo__caption {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .history-era-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .history-table__row {
    grid-template-columns: 70px 80px 1fr;
    gap: 8px;
  }

  .history-era-heading__years {
    font-size: 1.5rem;
  }

  .history-photos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .history-era-nav {
    grid-template-columns: 1fr 1fr;
  }

  .history-table__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 767px) {
  .overview-table__row {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .overview-table__label {
    padding: 12px 16px 6px;
    background: #f3f4f6;
    border-bottom: none;
  }

  .overview-table__value {
    padding: 8px 16px 16px;
  }
}

/* ══════════════════════════════════════════════════════════════
   OVERSEAS OFFICES LIST  /company/overseas-offices
   ══════════════════════════════════════════════════════════════ */

.offices-list {
  border-top: 1px solid #e5e7eb;
}

.offices-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 0 32px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #e5e7eb;
}

.offices-row__label {
  padding-right: 16px;
}

.offices-row__city {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.offices-row__name {
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.6;
}

.offices-row__detail {
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.8;
}

.offices-row__detail-address-en {
  margin-bottom: 2px;
}

.offices-row__detail-address-jp {
  color: #6b7280;
  margin-bottom: 4px;
}

.offices-row__detail-contact {
  color: #374151;
}

.offices-row__link {
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: #009E42;
  text-decoration: none;
  transition: color 0.15s;
}

.offices-row__link:hover {
  color: #007a33;
}

@media (max-width: 767px) {
  .offices-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .offices-row__label {
    padding-right: 0;
  }
}

/* ── 事業部 ロゴ＋テキストパターン ── */
.biz-subdept-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  padding: 14px 32px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.05em;
  width: fit-content;
}
.biz-subdept-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 0.875rem;
  color: #009E42;
  text-decoration: none;
  transition: color 0.15s;
}
.biz-subdept-ext-link:hover {
  color: #007a32;
}

/* ── 主要取扱い品目 構造化リスト ── */
.biz-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.biz-items-list__item {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #374151;
}
.biz-items-list__item:last-child {
  border-bottom: none;
}
.biz-items-list__item::before {
  content: '・';
  color: #009E42;
  font-weight: 700;
}
.biz-items-list__name {
  font-weight: 500;
  color: #1a3a2a;
}
.biz-items-list__sub {
  display: block;
  padding-left: 1em;
  color: #6b7280;
  font-size: 0.75rem;
}

/* ── 事業部 3カラムテーブル ── */
.biz-col-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.75;
}
.biz-col-table th,
.biz-col-table td {
  border: 1px solid #d1d5db;
  padding: 10px 16px;
  vertical-align: top;
  color: #374151;
}
.biz-col-table thead th {
  background: #f9fafb;
  font-weight: 600;
  color: #1a3a2a;
  text-align: left;
}
.biz-col-table tbody tr:first-child td,
.biz-col-table tbody tr:first-child th {
  border-top: none;
}
.biz-col-table tbody th {
  background: #f9fafb;
  font-weight: 500;
  color: #1a3a2a;
  white-space: nowrap;
  width: 10em;
}

/* ── イベント情報ブロック (開催日時・場所等) ── */
.ir-info-block {
  margin-bottom: 2rem;
}
.ir-info-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ir-info-label::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--color-green);
  flex-shrink: 0;
}
.ir-info-text {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.85;
  padding-left: 18px;
}

/* ── PDFリンクテーブル (左:イベント名 右:PDFリンク群) ── */
.ir-doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}
.ir-doc-table td {
  border: 1px solid #e5e7eb;
  padding: 16px 20px;
  vertical-align: middle;
  line-height: 1.8;
}
.ir-doc-table__event {
  background: #f9fafb;
  font-weight: 500;
  color: #1a3a2a;
  white-space: nowrap;
  width: 16em;
}
.ir-doc-table__links {
  background: #fff;
}
.ir-pdf-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.15s;
  margin-bottom: 8px;
}
.ir-pdf-link:last-child {
  margin-bottom: 0;
}
.ir-pdf-link:hover {
  color: #009E42;
}
.ir-pdf-link__size {
  color: #9ca3af;
  font-size: 0.75rem;
}
.ir-pdf-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #e53e3e;
}

/* ── 公告リスト (日付 + PDFリンク 横並び) ── */
.notice-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.notice-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  color: #374151;
}
.notice-list__item:first-child {
  border-top: 1px solid #f3f4f6;
}
.notice-list__date {
  white-space: nowrap;
  color: #374151;
  flex-shrink: 0;
}
.notice-list__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  text-decoration: none;
  transition: color 0.15s;
}
.notice-list__link:hover {
  color: #009E42;
}

/* ── 注記テキスト (上罫線あり) ── */
.notice-footnote {
  padding: 10px 0;
  border-top: 1px dotted #ccc;
  border-bottom: 1px dotted #ccc;
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.9;
}
.notice-footnote a {
  color: #009E42;
  text-decoration: underline;
}
.notice-footnote a:hover {
  color: #007a32;
}

/* ─── IR LIBRARY GRID ─────────────────────────── */
.ir-lib-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .ir-lib-grid {
    grid-template-columns: 1fr;
  }
}
.ir-lib-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ir-lib-card:hover .ir-lib-card__thumb {
  opacity: 0.85;
}
.ir-lib-card__thumb {
  display: flex;
  height: 230px;
  padding: 10px;
  align-items: flex-start;
  border-radius: 8px;
  overflow: hidden;
  background: #e8ede9;
}
.ir-lib-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.ir-lib-card__body {
  padding: 0 2px;
}
.ir-lib-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a3a2a;
  margin: 0 0 4px;
}
.ir-lib-card__title a {
  color: #1a3a2a;
  text-decoration: none;
}
.ir-lib-card__title a:hover {
  text-decoration: underline;
}
.ir-lib-card__desc {
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.7;
  margin: 0;
}

/* ─── IR LIBRARY ROW (横並び行パターン) ─── */
.ir-lib-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dotted #ccc;
}
.ir-lib-row__thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  padding: 6px;
  background: #e8ede9;
  border-radius: 6px;
  overflow: hidden;
}
.ir-lib-row__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}
.ir-lib-row__body {
  flex: 1;
  min-width: 0;
}
.ir-lib-row__label {
  font-size: 0.85rem;
  color: #374151;
  margin: 0 0 6px;
}
.ir-lib-row__pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #009E42;
  font-size: 0.85rem;
  text-decoration: none;
}
.ir-lib-row__pdf:hover {
  text-decoration: underline;
}

/* ─── IR SHAREHOLDER DISTRIBUTION ─── */
.ir-section-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a3a2a;
  padding-bottom: 10px;
  border-bottom: 1px solid #d1d5db;
  margin: 0;
}
.shareholder-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .shareholder-chart-grid {
    grid-template-columns: 1fr;
  }
}
.shareholder-chart-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 16px;
  min-width: 0;
}
.shareholder-chart-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  height: auto;
  object-fit: contain;
}

/* ─── FAQ ACCORDION ─── */
.faq-item {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item__question {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: #f0f5f1;
  cursor: pointer;
}
.faq-item__q-label {
  color: #009E42;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.faq-item__q-text {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a3a2a;
}
.faq-item__toggle {
  color: #009E42;
  font-size: 1rem;
  flex-shrink: 0;
}
.faq-item__answer {
  padding: 14px 16px;
  border-top: 1px solid #d1d5db;
  background: #fff;
}
.faq-item__text {
  font-size: 0.9rem;
  color: #374151;
  margin: 0 0 12px;
}
.faq-item__table {
  width: auto;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.faq-item__table th,
.faq-item__table td {
  border: 1px solid #d1d5db;
  padding: 6px 16px;
  text-align: left;
  color: #374151;
  background: #fff;
}
.faq-item__table th {
  background: #f3f4f6;
  font-weight: 500;
  white-space: nowrap;
}
.faq-item__table th p,
.faq-item__table td p {
  margin: 0;
  padding: 0;
}
/* ══════════════════════════════════════════════════
   主要グループ会社 — filter UI
   Matches the current site: navy pills in the filter
   box, plain ↓ anchor links in the row below.
   ══════════════════════════════════════════════════ */

/* ── Filter box (地域で絞り込む / 事業で絞り込む) ── */
.gc-filter-box {
  background: #f5f6f7;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}

/* ── Primary filter pills ── */
.gc-region-btn,
.gc-cat2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.125rem;
  border: none;
  border-radius: 0.375rem;
  background: #1e2a3a;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.gc-region-btn:hover,
.gc-cat2-btn:hover {
  background: #2f3f54;
}

.gc-region-btn--active,
.gc-region-btn--active:hover,
.gc-cat2-btn--active,
.gc-cat2-btn--active:hover {
  background: #00873c;
}

.gc-region-btn:focus-visible,
.gc-cat2-btn:focus-visible {
  outline: 2px solid #00873c;
  outline-offset: 2px;
}

/* ── Secondary row — plain text links with ↓ ── */
.gc-cat-btn,
.gc-region-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0;
  margin-right: 1.75rem;
  border: none;
  background: none;
  color: #1e2a3a;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.gc-cat-btn::after,
.gc-region-anchor::after {
  content: "↓";
  font-size: 0.75rem;
  color: #000;
}

.gc-cat-btn:hover,
.gc-region-anchor:hover {
  color: #00873c;
}

.gc-cat-btn--active {
  color: #00873c;
  font-weight: 700;
}

.gc-cat-btn:focus-visible {
  outline: 2px solid #00873c;
  outline-offset: 2px;
  border-radius: 2px;
}
/* 企業情報一覧 — full-width on mobile, guttered on desktop */
.company-menu-wrap {
  padding-left: 0;
  padding-right: 0;
}
@media (min-width: 768px) {
  .company-menu-wrap {
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
  }
}

/* sus-messages — full viewport width override */
.sus-messages {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.sus-messages__grid {
  gap: 0;
}

/* sus-messages third card — image fills full height */
.sus-messages__card:last-child .sus-messages__img-wrap {
  flex: 1;
  height: 100%;
}
.sus-messages__card:last-child .sus-messages__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* sus-messages third card — crop image to match card height */
.sus-messages__card:last-child {
  position: relative;
}
.sus-messages__card:last-child .sus-messages__img-wrap {
  position: absolute;
  inset: 0;
  height: auto;
}
.sus-messages__card:last-child .sus-messages__text {
  position: relative;
  z-index: 1;
}

/* Fix third card image height — match the grid row height */
.sus-messages__grid {
  grid-template-rows: 1fr;
}
.sus-messages__card:last-child .sus-messages__img-wrap {
  height: 0;
  padding-bottom: 66%; /* match approx 4:3 aspect of adjacent cards */
  position: relative;
  overflow: hidden;
}
.sus-messages__card:last-child .sus-messages__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* sus-messages — all cards same image height */
.sus-messages__img-wrap {
  height: 390px;
  overflow: hidden;
}
.sus-messages__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* sus-messages — final height fix: all cards 290px, remove conflicting rules */
.sus-messages__img-wrap {
  height: 290px !important;
  padding-bottom: 0 !important;
  position: relative !important;
  overflow: hidden;
}
.sus-messages__card:last-child .sus-messages__img-wrap {
  height: 290px !important;
  padding-bottom: 0 !important;
  position: relative !important;
}
.sus-messages__card:last-child .sus-messages__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Force all sus-messages images to fill their card width fully */
.sus-messages__img-wrap {
  width: 100%;
}
.sus-messages__img {
  width: 100% !important;
  height: 290px !important;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* sus-messages overlay — arrow vertically centered, text at bottom */
.sus-messages__overlay {
  align-items: stretch !important;
  flex-direction: row !important;
}
.sus-messages__overlay > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}
.sus-messages__arrow {
  align-self: center;
  flex-shrink: 0;
}
/* CEO message — right-align button on mobile */
@media (max-width: 767px) {
  [aria-labelledby="ceo-heading"] .hanwa-btn--soft-green {
    margin-left: auto;
    width: fit-content;
    justify-content: space-between;
    align-self: auto;
  }
  [aria-labelledby="ceo-heading"] .hanwa-btn--soft-green .hanwa-btn__label {
    flex: none;
    text-align: left;
  }
}
/* 3分でわかる阪和 — Jost for the large number */
.icon-3min-number,
.hanwa-3min-number {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
}
.jost-300 { font-family: 'Jost', sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

/* 役員一覧 — 顔写真の人物サイズ・頭上余白を統一
   写真ごとに縮小率（左右 padding）と頭上余白（上 padding）を指定し、
   余白部分は写真の背景色に合わせたグラデーションで埋める。
   値は画像幅に対する比率（--pt / --pl / --pr）。 */
.hk-nav-card__image[src*="/company-officers-"] {
  --hk-officer-w: calc(100% + 32px); /* = 画像の幅（padding の % は親幅基準のため） */
  box-sizing: border-box;
  padding: calc(var(--pt, 0) * var(--hk-officer-w)) calc(var(--pr, 0) * var(--hk-officer-w)) 0 calc(var(--pl, 0) * var(--hk-officer-w));
  object-position: 50% var(--oy, 0%);
  background: linear-gradient(90deg, var(--bgl, #f8f5f0), var(--bgr, #efe9e3));
}
.hk-nav-card__image[src*="/company-officers-furukawa."] { --pt: 0.0040; --pl: 0.0142; --pr: 0.0395; --oy: 0.0%; --bgl: #f9f5f2; --bgr: #f6f1ed; }
.hk-nav-card__image[src*="/company-officers-honda."] { --pt: 0.0256; --pl: 0.0466; --pr: 0.0883; --oy: 0.0%; --bgl: #f8f3ed; --bgr: #f1ebe6; }
.hk-nav-card__image[src*="/company-officers-kuniga."] { --pt: 0.0113; --pl: 0.1076; --pr: 0.0000; --oy: 0.0%; --bgl: #f7f6f2; --bgr: #f6f2ee; }
.hk-nav-card__image[src*="/company-officers-matsumoto."] { --pt: 0.0405; --pl: 0.1236; --pr: 0.1607; --oy: 0.0%; --bgl: #f9f6f1; --bgr: #efe8e2; }
.hk-nav-card__image[src*="/company-officers-miyano."] { --pt: 0.0320; --pl: 0.1327; --pr: 0.0379; --oy: 0.0%; --bgl: #f9f6f1; --bgr: #f5f1ec; }
.hk-nav-card__image[src*="/company-officers-naito."] { --pt: 0.0282; --pl: 0.0638; --pr: 0.1165; --oy: 0.0%; --bgl: #f9f6f1; --bgr: #efeae5; }
.hk-nav-card__image[src*="/company-officers-nakagawa."] { --pt: 0.0236; --pl: 0.0070; --pr: 0.0000; --oy: 0.0%; --bgl: #f9f5f1; --bgr: #f6f1ed; }
.hk-nav-card__image[src*="/company-officers-nakai."] { --pt: 0.0125; --pl: 0.0000; --pr: 0.0000; --oy: 0.0%; --bgl: #f8f7f3; --bgr: #f7f3ef; }
.hk-nav-card__image[src*="/company-officers-sakurai."] { --pt: 0.0133; --pl: 0.0333; --pr: 0.0076; --oy: 0.0%; --bgl: #f8f5f2; --bgr: #f2eee9; }
.hk-nav-card__image[src*="/company-officers-sato."] { --pt: 0.0173; --pl: 0.0208; --pr: 0.0000; --oy: 0.0%; --bgl: #f9f6f1; --bgr: #f3efe9; }
.hk-nav-card__image[src*="/company-officers-takaba."] { --pt: 0.0250; --pl: 0.0000; --pr: 0.0962; --oy: 0.0%; --bgl: #f8f7f3; --bgr: #f2ede9; }
.hk-nav-card__image[src*="/company-officers-takahashi."] { --pt: 0.0222; --pl: 0.0446; --pr: 0.0850; --oy: 0.0%; --bgl: #f7f6f2; --bgr: #efece7; }
.hk-nav-card__image[src*="/company-officers-watanabe."] { --pt: 0.0214; --pl: 0.0785; --pr: 0.0119; --oy: 0.0%; --bgl: #f9f6f1; --bgr: #f4eee9; }

/* ── サステナビリティ一覧：小ワッペン（.hk-tag-group 内の .hk-tag--icon-only）
 *    大ワッペン（.hk-tag--icon）と同じくカテゴリ色の円＋影にし、マークの欠けを防ぐ
 *    ※円の色はマーク画像の背景色と同色にして、画像の四角が見えないようにする ── */
.hk-tag-group .hk-tag--icon-only:has(> img[src*="/icon-sustainbility-carbon-neutrality."]) { --mark-color: #C0E0E9; }
.hk-tag-group .hk-tag--icon-only:has(> img[src*="/icon-sustainbility-social-infrastructure."]) { --mark-color: #F0CDD4; }
.hk-tag-group .hk-tag--icon-only:has(> img[src*="/icon-sustainbility-circular-economy."]) { --mark-color: #DFE6BB; }
.hk-tag-group .hk-tag--icon-only {
  background-color: var(--mark-color, #fff);
  box-shadow: 0 1px 1px #9fa6b266;
  transition: box-shadow .2s;
}
/* hover時：既定のhover色（hanwa-ui.css: #e1f0e6）を円の背景ではなく外側のリングで表示し、
 *          円はカテゴリ色のまま維持して画像の四角が見えないようにする */
.hk-nav-card:hover:not(:has(.hk-nav-card__sub-link:hover)) .hk-tag-group .hk-tag--icon-only {
  background-color: var(--mark-color, #fff);
  box-shadow: 0 0 0 4px #e1f0e6;
}
.hk-tag-group .hk-tag--icon-only > .hk-tag__icon {
  block-size: 22px;
  inline-size: 22px;
  border-radius: 0; /* 円形クリップでマークの外周が欠けるのを防ぐ */
}
body::after {
  display: none;
}