/* --- 共通カラー変数（一元管理） --- */
:root {
 --uni-main-color: #6fc7d5;
}
/* --- 検索フォーム(サイドバー) --- */
.uni-search-widget {
	background: #fff;
	padding: 20px;
	border: 2px solid var(--uni-main-color);
	border-radius: 10px;
	box-sizing: border-box;
}
.uni-lbl {
	display: block;
	font-weight: bold;
	color: var(--uni-main-color);
	margin-bottom: 6px;
	font-size: 13px;
}
.uni-search-widget input, .uni-search-widget select {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
	margin-bottom: 8px;
	font-size: 14px;
}
.uni-search-widget button {
	width: 100%;
	background: var(--uni-main-color);
	color: #fff;
	border: none;
	padding-top: 8px;
	padding-right: 12px;
	padding-left: 12px;
	padding-bottom: 8px;
	border-radius: 4px;
	font-weight: bold;
	cursor: pointer;
	font-size: 14px;
	transition: 0.3s;
}
.uni-search-widget button:hover {
	opacity: 0.8;
}
.uni-reset {
	display: block;
	text-align: center;
	color: #999;
	font-size: 11px;
	margin-top: 15px;
	text-decoration: none;
}
.uni-dropdowns {
	margin-top: 20px;
	border-top: 1px dotted #ccc;
	padding-top: 20px;
}
/* --- 検索結果・2カラムレイアウト --- */

/* --- 検索結果・2カラムレイアウト（余白調整版） --- */

#senryu-search-wrap, 
#senryu-search-page,
#member-archive-wrap {	
	padding-top: 40px;
	padding-right: 0;
	padding-left: 0;
	padding-bottom: 70px; /* 下のパディングを50に */
	min-height: auto;
	width: 100%;
}

#senryu-search-wrap, 
#senryu-search-page, 
#member-archive-wrap, 
#monthly-combined-wrap {
	background-color: #FCFDFD;    
}


/* 追随する検索サイドバーの背景も白で統一 */
.uni-search-widget {
    background: #fff;
}

#member-archive-wrap, #senryu-search-wrap {
    width: 100%;
    clear: both;
}

.uni-container {
	max-width: 900px;
	margin-top: 40px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 0; /* 中央寄せを強制 */
	display: flex;
	gap: 40px;
	padding-top: 0;
	padding-bottom: 0;
	align-items: flex-start;
	overflow: visible !important;
}

/* ページ全体の余白を詰める */
main.uni-main, 
aside.uni-sidebar {
    margin-bottom: 0 !important;
    padding-bottom: 20px !important; /* 適度な余白だけ残す */
}

/* フッターと繋がる部分の隙間を消す */
#article, .site-main, .uni-main {
	margin-bottom: 0 !important;
	max-width: 100%;
}

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

.uni-main p.chach{
	margin-top: -40px;
	display: block;
	margin-bottom: 20px;	
}


.uni-sidebar {
	width: 240px;
	flex-shrink: 0;
	position: sticky;
	top: 20px;
	z-index: 10;
	overflow: visible !important;	
}

.uni-sticky {
    width: 100%;
    box-sizing: border-box;
}

#main_col, .content, #member-archive-wrap, #senryu-search-wrap, #senryu-search-page {
	overflow: visible !important;
}
/* --- 検索結果リスト --- */
.uni-page-title {
	color: #333;
	margin: 0 0 25px 0;
	font-size: 1.4em;
}
.uni-msg-info {
	background: #fff;
	padding: 60px 20px;
	border-radius: 12px;
	text-align: center;
	border: 2px dashed var(--uni-main-color);
	color: var(--uni-main-color);
	font-weight: bold;
	font-size: 1.2rem;
}
.uni-result-summary {
	margin-bottom: 15px;
	border-left: 5px solid var(--uni-main-color);
	background: #fff;
	padding: 12px 15px;
	border-radius: 5px;
	font-size: 0.8em;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.uni-result-list {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 3px 10px rgba(0,0,0,0.05);
	overflow: hidden;
}
.uni-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 15px;
	padding-right: 15px;
	padding-left: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #f4f4f4;
	gap: 20px;
}
.uni-row:last-child {
	border-bottom: none;
}
.uni-opus {
	font-size: 1em;
	color: #333;
	font-family: "Sawarabi Mincho", serif;
	flex: 1;
	line-height: 1.5;
}
.uni-author a {
	color: var(--uni-main-color);
	text-decoration: none;
	font-weight: bold;
	font-size: 0.85em;
	white-space: nowrap;
	border-bottom: 1px solid transparent;
}

/* ==========================================
   キーワード検索のハイライト設定
   ========================================== */

/* 【ON】ハイライトを表示したい場合 */
.uni-highlight {
    background: rgba(111, 199, 213, 0.3); /* 薄い水色の背景 */
    font-weight: bold;                    /* 太字 */
    border-bottom: 2px solid var(--uni-main-color); /* 下線 */
    color: inherit;                       /* 文字色は親に合わせる */
}

/* ------------------------------------------
   【OFF】ハイライトを消したい場合
   上の「.uni-highlight」のカタマリをすべてコメントアウトするか、
   以下の設定（リセット）を有効にしてください。
   ------------------------------------------ */

.uni-highlight {
    background: transparent !important;
    font-weight: normal !important;
    border-bottom: none !important;
}




/* --- 五十音インデックス --- */
.uni-author-index {
	margin-top: 80px;
	width: 100%;
}
.uni-index-title {
	color: var(--uni-main-color);
	border-bottom: 1px solid var(--uni-main-color);
	padding-bottom: 5px;
	font-size: 1.1em;
	font-weight: bold;
	margin-bottom: 15px;
}
.uni-index-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
}
.uni-index-box {
	background: #fff;
	padding: 12px;
	border-radius: 6px;
	border-top: 3px solid var(--uni-main-color);
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.uni-index-box strong {
	color: var(--uni-main-color);
	display: block;
	border-bottom: 1px solid #f0f0f0;
	margin-bottom: 8px;
	font-size: 1.1em;
}
.uni-index-box ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.uni-index-box li {
	margin-bottom: 5px;
	line-height: 1.4;
	font-size: 13px;
}
.uni-index-box a {
	color: #555;
	text-decoration: none;
}
/* --- 作者別作品一覧(taxonomy) --- */
.uni-author-header {
	background: #fff;
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 20px;
	border-left: 6px solid var(--uni-main-color);
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.uni-author-header h1 {
	font-size: 1.05em;
	margin: 0 0 5px 0;
	color: #333;
}
.uni-author-header .work-count {
	color: #777;
	font-size: 0.75em;
	margin: 0;
	padding-left: 20px;
	padding-top: 6px;
}
.uni-work-card {
	background: #fff;
	border-radius: 10px;
	padding: 18px;
	margin-bottom: 15px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	border: 1px solid #f0f8fa;
}
.uni-work-date {
	background: var(--uni-main-color);
	color: #fff;
	padding: 4px 10px;
	border-radius: 50px;
	font-size: 0.5em;
	margin-bottom: 10px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	max-width: 150px;
}
.uni-work-items {
	list-style: none;
	padding: 0;
	margin: 0;
}
.uni-work-items li {
	font-size: 0.95em;
	line-height: 1.8;
	color: #444;
	font-family: "Sawarabi Mincho", serif;
	border-bottom: 1px solid #f4f4f4;
	padding: 3px 0;
}
/* --- ページネーション・ボタン --- */
.uni-pagination {
	margin: 20px 0;
	text-align: center;
	font-size: 0.85em;
}
.uni-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 2px;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: var(--uni-main-color);
	text-decoration: none;
}
.uni-pagination .page-numbers.current {
	background: var(--uni-main-color);
	color: #fff;
	border-color: var(--uni-main-color);
}
.uni-back-btn {
	display: inline-block;
	padding: 12px 30px;
	background: var(--uni-main-color);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 50px;
	font-weight: bold;
	font-size: 16px;
	box-shadow: 0 4px 15px rgba(111, 199, 213, 0.3);
	transition: 0.3s;
}

/* --- 会員作品を読む 紹介ブロック (cb001) --- */
.cb001 {
	margin-top: 50px;
	padding: 25px;
	background: #fff;
	border: 1px solid #6fc7d5; /* メインカラーの枠線 */
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.03);
	width: 80%;
	margin-left: auto;
	margin-right: auto;
}

.cb001 h3 {
    font-size: 1em;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px dotted #6fc7d5;
    padding-bottom: 12px;
}

.cb001 h3 span.author-name {
	font-weight: bold;
	margin-left: 20px;
}

.cb001 p.right {
    text-align: right;
    margin: 0;
}

.cb001 p.right a {
    display: inline-block;
    color: #6fc7d5;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.cb001 p.right a:hover {
    opacity: 0.7;
    transform: translateX(3px);
}

/* **********************************************
/* Newsアーカイブページの絞り込みセクション調整 
**************************************************/






/* スマホ対応 */
@media (max-width: 600px) {
    .cb001 { padding: 15px; }
    .cb001 h3 { font-size: 1em; }
.uni-container {
	max-width: 900px;
	margin-top: 20px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 0; /* 中央寄せを強制 */
	display: flex;
	gap: 40px;
	padding-top: 0;
	padding-bottom: 0;
	align-items: flex-start;
	overflow: visible !important;
}

.uni-main {
	width: 94%;
	margin-left: auto;
	margin-right: auto;
}

/* --- アーカイブ一覧全体の背景 --- */
#monthly-combined-wrap {
    background-color: #ffffff; /* 白背景に固定 */
    padding: 40px 0 10px;
    min-height: auto;
}

/* --- カード：年月別まとめ --- */
.uni-work-card.archive-block {
    border-top: 4px solid var(--uni-main-color);
    background-color: #fcfdfe;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.uni-work-card.archive-block h3 a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.15em;
}

/* --- カード：個別投稿 --- */
.uni-work-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #f0f8fa;
}

.uni-work-card h3 a {
    color: #333;
    text-decoration: none;
    font-size: 1.0em;
}

/* 作者名を右寄せにするスタイル（追加） */
.member-name-right {
    text-align: right;
    font-size: 0.8em;
    margin-top: 10px;
    border-top: 1px dotted #eee;
    padding-top: 10px;
}

.member-name-right a {
    color: var(--uni-main-color);
    font-weight: bold;
    text-decoration: none;
}

/* 作品サンプルのフォント設定 */
.opus-sample {
    font-family: 'Sawarabi Mincho', serif;
    color: #444;
    font-size: 0.95em;
    margin-top: 10px;
}


}

/* --- レスポンシブ --- */
@media (max-width: 900px) {
.uni-container {
	flex-direction: column-reverse;
	gap: 30px;
}
.uni-sidebar {
	width: 80%;
	position: static !important;
	margin-left: auto;
	margin-right: auto;
}
.uni-index-grid {
	grid-template-columns: repeat(3, 1fr);
}
}

@media (max-width: 600px) {
.uni-row {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
.uni-author {
	align-self: flex-end;
}
.uni-index-grid {
	grid-template-columns: repeat(2, 1fr);
}
.uni-author-header h1 {
	font-size: 1.3em;
}
/* --- 五十音インデックス --- */
.uni-author-index {
	margin-top: 50px;
	width: 90%;
	margin-left: auto;
	margin-right: auto;
}

}
