/* style.css */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
}

body {
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #333;
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* ヘッダーのスタイル */
header {
  position: relative;
  background: none; /* 既存の背景設定はそのまま */
  color: white;
  text-align: left;
  padding: 100px 0;
  overflow: hidden; /* 疑似要素がはみ出さないようにする */
  height: 200px;
}

/* 背景画像を追加 */
header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('image/1TIBTC.png'); /* 追加する画像のURL */
  background-size: cover; /* 画像を全体に合わせる */
  background-position: center; /* 画像の中央を表示 */
  background-repeat: no-repeat; /* 繰り返しを防止 */
  z-index: -2; /* 斜め背景よりさらに後ろに配置 */
  opacity: 0.5; /* 必要に応じて透明度を調整 */
}

/* 斜めの背景を維持 */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 150%; /* 回転しても背景が欠けないように広めに設定 */
  height: 200px;
  background: #009688; /* 色設定を維持 */
  transform: rotate(-10deg); /* 背景のみを回転 */
  transform-origin: 0% 100%; /* 回転の基点を調整 */
  z-index: -1; /* テキストの背面に配置 */
}

/* ヘッダー内の文字スタイル */
header .atama {
  position: relative; /* 疑似要素の影響を受けないようにする */
  color: white;
  padding: 0 20px;
  margin: 0;
}

/* セクションのスタイル */
section {
  padding: 20px; /* セクション内のテキストに余白を設定 */
}

.tab-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #00796b;
  display: flex;
  justify-content: left;
  padding: 0px 0px;
  z-index: 1000;
}

/* タブボタンの状態管理 */
.tab-button {
  background: #00796b;
  color: white;
  border: none;
  margin: 0 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.tab-button:hover {
  background: #004d40;
}

.tab-nav a, .tab-nav button {
  background: #00796b;
  color: white;
  border: none;
  margin: 0 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none; /* リンクの下線を削除 */
  transition: background 0.3s;
}

.tab-nav a:hover, .tab-nav button:hover {
  background: #004d40;
}

.tab-nav a.active, .tab-nav button.active {
  background: #004d40;
  font-weight: bold;
}

/* メインコンテンツのスタイル */
main {
  padding: 20px; /* 上下左右の余白を確保 */
  flex: 1;
  max-width: 90%; /* コンテンツの幅を制限 */
  margin: 0 auto;
  margin-top: 20px;
  padding-bottom: 100px; /* フッターの高さ分の余白を追加 */
  box-sizing: border-box; /* パディングを含めた幅を計算 */
}

/* タブコンテンツアニメーション */
.tab-content {
  text-align: center;
  position: absolute;
  top: 300px;
  left: 0px;
  width:100%;
  opacity: 0; /* 初期状態は透明 */
  visibility: hidden; /* 非表示にするがアニメーション可能 */
  transform: translateY(20px); /* 下に配置 */
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.tab-content.active {
  opacity: 1; /* 表示されるときに不透明 */
  visibility: visible; /* アニメーション終了後に完全に表示 */
  transform: translateY(0); /* 元の位置に戻る */
}


ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin: 10px 0;
}

ul a {
  color: #009688;
  text-decoration: none;
}

ul a:hover {
  text-decoration: underline;
}

.dlfss{
  color : #009688;
  text-decoration: none;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: white;
  text-align: left;
  padding: 10px 0;
  margin-top:20px;
  height: 60px; /* フッターの高さを明示的に指定 */
  box-sizing: border-box; /* 内側のパディングを含めて高さを計算 */
}

/* コンテンツグリッドのスタイル */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 自動で列の数を調整 */
  gap: 20px; /* カード間のスペース */
  padding: 20px;
  margin-bottom: 20px;
}

/* 各カードのスタイル */
.content-card {
  display: block; /* カード全体をリンク化 */
  background-size: cover; /* 背景画像をカードのサイズに合わせる */
  background-position: center; /* 画像の中心を表示 */
  background-repeat: no-repeat; /* 繰り返しを防ぐ */
  color: #fff; /* テキストを白にして画像上でも読みやすく */
  border: 1px solid #ddd; /* 枠線 */
  border-radius: 10px; /* 角丸 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽い影 */
  padding: 20px;
  text-align: center;
  text-decoration: none; /* リンクの下線を削除 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 200px; /* カードの高さを固定 */
}

/* 各カードのスタイル */
.content-card {
  position: relative; /* 疑似要素を適用するためにrelativeを設定 */
  display: block;
  background: none; /* 背景画像は疑似要素で設定 */
  color: white; /* テキストを白色に */
  border: 1px solid #ddd; /* 明るいグレーの枠線 */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽い影 */
  padding: 20px;
  text-align: center;
  text-decoration: none;
  overflow: hidden; /* 疑似要素がはみ出さないようにする */
  height: 200px; /* カードの高さを固定 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 疑似要素で背景画像を設定 */
.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover; /* 背景画像をカードのサイズに合わせる */
  background-position: center; /* 画像の中心を表示 */
  background-repeat: no-repeat; /* 繰り返しを防ぐ */
  background-image: var(--background-image); /* カードごとに異なる画像を設定 */
  filter: brightness(50%) blur(5px); /* 明るさを暗くし、ぼかしを適用 */
  z-index: -1; /* 背景画像をテキストの背面に配置 */
  transition: filter 0.3s ease; /* ホバー時のエフェクト用 */
}

/* カード内のタイトルと説明 */
.content-card h3 {
  margin: 10px 0;
  font-size: 1.5rem;
  color: white; /* テキストは白で視認性を確保 */
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7); /* 文字の視認性を高める */
}

.content-card p {
  font-size: 1rem;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* ホバー時のエフェクト */
.content-card:hover::before {
  filter: brightness(60%) blur(2px); /* ホバー時に少し明るく、ぼかしを軽減 */
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

iframe{
  width: 50%;
  aspect-ratio: 16/9;
}

/* Googleフォームリンクのスタイル */
.google-form-link {
  display: inline-block;
  background: #4285f4; /* Googleの青色 */
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽い影を追加 */
  transition: background 0.3s ease, transform 0.2s ease;
}

.google-form-link:hover {
  background: #3367d6; /* ホバー時に色を濃く */
  transform: translateY(-2px); /* 浮き上がるエフェクト */
}

.google-form-link:active {
  transform: translateY(0); /* クリック時に元に戻す */
}

/* 折りたたみ可能なセクションのスタイル */
.collapsible {
  cursor: pointer;
  padding: 10px;
  border-radius: 5px;
  transition: background 0.3s ease;
  display: flex;
  justify-content: space-between; /* 矢印を右端に配置 */
  align-items: center;
}

.collapsible:hover {
  background: #e0e0e0; /* ホバー時の色変更 */
}

/* 矢印のスタイル */
.collapsible .arrow {
  transition: transform 0.3s ease; /* 矢印の回転をスムーズに */
}

/* 開いている状態の矢印 */
.collapsible.open .arrow {
  transform: rotate(180deg); /* 矢印を上下反転 */
}

.content {
  max-height: 0; /* 初期状態では非表示 */
  overflow: hidden; /* はみ出しを隠す */
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 10px; /* 折りたたみ時にパディングも非表示 */
}

.content.open {
  max-height: 1000px; /* 十分な大きさを設定 */
  padding: 10px;
}