/*
Theme Name: Saikou Column
Theme URI: https://www.saikou-i.co.jp/
Author: SAIKOU
Description: 有限会社彩考 メディカルイラストレーション コラム専用テーマ
Version: 1.7
*/

/* ------------------------------
   基本（公式サイト base.css / style.css を踏襲）
------------------------------ */

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "メイリオ", Meiryo, "ＭＳ Ｐゴシック", sans-serif;
	font-size: 10px;
	color: #333;
	background: #fff;
	line-height: 1.8;
}

a {
	color: #24426b;
	text-decoration: none;
}

a:hover {
	color: #0068b6;
	text-decoration: none;
}

img {
	border: 0;
	max-width: 100%;
	height: auto;
}

ul,
ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.clearfix:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
}

.clearfix {
	zoom: 1;
}

.l_base {
	width: 880px;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

/* ------------------------------
   ヘッダー（assets/header.php / style.css 相当）
------------------------------ */

#header {
	height: auto;
	padding-top: 20px;
}

/* ロゴ下に body の line-height 由来のすき間が乗らないようにする */
#header > div {
	font-size: 0;
	line-height: 0;
	/* ロゴ〜メインナビの間隔（本体よりわずかに詰まりすぎた分の調整） */
	margin-bottom: 5px;
}

#header > div a {
	display: inline-block;
	line-height: 0;
}

#header > div img {
	display: block;
	margin: 0;
}

#nav {
	float: left;
	clear: both;
}

/*
  本体サイトは box-sizing 未指定（content-box）。
  height:34px + padding-bottom:6px = 40px で青三角(hl_mark)の領域を確保。
  テーマ全体の border-box のままだと li が 34px になり、
  sub_nav（30px+margin 10px）より低くなり、帯との間にすき間が空く。
*/
#nav li {
	box-sizing: content-box;
	float: left;
	height: 34px;
	line-height: 34px;
	font-size: 130%;
	margin-right: 45px;
	padding-bottom: 6px;
}

#nav li a {
	display: block;
	background-image: url(/img/nav_link.png);
	background-repeat: no-repeat;
	overflow: hidden;
	text-indent: 100%;
	white-space: nowrap;
}

#nav .nav_home {
	width: 55px;
}

#nav .nav_about {
	width: 73px;
	background-position: left -40px;
}

#nav .nav_works {
	width: 73px;
	background-position: left -80px;
}

#nav .nav_commissioned {
	width: 73px;
	background-position: left -120px;
}

#nav .nav_contact {
	width: 110px;
	background-position: left -160px;
}

#nav .nav_faq {
	width: 39px;
	background-position: left -200px;
}

/*
  「コラム」用画像（テーマ内 img/nav_column.png）。
  本体の nav_link.png と同じ 40px スロット寸法。
  本画像は暫定生成。デザインに合わせて差し替え可。
*/
#nav .n_column {
	margin-right: 0;
	background-image: url(/img/hl_mark.png);
	background-repeat: no-repeat;
	background-position: center 34px;
}

#nav .nav_column {
	width: 55px;
	height: 34px;
	background-image: url(img/nav_column.png);
	background-repeat: no-repeat;
	/* 他項目よりわずかに下に見えていたため上方向へ補正 */
	background-position: left -6px;
	text-indent: 100%;
	overflow: hidden;
	white-space: nowrap;
}

#nav .nav_column:hover {
	opacity: 0.85;
}

#sub_nav {
	float: right;
}

#sub_nav li {
	float: left;
	width: 120px;
	height: 30px;
	text-align: center;
	line-height: 30px;
	font-size: 110%;
	margin-top: 0;
	margin-right: 0;
	margin-bottom: 10px;
	margin-left: 10px;
}

#sub_nav li a {
	color: #ccc;
	text-decoration: none;
	background-color: #24426b;
	display: block;
	border-radius: 5px;
}

#sub_nav li a:hover {
	color: #fff;
	text-decoration: none;
	background-color: #0068b6;
}

/* ------------------------------
   ページ内リンク帯（#contents_nav / c_nav.jpg）
------------------------------ */

#contents {
	color: #333;
}

#contents_nav {
	/* 本体は box-sizing 未指定のため border が height の外。
	   テーマ全体の border-box だと帯が 5px 短くなるため content-box に戻す */
	box-sizing: content-box;
	background-image: url(/img/c_nav.jpg);
	background-repeat: no-repeat;
	height: 30px;
	border-top-width: 5px;
	border-top-style: solid;
	border-top-color: #0068b6;
	margin-bottom: 40px;
	clear: both;
}

#contents_nav li {
	display: inline;
	margin-right: 20px;
	font-size: 130%;
	line-height: 30px;
	text-shadow: #0068b6 0px 0px 3px;
	font-weight: bold;
}

#contents_nav li a {
	color: #ccc;
}

#contents_nav li a:hover {
	color: #fff;
}

#content_box {
	padding-bottom: 20px;
}

#main {
	width: 100%;
	font-size: 140%;
	line-height: 1.8;
}

#main p {
	margin: 0 0 1em;
	font-size: 100%;
}

#main a {
	color: #24426b;
}

#main a:hover {
	color: #0068b6;
}

/* ------------------------------
   コラムトップ
------------------------------ */

.column-header {
	margin-bottom: 28px;
	padding: 20px 0;
	border-top: 1px solid #ccc;
}

.column-header h1 {
	margin: 0 0 16px;
	padding-left: 12px;
	border-left: 4px solid #0068b6;
	font-size: 160%;
	font-weight: normal;
	line-height: 1.4;
	color: #333;
}

.column-header p {
	margin: 0;
	font-size: 100%;
	line-height: 2;
	color: #333;
}

.column-section {
	margin-bottom: 36px;
	padding: 20px 0;
	border-top: 1px solid #ccc;
}

.column-section h2 {
	margin: 0 0 18px;
	padding-left: 12px;
	border-left: 4px solid #0068b6;
	font-size: 160%;
	font-weight: normal;
	line-height: 1.4;
	color: #333;
}

.column-section h3,
.column-post .entry-title,
#main .entry-title {
	margin: 0 0 8px;
	font-size: 120%;
	font-weight: normal;
	color: #0068b6;
}

.column-post .entry-title a,
.entry-header .entry-title {
	color: #0068b6;
}

.column-post .entry-title a:hover {
	color: #24426b;
}

.column-post {
	padding: 20px 0;
	border-bottom: 1px solid #e5e5e5;
}

.column-post:last-of-type {
	border-bottom: none;
}

.column-post-inner {
	display: block;
}

.column-post-inner.has-thumb {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.column-post-thumb {
	flex: 0 0 140px;
	width: 140px;
	max-width: 140px;
}

.column-post-thumb a {
	display: block;
	line-height: 0;
}

.column-post-thumb img,
.column-post-thumb-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.column-post-body {
	flex: 1;
	min-width: 0;
}

.column-post .entry-meta,
.entry-meta {
	margin: 0 0 10px;
	font-size: 85%;
	color: #666;
	line-height: 1.6;
}

.entry-meta a {
	color: #24426b;
}

.entry-meta a:hover {
	color: #0068b6;
}

.entry-excerpt {
	margin: 0 0 10px;
	font-size: 95%;
	line-height: 1.9;
	color: #333;
}

.entry-excerpt p {
	margin: 0 0 0.5em;
}

.entry-more {
	margin: 0;
	font-size: 90%;
}

.entry-more a {
	color: #24426b;
	font-weight: bold;
}

.entry-more a:hover {
	color: #0068b6;
}

/* ------------------------------
   投稿詳細
------------------------------ */

.entry {
	margin-bottom: 36px;
	padding: 20px 0 0;
	border-top: 1px solid #ccc;
}

.entry-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e5e5;
}

.entry-header .entry-title {
	margin: 0 0 12px;
	padding-left: 12px;
	border-left: 4px solid #0068b6;
	font-size: 170%;
	font-weight: normal;
	line-height: 1.45;
	color: #0068b6;
}

.entry-header .entry-meta {
	margin: 0 0 6px;
	padding-left: 16px;
}

.entry-content {
	margin-top: 8px;
	font-size: 105%;
	line-height: 2;
	color: #333;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p {
	margin: 0 0 1.35em;
	padding: 0;
	line-height: 2;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.35em;
	padding-left: 1.5em;
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li {
	margin-bottom: 0.4em;
	line-height: 1.9;
}

.entry-content a {
	color: #24426b;
	text-decoration: underline;
}

.entry-content a:hover {
	color: #0068b6;
}

/* 既存サイト #contents h2 / h3 に近い見出し */
.entry-content h2 {
	margin: 2em 0 0.85em;
	padding: 0 0 0 12px;
	border-left: 4px solid #0068b6;
	font-size: 130%;
	font-weight: normal;
	line-height: 1.5;
	color: #333;
}

.entry-content h3 {
	margin: 1.75em 0 0.7em;
	padding: 0 10px;
	font-size: 115%;
	font-weight: normal;
	line-height: 1.5;
	color: #0068b6;
}

.entry-content h4 {
	margin: 1.5em 0 0.6em;
	font-size: 105%;
	font-weight: bold;
	color: #24426b;
}

.entry-content blockquote {
	margin: 0 0 1.35em;
	padding: 12px 16px;
	border-left: 3px solid #0068b6;
	background: #f7f9fc;
	color: #444;
}

.entry-content pre,
.entry-content code {
	font-family: Consolas, Monaco, monospace;
	font-size: 90%;
}

.entry-content pre {
	overflow: auto;
	padding: 12px;
	margin: 0 0 1.35em;
	background: #f5f5f5;
}

/* 本文画像 */
.entry-content img,
.entry-content .wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 0.75em;
}

.entry-content figure,
.entry-content .wp-caption,
.entry-content .wp-block-image {
	max-width: 100%;
	margin: 0 auto 1.5em;
	text-align: center;
}

.entry-content .wp-caption img,
.entry-content figure img {
	margin-bottom: 0.5em;
}

.entry-content .wp-caption-text,
.entry-content figcaption,
.entry-content .wp-element-caption {
	margin: 0;
	padding: 0 8px;
	font-size: 85%;
	line-height: 1.7;
	color: #666;
	text-align: center;
}

.entry-content table {
	width: 100%;
	margin: 0 0 1.35em;
	border-collapse: collapse;
	font-size: 95%;
}

.entry-content th,
.entry-content td {
	padding: 8px 10px;
	border: 1px solid #ccc;
}

/* ------------------------------
   カテゴリー一覧（グリッド）
------------------------------ */

.category-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 24px;
}

.category-list li {
	margin: 0;
}

.category-list li a {
	display: block;
	padding: 12px 14px;
	border: 1px solid #ccc;
	background: #fafafa;
	color: #24426b;
	font-size: 100%;
}

.category-list li a:hover {
	background: #f0f5fa;
	color: #0068b6;
	border-color: #0068b6;
}

.archive-description {
	margin: 12px 0 0;
	padding-left: 16px;
	font-size: 95%;
	line-height: 1.8;
	color: #555;
}

/* ------------------------------
   パンくず
------------------------------ */

.breadcrumb {
	margin: 0 0 16px;
	padding: 12px 0 0;
	font-size: 85%;
	line-height: 1.6;
	color: #666;
}

.breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumb-item {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.breadcrumb-item:not(:last-child)::after {
	content: ">";
	margin: 0 0.5em;
	color: #999;
}

.breadcrumb-item a {
	color: #24426b;
	text-decoration: none;
}

.breadcrumb-item a:hover {
	color: #0068b6;
	text-decoration: underline;
}

.breadcrumb-item span[aria-current="page"] {
	color: #555;
}

.archive-list .column-post h2.entry-title {
	font-size: 130%;
}

/* ------------------------------
   記事詳細・一覧共通 / ナビ
------------------------------ */

.page-heading {
	margin: 0 0 20px;
	padding: 20px 0 0;
	border-top: 1px solid #ccc;
}

.page-heading h1 {
	margin: 0;
	padding-left: 12px;
	border-left: 4px solid #0068b6;
	font-size: 160%;
	font-weight: normal;
	color: #333;
}

.post-navigation {
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid #ccc;
	font-size: 90%;
}

.post-navigation a {
	color: #24426b;
}

.post-navigation a:hover {
	color: #0068b6;
}

.post-navigation-adjacent {
	margin-bottom: 16px;
}

.post-navigation-adjacent .nav-label {
	display: block;
	margin-bottom: 2px;
	font-size: 85%;
	color: #888;
}

.post-navigation-adjacent p {
	margin: 0 0 12px;
}

.nav-back {
	margin: 16px 0 24px;
	font-size: 95%;
}

.nav-back a {
	color: #24426b;
	font-weight: bold;
}

.nav-back a:hover {
	color: #0068b6;
}

.archive-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
}

.archive-pagination .page-numbers {
	color: #24426b;
}

.archive-pagination .page-numbers.current {
	font-weight: bold;
	color: #0068b6;
}

/* ------------------------------
   フッター（assets/footer.php 相当）
------------------------------ */

#footer {
	color: #ccc;
	background-color: #24426b;
	border-top: 5px solid #0068b6;
	margin-top: 40px;
}

.footer_content {
	min-height: 60px;
	background-image: url(/img/footer_logo.png);
	background-repeat: no-repeat;
	background-position: right center;
	padding: 20px 0;
}

#footer_nav {
	margin-bottom: 10px;
	padding-right: 38px;
}

#footer_nav li {
	display: inline;
	margin-right: 20px;
	line-height: 20px;
	font-size: 120%;
}

#footer_nav li a {
	color: #fff;
}

#footer_nav li a:hover {
	color: #e0e8f0;
}

.footer_mij {
	font-size: 110%;
	margin: 0 0 10px;
	padding-right: 38px;
	clear: both;
	line-height: 1.4;
}

.footer_mij a {
	color: #fff;
	text-decoration: underline;
}

.footer_mij a:hover {
	color: #e0e8f0;
}

.copy {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 120%;
	clear: both;
	line-height: 20px;
	padding-right: 38px;
	margin: 0;
	color: #ccc;
}

/* ------------------------------
   タブレット〜ノート
------------------------------ */

@media only screen and (min-width: 721px) and (max-width: 880px) {
	.l_base {
		width: 90%;
	}

	#sub_nav {
		clear: both;
		float: none;
	}
}

/* ------------------------------
   スマートフォン
------------------------------ */

@media only screen and (max-width: 720px) {
	.l_base {
		width: 90%;
	}

	#header {
		padding-top: 16px;
	}

	#nav {
		float: none;
		width: 100%;
		margin-top: 8px;
	}

	#nav li {
		float: none;
		display: block;
		height: auto;
		line-height: 1.4;
		margin: 0;
		padding: 0;
		border-bottom: 1px solid #eee;
		background-image: none;
		font-size: 140%;
	}

	#nav li a,
	#nav .nav_home,
	#nav .nav_about,
	#nav .nav_works,
	#nav .nav_commissioned,
	#nav .nav_contact,
	#nav .nav_faq,
	#nav .nav_column {
		width: auto;
		min-width: 0;
		height: auto;
		padding: 10px 4px;
		background-image: none;
		text-indent: 0;
		white-space: normal;
		overflow: visible;
		font-size: 13px;
		font-weight: normal;
		color: #24426b;
		line-height: 1.4;
	}

	#sub_nav {
		float: none;
		clear: both;
		margin-top: 10px;
	}

	#sub_nav li {
		float: none;
		margin: 0 0 8px;
		width: 100%;
		max-width: 160px;
	}

	#contents_nav {
		background-image: url(/img/c_nav.jpg);
		background-color: #24426b;
		height: auto;
		min-height: 30px;
		padding: 6px 0;
		margin-bottom: 24px;
	}

	#contents_nav .l_base {
		width: 90%;
	}

	#contents_nav li {
		display: block;
		margin: 0 0 4px;
		line-height: 1.5;
		font-size: 140%;
	}

	#main {
		font-size: 150%;
	}

	.category-list {
		grid-template-columns: 1fr;
	}

	.column-post-inner.has-thumb {
		flex-direction: column;
	}

	.column-post-thumb {
		flex: none;
		width: 100%;
		max-width: 280px;
	}

	.entry-header .entry-title {
		font-size: 145%;
	}

	.entry-content {
		font-size: 100%;
		line-height: 1.95;
	}

	.entry-content h2 {
		font-size: 120%;
	}

	.entry-content h3 {
		font-size: 110%;
	}

	.footer_content {
		background-position: right 12px;
		padding: 16px 0 20px;
	}

	#footer_nav {
		padding-right: 0;
	}

	#footer_nav li {
		display: block;
		margin: 0 0 6px;
	}

	.footer_mij,
	.copy {
		padding-right: 0;
	}
}