﻿/* ============================
   基本設定
============================ */
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #222;
  background: #fafafa;
  overflow-x: visible;
  
}

/* ============================
   ヘッダー（ロゴ画像＋ハンバーガー）
============================ */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #1B5E20;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 2000;
}

.site-header .logo img {
  height: 64px;
  width: auto;
  display: block;
}
/*
header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
}
*/

/* ============================
   ハンバーガー
============================ */
.hamburger {
  width: 30px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  margin: 6px 0;
  transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================
   スライドメニュー
============================ */
.nav-menu {
  position: fixed;
  top: 72px;
  right: -260px;
  width: 260px;
  height: calc(100% - 72px); /* ヘッダー分だけ縮める */  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  transition: right 0.4s ease;
  padding-top: 5px;
  z-index: 1500;
  display: none;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
}

.nav-menu li {
  margin: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
}

.nav-menu.active {
  right: 0;
  display: block;
}

.menu-title {
  font-size: 18px;
  padding: 16px 20px;
  color: #000;           /* 白文字 */
  border-bottom: 1px solid #ccc;
  text-align: center;
}


/* ============================
   コンテンツ（本文が出ない問題の修正版）
============================ */
.content {
  padding: 10px 20px 40px; /* ← フッターに隠れないように大きめに確保 */
  width: 100%;
  max-width: 800px;
  position: static;
  z-index: 1;
  margin: 0 auto;
}


/* ============================
   セクション
============================ */
section {
  margin-bottom: 80px;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1B5E20;
  margin-bottom: 16px;
  opacity: 1; /* ← 非表示にならないように強制表示 */
  transform: none;
}

h3 {
  font-size: 14px;
  font-weight: 500;
  color: #1B5E20;
  margin-bottom: 16px;
  opacity: 1; /* ← 非表示にならないように強制表示 */
  transform: none;
}

/* ============================
   カード
============================ */
.card,
.card2 {
  background: #fff;
  padding: 10px 24px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-bottom: 40px;
  opacity: 1; /* ← 非表示防止 */
  transform: none;
}
.card2 {
  padding: 0 20px;
  border-left: 5px solid #0a3d2e; /* 深緑ライン（あなたの設定） */

  box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* カード影 */
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.card2 ul {
  list-style: none;
  padding-left: 30px; /* 左の余白も消す（必要なら） */
  margin: 20px 5px 20px 25x;
}

/* ============================
   グリッド
============================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}



/* ============================
   フッター（本文を隠さない設定）
============================ */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1B5E20;
  color: #fff;
  text-align: center;
  font-size: 11px;
  padding: 4px 0;
  z-index: 999;
}

.site-footer p {
  margin: 0;
}




/* ============================
   スマホ対応
============================ */
@media (max-width: 600px) {
  body > div {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }
 h2 {
 	font-size: 24px;
 }
 

  .content {
    padding: 32px 20px 40px;
  }

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

/*
 .fixed-footer {
    position: static !important;
  }
*/
}


/* オーバーレイ（背景の黒い半透明） */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 800;
}

#overlay.active {
  opacity: 1;
  pointer-events: auto;
}


.history-list {
  list-style: none;
  padding-left: 0;
}

.history-list li {
  display: flex;
  padding: 6px 0;
  border-left: 4px solid #1B5E20;
  padding-left: 12px;
  margin-bottom: 4px;
}

.history-list .year {
  width: 120px; /* ← ここを調整すると揃う */
  font-weight: 700;
  color: #1B5E20;
  flex-shrink: 0;
  margin-right: 18px;
}
.history-list li strong {
  color: #1B5E20;
  font-weight: 700;
}

#mail-img {
  max-width: 40%;
  height: auto;
}
#mail-link {
  display: none; /* 文字は非表示のまま */
}
