/**
 * ==========================================================
 *  表示側（公開ページ）専用CSS
 *  クライアントのサイトごとにこのファイルを調整してください
 *  （admin_common/css/admin.cssは管理画面の共通UIなので触らない）。
 *
 *  管理画面側でも、記事一覧の カテゴリータグ/NEWバッジ と、
 *  プレビュー画面（実際の表示を確認する画面）はこのファイルを
 *  読み込んでいます。表示側の見た目を変えると、管理画面のその部分の
 *  見た目も連動して変わります（実際の見た目と一致させるため）。
 * ==========================================================
 */

* {
	box-sizing: border-box;
}

body {
	color: #000000;
	margin: 0;
}

a {
	color: #2b6cb0;
}

h2 {
	margin: 0;
}

.center_btn {
	text-align: center;
	margin: 20px auto;
}

.wrap {
	max-width: 1200px;
	margin: 50px auto;
	padding: 0;
	background-color: #ffffff;
	border-radius: 20px;
}

/* カテゴリー絞り込み用セレクト（news/index.phpでは現在コメントアウトされている
   カテゴリー絞り込みフォーム用。有効化した場合のために残置） */
.cat_select {
    margin: 0 auto 16px auto;
}

.newstitle {
    margin: 5px auto 0 auto;
}

.new-mark {
	color: #c0392b;
	font-weight: bold;
	margin: 0 0 0 4px;
	font-size: 80%;
}

.dal-0730cat {
	display: inline-block;
	background: #fe5357;
    color: #ffffff;
	padding: 5px 10px;
	border-radius: 5px;
	margin: 0 6px 0 0;
    font-size: 70%;
    line-height: 1;
    vertical-align: middle;
    top: -3px;
}

a:hover .dal-0730cat {
    background-color: #3897d9;
}

.dal-0730cat {
	display: inline-block;
	background: #fe5357;
    color: #ffffff;
	padding: 5px 10px;
	border-radius: 5px;
	margin: 0 6px 0 0;
    font-size: 70%;
    line-height: 1;
    vertical-align: middle;
    top: -3px;
}

/* ===== パンくずリスト ===== */
.breadcrumb {
	margin: 0 0 16px 0;
	font-size: 80%;
	color: #888888;
}

.breadcrumb a {
	color: #2b6cb0;
	text-decoration: none;
}

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

.breadcrumb-sep {
	margin: 0 6px;
	color: #cccccc;
}

.breadcrumb-current {
	color: #888888;
}

/* ===== レイアウト（一覧・詳細ページ共通の2カラム構成） ===== */
.content-layout {
	display: flex;
	align-items: flex-start;
	gap: 30px;
}

.main-content {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 950px;
}

/* ===== サイドバー ===== */
.sidebar {
	flex: 0 0 250px;
	width: 250px;
	position: sticky;
	top: 50px;
	align-self: flex-start;
}

.sidebar a {
	text-decoration: none;
}

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

.sidebar-block {
	margin: 0 0 32px 0;
}

.sidebar-heading {
	margin: 0 0 5px 0;
	padding: 0 0 5px 0;
	border-bottom: solid #000000;
	border-bottom-width: 1px;
}

.sidebar-list.none {
	list-style: none;
	padding: 0;
}

.sidebar-list {
	margin: 10px auto;
	padding: 0 0 0 1.5em;
}

.sidebar-list li {
	margin: 0 0 5px 0;
}

.sidebar-list li a {
	display: block;
	color: #333333;
}

.sidebar-bullet {
	text-decoration: none;
}

.sidebar-date {
	display: block;
	color: #888888;
}

.sidebar-title {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar-empty {
	color: #999999;
}

a.sidebar-more {
	display: block;
	margin: 4px auto 0 auto;
	border: solid #cccccc;
	border-width: 1px;
	padding: 3px;
	text-align: center;
	width: 8em;
	border-radius: 5px;
	text-decoration: none;
	color: #333333;
    transition: 0.2s;
}

a:hover.sidebar-more {
	text-decoration: none;
    background: #f2f2f2;
    transition: 0.2s;
}

/* ===== トップページ埋め込みウィジェット（site_top.php） ===== */
.site-top-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin: 0 0 16px 0;
}

.site-top-item {
	display: block;
	color: inherit;
	text-decoration: none;
}

.site-top-thumb {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.site-top-date {
	margin: 8px 0 0 0;
	color: #888888;
	font-size: 13px;
}

.site-top-title {
	font-weight: bold;
	margin: 4px 0 0 0;
}

.site-top-empty {
	grid-column: 1 / -1;
	color: #999999;
}

.viewSP {
	display: none;
}

/* ===== 記事一覧 ===== */
.article-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	border: solid #cccccc;
	border-width: 0 0 1px 0;
	padding: 20px 0;
}

.article-item:first-child {
	border: solid #cccccc;
	border-width: 1px 0;
}

.article-item .date {
	color: #888888;
}

.article-item .title {
	font-weight: bold;
	margin: 6px 0;
}

.article-item img.thumb {
	max-height: 150px;
	flex: 0 0 200px;
	height: auto;
	object-fit: cover;
	display: block;
	border-radius: 10px;
}

.article-item img.thumb.thumb-fallback {
	background: #f5f5f5;
	padding: 20px;
	box-sizing: border-box;
}

.article-item-body {
	flex: 1 1 auto;
	min-width: 0;
}

.article-item .excerpt {
	margin: 8px 0 0 0;
	color: #555555;
	line-height: 1.7;
}

.article-item .excerpt-full {
	margin: 12px 0 0 0;
}

.pager {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: center;
	margin: 32px 0;
}

.pager a,
.pager .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	border-radius: 5px;
	font-size: 14px;
	box-sizing: border-box;
    vertical-align: middle;
}

.pager a {
	background: #ffffff;
	color: #333333;
	border: solid #cccccc;
	border-width: 1px;
	text-decoration: none;
	transition: .15s;
}

.pager a:hover {
	background: #f2f2f2;
	border-color: #999999;
}

.pager .current {
	background: #333333;
	color: #ffffff;
	border: solid #333333;
	border-width: 1px;
	font-weight: bold;
}

.pager .omit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	color: #999999;
}

.pager-status {
	display: none;
}

/* ===== 記事詳細（detail.php・プレビュー共通） ===== */
h1.detail-title {
    font-weight: normal;
	margin: 0 0 8px 0;
    background-repeat: no-repeat;
    background-size: 1em;
    padding: 5px 0 0 0;
    font-size: 30px;
    background-position: top 5px left;
    font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
    line-height: 1.2;
}

.detail-meta {
	color: #888888;
	margin: 0 0 20px 0;
}

.detail-thumb-wrap {
	position: relative;
	display: block;
	border-radius: 5px;
	overflow: hidden;
	background: #000000;
	cursor: pointer;
	margin: 20px auto;
}

.detail-thumb {
	width: 100%;
/*	height: 260px;*/
	object-fit: cover;
	display: block;
	transition: opacity .2s ease;
}

.detail-thumb-wrap:hover .detail-thumb {
	opacity: .8;
}

.detail-thumb-wrap::after {
	content: '';
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, .55);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}

.detail-thumb-wrap:hover::after {
	opacity: 1;
}

.detail-body {
	line-height: 1.9;
}

.detail-body video {
	width: 100%;
	height: auto;
	display: block;
}

.detail-body video.video-portrait {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 70vh;
	display: block;
	margin: 0 auto;
}

.detail-body .lity-img-wrap {
	position: relative;
	display: block;
	width: 70%;
	overflow: hidden;
	cursor: pointer;
    margin: 40px auto 30px auto;
}

.detail-body .lity-img-wrap:has(> img.img-portrait) {
	display: table;
	width: auto;
	max-width: 100%;
	margin: 0 auto;
}

.detail-body .lity-img-wrap img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	transition: opacity .2s ease;
}

.detail-body .lity-img-wrap img.img-portrait {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 70vh;
}

.detail-body .lity-img-wrap:hover img {
	opacity: .8;
}

.detail-body .lity-img-wrap::after {
	content: '';
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, .55);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}

.detail-body .lity-img-wrap:hover::after {
	opacity: 1;
}

.back-link {
	display: inline-block;
	margin: 24px 0 0 0;
}

.pager_center {
    width: 100%;
    text-align: center;
}

/* 1200px以下：.wrapの左右余白を縮める */
@media only screen and (max-width: 1200px) {
	.wrap {
		margin: 50px 25px;
		padding: 25px;
	}
}

/* 900px以下：本文とサイドバーの2カラムを1カラムに */
@media only screen and (max-width: 900px) {
	.content-layout {
		flex-direction: column;
	}

	.main-content {
		max-width: 100%;
	}

	.sidebar {
		width: 100%;
		position: static;
	}
}

@media (max-width: 600px) {
h1.detail-title {
    font-size: 20px;
    padding: 5px 0 0 30px;
}

.detail-body .lity-img-wrap {
	width: 100%;
    margin: 20px auto 0 auto;
}

}

/* 500px以下：site_top.phpのグリッドを1カラムに */
@media (max-width: 500px) {
	.viewPC {
		display: none;
	}

	.pager .pager-num {
		display: none;
	}

	.pager-status {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 60px;
		height: 36px;
		font-size: 14px;
		color: #333333;
	}
	.site-top-grid {
		grid-template-columns: 1fr;
	}
}