/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Sawarabi+Mincho&family=Roboto+Condensed:wght@400;700&display=swap');

/* ── Design Tokens ── */
:root {
  /* Brand */
  --green:         #00A040;
  --green-dark:    #007830;
  --green-deeper:  #003013;
  --accent:        #abcd03;
  --accent-dark:   #8aa300;

  /* Semantic */
  --blue:          #2563a8;
  --blue-bg:       #eff6ff;
  --blue-border:   #93c5fd;
  --amber:         #b45309;
  --amber-bg:      #fffbeb;
  --amber-border:  #fcd34d;
  --red:           #b91c1c;
  --red-bg:        #fef2f2;
  --red-border:    #fca5a5;

  /* Neutrals */
  --text:          #222222;
  --text-muted:    #74847a;
  --text-light:    #9ca3af;
  --bg:            #ffffff;
  --bg-soft:       #f3fff3;
  --border:        #d1d5db;
  --border-light:  #e5e7eb;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:        0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);

  /* Typography */
  --font-body:     'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-heading:  'Sawarabi Mincho', 'Hiragino Mincho ProN', serif;
  --font-en:       'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-mono:     'SFMono-Regular', 'Consolas', monospace;

  /* Spacing */
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Radius */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

/* ── Header ── */

.header {
  background: white;
  border-bottom: 1px solid var(--border-light);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
  font-size: .9em;
}

.header__nav a:hover {
  color: var(--green);
}

.header__nav .btn {
  margin-left: var(--space-sm);
  color: #fff;

    display: inline-block;
    padding: .8rem 2rem;
    background: var(--green);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    transition: background .2s;
    border: none;
    cursor: pointer;  
}
.header__nav .btn:hover {
  background: var(--green-dark);
  color: #fff;
}

/* Dropdown Menu */
.header__nav-item--dropdown {
  position: relative;
}

.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  min-width: 220px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  z-index: 10;
}

.header__nav-item--dropdown:hover .header__dropdown {
  display: flex;
}

.header__dropdown a {
  color: var(--text);
  text-decoration: none;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  transition: background-color .2s;
  font-weight: 400;
  font-size: 0.95rem;
}

.header__dropdown a:last-child {
  border-bottom: none;
}

.header__dropdown a:hover {
  background-color: var(--bg-soft);
  color: var(--green);
}

/* Hamburger Menu Button */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
}

.header__hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s ease;
}

.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header__container {
    height: 60px;
    padding: 0 var(--space-md);
  }

  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .header__nav.active {
    max-height: 400px;
    border-bottom: 1px solid var(--border-light);
  }

  .header__nav a {
    display: block;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    box-sizing: border-box;
  }

  .header__nav a:last-child {
    border-bottom: none;
  }

  .header__nav .btn {
    margin: 0;
    width: 100%;
    justify-content: center;
  }

  .header__logo img {
    height: 40px;
  }

  /* Mobile Dropdown */
  .header__nav-item--dropdown {
    position: relative;
  }

  .header__dropdown {
    position: static;
    background: var(--bg-soft);
    border: none;
    border-top: 1px solid var(--border-light);
    border-radius: 0;
    min-width: auto;
    display: none;
    flex-direction: column;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .header__nav-item--dropdown.active .header__dropdown {
    display: flex;
    max-height: 300px;
  }

  .header__dropdown a {
    padding: var(--space-md) var(--space-lg) var(--space-md) calc(var(--space-lg) * 2);
    font-size: 0.9rem;
  }

  .header__dropdown a:last-child {
    border-bottom: none;
  }
}

/* ── Footer ── */

footer {
  background: var(--green-deeper);
  color: white;
  padding: 4rem var(--space-lg) 2rem;
  overflow: hidden;
}

footer .container {
  max-width: 1100px;
  margin: 0 auto;

}

footer .footer-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 3fr 3fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

footer h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: block;
  border: none;
  padding: 0;
}

footer h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1rem;
  border: none;
  padding: 0;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .95rem;
}

footer li {
  margin-bottom: 0.8rem;
}

footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

footer h3 img {
  filter: brightness(0) invert(1);
}

footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
  text-align: center;
}

footer .footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

footer .footer-bottom p:last-child {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ── Footer Link ── */

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--green);
}
