/* --- リセット＆基本 --- */
html {
  font-size: 18px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  color: #333;
}

/* --- ヘッダー --- */
header {
  background-color: #f5f5f5;
  padding: 0.6em 1em;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  justify-content: center;
}

.logo-icon {
  height: 90px;
  width: auto;
}

.logo a {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c5f2d;
  text-decoration: none;
}

/* --- ナビゲーション --- */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

nav ul li {
  display: flex;
  align-items: center;
}

nav ul li:not(:last-child)::after {
  content: "/";
  color: #aaa;
  margin: 0 0.6em;
  display: inline-block;
  vertical-align: middle;
}

nav a.btn {
  display: inline-block;
  padding: 0.4em 0.8em;
  font-weight: bold;
  color: #2c5f2d;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav a.btn:hover {
  background-color: #e0f0e0;
}

/* --- フッター --- */
footer {
  background-color: #f5f5f5;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
  color: #666;
}

/* --- about と sdgs の横並び --- */
.about-sdgs-wrapper {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  margin: 2em auto;
  max-width: 1200px;
}

.about-sdgs-wrapper .section {
  flex: 1;
  box-sizing: border-box;
}

/* --- about セクション --- */
#about {
  flex: 1.2;
  text-align: center;
}

#about .intro-message h2 {
  font-size: 1.8rem;   /* メイン見出しを大きめに */
  color: #2c5f2d;
  margin-bottom: 1em;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 1.5em;
}

.about-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.about-grid img:hover {
  transform: scale(1.05);
}

/* --- SDGsセクション --- */
#sdgs {
  flex: 0.8;
  background-color: #f9fff9;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1em;
}

#sdgs h3 {
  text-align: center;
  font-size: 1.3rem; /* h3で少し小さめに */
  color: #2c5f2d;
  margin-bottom: 1em;
}

.sdgs-declaration {
  font-size: 0.8rem;
  color: #333;
  text-align: center;
  margin-bottom: 1.2em;
  line-height: 1.6;
}

.sdgs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sdgs-item {
  text-align: center;
}

.sdgs-item img {
  width: 80px; /* アイコンも少し小さめ */
  height: auto;
  margin-bottom: 0.5em;
}

.sdgs-item p {
  font-size: 0.8rem;
  color: #2c5f2d;
  font-weight: bold;
}

/* --- スマホ対応 --- */
@media (max-width: 768px) {
  .about-sdgs-wrapper {
    flex-direction: column;
  }

  #sdgs, #about {
    width: 100%;
  }

  .sdgs-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* アクセスページ専用スタイル */
main {
  padding: 2em 1em;
}

#access {
  max-width: 800px;
  margin: 0 auto;
  background-color: #f9fcf9;
  padding: 2em;
  border-radius: 8px;
}

#access h2 {
  font-size: 1.6em;
  color: #2c5f2d;
  margin-bottom: 1em;
  text-align: center; /* ← 中央寄せに変更 */
}

#access h3 {
  font-size: 1.2em;
  color: #2c5f2d;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

.map-box {
  text-align: center;
}

.map-image {
  max-width: 100%;
  height: auto;
  margin-top: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}