:root {
  --main-color: #5B9E14;        /* 高コントラストな爽やかグリーン */
  --accent-color: #FF9B85;      /* コーラルパステル */
  --bg-color: #F8FBF4;          /* ミルキーグリーンホワイト */
  --card-bg: #FFFFFF;
  --text-color: #3E4A35;        /* ダークオリーブ */
  --text-light: #526347;
  --border-color: #E2EED5;
  --font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  opacity: 0.8;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--main-color);
  color: #ffffff;
  border-radius: 12px;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn:hover {
  background-color: var(--main-color);
}
.btn:active {
  transform: translateY(1px);
}

/* Header & Navigation */
header {
  background-color: #FFFFFF;
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 70px;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

nav a {
  font-weight: 500;
  color: var(--text-color);
  font-size: 1.1rem;
}

nav a:hover, nav a.active {
  color: var(--main-color);
  font-weight: bold;
}

nav ul li a {
  white-space: nowrap;
}

/* Hamburger toggle button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--main-color);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #EBF8D8 0%, #FFF5EF 100%);
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.2rem;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.4;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Main Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0px 15px;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--main-color);
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 30px;
}

.section-title span {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.section-title span::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 2px;
  z-index: -1;
}

.section-message {
  text-align: center;
  margin-bottom: 20px;
}

/* Cards & Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 20px;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(136, 196, 37, 0.08);
  transition: transform 0.3s;
}

.card h3 {
  color: var(--main-color);
  font-size: 1.3rem;
  margin-bottom: 12px;
  border-bottom: 2px dashed var(--border-color);
  padding-bottom: 8px;
}

/* Feature Box */
.feature-box {
  background-color: #F3FBEB;
  border-left: 5px solid var(--main-color);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 25px;
}

.feature-box h4 {
  color: var(--main-color);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: #3E4A35;
  color: #F4F8F0;
  padding: 40px 20px 20px;
  margin-top: 30px;
  min-height: 150px;
}

.footer-container {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col a {
  color: #F4F8F0;
}

.footer-col address {
  font-style: normal;
}

.footer-menu {
  text-align: center;
  margin-bottom: 30px;
}

.footer-menu h4 {
  color: #C1E887;
  margin-bottom: 15px;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.footer-menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  margin: 0 auto;
}

.footer-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #F4F8F0;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 20px;
  border: 3px solid rgba(244, 248, 240, 0.3);
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: #F4F8F0;
  opacity: 1;
}

.footer-menu a.active {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: #F4F8F0;
  font-weight: bold;
}

.footer-logo-img {
  height: 90px;
  width: auto;
  margin-bottom: 12px;
  opacity: 0.9;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.photo-frame {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(136, 196, 37, 0.12);
  border: 1px solid var(--border-color);
  min-height: 0;
  height: 100%;
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #9BAA91;
  border-top: 1px solid #526247;
  padding-top: 20px;
}

@media (max-width: 1080px) {
  .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
  }
  .nav-toggle {
    display: flex;
  }
  nav {
    flex-basis: 100%;
    order: 3;
  }
  nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-top: 15px;
  }
  nav.nav-open ul {
    display: block !important;
    z-index: 9999; 
  }
  nav li {
    border-top: 1px solid var(--border-color);
  }
  nav a {
    display: block;
    padding: 14px 4px;
  }
  .footer-menu ul {
    max-width: 100%;
  }
  .footer-menu li {
    width: 100%;
  }
  .footer-menu a {
    font-size: 0.95rem;
    padding: 5px 10px;
  }
}

@media (max-width: 640px) {
  header {
    min-height: 60px;
  }
  .hero {
    padding: 36px 16px;
    text-align: left;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  .section-message {
    padding: 0px 10px;
    text-align: left;
  }
  .grid-2, .grid-3 {
    gap: 16px;
    margin-bottom: 16px;
  }
  .card {
    padding: 18px;
  }
  .feature-box {
    padding: 16px;
  }
  .logo-img {
    height: 50px;
  }
  nav a {
    font-size: 0.85rem;
  }
  .footer-container {
    text-align: center;
    gap: 24px;
  }
  .footer-logo-img {
    margin-left: auto;
    margin-right: auto;
  }
}
