/* 基本設定 */
body {
	font-family: 'Noto Sans JP', sans-serif;
	margin: 0;
	padding: 0;
	line-height: 1.6;
	color: #333;
	background-color: #f9f9f9;
}
.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}
/* ヘッダー */
.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	background-color: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.logo {
	font-size: 24px;
	font-weight: bold;
	color: #2c3e50;
}
.nav a {
	color: #555;
	text-decoration: none;
	margin-left: 20px;
}
.btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.3s;
}
.btn-primary {
	background-color: #3498db;
	color: #fff;
}
.btn-primary:hover {
	background-color: #2980b9;
}
.btn-secondary {
	background-color: #fff;
	color: #3498db;
	border: 2px solid #3498db;
}
.btn-secondary:hover {
	background-color: #ecf0f1;
}
/* メインビジュアル */
.hero {
	/* 画像設定の追加 */
    background-image: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('images/hero-bg.jpg');
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: #fff;
	text-align: center;
	padding: 150px 20px;
}
.hero-title {
	font-size: 48px;
	font-weight: bold;
	margin-bottom: 20px;
	line-height: 1.2;
}
.hero-subtitle {
	font-size: 20px;
	margin-bottom: 40px;
}
/* セクション共通 */
.section {
	padding: 80px 0;
}
.section-title {
	text-align: center;
	font-size: 36px;
	margin-bottom: 20px;
	color: #2c3e50;
}
.section-description {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 50px;
	color: #666;
}
.bg-light-gray {
	background-color: #f0f4f7;
}
#department-overview {
  padding: 80px 0;
  /* background-color: #f7f9fc; */ /* 背景色はそのまま */
  /* text-align: center; */ /* テキストの配置はそのまま */
}

#department-overview .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

#features {
  padding: 80px 0;
}
.section-title {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.section-description {
  font-size: 18px;
  color: #555;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 100%; /* カード幅いっぱいに広げる */
  height: auto; /* 高さを自動調整 */
  margin-bottom: 15px;
  border-radius: 8px; /* 角を丸くする */
  overflow: hidden; /* はみ出した画像を隠す */
  display: block; /* imgの余白をなくす */
}

.card-icon i {
  color: #007bff;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像をトリミングしてカード内に収める */
}

.card-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
}

.card-content p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  text-align: left;
}
/* 強み */
.feature-item {
	display: flex;
	align-items: center;
	margin-bottom: 60px;
	gap: 50px;
}
.feature-item:nth-child(even) {
	flex-direction: row-reverse;
}
.feature-text {
	flex: 1;
}
.feature-image {
	flex: 1;
	text-align: center;
}
.feature-image img {
	width: 100%;
	max-width: 400px;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* ニューアピール */
#new-appeal {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 5px solid #007bff;
  line-height: 1.6;
}

#new-appeal h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

#new-appeal h3 {
  font-size: 1.5rem;
  color: #007bff;
  margin-top: 30px;
  margin-bottom: 15px;
}

#new-appeal ul {
  list-style: none;
  padding-left: 0;
}

#new-appeal li {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

#new-appeal h4 {
  font-size: 1.25rem;
  color: #555;
  margin-top: 0;
  margin-bottom: 10px;
}

#new-appeal p {
  color: #666;
  margin-bottom: 15px;
}

#new-appeal strong {
  color: #d9534f;
}
/* カリキュラム（タイムライン） */
.timeline {
	position: relative;
	padding: 20px 0;
}
.timeline::before {
	content: '';
	position: absolute;
	left: 50.3%;
	top: 0;
	bottom: 0;
	width: 4px;
	background-color: #ccc;
	transform: translateX(-50%);
}
.timeline-item {
	position: relative;
	padding: 20px 0;
}
.timeline-item::before {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	background-color: #3498db;
	border: 4px solid #fff;
	border-radius: 50%;
	z-index: 1;
}
.timeline-item:nth-child(odd) {
	left: 0;
	text-align: right;
//	padding-right: 50px;
}
.timeline-item:nth-child(odd)::before {
	left: calc(50% - 10px);
}
// .timeline-item:nth-child(even) {
//	left: 50%;
//	padding-left: 50px;
// }
.timeline-item:nth-child(even)::before {
	left: calc(50% - 10px);
}
.timeline-content {
	background: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
/* CTA */
.cta {
	text-align: center;
	padding: 100px 20px;
	background: linear-gradient(135deg, #3498db, #8e44ad);
	color: #fff;
}
.cta-title {
	font-size: 40px;
	font-weight: bold;
	margin-bottom: 20px;
}
.cta-subtitle {
	font-size: 18px;
	margin-bottom: 40px;
}
/* フッター */
.footer {
	text-align: center;
	padding: 20px;
	background-color: #2c3e50;
	color: #fff;
}
/* カリキュラムテーブル */
.curriculum-table-container {
	overflow-x: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.curriculum-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
}
.curriculum-table th, .curriculum-table td {
	padding: 12px;
	border: 1px solid #e9e9e9;
	text-align: left;
	white-space: nowrap; /* セル内のテキストを改行しない */
}
.curriculum-table th {
	background-color: #3498db;
	color: #fff;
	font-weight: bold;
	border-bottom: 2px solid #2980b9;
}
.curriculum-table tbody tr:hover {
	background-color: #f0f4f7;
}
.curriculum-table td:nth-child(3), .curriculum-table td:nth-child(7) {
	white-space: normal; /* 科目名と内容のセルは改行を許可 */
}
 @media (max-width: 768px) {
.curriculum-table {
	display: block;
	width: 100%;
}
.curriculum-table thead, .curriculum-table tbody {
	display: block;
}
.curriculum-table tr {
	display: block;
	margin-bottom: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
}
.curriculum-table th, .curriculum-table td {
	display: block;
	text-align: right;
	padding-left: 50%;
	position: relative;
}
.curriculum-table td::before {
	content: attr(data-label);
	position: absolute;
	left: 0;
	width: 45%;
	padding-left: 15px;
	font-weight: bold;
	text-align: left;
	color: #555;
}
.curriculum-table td[rowspan] {
	display: none;
}
.curriculum-table tr td:first-child[rowspan] {
	display: block;
	text-align: center;
	background-color: #3498db;
	color: #fff;
	font-size: 1.2em;
	padding: 10px;
	border-bottom: none;
}
}

.video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
  padding: 10px;
  max-width: 600px; /* 全体の最大幅を小さめに設定 */
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-container {
  width: 100%;
  max-width: 560px; /* YouTube動画の推奨サイズ */
  height: 0;
  padding-bottom: 56.25%; /* 16:9のアスペクト比を維持 */
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.text-container {
  margin-top: 15px;
  text-align: center;
  padding: 0 10px;
}
/* 新しいアクセントカラーの変数定義 */
:root {
  --accent-color: #3498db;
  --accent-color-light: #2980b9;
  --sub-accent-color: #ffc107;
  --sub-accent-color-light: #ffd740;
}

/* ヒーローセクションのボタンホバーをより滑らかに */
.btn-primary:hover {
  background-color: var(--accent-color-light);
  transform: translateY(-2px); /* 少し浮き上がる効果 */
}

/* features-grid の見出しにアクセントカラーを追加 */
.card-content h3 {
  color: var(--accent-color);
  transition: color 0.3s ease;
}

/* カードのホバーエフェクトを強化 */
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 15px var(--accent-color); /* ホバー時に青い光の影を追加 */
}

/* タイムラインのドットの色を変更 */
.timeline::before {
  background-color: var(--sub-accent-color);
}
.timeline-item::before {
  background-color: #fff; /* ドットの中心は白に */
  border: 4px solid var(--sub-accent-color); /* 外枠をイエローに */
}

/* CTAセクションの見出し下線 */
.cta-title {
  position: relative;
  display: inline-block;
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
}
.cta-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 50%;
  height: 4px;
  background-color: var(--sub-accent-color); /* イエローの下線 */
  border-radius: 2px;
}

/* セカンダリボタンのスタイル変更 */
.btn-secondary {
  background-color: transparent; /* 背景を透明に */
  color: #fff; /* テキストカラーを白に */
  border: 2px solid var(--sub-accent-color); /* 枠線をイエローに */
  transition: background-color 0.3s, color 0.3s;
}
.btn-secondary:hover {
  background-color: var(--sub-accent-color);
  color: #333; /* ホバー時に文字を濃い色に */
}
/* レスポンシブデザイン */
@media (max-width: 768px) {
.header {
	flex-direction: column;
	align-items: flex-start;
}
.nav {
	margin-top: 15px;
}
.nav a {
	display: block;
	margin: 10px 0;
}
.hero-title {
	font-size: 32px;
}
.section-title {
	font-size: 28px;
}
.about-grid, .feature-item {
	flex-direction: column;
}
.feature-item:nth-child(even) {
	flex-direction: column;
}
.timeline::before {
	left: 20px;
	transform: none;
}
.timeline-item {
	left: 0;
	text-align: left;
	padding-left: 50px;
}
.timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
	left: 0;
	text-align: left;
	padding-left: 50px;
}
.timeline-item::before, .timeline-item:nth-child(odd)::before, .timeline-item:nth-child(even)::before {
	left: 10px;
}


}
