@charset "utf-8";

/* ===================================
   レイアウト - メニューバーと同じ幅
   =================================== */
.inner {
	max-width: 1400px !important;
	margin: 0 auto !important;
	padding: 0 20px !important;
}

/* ===================================
   研究概要・特色セクション
   =================================== */

/* 研究概要・特色の文章幅を統一 */
section {
	max-width: 1400px;
	margin: 0 auto;
}

/* 「研究概要」「特色」見出しを含むp要素 */
p.bigger:not(:has(.answer-link)) {
	position: relative;
	padding: 0 3% 5px !important;  /* 上0、左右3%、下5px */
	margin-bottom: 30px !important;
}

/* 下線を親要素の幅いっぱいに */
p.bigger:not(:has(.answer-link))::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;                    /* 左端を中央に */
	transform: translateX(-50%);  /* 幅の半分左にずらして中央揃え */
	width: 95%;
	height: 3px;
	background: #013682;
}

/* 「研究概要」「特色」見出しのテキスト */
p.bigger:not(:has(.answer-link)) strong {
	font-size: 24px !important;
	font-weight: 800 !important;
	color: #013682 !important;
	display: inline-block;
	margin-top: 40px !important; /*特色の上*/
	margin-bottom: 0 !important;
}

/* 最初の見出し（研究概要）のマージン調整 */
section > p.bigger:first-of-type strong {
	margin-top:0px !important;
}

/* biggerクラス（質問行全体の配置） */
.bigger {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 0px !important;
}

/* 質問（▶︎なぜ〜） - 本文に近いスタイル、少し太く大きく */
strong.answer-link {
	color: #1c3177 !important;
	cursor: pointer;
	font-size: 24px !important;
	font-weight: 600 !important;
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

strong.answer-link:hover {
	color: #596085 !important;
}

/* click here - 元のスタイル */
.click {
	font-size: 12px;
	color: gray;
}

/* 回答コンテンツ - 幅を統一 */
.answer-content {
	background-color: #f9f9f9;
	padding: 20px;
	margin-top: -40px;
	margin-bottom: 20px;
	margin-left: 30px !important;   /* 左マージン削除 */
	margin-right: 30px !important;  /* 右マージン削除 */
	border-radius: 5px;
	font-size: 16px !important;
	line-height: 1.5 !important;
	color: #333333 !important;   /* 文字色統一 */
	transition: all 0.3s ease;
	max-width: 100%;             /* 親要素の幅に合わせる */
}

/* 注釈リンク */
.annotation-link {
	color: #0066cc !important;
	cursor: pointer;
	text-decoration: underline;
}

.annotation-link:hover {
	color: #004499 !important;
}

/* 注釈コンテンツ */
.annotation-content {
	background-color: #f9f9f9;
	padding: 20px;
	margin-top: 10px;
	margin-bottom: 20px;
	border-radius: 5px;
	line-height: 1.8 !important;
	color: #333333 !important;
	font-size: 16px !important;
	transition: all 0.3s ease;
}

/* 研究概要の文章 */
.nomal {
	font-size: 16px !important;
	line-height: 1.8 !important;
	color: #333333 !important;    /* 文字色統一 */
}

.smaller {
	font-size: 15px !important;
	color: #666666 !important;
	margin-bottom: 20px !important;
}

/* ===================================
   学べる事テーブル
   =================================== */
.skills-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.skills-table th {
	background: #1c3177;
	color: #ffffff;
	font-weight: 600;
	font-size: 16px;
	padding: 15px 20px;
	text-align: left;
	vertical-align: top;
	width: 200px;
	border-bottom: 2px solid #e0e0e0;
}

.skills-table td {
	padding: 15px 20px;
	font-size: 15px;
	line-height: 1.8;
	color: #333333;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: top;
}

.skills-table tr:last-child th,
.skills-table tr:last-child td {
	border-bottom: none;
}

.skills-table tr:nth-child(even) {
	background: #fafafa;
}

.skills-table tr:hover {
	background: #f5f5f5;
}

/* ===================================
   研究テーマ - ACSスタイル
   =================================== */

/* 研究項目全体 */
.research-item {
	margin-bottom: 50px;
	padding: 30px;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}

/* 左側：テキストコンテンツ */
.research-content {
	min-width: 0;
}

/* タイトル */
.research-title {
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #1c3177 !important;     /* 統一色 */
	margin-bottom: 20px !important;
	line-height: 1.4 !important;
}

/* 説明文 */
.research-description {
	font-size: 16px !important;
	line-height: 1.8 !important;
	color: #333333 !important;     /* 統一色 */
	margin-bottom: 20px !important;
}

/* リンクコンテナ */
.research-links {
	gap: 10px;
	margin-top: 20px;
}

/* リンクボタン */
.research-link {
	display: inline-block;
	padding: 8px 16px;
	background: #f5f5f5;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	color: #0066cc !important;
	font-size: 15px !important;
	text-decoration: none;
	transition: all 0.3s;
	width: fit-content;
}

.research-link:hover {
	background: #e8e8e8;
	border-color: #0066cc;
	text-decoration: none;
}

/* ===================================
   ACS風論文表示
   =================================== */

/* 論文コンテナ - 2カラムレイアウト */
.paper-item {
	display: flex !important;
	flex-direction: row !important;  /* PC: 横並び */
	gap: 30px;
	margin-top: 30px;
	padding: 20px;
	background: #f8f9fa;
	border-left: 4px solid #4a90e2;
	border-radius: 4px;
	align-items: flex-start;
}

/* 左側：論文情報 */
.paper-info {
	flex: 1;
	min-width: 0;
	max-width: none;
}

/* 論文タイトル */
.paper-title {
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #1c3177 !important;
	margin-bottom:20px !important;
	line-height: 1.4 !important;
}

/* 著者名 */
.paper-authors {
	font-size: 14px !important;
	color: #666666 !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.3 !important;
	text-indent: 0 !important;  /* インデント削除 */
}

/* ジャーナル情報 */
.paper-journal {
	font-size: 14px !important;
	color: #0066cc !important;
	font-style: italic;
	margin-top: 8px !important;
	margin-bottom: 16px !important;
	margin-left: 0 !important;  /* 左マージン0 */
	margin-right: 0 !important;
	padding: 0 !important;  /* パディング0 */
	line-height: 1.3 !important;
	text-indent: 0 !important;  /* インデント削除 */
}

/* 論文リンクコンテナ */
.paper-links {
	margin-bottom: 8px;
}

/* 論文リンク */
.paper-link {
	font-size: 13px !important;
	color: #ffffff !important;
	background: #0066cc;
	padding: 6px 12px;
	border-radius: 4px;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s;
	margin-right: 10px;
}

.paper-link:hover {
	background: #004499;
	text-decoration: none;
}

/* Abstract部分 */
.paper-abstract {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #dee2e6;
	font-size: 14px !important;
	line-height: 1.6 !important;
	color: #333333 !important;
}

.paper-abstract strong {
	font-weight: 700;
	color: #1c3177;
	display: block;
	margin-bottom: 8px;
}

/* 右側：論文図 */
.paper-image {
	width: 500px;      
	min-width: 100px;
	text-align: center;
}

.paper-image img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	border: 1px solid #e0e0e0;
}

/* 右側：画像エリア */
.research-images {
	width: 600px;
	min-width: 400px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* 画像 */
.research-images img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	border: 1px solid #e0e0e0;
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 1024px) {
	.research-images {
		width: 350px;
		min-width: 350px;
	}
	
	.skills-table th {
		width: 150px;
		font-size: 14px;
		padding: 12px 15px;
	}
	
	.skills-table td {
		font-size: 14px;
		padding: 12px 15px;
	}
}

@media (max-width: 768px) {
	.research-item {
		flex-direction: column;
		padding: 20px;
	}

	.research-images {
		width: 100%;
		min-width: auto;
	}

	.research-title {
		font-size: 20px !important;
	}

	.research-description {
		font-size: 15px !important;
	}

	/* 特色の質問部分をスマホ用に小さく */
	strong.answer-link {
		font-size: 14px !important;  /* 24px → 16px */
	}

	.click {
		font-size: 11px;
	}

	.answer-content {
		font-size: 14px !important;
		padding: 15px;
		margin-left: 10px !important;
		margin-right: 10px !important;
	}
	
	/* answer-content内のpタグ */
	.answer-content p {
		padding: 0 !important;
		margin-bottom: 15px !important;
	}

	/* 研究概要・特色見出し */
	p.bigger:not(:has(.answer-link)) strong {
		font-size: 22px !important;  /* 30px → 22px */
	}

	.nomal {
		font-size: 14px !important;
	}

	.smaller {
		font-size: 13px !important;
	}

	/* 学べる事テーブル - スマホ対応 */
	.skills-table {
		font-size: 13px;
		display: table !important;  /* テーブル表示を強制 */
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	
	.skills-table th {
		display: block !important;
		width: 100% !important;
		background: #1c3177;
		padding: 10px 15px;
		font-size: 14px;
		border-bottom: none;
	}
	
	.skills-table td {
		display: block !important;
		width: 100% !important;
		padding: 10px 15px;
		font-size: 13px;
		border-bottom: 2px solid #e0e0e0;
	}
	
	.skills-table tr {
		display: block !important;
		margin-bottom: 20px;
		border: 1px solid #e0e0e0;
		border-radius: 4px;
		overflow: hidden;
	}
	
	.skills-table tr:nth-child(even) {
		background: #ffffff;
	}
	
	.skills-table tr:hover {
		background: #ffffff;
	}

	/* ACS風論文表示 */
	.paper-item {
		display: flex !important;
		flex-direction: column !important;  /* 縦並びを強制 */
		padding: 15px;
		gap: 15px;
	}

	.paper-image {
		width: 100% !important;
		min-width: auto !important;
		max-width: 100% !important;
		order: 2 !important;  /* 画像を下に */
	}

	.paper-info {
		width: 100% !important;
		order: 1 !important;  /* 情報を上に */
	}

	.paper-title {
		font-size: 16px !important;
		margin-bottom: 12px !important;
	}

	.paper-authors {
		font-size: 13px !important;
		margin-bottom: 4px !important;
	}

	.paper-journal {
		font-size: 13px !important;
		margin-top: 4px !important;
		margin-bottom: 10px !important;
	}

	.paper-link {
		font-size: 12px !important;
		padding: 5px 10px;
	}

	.paper-abstract {
		font-size: 13px !important;
	}
}