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

:root {
  --green-dark:   #1B5E20;
  --green:        #2E7D32;
  --green-mid:    #388E3C;
  --green-light:  #4CAF50;
  --green-pale:   #E8F5E9;
  --green-pale2:  #F1F8F1;
  --accent:       #00897B;
  --white:        #FFFFFF;
  --surface:      #F8FAF8;
  --text:         #1C2B1E;
  --text-sub:     #4A5E4C;
  --text-muted:   #7A907C;
  --border:       #D8E8D8;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow:       0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --radius:       12px;
  --radius-sm:    8px;
  --transition:   .22s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

img,
table,
iframe {
  max-width: 100%;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ===== Skip link ===== */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--green); color: var(--white);
  padding: .4rem 1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: .875rem; z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 64px;
}

.site-logo {
  display: flex; align-items: center; gap: .75rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px; height: 40px;
  background: var(--green);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.25rem;
  flex-shrink: 0;
}

.logo-text { line-height: 1.2; }
.logo-text .org { font-size: .625rem; color: var(--text-sub); letter-spacing: .05em; }
.logo-text .name { font-size: .9rem; font-weight: 700; color: var(--green-dark); }

/* Desktop nav */
.site-nav { display: flex; align-items: center; gap: .25rem; }

.site-nav a {
  font-size: .8rem; font-weight: 500;
  color: var(--text-sub);
  padding: .4rem .65rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--green-pale);
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: .4rem; color: var(--text);
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--green-pale); }
.nav-toggle svg { display: block; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 200;
}
.mobile-nav.open { display: block; }

.mobile-nav-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
}

.mobile-nav-panel {
  position: absolute; top: 0; right: 0;
  width: min(320px, 88vw); height: 100%;
  background: var(--white);
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: .25rem;
}

.mobile-nav-close {
  align-self: flex-end;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--text-sub);
  margin-bottom: .5rem;
  padding: .25rem;
}

.mobile-nav-panel a {
  display: block;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
}
.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  background: var(--green-pale);
  color: var(--green-dark);
  border-left-color: var(--green-light);
}

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(90deg,
      rgba(27, 94, 32, .94) 0%,
      rgba(27, 94, 32, .82) 32%,
      rgba(46, 125, 50, .40) 60%,
      rgba(46, 125, 50, 0) 90%),
    url("../images/hero.jpg") center right / cover no-repeat;
  color: var(--white);
  padding: 4.5rem 1.5rem 4rem;
  min-height: clamp(400px, 54vh, 540px);
  display: flex;
  align-items: center;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero-content { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #C8E6C9;
  font-size: .75rem; letter-spacing: .1em;
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: .75rem;
  max-width: 620px;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.hero p {
  font-size: clamp(.875rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.9);
  max-width: 540px; margin: 0 0 1.75rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}

.hero-actions { display: flex; gap: .75rem; justify-content: flex-start; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--white); color: var(--green-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.btn-primary:hover { background: #f0fff0; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* ===== Info bar ===== */
.info-bar {
  background: var(--green-pale2);
  border-bottom: 1px solid var(--border);
}
.info-bar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.info-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--text-sub);
}
.info-item svg { color: var(--green-mid); flex-shrink: 0; }

/* ===== Main content wrapper ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Notice visual ===== */
.notice-visual-section {
  padding: 2rem 1.5rem 1rem;
}

.notice-visual-frame {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.notice-visual-image {
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Section ===== */
.section { padding: 4rem 1.5rem; }
.section + .section { border-top: 1px solid var(--border); }
.section-alt { background: var(--surface); }

.section-header { margin-bottom: 2.5rem; text-align: center; }

.section-label {
  display: inline-block;
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--green-mid); font-weight: 700;
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 800; color: var(--text);
  position: relative; display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: var(--green-light);
  border-radius: 999px;
  margin: .5rem auto 0;
}

.section-desc {
  margin-top: .75rem;
  font-size: .9rem; color: var(--text-sub);
  max-width: 520px; margin-left: auto; margin-right: auto;
}

/* ===== Nav cards grid ===== */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.nav-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.nav-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--green-light);
  opacity: 0;
  transition: opacity var(--transition);
}
.nav-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.nav-card:hover::before { opacity: 1; }

.nav-card-icon {
  width: 44px; height: 44px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: .25rem;
  transition: background var(--transition);
}
.nav-card:hover .nav-card-icon { background: var(--green-pale); }

.nav-card h3 {
  font-size: .95rem; font-weight: 700; color: var(--text);
}
.nav-card p {
  font-size: .78rem; color: var(--text-muted); line-height: 1.5;
  flex: 1;
}
.nav-card-arrow {
  display: flex; align-items: center; gap: .25rem;
  font-size: .75rem; font-weight: 600; color: var(--green-mid);
  margin-top: .25rem;
  transition: gap var(--transition);
}
.nav-card:hover .nav-card-arrow { gap: .5rem; }

/* ===== Notice box ===== */
.notice-list { display: flex; flex-direction: column; gap: .75rem; }
.top-info-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.quick-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.notice-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: box-shadow var(--transition);
}
.notice-item:hover { box-shadow: var(--shadow-sm); }
.notice-date {
  font-size: .75rem; color: var(--text-muted);
  white-space: nowrap; padding-top: .1rem;
  min-width: 80px;
}
.notice-badge {
  font-size: .65rem; font-weight: 700; letter-spacing: .05em;
  padding: .15rem .5rem;
  border-radius: 999px;
  white-space: nowrap;
  align-self: flex-start;
}
.badge-info    { background: #E3F2FD; color: #1565C0; }
.badge-notice  { background: #FFF8E1; color: #F57F17; }
.badge-update  { background: var(--green-pale); color: var(--green-dark); }

.notice-text { font-size: .875rem; color: var(--text); }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: var(--white);
  padding: 2.5rem 1.5rem;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero .breadcrumb {
  font-size: .75rem; color: rgba(255,255,255,.7);
  margin-bottom: .5rem;
  display: flex; align-items: center; gap: .4rem;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero h1 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800; line-height: 1.3;
}
.page-hero p {
  margin-top: .4rem;
  font-size: .875rem; color: rgba(255,255,255,.8);
}

/* ===== Content area ===== */
.content-area {
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .content-area { grid-template-columns: 1fr; }
}

.content-body h2 {
  font-size: 1.2rem; font-weight: 700;
  color: var(--green-dark);
  border-left: 4px solid var(--green-light);
  padding-left: .75rem;
  margin: 2rem 0 .75rem;
}
.content-body h2:first-child { margin-top: 0; }

.content-body p { font-size: .9rem; color: var(--text-sub); margin-bottom: .75rem; }

.content-body table {
  width: 100%; border-collapse: collapse;
  font-size: .875rem; margin-bottom: 1.5rem;
}
.content-body th, .content-body td {
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  text-align: left; vertical-align: top;
}
.content-body th {
  background: var(--green-pale2);
  font-weight: 600; color: var(--green-dark);
  width: 140px;
}

.content-body ul { padding-left: 1.25rem; margin-bottom: .75rem; }
.content-body li { font-size: .9rem; color: var(--text-sub); margin-bottom: .3rem; }

/* ===== Info cards (inner page) ===== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin: 1.25rem 0;
}
.info-card {
  background: var(--green-pale2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}
.info-card h4 {
  font-size: .8rem; color: var(--green-dark); font-weight: 700;
  margin-bottom: .35rem;
}
.info-card p { font-size: .85rem; color: var(--text-sub); margin: 0; }

/* ===== Warning box ===== */
.warn-box {
  background: #FFFDE7;
  border: 1px solid #F9A825;
  border-left: 4px solid #F9A825;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: .875rem; color: #5D4037;
  margin: 1.25rem 0;
  display: flex; gap: .6rem;
}
.warn-box svg { flex-shrink: 0; color: #F9A825; margin-top: .1rem; }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 1rem; }

.sidebar-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-block-title {
  background: var(--green-pale2);
  border-bottom: 1px solid var(--border);
  padding: .65rem 1rem;
  font-size: .8rem; font-weight: 700; color: var(--green-dark);
  display: flex; align-items: center; gap: .4rem;
}
.sidebar-block nav a {
  display: block; padding: .6rem 1rem;
  font-size: .82rem; color: var(--text-sub);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
  display: flex; align-items: center; gap: .4rem;
}
.sidebar-block nav a:last-child { border-bottom: none; }
.sidebar-block nav a:hover { background: var(--green-pale); color: var(--green-dark); }
.sidebar-block nav a.active { color: var(--green-dark); background: var(--green-pale); font-weight: 600; }

.contact-block { padding: 1rem; font-size: .82rem; color: var(--text-sub); }
.contact-block .phone { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); letter-spacing: .05em; }
.contact-block .hours { font-size: .75rem; color: var(--text-muted); }

/* ===== Footer ===== */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.8);
}

.footer-main {
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand .name {
  font-size: 1rem; font-weight: 700; color: var(--white);
  margin-bottom: .25rem;
}
.footer-brand .org {
  font-size: .75rem; color: rgba(255,255,255,.55);
  margin-bottom: .75rem;
}
.footer-brand p { font-size: .78rem; color: rgba(255,255,255,.6); line-height: 1.7; }

.footer-col h4 {
  font-size: .78rem; font-weight: 700;
  color: #A5D6A7; letter-spacing: .08em;
  margin-bottom: .75rem;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  font-size: .8rem; color: rgba(255,255,255,.6);
  margin-bottom: .4rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: .75rem; color: rgba(255,255,255,.4);
}

.footer-version {
  display: inline-block;
  margin-left: .35rem;
  color: rgba(255,255,255,.72);
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 1rem; }
  .site-logo {
    min-width: 0;
    flex: 1;
  }
  .logo-text .name {
    font-size: .82rem;
    word-break: keep-all;
  }
  .top-info-grid { grid-template-columns: 1fr; gap: 2rem; }
  .quick-access-grid { grid-template-columns: 1fr; }
  .hero {
    padding: 3.5rem 1.25rem 3rem;
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(27, 94, 32, .80) 0%, rgba(27, 94, 32, .90) 100%),
      url("../images/hero.jpg") center / cover no-repeat;
  }
  .footer-main { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav-grid { grid-template-columns: 1fr 1fr; }
  .info-bar-inner { gap: 1rem; }
  .notice-item {
    flex-direction: column;
    gap: .5rem;
  }
  .notice-date { min-width: 0; }
  .content-area { padding: 2rem 1rem; }
  .content-body th,
  .content-body td {
    display: block;
    width: 100%;
  }
  .content-body th { border-bottom: none; }
}

@media (max-width: 400px) {
  .header-inner { padding: 0 .75rem; }
  .logo-text .org { font-size: .56rem; }
  .logo-text .name { font-size: .76rem; }
  .nav-grid { grid-template-columns: 1fr; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
