/* ベース設定 */
body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background-color: #3d843d;
  color: #333;
  line-height: 1.8;
}

/* ヘッダー・フッター共通 */
header, footer {
  background-color: #ffffff;
  color: #333;
  /* text-align: center; */
  padding: 20px;
}

/* ヘッダーのレイアウト */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

/* ロゴ */
.logo img {
  height: 50px;
}

/* ナビゲーション */
.nav-menu {
  display: flex;
  gap: 15px;
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* コンテンツエリア */
main {
  padding: 40px 20px;
}

/* セクション */
section {
  margin-bottom: 40px;
  background-color: #fffdf9;
  padding: 30px 20px;
  border-radius: 8px;
  border: 1px solid #ffe0b2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* セクション見出し */
h2 {
  color: #ff8f00;
  border-left: 6px solid #ffb74d;
  padding-left: 12px;
  margin-top: 0;
  font-size: 20px;
}

/* トップ見出し */
h1 {
  margin: 0;
  font-size: 24px;
}

/* ボタン風リンク */
a.button {
  display: inline-block;
  background-color: #ffb74d;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}
a.button:hover {
  background-color: #ffa726;
}

/* レイアウト用 */
.container {
  max-width: 960px;
  margin: 0 auto;
}

/* ページトップボタン */
#ptop {
  position: fixed;
  bottom: 30px;
  right: 20px;
}
#ptop img {
  width: 40px;
  height: auto;
}

/* フッター文字サイズ */
footer {
  font-size: 14px;
  color: #333;
  text-align: center;
}

/* h1内リンクを自然に見せる */
h1 a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}
h1 a:hover {
  text-decoration: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* ハンバーガーメニューアイコン */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  position: absolute;
  top: 25px;
  right: 20px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

/* メニューが開いてるときのアニメーション（オプション） */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}
