*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	font-family: "Avenir", Verdana, "NotoSansCJKjp", Yu Gothic Medium, "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, sans-serif;
	line-height: 1.6;
	background-color: #f5f7fa;
	color: #222;
	font-size: 1rem;
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
blockquote {
	margin: 0;
	padding: 0;
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: #282424;
	text-decoration: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.main {
	max-width: 1200px;
	margin: 30px auto;
	display: flex;
	gap: 30px;
	padding: 0 15px;
}

.main-content {
	flex: 1;
	min-width: 0;
}

.content-sidebar {
	width: 280px;
	min-width: 250px;
	flex-shrink: 1;
}

.site-header {
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	padding: 15px 0;
	background-color: #fff;
}

.site-logo img {
	height: 40px;
	display: block;
}

.main-navigation {
	display: flex;
	align-items: center;
	flex-grow: 1;
}

.navigation-menu {
	display: flex;
	margin: 0 auto;
}

.navigation-menu li {
	padding: 0 15px;
}

.navigation-menu a {
	display: block;
	padding: 10px;
	transition: background-color 0.3s;
	white-space: nowrap;
}

.position-relative {
	position: relative;
}

.category-submenu {
	display: none;
	position: absolute;
	top: 65px;
	left: 15px;
	width: calc(100% - 30px);
	background-color: white;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	padding: 8px 0;
	z-index: 1001;
}

.category-submenu ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.category-submenu.show {
	display: block;
}

.category-submenu a {
	padding: 5px 16px;
}

.header-actions {
	display: flex;
	align-items: center;
}

.search-box {
	position: relative;
	margin-right: 15px;
}

.search-box i {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #aaa;
}

.search-box input {
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 8px 8px 8px 35px;
	transition: width 0.3s;
	width: 150px;
	font-size: 14px;
	border-radius: 20px;
}

.search-box input:focus {
	outline: none;
	width: 200px;
}

.login-button {
	background-color: #20d2b3;
	color: white;
	border-radius: 4px;
	transition: background-color 0.3s;
	white-space: nowrap;

	display: inline-flex;
	align-items: center;

	font-size: 14px;
	padding: 6px 15px;
	border: 1px solid #20d2b3;
	border-radius: 20px;
}

.login-button i {
	margin-right: 8px;
}

.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
}


.content-filters {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #fff;
	border-radius: 4px;
	padding: 8px 10px;
	margin-bottom: 15px;
	box-shadow: 0px 0px 2px rgb(98 124 153 / 10%);
}

.filter-tab {
	padding: 5px 15px;
	cursor: pointer;
	border-radius: 20px;
	font-size: 14px;
}


.filter-tab.active {
	background-color: #314DB4;
	color: white;
}

.filter-actions {
	display: flex;
	align-items: center;
}

.filter-actions .filter-tab {
	background-color: #f4f4f4;
	margin-left: 10px;
	border-radius: 4px;
}


.article-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.article-preview {
	background-color: #fff;
	border-radius: 4px;
	padding: 15px;
	display: flex;
	transition: all 0.3s;
	box-shadow: 0px 0px 2px rgb(98 124 153 / 10%);
}

.article-preview:hover {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}


.article-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.article-heading {
	font-size: 15px;
	font-weight: 500;
	margin-bottom: 8px;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.article-metadata {
	margin-top: auto;
	padding-top: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #767676;
	font-size: 12px;
}

.article-metadata span {
	display: flex;
	align-items: center;
	margin-right: 15px;
}

.article-metadata i {
	margin-right: 3px;
	vertical-align: middle;
	display: inline-flex;
	align-items: center;
}

.article-heading a {
    display: block;
}

.article-metadata a {
    padding: 8px;
    margin: -8px;
    display: inline-block;
}

.site-footer {
	background-color: #fff;
	color: #282424;
	padding: 30px 20px;
	text-align: center;
	margin-top: 40px;
}

.footer-content {
	max-width: 960px;
	margin: 0 auto;
}

.footer-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15px 25px;
}

.footer-nav-item {
	display: inline-block;
}

.footer-nav-link {
	color: #282424;
	text-decoration: none;
	font-size: 0.85em;
	opacity: 0.9;
	transition: opacity 0.3s ease, text-decoration 0.3s ease;
}

.footer-nav-list__link:hover {
	opacity: 1;
	text-decoration: underline;
}

.article-grid-single-column {
	grid-template-columns: 1fr;
}

.fw-bold {
	font-weight: 600;
}

.article-excerpt {
	font-size: 14px;
	color: #666;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-height: 1.8;
	margin: 10px 0 15px 0;
}

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	list-style: none;
	margin-top: 30px;
	font-size: 14px;
	gap: 8px;
}

.page-item {
	margin: 0;
}

.page-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 12px;
	border-radius: 4px;
	background-color: #f7f7f8;
	color: #999;
	text-decoration: none;
	transition: all 0.3s ease;
}

.page-link:hover {
	color: #4e6ef2;	
	border-color: #4e6ef2;
}

.page-item.active .page-link {
	background-color: #4e6ef2;
	border-color: #4e6ef2;
	color: #fff;
}

.category-title {
	font-size: inherit;
	font-weight: normal;
}

.article-detail {
	background-color: #fff;
	box-shadow: 0px 0px 2px rgb(98 124 153 / 10%);
	padding: 20px;
}

.article-detail-title {
	margin-bottom: 20px;
	font-size: clamp(1.2rem, 2vw, 1.4rem);
}

.article-detail-meta {
	color: #767676;
	margin-bottom: 15px;
	font-size: 14px;
}

.article-detail-meta span:last-child {
	margin-left: 20px;
}

.article-detail-content {
	border-bottom: 1px solid #F5F6F7;
	padding-bottom: 20px;
	line-height: 1.8;
	overflow-wrap: break-word;
}

.medical-response:last-of-type .article-detail-content {
	border-bottom: none;
}

.article-detail-content p,
.article-detail-content ul,
.article-detail-content ol,
.article-detail-content h2,
.article-detail-content table,
.article-detail-content blockquote {
	margin-bottom: 20px;
}

.medical-response {
	padding-top: 20px;
}

.medical-response .user {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.medical-response .user img {
	display: inline-block;
	margin-right: 15px;
}

.article-detail-content p:not(:last-child) {
	margin-bottom: 20px;
}

.article-detail-content p:last-child {
	margin-bottom: 0;
}

.disclaimer-notice {
	background-color: #fafafa;
	padding: 15px;
	font-size: 0.875rem;
	color: #324646;
	line-height: 1.8;
	margin-top: 20px;
	border-radius: 4px;
	box-shadow: 0px 0px 2px rgb(98 124 153 / 10%);
}


.related-articles {
	background-color: #fff;
	box-shadow: 0px 0px 2px rgb(98 124 153 / 10%);
	display: grid;
	grid-template-rows: auto;
	gap: 10px;
	padding: 15px;
	margin-top: 20px;
}

.related-articles li::before {
  content: "";
  display: inline-block;
  position: static;
  margin-right: 4px;
  margin-top: -3px;
  width: 12px;
  height: 12px;
  vertical-align: middle;
  background:
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAM1BMVEUAAAD/YGD/Xl7/X1//a2v/X1//enr/X1//YGD/X1//b2//X1//X1//YGD/YWH/Xl7/Xl6tC6eVAAAAEHRSTlMAgOzLE2YCmTV5CqWTUkk2rbJclgAAAIRJREFUSMftlMEKgCAQRMtVU0vb///aIII5tnNYKPCdffAQnWXyFVrdUyTOZ1HVkLJZ6HojxSqs+rBFSkCXTUAXIaCLEND1LqCLENBFCOiyCOgiBHRRgoZuFMDJCgctOCeF4XqtUlyeBmpcnjdqPL+oFI+ZqeyQDXYqG8bYPvc1LpN/cQEDvh+z6ML+gAAAAABJRU5ErkJggg==) no-repeat 50%;
    background-size: auto;
  background-size: auto;
  background-size: auto;
  background-size: cover;
}

.sidebar-section {
	background-color: #fff;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0px 0px 2px rgb(98 124 153 / 10%);
}

.sidebar-section:last-of-type {
	margin-bottom: 0;
}

.sidebar-section-title {
	font-size: 1.1em;
	color: #314DB4;
	margin-top: 0;
	border-bottom: 1px solid #eee;
	padding-bottom: 15px;
	font-weight: 600;
}

.sidebar-category-list {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.95em;
}

.sidebar-category-item {
	padding-bottom: 10px;
	padding-top: 10px;
	border-bottom: 1px dotted #e6e6e6;
}

.sidebar-category-item:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.sidebar-category-link {
	color: #333;
	text-decoration: none;
	display: block;
	transition: color 0.3s ease;
	padding: 5px 0;
}

.article-thumbnail {
	position: relative;
	overflow: hidden;
	margin-right: 15px;
}

.article-thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
}

.article-thumbnail img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	object-position: center;
}

.breadcrumb {
	display: flex;
	white-space: nowrap;
	overflow: hidden;
	list-style: none;
	font-size: 0.75rem;
	max-width: 100%;
	position: relative;
	padding: 7px 0;
	margin: 0;
}

.breadcrumb-item {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.breadcrumb-item.active {
	flex-shrink: 1;
	min-width: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	border-top: solid 1px grey;
	border-right: solid 1px grey;
	transform: rotate(45deg);
	margin: 0 0.6rem 0 0.3rem;
}

.breadcrumb-item a {
	color: #767676;
	text-decoration: none;
}

.breadcrumb .active {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: block;
	max-width: 300px;
	flex-shrink: 1;
}

.list-page .article-heading {
	font-size: 18px;
}

.list-page .breadcrumb-navigation {
	margin-bottom: 15px;
}

.list-page .breadcrumb-navigation .breadcrumb {
	background-color: #fff;
	border-radius: 4px;
	padding: 10px 15px;
	box-shadow: 0px 0px 2px rgb(98 124 153 / 10%);
	margin: 0;
}

.category-section {
	margin: 0 0 2rem 0;
	padding: 1.5rem;
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0px 0px 2px rgb(98 124 153 / 10%);
}

.category-title {
	font-size: 1.2rem;
	font-weight: bold;
	color: #333;
	margin-bottom: 0.8rem;
	border-bottom: 1px dotted #20d2b3;
	padding-bottom: 0.5rem;
}

.category-description {
	color: #666;
	line-height: 1.6;
	font-size: 0.95rem;
}

.category-description p {
	margin: 0;
}

.other-header {
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	padding: 15px 0;
	background-color: #fff;
	margin-bottom: 20px;
}

.other-header-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.other-logo img {
	height: 40px;
	display: block;
}

.other-container {
	max-width: 800px;
	margin: 50px auto;
	padding: 40px;
	background-color: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.other-container h1,
.other-container h2 {
	color: #333;
	margin-bottom: 20px;
}

.other-container h1 {
	font-size: 1.6rem;
}

.other-container h2 {
	font-size: 1.2rem;
}

.other-container p {
	color: #555;
	line-height: 1.5;
	margin-bottom: 20px;
}

.other-container ul {
	list-style: disc;
	margin-left: 20px;
	margin-bottom: 15px;
}

.other-container ol {
	list-style: decimal;
	margin-left: 20px;
	margin-bottom: 15px;
}

.other-container li {
	margin-bottom: 8px;
	color: #555;
	line-height: 1.5;
}

.login-container {
	margin-top: 100px;
	background-color: #fff;
	padding: 20px 40px;
	border-radius: 5px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	max-width: 400px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.login_form_top h1 {
	text-align: center;
	margin-bottom: 10px;
}

.login_form_top p {
	text-align: center;
	font-size: 14px;
	color: #666;
	margin-bottom: 20px;
}

.form-group {
	margin-bottom: 15px;
}

.form-group label {
	display: block;
	font-weight: bold;
	margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	box-sizing: border-box;
}

button[type="submit"] {
	width: 100%;
	padding: 10px;
	background-color: #007bff;
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 16px;
}

button[type="submit"]:hover {
	background-color: #0056b3;
}

.login_form_sub {
	text-align: center;
	margin-top: 15px;
}

.login_form_sub a {
	color: #007bff;
	text-decoration: none;
	font-size: 14px;
	margin: 0 10px;
}

.login_form_sub a:hover {
	text-decoration: underline;
}

.message {
	text-align: center;
	margin-bottom: 15px;
	font-weight: bold;
}

.message.success {
	color: #28a745;
}

.message.error {
	color: #dc3545;
}

.google-login-section {
	margin-top: 20px;
}

@media (max-width: 1024px) {
	.main {
		gap: 20px;
	}
	
	.content-sidebar {
		width: 240px;
		min-width: 220px;
	}
}

@media (max-width: 968px) {
	.main {
		flex-direction: column;
		gap: 20px;
	}
	
	.content-sidebar {
		width: 100%;
		min-width: auto;
	}
	
	.sidebar-category-list {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
		gap: 8px;
		margin: 0;
		padding: 0;
	}
	
	.sidebar-category-item {
		margin: 0;
		padding: 0;
		padding-top: 5px;
		border-bottom: none;
	}
	
	.sidebar-category-link {
		background-color: #f8f9fa;
		border: 1px solid #e9ecef;
		border-radius: 6px;
		padding: 8px 12px;
		text-align: center;
		font-size: 14px;
		transition: all 0.3s ease;
		display: block;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	
	.sidebar-category-link:hover {
		background-color: #314DB4;
		color: white;
		border-color: #314DB4;
	}

	.sidebar-section-title {
		margin-bottom: 15px;
	}
}

@media screen and (max-width: 768px) {
	.container {
		flex-wrap: wrap;
	}

	.mobile-menu-toggle {
		display: block;
	}

	.main-navigation {
		display: none;
		flex-direction: column;
		width: 100%;
		margin-top: 20px;
		align-items: stretch;
	}

	.main-navigation.show {
		display: flex;
	}

	.navigation-menu {
		margin: 0;
		flex-direction: column;
		width: 100%;
	}

	.navigation-menu li {
		text-align: center;
		border-top: 1px solid #eee;
	}

	.category-submenu {
		position: static;
		display: none;
		box-shadow: none;
		width: 100%;
		background-color: transparent;
	}

	.category-submenu a {
		padding: 0;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.category-submenu.show {
		display: block;
	}

	.header-actions {
		flex-direction: column;
		width: 100%;
		padding: 15px 0;
		border-top: 1px solid #eee;
	}

	.search-box {
		margin-right: 0;
		margin-bottom: 15px;
		width: 100%;
	}

	.search-box input {
		width: 100%;
	}

	.search-box input:focus {
		width: 100%;
	}

	.login-button {
		width: 100%;
		justify-content: center;
	}
	
	.article-grid {
		grid-template-columns: 1fr;
	}

	.footer .container {
		display: flex;
		justify-content: unset;
		text-align: center;
		flex-wrap: wrap;
	}

	.footer .container span {
		width: 100%;
	}

	.footer a {
		margin: 0 10px;
	}

	.footer span:last-child {
		margin-top: 15px;
	}
}

@media (max-width: 600px) {
	.site-footer {
		padding: 25px 15px;
	}

	.footer-logo__main {
		font-size: 1.8em;
	}

	.footer-nav-list {
		gap: 10px 15px;
		flex-direction: column;
		align-items: center;
	}
}