@charset "UTF-8";
/* ============================================
   ブログ（一覧 / カテゴリアーカイブ / 記事詳細）
   design: ALION Blog.dc.html
============================================ */

.blg {
	/* 設計稿は body に background:#fff を持っている。テーマの body には背景指定が無く、
	   背景を持たないセクションはブラウザのキャンバス色が透ける（ダークモードで黒くなる）ので、
	   ページラッパー側で塞ぐ */
	background-color: #fff;
	color: #1A212F;
	/* 設計稿の main が overflow:hidden。ヒーローのマーキーが右へはみ出すため、
	   html,body の overflow-x:clip に頼らずここでも断ち切っておく */
	overflow: hidden;
}

/* page.css の svg{width:100%;height:100%} を打ち消す */
.blg svg,
.blgSingle svg {
	width: auto;
	height: auto;
	flex: 0 0 auto;
}

.blg-inner {
	width: 90%;
	margin: 0 auto;
	max-width: 1200px;
}

/* ---- Hero ---- */
.blgHero {
	position: relative;
	background: #1A212F;
	/* マーキーの発生源なのでここにも overflow:hidden を必ず付ける */
	overflow: hidden;
	padding: 172px 0 80px;
}

.blgHero-marquee {
	position: absolute;
	left: 0;
	bottom: -14px;
	z-index: 0;
	display: flex;
	width: max-content;
	animation: blgMqL 60s linear infinite;
	pointer-events: none;
}

.blgHero-marquee span {
	font-family: 'Chillax', 'Chillax-local', sans-serif;
	font-size: 200px;
	font-weight: 500;
	line-height: .9;
	letter-spacing: normal;
	color: rgba(255, 255, 255, .05);
	white-space: nowrap;
	padding-right: 70px;
	flex: 0 0 auto;
}

/* 同じ文言を2つ並べて -50% 送るとつなぎ目が見えない */
@keyframes blgMqL {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.blgHero-inner {
	position: relative;
	z-index: 1;
	width: 90%;
	margin: 0 auto;
	max-width: 1200px;
	color: #fff;
}

.blgHero-tag {
	display: inline-block;
	font-size: 14px;
	padding: 4px 14px;
	border-radius: 100px;
	color: #fff;
	background-color: #005FFF;
	font-weight: 600;
	line-height: 160%;
	letter-spacing: normal;
}

.blgHero-ttl {
	font-family: 'Chillax', 'Chillax-local', sans-serif;
	font-size: min(112px, 13vw);
	line-height: 104%;
	letter-spacing: normal;
	font-weight: 500;
	margin-top: 16px;
	color: #fff;
}

.blgHero-lead {
	font-size: min(17px, 4vw);
	line-height: 200%;
	letter-spacing: normal;
	color: rgba(255, 255, 255, .74);
	margin-top: 20px;
	max-width: 680px;
	text-wrap: pretty;
}

/* ---- Posts ---- */
.blgPosts {
	background: #fff;
	padding: 70px 0 110px;
}

/* ---- カテゴリ絞り込みタブ ----
   設計稿はクライアント側 state のボタンだが、記事が400件超あり全件をJSで持てないので
   各カテゴリアーカイブへのリンク（<a>）として実装している。見た目は設計稿のまま */
.blgTabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.blgTabs-item {
	padding: 11px 18px;
	border-radius: 100px;
	font-size: 14px;
	letter-spacing: normal;
	white-space: nowrap;
	transition: all .25s;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: inherit;
	border: 1px solid #E4E8EE;
	background: #fff;
	color: #5B6472;
	font-weight: 600;
}

.blgTabs-item:hover {
	border-color: #1A212F;
	color: #1A212F;
}

.blgTabs-item[aria-current="page"] {
	border-color: #1A212F;
	background: #1A212F;
	color: #fff;
	font-weight: 700;
}

.blgTabs-count {
	font-size: 11px;
	font-weight: 700;
	border-radius: 100px;
	padding: 1px 8px;
	min-width: 22px;
	text-align: center;
	line-height: 1.6;
	color: #8A94A3;
	background: #F1F3F6;
}

.blgTabs-item[aria-current="page"] .blgTabs-count {
	color: #1A212F;
	background: #fff;
}

/* ---- 記事カード ---- */
.blgList {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 44px 30px;
	margin-top: 38px;
}

.blgPost {
	transition: transform .3s ease;
	/* grid のトラック幅を超えて伸びないように（長いタイトルで横スクロールが出るのを防ぐ） */
	min-width: 0;
}

.blgPost:hover {
	transform: translateY(-5px);
}

.blgPost > a {
	display: block;
	color: inherit;
}

.blgPost-thumb {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	aspect-ratio: 16 / 9;
	background: #EEF2F7;
	box-shadow: 0 14px 34px rgba(20, 40, 80, .10);
	border: 1px solid #EDF1F6;
}

.blgPost-img {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.blgPost:hover .blgPost-img {
	transform: scale(1.05);
}

.blgPost-cat {
	position: absolute;
	top: 13px;
	left: 13px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	color: #1A212F;
	background: rgba(255, 255, 255, .93);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 100px;
	padding: 6px 13px;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.blgPost-body {
	padding-top: 18px;
}

.blgPost-date {
	font-size: 12px;
	color: #8A94A3;
	letter-spacing: normal;
	line-height: 1.5;
}

.blgPost-ttl {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: normal;
	margin-top: 6px;
	color: #1A212F;
	text-wrap: pretty;
}

.blgPost-excerpt {
	font-size: 13px;
	line-height: 1.95;
	color: #5B6472;
	letter-spacing: normal;
	margin-top: 10px;
	text-wrap: pretty;
}

.blgEmpty {
	text-align: center;
	color: #8A94A3;
	padding: 60px 0;
	font-size: 15px;
	letter-spacing: normal;
}

/* ---- ページャ ---- */
.blgPager {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	margin-top: 64px;
	padding-top: 36px;
	border-top: 1px solid #EEF1F5;
}

.blgPager-range {
	font-size: 13px;
	color: #8A94A3;
	letter-spacing: normal;
}

.blgPager-nav {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.blgPager-arrow {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid #E4E8EE;
	background: #fff;
	color: #1A212F;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all .25s;
	flex: 0 0 auto;
}

.blgPager-arrow:hover {
	border-color: #1A212F;
}

.blgPager-arrow.is-disabled {
	cursor: default;
	opacity: .35;
}

.blgPager-arrow.is-disabled:hover {
	border-color: #E4E8EE;
}

/* paginate_links() が吐く .page-numbers を設計稿の丸ボタンに寄せる。
   post.css の .page-numbers（paging.php 用の ul スタイル）を上書きする必要があるため
   必ず .blgPager-nav でスコープを切ること */
.blgPager-nav .page-numbers {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	font-size: 14px;
	font-family: inherit;
	letter-spacing: normal;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all .25s;
	flex: 0 0 auto;
	border: 1px solid #E4E8EE;
	background: #fff;
	color: #5B6472;
	font-weight: 600;
}

.blgPager-nav a.page-numbers:hover {
	border-color: #1A212F;
	color: #1A212F;
}

.blgPager-nav .page-numbers.current {
	border: 1px solid #1A212F;
	background: #1A212F;
	color: #fff;
	font-weight: 700;
}

.blgPager-nav .page-numbers.dots {
	width: 22px;
	border-color: transparent;
	background: transparent;
	color: #8A94A3;
}

/* ============================================
   記事詳細（設計稿には無いので、一覧と地続きに見える最小限の調整のみ）
   ※ the_content() の中身（.singleBody）は post.css の担当。ここでは触らない
============================================ */
.blgSingle {
	color: #1A212F;
	/* .blg と同じ理由。記事詳細はラッパーを持たないのでここで背景を敷く
	   （敷かないとブラウザのキャンバス色が透けて、ダークモードで本文が読めなくなる） */
	background-color: #fff;
}

.blgSingle-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #8A94A3;
	letter-spacing: normal;
	line-height: 1.6;
	margin-bottom: 22px;
	transition: color .25s;
}

.blgSingle-back:hover {
	color: #1A212F;
}

.blgSingle-back svg {
	width: 14px;
	height: 14px;
	display: block;
}

/* 一覧カードと同じ配色に寄せる（component.css / post.css の色を上書き） */
.blgSingle .blog_list_day {
	color: #8A94A3;
	font-size: 12px;
	line-height: 1.5;
	letter-spacing: normal;
}

.blgSingle .articleTtl {
	color: #1A212F;
	text-wrap: pretty;
}

.blgSingle .singleCategory-listItem {
	border: 1px solid #E4E8EE;
	background: #F1F3F6;
	color: #1A212F;
	font-weight: 700;
	letter-spacing: .03em;
}

.blgSingle-foot {
	margin-top: 64px;
	padding-top: 36px;
	border-top: 1px solid #EEF1F5;
	text-align: center;
}

.blgSingle-backBtn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #1A212F;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: normal;
	padding: 16px 30px;
	border-radius: 100px;
	transition: opacity .3s;
}

.blgSingle-backBtn:hover {
	opacity: .85;
	color: #fff;
}

.blgSingle-backBtn svg {
	width: 15px;
	height: 15px;
	display: block;
}

/* ============================================
   SP
============================================ */
@media screen and (max-width:768px) {

	.blgHero {
		padding: 120px 0 64px;
	}

	.blgHero-marquee span {
		font-size: 100px;
		padding-right: 40px;
	}

	.blgHero-lead {
		margin-top: 18px;
		line-height: 190%;
	}

	.blgPosts {
		padding: 48px 0 72px;
	}

	.blgTabs {
		gap: 8px;
	}

	.blgTabs-item {
		padding: 9px 14px;
		font-size: 13px;
		gap: 7px;
	}

	/* auto-fill は幅が足りなければ自動で1カラムになる（375px 端末で実測1トラック337.5px・溢れなし）。
	   ここでカラム数を固定すると 768px のタブレットで2カラムを潰してしまうので、間隔だけ詰める */
	.blgList {
		gap: 32px;
		margin-top: 28px;
	}

	.blgPost-ttl {
		font-size: 17px;
	}

	.blgPager {
		margin-top: 44px;
		padding-top: 28px;
		gap: 16px;
	}

	.blgPager-nav {
		gap: 8px;
	}

	.blgPager-arrow,
	.blgPager-nav .page-numbers {
		width: 40px;
		height: 40px;
	}

	.blgSingle-foot {
		margin-top: 48px;
		padding-top: 28px;
	}
}
