/*
Theme Name: 3tovho
*/

/*
Note: Reset and Utility styles have been moved to separate files.
Ensure they are enqueued before this file.
*/

/* ==========================================================================
   1. Base Styles (全体設定)
   ========================================================================== */
body {
	color: #333;
	font-family: 'Noto Sans Japanese', sans-serif;
	line-height: 1.9;
	-webkit-text-size-adjust: none;
	background: url("../img/bg.gif");
	margin: 0;
	padding: 0;
	border-top: 20px solid #4169e1;
}

#wrapper {
	width: 100%;
	max-width: 1366px;
	margin: 0 auto;
	border-top: 1px solid #1872cc;
	position: relative;
}

#spLinkBlockInPc {
	display: none;
}

.border {
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}

select {
	padding: 0.5em;
}

/* ==========================================================================
   2. Header & Navigation (ヘッダー・ナビゲーション)
   ========================================================================== */
header {
	width: 220px;
	background: #fff;
	box-shadow: 0px 3px 9px rgba(0, 0, 0, 0.3);
	position: absolute;
	z-index: 99;
}

/* --- Shared Navigation --- */
.navi {
	padding: 0;
	margin: 0;
	border-bottom: 2px solid #b0c4de;
}

.navi a:hover img {
	opacity: 0.6;
}

.navi li {
	position: relative;
	text-align: center;
}

.navi li a {
	display: inline-block;
}

.navi li img {
	margin: 0 auto;
	display: block;
}

#banner a:hover img {
	opacity: 0.6;
}

/* --- Global Navigation (Left Menu) --- */
#dropmenu>.menu-item {
	border-bottom: 1px solid #b0c4de;
}

#dropmenu>.menu-item:last-child {
	border-width: 0;
}

.global-nav-item {
	display: block;
	position: relative;
	padding: 12px 10px 12px 20px;
	background-color: #fff;
	color: #004098;
	font-weight: bold;
	text-decoration: none;
	margin-left: 0.5em;
	font-size: 22px;
	text-align: left;
	transition: opacity 0.3s ease, background-color 0.3s ease;
	letter-spacing: 0.05em;
	font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "HGS Mincho E", "MS PMincho", "MS Mincho", serif;
}

.global-nav-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 10px;
	height: 70%;
	background-color: #4169e1;
}

.global-nav-item:hover {
	background-color: #f9f9f9;
	opacity: 0.7;
	text-decoration: none;
}

/* Schedule Item (Gold Theme) */
.nav-schedule .global-nav-item {
	color: #d4a017;
}

.nav-schedule .global-nav-item::before {
	background-color: #d4a017;
}

/* --- Dropdown Sub-menu --- */
#dropmenu li a {
	display: block;
}

#dropmenu li ul {
	width: calc(100% - 0.5em);
	list-style: none;
	position: absolute;
	z-index: 1;
	top: -1px;
	left: 100%;
}

#dropmenu li:last-child ul {
	left: -100%;
}

#dropmenu li ul li {
	overflow: hidden;
	width: 100%;
	height: 0;
	color: #fff;
	transition: .2s;
}

#dropmenu li ul li a {
	padding: 13px 15px;
	color: #333;
	background: #fff;
	text-align: left;
	font-size: 12px;
	font-weight: normal;
	border: 1px solid #ccc;
}

#dropmenu li ul li a:hover {
	background-color: khaki;
}

#dropmenu li:hover ul li {
	overflow: visible;
	height: 38px;
}

#dropmenu li:hover ul li:first-child {
	border-top: 0;
}

#dropmenu li:hover ul li:last-child {
	border-bottom: 0;
}

#dropmenu li:hover ul li:last-child a {
	border-radius: 0 0 3px 3px;
}

/* --- Sidebar Navigation & Links --- */
#link li {
	margin-bottom: 15px;
}

/* --- Seminar Blocks (Sidebar) --- */
.seminar-block {
	margin-bottom: 25px;
	padding-left: 0.5em;
	padding-bottom: 0.5em;
	text-align: left !important;
	border-bottom: 1px solid #b0c4de;
}

.seminar-block:last-child {
	margin-bottom: 0;
	border-width: 0;
}

.seminar-title-link {
	text-decoration: none;
	display: block;
	margin-bottom: 10px;
}

.seminar-title-link img {
	max-width: 100%;
	height: auto;
	display: block;
}

.seminar-title-link:hover {
	opacity: 0.8;
	transition: opacity 0.2s;
}

.seminar-content {
	padding: 0 5px;
}

.seminar-loc {
	font-weight: bold;
	color: #333;
	font-size: 13px;
	margin-top: 10px;
	margin-bottom: 5px;
	border-left: 3px solid #ccc;
	padding-left: 6px;
}

.seminar-date-list {
	list-style: none;
	padding: 0;
	margin: 0 0 0 10px;
}

.seminar-date-list li {
	margin-bottom: 5px;
	font-size: 13px;
	text-align: left;
}

.seminar-date-list li a {
	color: #555;
	text-decoration: none;
}

.seminar-date-list li a:hover {
	color: #4169e1;
	text-decoration: underline;
}

.seminar-status {
	display: inline-block;
	padding: 2px 6px;
	font-size: 10px;
	font-weight: bold;
	border-radius: 3px;
	margin-right: 5px;
	vertical-align: middle;
	line-height: 1.2;
}

.seminar-status.status-cancel {
	background-color: #e74c3c;
	color: #fff;
	border: 1px solid #c0392b;
}

.seminar-status.status-on {
	background-color: #1e90ff;
	color: #fff;
	border: 1px solid #1872cc;
}

.seminar-status.status-end {
	background-color: #95a5a6;
	color: #fff;
	border: 1px solid #7f8c8d;
}

.seminar-date {
	vertical-align: middle;
}

.no-schedule {
	color: #999;
	font-size: 12px;
	margin: 0;
	padding-left: 5px;
}

/* ==========================================================================
   3. Common Components (共通コンポーネント)
   ========================================================================== */
.red {
	color: red;
}

.blue {
	color: #87cefa;
}

.submit {
	text-align: center;
}

.submit input {
	padding: 20px 50px;
	font-weight: bold;
	font-size: 1em;
	color: #fff;
	background-color: #1e90ff;
	border-radius: 5px;
}

.submit input:hover {
	background-color: #87cefa;
}

.arrow {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-top: solid 2px #fff;
	border-right: solid 2px #fff;
	transform: rotate(45deg);
}

/* Section Titles */
.section-title {
	font-size: 24px;
	color: #4169e1;
	border-left: 8px solid #1e90ff;
	padding: 10px 15px;
	margin-bottom: 20px;
	font-weight: bold;
}

/* --- PDF Link Button --- */
.btn-pdf {
	display: inline-block;
	padding: 15px 20px;
	background: #f0f0f0;
	border: 1px solid #ccc;
	border-radius: 5px;
	text-decoration: none;
	color: #333;
	font-weight: bold;
}

.btn-pdf:hover {
	background: #e0e0e0;
	color: #000;
}

.btn-pdf img {
	vertical-align: middle;
	margin-right: 5px;
}

/* ==========================================================================
   4. Footer (フッター)
   ========================================================================== */
#bottom {
	margin-top: 5vh;
	width: 100%;
	color: #fff;
	background: #1e90ff;
}

#ac_bottom {
	margin-top: 270px;
	width: 100%;
	min-height: 310px;
	color: #fff;
	background: #1e90ff;
}

#bottom a,
#ac_bottom a {
	color: #fff;
}

#bottom a:hover {
	color: #ffd700;
}

#footer {
	width: 100%;
	padding: 40px 20px 40px 26vw;
	font-size: 0.85em;
	box-sizing: border-box;
	color: #fff;
}

#ft_menu li {
	display: inline-block;
	margin-right: 4.1em;
}

#footer_copy {
	padding: 10px 0;
	color: #fff;
	text-shadow: 0 -1px 0 #239fdd;
	font-size: 0.8em;
	font-weight: normal;
	width: 100%;
	text-align: center;
	background-color: #4169e1;
}

#pagetop {
	border: 1px solid #ccc;
	background-color: #87cefa;
	padding: 10px;
	position: fixed;
	bottom: 50px;
	right: 15px;
	z-index: 99;
	border-radius: 5px;
	box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.3);
}

#footer ul.block li {
	padding-left: 0.5em;
}

/* --- Footer Navigation (Grid) --- */
.footer-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
	text-align: left;
}

.footer-col h3 {
	font-size: 15px;
	font-weight: bold;
	color: #fff;
	margin: 0 0 15px 0;
	border: none;
	padding: 0;
	background: none;
}

.footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-col ul li {
	margin-bottom: 8px;
	font-size: 13px;
	padding-left: 0;
}

#footer .footer-col ul li a {
	text-decoration: none;
	transition: color 0.2s;
}

.footer-col ul li a:hover {
	color: #4169e1;
}

.company-info p {
	font-size: 12px;
	line-height: 1.9;
	margin: 0 0 5px 0;
}

.company-info a {
	text-decoration: none;
}

#ft_logo img {
	max-width: 100%;
}

/* ==========================================================================
   5. Home / Main Content (トップページ・メイン)
   ========================================================================== */
#main {
	width: 100%;
	max-width: 1366px;
}

/* --- Catch Copy --- */
#catch_back {
	padding: 0;
	width: auto;
	max-width: 1146px;
	height: 615px;
	margin-left: 220px;
	margin-bottom: 2em;
	background: url("../img/main2.jpg");
	background-position: right;
	background-size: cover;
	position: relative;
}

#catch {
	text-align: center;
}

.catch_head {
	position: absolute;
	top: 10%;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	z-index: 10;
}

#catch h1,
#catch p,
#catch h2 {
	color: white;
	text-shadow: 1px 1px 13px #000;
}

#catch h1 {
	font-size: 250%;
	font-weight: bold;
}

#catch p {
	margin-top: 1em;
	font-size: 160%;
	font-weight: bold;
}

#catch h2 {
	margin-top: 1em;
	font-size: 112%;
}

/* --- En (Circles) --- */
#en {
	position: absolute;
	bottom: 20%;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 1146px;
	margin: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 40px;
	z-index: 10;
}

#en div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 170px;
	height: 170px;
	text-align: center;
	border-radius: 50%;
	box-shadow: 0px 0px 30px 5px rgba(0, 0, 0, 0.2);
}

#en div:first-child {
	background: #4169e1;
}

#en div+div {
	background: #6495ed;
}

#en div+div+div {
	background: #b0c4de;
}

#en p {
	margin-top: 0;
	color: white;
	font-size: 140%;
	font-weight: bold;
}

#en span {
	font-size: 120%;
}

/* --- News --- */
#inner {
	width: auto;
	max-width: 960px;
	margin-left: 270px;
	padding-right: 1em;
}

#news-section {
	background: #fff;
	padding: 2em;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Campaign Box */
.news-campaign {
	background-color: #fff9f9;
	border: 1px solid #ffebeb;
	padding: 1.5em;
	margin-bottom: 2rem !important;
	border-radius: 4px;
	color: #d32f2f !important;
	line-height: 1.9;
}

.news-campaign strong {
	font-size: 1.1em;
	color: #b71c1c;
}

/* News List (Grid) */
.news-list {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 2em;
	row-gap: 0;
	border-top: 1px solid #eee;
	margin-top: 1em;
}

.news-list dt {
	grid-column: 1;
	padding: 15px 0;
	border-bottom: 1px solid #eee;
	font-weight: bold;
	color: #4169e1;
	white-space: nowrap;
}

.news-list dd {
	grid-column: 2;
	padding: 15px 0;
	border-bottom: 1px solid #eee;
	margin: 0;
	line-height: 1.9;
}

.news-list dd a {
	text-decoration: none;
	color: #333;
	transition: color 0.2s;
}

.news-list dd a:hover {
	color: #4169e1;
	text-decoration: underline;
}

@media only screen and (max-width: 767px) {
	.news-list {
		display: block;
	}

	.news-list dt {
		padding-bottom: 5px;
		border-bottom: none;
	}

	.news-list dd {
		padding-top: 0;
		margin-bottom: 10px;
	}
}

/* ==========================================================================
   6. Sections (各セクション)
   ========================================================================== */
#content {
	width: auto;
	max-width: 960px;
	margin-top: 1em;
	margin-left: 270px;
	padding-right: 1em;
}

/* --- About Section --- */
#about {
	width: auto;
	max-width: 960px;
	height: auto;
	min-height: 300px;
	background: #fff;
	border: 1px solid #eee;
	margin-bottom: 1em;
	border-radius: 5px;
	padding: 2em;
	box-sizing: border-box;
}

#about div img {
	border: 1px solid #ccc;
}

#about h3 {
	padding: 0;
	margin: 0;
	font-size: 100%;
	margin-left: 1em;
}

#about .grid-layout {
	grid-template-columns: repeat(3, 1fr);
}

@media only screen and (max-width: 767px) {
	#about .grid-layout {
		grid-template-columns: 1fr;
	}
}

/* --- Middle Section --- */
#middle {
	width: auto;
	max-width: 960px;
	min-height: 400px;
	background: #fff;
	border: 1px solid #eee;
	margin-bottom: 1em;
	border-radius: 5px;
	padding: 2em;
	box-sizing: border-box;
}

#middle .block {
	margin-top: 1.1em;
	margin-left: 1.1em;
}

#middle h3 {
	padding: 0;
	margin: 0;
	font-size: 100%;
}

#middle .grid-layout {
	grid-template-columns: repeat(2, 1fr);
}

@media only screen and (max-width: 767px) {
	#middle .grid-layout {
		grid-template-columns: 1fr;
	}
}

/* --- Map-One & Podocom Sections --- */
#map-one {
	width: auto;
	max-width: 960px;
	background: #fff;
	border: 1px solid #eee;
	margin-bottom: 1em;
	border-radius: 8px;
	padding: 2em;
	box-sizing: border-box;
}

#podocom {
	width: auto;
	max-width: 960px;
	background: #fff;
	border: 1px solid #eee;
	margin-bottom: 1em;
	border-radius: 8px;
	padding: 2em;
	box-sizing: border-box;
}

#podocom h3 {
	padding: 0;
	margin: 0;
	font-size: 100%;
}

/* --- Modern Grid Layout --- */
.grid-layout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.grid-layout .block {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #fff;
	padding: 15px;
	border: 1px solid #f0f0f0;
	border-radius: 6px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.grid-layout .block:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	z-index: 1;
}

.grid-layout .block img {
	max-width: 100%;
	height: auto;
}

.grid-layout .block h3 {
	font-size: 15px;
	margin: 0;
	padding: 0;
	line-height: 1.5;
}

.grid-layout .block h3 a {
	text-decoration: none;
	font-weight: bold;
}

.grid-layout .block h3 a:hover {
	color: #4169e1;
}

/* ==========================================================================
   7. Sub Pages (下層ページ共通)
   ========================================================================== */
#atama {
	width: 100%;
	height: 200px;
	z-index: 0;
	position: relative;
	background: url("../img/header.jpg");
}

#karada {
	width: 100%;
	max-width: 1366px;
	background: url("../img/bg.gif");
}

#honbun {
	width: auto;
	max-width: 900px;
	margin-top: 20px;
	margin-left: clamp(220px, 25vw, 290px);
	background-color: #fff;
	padding: 40px;
	box-sizing: border-box;
}



#honbun article {
	line-height: 1.9;
	border-bottom: 3px dotted #ccc;
	margin-right: 1em;
}

/* --- About (Individual Page) --- */
.content-section {
	margin-bottom: 20px;
	line-height: 1.9;
}

.section-body.flex {
	display: flex;
	align-items: flex-start;
	gap: 30px;
}



.rei {
	margin: 0;
	flex-shrink: 0;
}

.about {
	width: auto;
	flex: 1;
}

.content-section dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 5px 15px;
	align-items: baseline;
	margin-top: 20px;
	margin-bottom: 20px;
}

.content-section dt strong {
	font-weight: bold;
}

.content-section dt::after {
	content: "＝";
	margin-left: 10px;
	font-weight: normal;
}

.content-section dd {
	margin: 0;
}

.content-section ol {
	list-style: decimal;
	margin-left: 1.5em;
	margin-top: 10px;
	margin-bottom: 10px;
}

.content-section li {
	list-style: inherit;
	margin-bottom: 5px;
}

/* --- 2-Column Content Grid --- */
.content-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-bottom: 20px;
}

@media only screen and (max-width: 900px) {
	.content-grid {
		grid-template-columns: 1fr;
	}
}

.process-item h3 {
	font-weight: bold;
	margin-bottom: 10px;
	font-size: 1.1em;
}

.process-item img {
	width: 100%;
	height: auto;
}

.text {
	margin-bottom: 20px;
}

/* ==========================================================================
   8. Page-specific Styles (ページ固有)
   ========================================================================== */

/* --- 事例ページ (Cases) --- */
.case-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}

@media only screen and (max-width: 900px) {
	.case-list {
		grid-template-columns: 1fr;
	}
}

.case-item {
	margin-bottom: 0;
}

.case-item h3 {
	font-weight: bold;
	margin-bottom: 15px;
	border-left: 8px solid #ff7f50;
	padding-left: 12px;
	line-height: 1.5;
}

.case-images {
	display: block;
}

.case-images figure {
	width: 100%;
	margin: 0;
	margin-bottom: 0;
}

.case-images img {
	width: 100%;
	height: auto;
	vertical-align: bottom;
}

.case-images figcaption {
	font-size: 0.9em;
	padding: 5px 0 15px 0;
	font-weight: bold;
}

p.reference {
	text-align: right;
	font-size: 0.9em;
	color: #666;
	margin-top: 20px;
}

@media only screen and (max-width: 600px) {
	.case-images {
		flex-direction: column;
	}

	.case-images figure {
		width: 100%;
		margin-bottom: 20px;
	}
}

/* --- 手順グリッド (Step Grid) --- */
.step-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin-top: 30px;
}

.step-grid p {
	margin-bottom: 0;
}

.step-grid img {
	width: 100%;
	height: auto;
	display: block;
	margin-bottom: 10px;
}

@media only screen and (max-width: 767px) {
	.step-grid {
		grid-template-columns: 1fr;
	}
}

/* --- セミナー (Seminar Pages) --- */
h3+.sem_dis {
	border-right: 3px dotted #ccc;
}

.sem_dis {
	width: 395px;
}

.sem_dis ol {
	list-style: decimal;
	margin-left: 1.5em;
	margin-top: 10px;
}

.sem_dis li {
	margin-bottom: 5px;
}

/* --- 講師 (Instructor) --- */
.koushi {
	margin-bottom: 2em;
}

/* --- カタログ (Catalog) --- */
#catalog {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	justify-content: space-between;
}

#catalog .catalog-item {
	width: 220px;
	border-bottom: 3px dotted #ccc;
	padding-bottom: 20px;
	margin-bottom: 20px;
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
}

#catalog .catalog-item img {
	margin-bottom: 15px;
	align-self: center;
}

#catalog .submit {
	margin: 20px 0;
	width: 100%;
	border-bottom: none;
	height: 70px;
	text-align: center;
}

/* --- アクセス (Access / Table) --- */
table {
	width: 100%;
	border-top: 1px solid #b9d6df;
	border-left: 1px solid #b9d6df;
	border-right: 1px solid #b9d6df;
	border-collapse: collapse;
}

table tr td {
	border-bottom: 1px solid #b9d6df;
}

td {
	padding: 10px;
	border-right: 1px solid #b9d6df;
}

th {
	padding: 10px;
	border-bottom: 1px solid #b9d6df;
	border-right: 1px solid #b9d6df;
}

/* --- Google Map (Responsive) --- */
.google-map {
	width: 100%;
	max-width: 100%;
	height: 350px;
	border: 0;
	display: block;
}

@media only screen and (max-width: 767px) {
	.google-map {
		height: 300px;
	}
}

/* ==========================================================================
   9. Medical Map Pages (医療機関マップ)
   ========================================================================== */

/* --- Map Navigation (地図 + 地域リスト) --- */
.medical-map-nav {
	display: flex;
	align-items: flex-start;
	justify-content: space-evenly;
}

.medical-map-nav img {
	max-width: 490px;
	height: auto;
}

@media only screen and (max-width: 900px) {
	.medical-map-nav {
		flex-direction: column;
		align-items: center;
	}

	.medical-map-nav img {
		max-width: 100%;
	}
}

/* --- Notice Section (注意事項) --- */
.medical-notice {
	background: #f8f9fa;
	border-left: 4px solid #4169e1;
	border-radius: 0 6px 6px 0;
	padding: 1.5em 2em;
}

.medical-notice h2 {
	font-size: 1.1em;
	font-weight: 600;
	color: #333;
	margin: 0 0 0.8em 0;
	letter-spacing: 0.03em;
}

.medical-notice p {
	font-size: 0.9em;
	color: #555;
	line-height: 1.9;
	margin: 0;
}

.medical-notice b {
	color: #d32f2f;
}

/* --- Map List Buttons --- */
#map_list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 380px;
}

#map_list li {
	margin: 0;
}

#map_list li a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	width: 100%;
	background-color: #4169e1;
	color: #fff;
	border: none;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.2s, transform 0.1s;
	font-size: 14px;
	line-height: 1.2;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
}

#map_list li a:hover {
	background-color: #6495ed;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#map_list li b {
	font-weight: bold;
}

#kikan_moushi {
	margin-bottom: 400px;
}



/* --- Map List & District --- */
#map h4 {
	height: 0px;
	font-size: 125%;
}

.ken {
	background-color: #87cefa;
}

#district {
	margin: 20px 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 10px;
	width: 100%;
}

#district div {
	text-align: center;
}

#district div a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	width: 100%;
	background-color: #4169e1;
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.2s, transform 0.1s;
	font-size: 14px;
	line-height: 1.2;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#district div a:hover {
	background-color: #6495ed;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#district .current a {
	color: #d4a017;
}

/* ==========================================================================
   Hamburger Menu Toggle (PC: hidden)
   ========================================================================== */
#menu-toggle {
	display: none;
}

/* ==========================================================================
   SP Responsive (≤900px)
   ========================================================================== */
@media only screen and (max-width: 900px) {

	/* --- Header: top bar --- */
	header {
		width: 100%;
		height: 60px;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 999;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 15px;
		box-sizing: border-box;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	}

	#logo {
		flex-shrink: 0;
	}

	#logo img {
		height: 40px;
		width: auto;
	}

	/* --- Hamburger Button --- */
	#menu-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 5px;
		width: 44px;
		height: 44px;
		background: none;
		border: none;
		cursor: pointer;
		padding: 0;
		z-index: 1001;
		position: relative;
	}

	#menu-toggle span {
		display: block;
		width: 26px;
		height: 3px;
		background-color: #004098;
		border-radius: 2px;
		transition: transform 0.3s ease, opacity 0.3s ease;
	}

	/* ☰ → ✕ animation */
	body.menu-open #menu-toggle span:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

	body.menu-open #menu-toggle span:nth-child(2) {
		opacity: 0;
	}

	body.menu-open #menu-toggle span:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	/* --- Nav overlay --- */
	#menu {
		display: none;
		position: fixed;
		top: 60px;
		left: 0;
		right: 0;
		bottom: 0;
		background: #fff;
		z-index: 998;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 40px;
	}

	body.menu-open #menu {
		display: block;
	}

	/* Scroll lock on body */
	body.menu-open {
		overflow: hidden;
	}

	/* --- Mobile Nav Items --- */
	#dropmenu {
		border-bottom: none;
	}

	#dropmenu>.menu-item {
		border-bottom: 1px solid #e0e0e0;
	}

	.nav-access {
		border-width: 1px !important;
	}

	.global-nav-item {
		font-size: 16px;
		padding: 14px 15px 14px 20px;
	}

	.global-nav-item::before {
		width: 6px;
		height: 50%;
	}

	/* --- Sub-menu: accordion (not hover flyout) --- */
	#dropmenu li ul {
		position: static;
		width: 100%;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.35s ease;
	}

	#dropmenu li.submenu-open ul {
		max-height: 500px;
	}

	#dropmenu li ul li {
		height: auto;
		overflow: visible;
	}

	#dropmenu li ul li a {
		padding: 12px 15px 12px 35px;
		font-size: 14px;
		border: none;
		border-top: 1px solid #f0f0f0;
		background: #f9f9f9;
	}

	#dropmenu li:hover ul li {
		height: auto;
	}

	/* Arrow indicator for items with sub-menu */
	.menu-item-has-children>.global-nav-item::after {
		content: "▼";
		position: absolute;
		right: 15px;
		top: 50%;
		transform: translateY(-50%);
		font-size: 10px;
		color: #999;
		transition: transform 0.3s ease;
	}

	.menu-item-has-children.submenu-open>.global-nav-item::after {
		transform: translateY(-50%) rotate(180deg);
	}

	/* --- Seminar & Link sections: hide on mobile nav --- */

	.seminar-block {
		padding-left: 0;
		text-align: center !important;
	}

	.seminar-title-link img {
		margin: 0 auto;
	}

	.seminar-loc {
		border-left: none;
		padding-left: 0;
	}

	.seminar-date-list {
		margin: 0;
	}

	.seminar-date-list li {
		text-align: center;
	}

	#link li {
		margin-bottom: 10px;
	}

	#link li img {
		max-width: 160px;
	}

	/* --- Main content adjustments --- */
	#wrapper {
		padding-top: 40px;
	}

	#catch_back {
		margin-left: 0;
		margin-bottom: 1em;
		height: 450px;
		background-position: center center;
	}

	#atama {
		height: 100px;
		background-size: cover;
		background-position: center;
	}

	#karada {
		max-width: 100%;
	}

	#honbun {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-top: 0;
		padding: 20px;
		min-height: auto;
	}

	.midasi {
		font-size: 20px;
		margin-bottom: 10px;
	}

	.komidasi {
		font-size: 18px;
		border-left-width: 5px;
		padding-left: 8px;
		margin-bottom: 15px;
	}

	.section-body.flex {
		flex-direction: column;
	}

	img.rei {
		width: 50%;
		height: auto;
		display: block;
		margin: 0 auto;
	}

	a.rei {
		display: block;
		width: 100%;
	}

	a.rei img {
		max-width: 100%;
		height: auto;
	}

	#news-section,
	#map-one,
	#about,
	#middle,
	#podocom,
	.grid-layout .block {
		padding: 1em;
	}

	#inner,
	#content {
		margin-left: 0;
		padding-left: 8px;
		padding-right: 8px;
		box-sizing: border-box;
	}

	#footer {
		padding: 30px 15px;
	}

	.footer-nav {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
		gap: 30px 15px;
	}

	.footer-col.company-info {
		grid-column: 1 / -1;
		margin-top: 10px;
		text-align: center;
	}

	/* --- Typography adjustments --- */
	body {
		font-size: 14px;
	}

	.catch_head {
		top: 5%;
	}

	#catch h1 {
		font-size: 22px;
		padding: 0 10px;
	}

	#catch p {
		font-size: 16px;
		margin-top: 0.5em;
	}

	#catch h2 {
		font-size: 13px;
		margin-top: 0.5em;
		padding: 0 10px;
	}

	#en {
		gap: 10px;
		bottom: 15%;
	}

	#en p {
		font-size: 14px;
	}

	#en span {
		font-size: 16px;
	}

	#en div {
		width: 90px;
		height: 90px;
	}

	.section-title {
		font-size: 18px;
		border-left-width: 5px;
		padding: 0 10px;
		margin-bottom: 15px;
	}

	.grid-layout .block h3 {
		font-size: 14px;
	}

	.news-campaign strong {
		font-size: 1em;
	}

	.news-list {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.news-list dt {
		grid-column: 1;
		padding: 10px 0 5px 0;
		border-bottom: none;
	}

	.news-list dd {
		grid-column: 1;
		padding: 0 0 10px 0;
	}

	.news-list dd:last-child {
		border-width: 0;
		padding: 0;
	}

	#honbun article {
		margin-right: 0;
		border-bottom: none;
	}

	#honbun img {
		max-width: 100%;
		height: auto;
	}

	.column-nav {
		margin-top: 30px;
		text-align: center;
	}

	.column-nav a {
		display: inline-block;
		margin: 5px 10px;
		padding: 10px 20px;
		background: #f0f0f0;
		border-radius: 4px;
		text-decoration: none;
	}

	.content-section dl {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.content-section dt::after {
		content: none;
	}

	/* --- Table form (onepoint etc.) --- */
	table,
	table tbody,
	table tr,
	table td,
	table th {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	table td {
		border-right: none;
	}

	table td:first-child {
		background-color: #87cefa;
	}

	table tr:last-child td {
		background-color: #fff;
	}

	table td input[type="text"] {
		width: 100%;
		box-sizing: border-box;
	}

	table td.submit {
		text-align: center;
	}

	/* --- 症例写真ボタン --- */
	input[type="button"] {
		width: 100%;
		box-sizing: border-box;
		white-space: normal;
		padding: 12px;
		font-size: 14px;
	}

	/* --- カタログ (Catalog) --- */
	#catalog {
		gap: 20px;
	}

	#catalog .catalog-item {
		width: 100%;
	}

	#catalog .catalog-item img {
		max-width: 100%;
		height: auto;
	}

	/* --- セミナー (Seminar) --- */
	.sem_dis {
		width: 100%;
	}

	h3+.sem_dis {
		border-right: none;
	}

	table th {
		display: block;
		width: 100%;
		box-sizing: border-box;
		text-align: left;
	}

	/* Hide the first row containing column headers like "日程", "時間" for specific tables */
	table.sp-hide-first-row thead:first-child {
		display: none;
	}

	table tr {
		display: block;
		border-bottom: 2px solid #333;
	}

	table tr:last-child {
		border-width: 0;
	}

	/* --- 医療機関テーブル (Medical Region) --- */
	#map thead {
		display: none;
	}

	#map td {
		display: block;
		width: 100%;
		box-sizing: border-box;
		text-align: left;
	}

	/* --- フォーム要素 (Moushikomi etc.) --- */
	select {
		width: 100%;
		box-sizing: border-box;
	}

	textarea {
		width: 100% !important;
		box-sizing: border-box;
	}

	input[type="submit"] {
		width: 100%;
		box-sizing: border-box;
		padding: 12px;
		font-size: 16px;
	}

	/* --- Step Grid & iframe (Podofix etc.) --- */
	.step-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	iframe,
	object {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
	}

	iframe.google-map {
		height: 300px;
		aspect-ratio: auto;
	}
}