/* --- 基本設定 --- */
:root {
  --primary-color: #3498db;
  --text-dark: #333;
  --bg-light: #f8f9fa;
  --white: #ffffff;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* --- ヘッダー --- */
.site-header {
  /* 背景を落ち着いたオレンジに */
  background-color: #f39c12; 
  /* 境界線を消すか、同系色にしてスッキリさせる */
  border-bottom: none;
  /* 上下の余白をさらに詰めました（0.5rem → 4px） */
  padding: 4px 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* 全体の高さを抑える */
  height: 44px; 
}

.site-title {
  display: flex;
  align-items: center;
}

.site-title img {
  /* 画像の高さを少し抑えることで、1行をさらに細くできます */
  height: 50px; 
  width: auto;
  vertical-align: middle;
  /* 背景などの不要な装飾をカット */
}

.site-nav a {
  /* オレンジ背景に合わせて文字を白に */
  color: #ffffff;
  margin-left: 1.2rem;
  font-size: 0.85rem;
  font-weight: bold;
  transition: opacity 0.2s;
}

/* モバイルメニューボタン（デフォルト非表示） */
.nav-toggle {
  display: none; /* デフォルトは非表示 */
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block; /* スマホで表示 */
    width: 30px;
    height: 24px;
    position: relative;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff; /* 三本線を白に */
    margin-bottom: 5px;
    border-radius: 2px;
  }
}

/* --- ヒーローエリア --- */
.hero {
  width: 			100%; /* 横幅いっぱい */
  height: 			400px;        /* 高さを200pxに固定 */
  background-color: #222; /* 余白部分の色（黒系が写真を引き立てます） */
  position: 		relative;
  position: 		relative;
  overflow: 		hidden;
  display: 			flex;        /* 画像を中央に配置するために使用 */
  justify-content: 	center; 
  align-items: 		center;
  margin-bottom: 0; /* ヒーローエリア下の余白を完全にゼロにする */
}

.hero-link {
display: flex;
  justify-content: center; /* 画像を中央に寄せる */
  align-items: center;     /* 上下も中央に */
  width: 100%;
  height: 100%;
}

.hero-img {
  /* 幅か高さ、どちらか先に枠に当たった方で止まる（全体が見える） */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; 
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  /* 下部へのグラデーション（文字の可読性確保） */
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
  pointer-events: none; /* オーバーレイをすり抜けてリンクをクリック可能に */
}

.hero-caption {
  position: absolute;
  bottom: 20px; /* 下からの位置 */
  left: 20px;   /* 左からの位置 */
  right: 20px;  /* 右側にも余白を指定して、文字長に対応 */
  color: var(--white);
  line-height: 1.4; /* 文字の行間を戻す */
  text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* 文字に影をつけて読みやすく */
}

/* --- スマホ用メニューの制御 --- */
@media (max-width: 768px) {
/* ナビゲーションを画面の右側に配置 */
  .site-nav {
    display: 	block; 	/* flexではなくblock（またはcolumn）に */
    position: 	fixed; 	/* 画面に対して固定 */
    top: 		0;
    right: 		-100%; 				/* 最初は画面の外（右側）に隠しておく */
    width: 		30%;    			/* 「40%ぐらい」とのことですが、文字が入り切るよう60%程度がおすすめ。適宜調整してください */
    height: 	100vh; 				/* 画面の高さ分 */
    background-color: #f39c12; 		/* ヘッダーと同じオレンジ */
    padding-top: 60px; 				/* ヘッダーと重ならないよう上の余白 */
    transition:	right 0.3s ease; 	/* スライドのアニメーション */
    z-index: 	99;   				/* ヘッダーより下、コンテンツより上 */
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  }

  .nav-toggle {
    display: block;
    position: relative; /* positionを指定しないとz-indexが効きません */
    z-index: 101;      	/* メニュー（99）より大きい数字に */
  }

  /* JSでクラスがついた時、画面内（右端0の位置）にスライドイン */
  .site-nav.is-active {
    right: 0;
  }

  .site-nav a {
    display: block;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
  }

  /* ハンバーガーボタンを常に最前面に */
  .nav-toggle {
    display: 	block;
	position: 	relative;
    z-index: 	101; /* メニューより上に配置 */
  }
}

/* --- コンテンツエリア --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  display: flex;
  transition: transform 0.2s;
}

.card:hover { transform: translateY(-5px); }

.card-icon {
  width: 50px; height: 50px;
  margin-right: 1rem;
  flex-shrink: 0;
  color: var(--primary-color);
}

.card-title { font-weight: bold; font-size: 1.1rem; }
.card-desc { font-size: 0.9rem; color: #666; }
.card-date { font-size: 0.8rem; color: #999; margin-top: 0.5rem; }

/* --- レスポンシブ対応 (スマホ) --- */
@media (max-width: 768px) {
  
  .hero-title { font-size: 1.4rem; }
  .card-grid {
    grid-template-columns: 1fr; /* 1列にする */
  }
}

/* --- パンくずリスト --- */
.breadcrumb {
  font-size: 	0.8rem;
  color: 		#888;
  margin: 		0 0 0.5rem 0; 
  padding: 		0;}

.breadcrumb a {
  color: #f39c12; 	/* ヘッダーと同じオレンジにして統一感を出す */
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 5px;
  color: #888;
}

/* メニューが開いている時だけ、body全体に薄黒い幕を張る疑似要素 */
body.menu-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 50%の黒 */
  z-index: 98; /* メナー(99)のすぐ下 */
}

/* --- フッターの修正 --- */
.site-footer {
  text-align: center;
  /* 上下の余白を 3rem から 1rem (約16px) に大幅縮小 */
  padding: 		0.5rem; 
  background: 	#444;
  color: 		#ccc; /* 文字色を少し明るくして可読性を調整 */
  margin-top: 	1rem; /* コンテンツとの間隔も少し詰めました */
}

.footer-inner {
  max-width: 		1200px;
  margin: 			0 auto;
  display: 			flex;
  flex-direction: 	row;    	/* 常に横並び */
  justify-content: 	center; 	/* 中央寄せ */
  align-items: 		center;    	/* 上下中央揃え */
  flex-wrap: 		wrap;       /* 幅が足りない時だけ改行（スマホ対策） */
  gap: 				15px;       /* 要素間の隙間 */}
}

/* カウンター画像のスタイル調整 */
.footer-counter {
  display: flex;
  align-items: center;
}

.footer-counter img {
  display: block;
  opacity: 0.8; /* 背景のグレーに馴染むよう少し透明度を下げる（ホバーで戻す） */
  transition: opacity 0.2s;
  margin: 0 auto;
}

.footer-counter a:hover img {
  opacity: 1;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.footer-since {
  display: block;
  font-size: 0.75rem; /* 文字を小さく（デフォルトは約1rem） */
  letter-spacing: 0.05em;
}

.footer-link {
  font-size: 0.75rem; /* リンクの文字も小さく */
  color: #f39c12; /* ヘッダーと合わせたオレンジ色 */
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* PCサイズでは横一行に並べる */
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}

