/* --- 基本設定 --- */
:root {
	--primary-color: #0d2a5d; /* ネイビー */
	--secondary-color: #f0f4f8; /* 明るいグレー */
	--accent-color: #e67e22; /* アクセントのオレンジ */
	--text-color: #333;
	--text-light-color: #fff;
	--border-color: #ddd;
}
html {
	font-size: 100%;
}
body {
	font-family: 'Noto Sans JP', sans-serif;
	line-height: 1.7;
	color: var(--text-color);
	background-color: #fff;
}
a {
	text-decoration: none;
	color: var(--primary-color);
	transition: opacity 0.3s;
}
a:hover {
	opacity: 0.7;
}
img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}
.wrapper {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 4%;
}
h1, h2, h3, h4 {
	font-family: 'Philosopher', serif;
}

/* --- 共通コンポーネント --- */
.page-title {
	font-size: 2.2rem;
	margin: 0;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--primary-color);
}

/* --- ヘッダー --- */
.page-header {
	width: 100%;
	position: relative; /* ← これを追加 */
	z-index: 10;        /* ← これを追加（または復活） */
}
.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 80px;
}
/* トップページのロゴは白 */
.home .logo {
	width: 300px;
}
/* 下層ページのロゴは元の色 */
.sub-page .logo {
	width: 300px;
}
.main-nav {
	display: flex;
	list-style: none;
	font-size: 1.1rem;
	margin: 0;
    padding: 0;
}
.main-nav li {
	margin-left: 30px;
}
/* トップページのリンクは白 */
.home .main-nav a {
	color: var(--text-light-color);
}
/* 下層ページのリンクはネイビー */
.sub-page .main-nav a {
	color: var(--primary-color);
	font-weight: bold;
}
.main-nav a {
	position: relative;
	padding-bottom: 5px;
}
.main-nav a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--accent-color);
	transition: width 0.3s;
}
.main-nav a:hover::after {
	width: 100%;
}

/* --- ヒーローセクション (index.html専用) --- */
.hero {
	background-image: url('/pharm/yakuchi/image/kenkyusitsu.gif');
	background-size: cover;
	background-position: center;
	background-color: #333;
	background-blend-mode: overlay;
	color: var(--text-light-color);
	height: 35vh;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	    margin-top: -80px;   /* ← これを追加 */
    padding-top: 80px;    /* ← これを追加 */
}
.hero-title {
	font-size: 2.8rem;
	margin-bottom: 0.5em;
	text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
.hero-subtitle {
	font-size: 1.2rem;
	font-family: 'Noto Sans JP', sans-serif;
	font-weight: normal;
	text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* --- 下層ページのタイトルエリア --- */
.page-header-sub {
	background-color: var(--secondary-color);
}
.page-header-sub .wrapper {
	padding-top: 40px;
	padding-bottom: 40px;
}

/* --- メインコンテンツ --- */
.content-wrapper {
	padding-bottom: 80px;
	display: grid;
	grid-template-columns: 2fr 260px;
	gap: 60px;
	position: relative; /* ← 重なり順を制御するために追加 */
	z-index: 1;         /* ← ヘッダー(10)やタイトル(9)より下に配置 */
}
/* トップページのお知らせセクションの余白 */
.home .content-wrapper {

}
/* ★★★ お知らせタイトルを左寄せに変更 ★★★ */
#news .page-title {
	text-align: left;
	margin-bottom: 30px;
}
.news-list {
	list-style: none;
	padding: 0;
}
.news-item {
	background-color: #fff;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	margin-bottom: 20px;
	padding: 25px;
	display: flex;
	align-items: flex-start;
	box-shadow: 0 4px 10px rgba(0,0,0,0.05);
	transition: transform 0.3s, box-shadow 0.3s;
}
.news-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.news-date {
	flex-shrink: 0;
	text-align: center;
	margin-right: 25px;
	background-color: var(--primary-color);
	color: var(--text-light-color);
	border-radius: 8px;
	padding: 10px;
	width: 80px;
}
.news-date span {
	display: block;
	font-size: 1.8rem;
	font-weight: bold;
	font-family: 'Philosopher', serif;
	line-height: 1.2;
}
.news-date .year {
	font-size: 0.9rem;
	opacity: 0.8;
}
.news-title {
	font-size: 1.2rem;
	font-weight: bold;
	margin: 0;
	padding-top: 5px;
}

/* --- 下層ページのコンテンツスタイル --- */
.sub-page .content-wrapper {
	padding-top: 60px;
}
article h3,
article h4 {
	font-size: 1.5rem;
	margin-top: 2.5em;
	margin-bottom: 1em;
	padding-left: 10px;
	border-left: 5px solid var(--accent-color);
}
article p,
article li {
	font-size: 1.2rem;
	margin-bottom: 1em;
	margin-bottom: 1em;
	list-style: none;      /* これで「?」が消えます */
	padding-left: 1em; 
}

/* --- 業績ページ専用スタイル --- */
.publication-list .year-heading {
	font-size: 1.8rem;
	margin: 60px 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--primary-color);
}
.publication-list .year-heading:first-of-type {
    margin-top: 0;
}
.publication-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 20px 0;
	border-bottom: 1px dotted var(--border-color);
}
.publication-item p {
	flex: 1;
	margin: 0;
	padding-right: 20px;
}
.publication-item .pubmed-link {
	flex-shrink: 0;
	background-color: var(--primary-color);
	color: var(--text-light-color);
	padding: 5px 15px;
	border-radius: 4px;
	font-size: 0.9rem;
	white-space: nowrap;
}
.publication-item .pubmed-link:hover {
	background-color: #1a4a9c;
	opacity: 1;
}

/* --- 業績ページ（日本語文献）用の追加スタイル --- */
.publication-itemja {
	padding: 20px 0;
	border-bottom: 1px dotted var(--border-color);
}
.publication-itemja p {
    margin: 0;
}


/* --- アクセスページ専用スタイル --- */
.location-info {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
.location-map iframe {
	width: 100%;
	height: 350px;
	border: 0;
	border-radius: 8px;
}

/* --- サイドバー --- */
aside {  
}
aside .sub-title {
	font-size: 1.5rem;
	margin-bottom: 20px;
	border-left: 5px solid var(--primary-color);
	padding-left: 15px;	
}
.sub-menu {
	list-style: none;
	background-color: var(--secondary-color);
	border-radius: 8px;
	padding: 15px;
	margin: 0;
}
.sub-menu li {
	border-bottom: 1px dotted var(--border-color);
}
.sub-menu li:last-child {
	border-bottom: none;
}
.sub-menu a {
	display: block;
	padding: 15px 10px;
	position: relative;
}
.sub-menu a::after {
	content: '>';
	position: absolute;
	right: 15px;
	font-weight: bold;
}

/* --- フッター --- */
footer {
	background-color: var(--primary-color);
	color: var(--text-light-color);
	text-align: center;
	padding: 20px 0;
}
footer p {
	font-size: 0.8rem;
	margin: 0;
}

/* --- ハンバーガーメニュー(共通) --- */
.hamburger-menu {
	display: none;
	cursor: pointer;
	width: 30px;
	height: 21px;
	position: relative;
	z-index: 20;
}
.hamburger-menu span {
	display: block;
	width: 100%;
	height: 3px;
	transition: transform 0.5s, opacity 0.5s;
}
.home .hamburger-menu span {
	background-color: var(--text-light-color);
}
.sub-page .hamburger-menu span {
	background-color: var(--primary-color);
}
.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 9px; }
.hamburger-menu span:nth-child(3) { bottom: 0; }
.hamburger-menu.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger-menu.open span:nth-child(2) { opacity: 0; }
.hamburger-menu.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }
.hamburger-menu.open span {
	background-color: var(--text-light-color); /* 開いた時は常に白 */
}

/* --- レスポンシブ対応 --- */
@media (max-width: 900px) {
	.header-inner { height: 60px; }
	.main-nav {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh;
		background-color: rgba(13, 42, 93, 0.95);
		transition: right 0.5s;
		padding: 0;
	}
	.main-nav.open { right: 0; }
	.main-nav li { margin: 20px 0; }
	.main-nav a { font-size: 1.5rem; color: var(--text-light-color)!important; }
	.hamburger-menu { display: block; }
	.logo { width: 200px; }
	/*.sub-page .logo { filter: brightness(0) invert(1); }*/
	.hero { min-height: 280px; 
		margin-top: -60px; /* ← これを追加 */
		padding-top: 60px;  /* ← これを追加 */}
	.hero-title { font-size: 2.0rem; }
	.hero-subtitle { font-size: 1rem; }
	.page-header-sub {
	}
	.page-header-sub .wrapper,
	.sub-page .content-wrapper {
		padding-top: 30px;
		padding-bottom: 30px;
	}
	.page-title { font-size: 1.8rem; }
	.content-wrapper {
		grid-template-columns: 1fr;
		padding-top: 50px;
		padding-bottom: 50px;
	}
    aside {
		position: static;
		margin-top: 40px;
	}
	.location-info {
		grid-template-columns: 1fr;
	}
}