@charset "UTF-8";

:root {
	--noto-jp-font: 'Noto Sans JP', sans-serif;
	--pink-color: #ff6481;
	--light-pink-color: #fff4f5;
	--border-line-color: #feeaec;
}

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

@media (prefers-reduced-motion: no-preference) {
	:root {
		scroll-behavior: smooth;
	}
}

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

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

b,
strong {
	font-weight: bolder;
}

ol,
ul {
	list-style: none;
}

img,
svg {
	vertical-align: middle;
}

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

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

.header {
	height: 70px;
	width: 100%;
	background: white;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
}

.container {
	width: 786px;
	margin: 0 auto;
	padding: 0 15px;
}

.topbar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.logo {
	display: flex;
	align-items: center;
}

.menu-icon,
.search-icon {
	font-size: 20px;
	cursor: pointer;
	color: #333;
}

.menu-layer,
.search-layer {
	position: absolute;
	top: 71px;
	left: 15px;
	width: calc(100% - 30px);
	background: white;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	display: none;
	padding: 15px;
}

.menu-layer.active,
.search-layer.active {
	display: block;
}

.menu-layer ul {
	display: grid;
	grid-gap: 15px;
	grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 768px) {
	.menu-layer ul {
		grid-template-columns: repeat(3, 1fr);
	}
}



.search-form {
	width: 100%;
}

.search-input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.main {
	margin-top: 90px;
}

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

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


.tab.active {
	background-color: #4e6ef2;
	color: white;
}

.tab-item {
	display: flex;
	align-items: center;
}

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

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

.article-list-cate {
	grid-template-columns: 1fr;
}

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

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

.article-thumb {
	width: 80px;
	height: 80px;
	margin-right: 15px;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

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

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

.article-title,
.card-title {
	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;
}

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

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

.meta-item {
	display: flex;
	align-items: center;
	margin-right: 15px;
}

.meta-item i {
	margin-right: 3px;
}

.index-ad {
	margin: 15px 0;
	background-color: #fff;
	border-radius: 4px;
}

.footer {
	background-color: #fff;
	box-shadow: 0px 0px 2px rgb(98 124 153 / 10%);
	margin-top: 30px;
	font-size: 14px;
	color: #282424;
	padding: 20px 0;
}

.footer .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer a {
	margin-left: 15px;
}

.card-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

.card {
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0px 0px 2px rgb(98 124 153 / 10%);
	display: flex;
	flex-direction: column;
}

.card-title {
	font-size: 15px;
	font-weight: 600;
}

.card-header {
	position: relative;
	height: 146px;
	/* 16:9 比例 */
}

.card-cover {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.card-body {
	padding: 15px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.card-desc {
	font-size: 14px;
	color: #666;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-height: 1.4;
}

.card-footer {
	padding: 12px 15px;
	border-top: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	color: #999;
}

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

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	list-style: none;
	padding: 10px;
	margin: 30px 0;
	font-size: 14px;
	gap: 8px;
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0px 0px 2px rgb(98 124 153 / 10%);
}

.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;
}

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

.content-title {
	font-size: 22px;
	margin-bottom: 20px;
}

.content-sub-title {
	font-size: 18px;
	margin-bottom: 10px;
	margin-top: 20px;
}

.content-main {
	line-height: 1.8;
}

.content-main p,
.content-main h2,
.content-main table,
.content-main blockquote {
	margin-bottom: 20px;
}

.content-main blockquote {
  background-color: #f9f9f9;
  border-left: 5px solid #ccc;
  margin: 1.5em 0 ;
  padding: 1em 1.5em;
  color: #555;
  line-height: 1.6;
}

.content-main blockquote p {
  margin-bottom: 0.8em;
}

.content-main blockquote p:last-child {
  margin-bottom: 0;
}

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

.content-main h2 {
	font-size: 18px;
}

.content-main table {
	width: 100%;
	border-collapse: collapse;
}

.content-main td {
	padding: 10px;
	border: 1px solid #F5F6F7;
}

.content-meta {
	color: #999;
	margin-bottom: 15px;
	font-size: 14px;
}

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

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

.user span {
	margin-left: 15px;
}

.note {
    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 {
	background-color: #fff;
	box-shadow: 0px 0px 2px rgb(98 124 153 / 10%);
	display: grid;
	grid-template-rows: auto;
	gap: 10px;
	padding: 15px;
}

.related-item::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;
}

@media (max-width: 768px) {

	.container {
		width: 100%;
	}

	.menu-layer,
	.search-layer {
		width: 100%;
		left: 0;
	}

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

	.card-container {
		grid-template-columns: repeat(2, 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;
	}
	
	.card-title {
		font-size: 16px;
	}

}

.white {
	color: white;
}

.ml-0 {
	margin-left: 0 !important;
}

.mr-0 {
	margin-right: 0 !important;
}

.ml-10 {
	margin-left: 10px !important;
}

.ml-15 {
	margin-left: 15px !important;
}

.mr-10 {
	margin-right: 10px !important;
}

.mt-20 {
	margin-top: 20px !important;
}

.pt-20 {
	padding-top: 20px !important;
}

.pb-20 {
	padding-bottom: 20px !important;
}