@charset "UTF-8";
/*
 Theme Name: MOEMPT Theme
 Author: Your Name
 Description: A minimal flat-design WordPress theme with image-only content.
 Version: 1.0
*/

/* リセットスタイル */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	height: 100%;
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
	font-size: 1em;
	font-weight: normal;
}

ul, ol {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

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

/* 既存のスタイル（重複削除） */
body {
	font-family: "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
	font-size: 16px;
	background: #F5F6FA;
	color: #333;
}

header {
	background: #fff;
	padding: 20px 20px 30px 20px;
	text-align: center;
	border-bottom: 1px solid #eee;
	width: 100%;
}

.site-tagline {
	padding: 10px 0 15px 0;
	text-align: center;
	font-size: 14px;
	font-weight: bold;
	color: #666;
	display: flex;
	justify-content: center;
	align-items: center;
}

.tagline-icon {
	color: #3B82F6; /* テーマの青 */
	font-size: 12px;
}

.site-tagline p {
	margin: 0 10px;
}

header .site-title-link {
	display: inline-block;
	width: fit-content; /* 必要最小サイズに */
}

header .site-title {
	margin: 0;
}

header .site-title img {
	width: 264px;
	height: auto;
	display: block;
}

.site-description {
	background: #fff;
	padding: 8px 0;
	text-align: center;
	color: #ee7948;
	font-size: 14px;
}

.site-footer {
	background: #fff;
	padding: 40px 20px;
	text-align: center;
	font-size: 12px;
	color: #666;
	width: 100%;
	position: relative;
}

.site-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 10px;
	background: #A3BFFA;
	opacity: 0.3;
}

.footer-menu {
	margin-bottom: 20px;
	padding-bottom: 15px;
	position: relative;
}

.footer-menu::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 50px;
	height: 1px;
	background: #3B82F6;
}

.footer-menu-list {
	display: flex;
	justify-content: center;
	margin: -5px -12.5px;
	flex-wrap: wrap;
}

.footer-menu-list li {
	margin: 5px 12.5px;
}

/* アイコンと文字を一体化 */
.footer-menu-list li a {
	color: #666;
	font-size: 14px;
	display: flex; /* アイコンと文字を横に並べる */
	align-items: center; /* 中央揃え */
	transition: color 0.3s ease;
}

.footer-menu-list li a::before {
	content: '\f0c1'; /* アイコン */
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	font-size: 12px;
	color: #3B82F6;
	display: inline-block; /* absoluteを削除しインラインに */
	margin-right: 8px; /* アイコンと文字の間隔を固定 */
}

.footer-menu-list li a:hover {
	color: #0073aa;
}

.footer-info {
	margin-top: 20px;
}

.container {
	max-width: 1130px;
	margin: 20px auto;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.content-wrapper {
	width: 780px;
	margin-bottom: 20px;
}

/* インデックス・アーカイブページ */
.post-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.post-item {
	background: #fff;
	width: calc(50% - 10px);
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 20px;
	min-height: 0%;
}

.post-item a {
	display: block;
}

.img-wrapper {
	position: relative;
	padding-top: 100%; /* 1:1のアスペクト比 */
	width: 100%;
}

.post-item img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-height: 100%;
	display: block;
	object-fit: cover;
	font-family: 'object-fit: cover;'; /*IE対策*/
}

.post-item h2 {
	font-size: 18px;
	font-weight: bold;
	margin: 10px 0 5px;
}

.post-item .date {
	font-size: 12px;
	color: #999;
	letter-spacing: 0.5em;
}

.post-item a:hover h2 {
	color: #0073aa;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	margin: 5px -4px;
}

.post-meta a {
	margin: 0 4px 8px;
}

.post-meta .category {
	background-color: #e0f7fa;
	color: #006064;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
}

.post-meta .category:hover {
	background-color: #b2ebf2;
}

.post-meta .tag {
	background-color: #f1f8e9;
	color: #33691e;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
}

.post-meta .tag:hover {
	background-color: #c8e6c9;
}

.archive-title {
	font-size: 18px;
	font-weight: bold;
	color: #333;
	margin: 0 0 20px 0;
	text-align: left;
	width: 100%;
	background: #fff; /* 白背景 */
	padding: 10px 15px; /* パディングを縮小してコンパクトに */
	border-radius: 6px; /* 少し小さめの角丸 */
	border-left: 4px solid #3B82F6; /* 左ラインを少し細めに */
	line-height: 1.4; /* 行間を調整 */
}

/* 投稿・固定ページ */
.main-content {
	width: 100%;
	background: #fff;
	padding: 20px;
	border-radius: 8px;
}

.post-header {
	margin-bottom: 20px;
}

.post-date {
	font-size: 14px;
	color: #666;
	margin: 0 0 8px;
	letter-spacing: 0.4em;
}

.post-title {
	font-size: 28px;
	font-weight: bold;
	color: #333;
	line-height: 1.3;
}

.post-image {
	margin-bottom: 20px;
}

.post-image img {
	width: 100%;
	display: block;
	border-radius: 4px;
}

.post-image a {
	display: block;
}

.post-content {
	margin-bottom: 20px;
	line-height: 1.6;
}

.post-content p {
	padding-bottom: 1em;
}

.wpulike.wpulike-default { /* いいねボタンの位置 */
	text-align: right;
	padding: 20px 0;
	line-height: 1;
}

.sidebar {
	width: 330px;
	background: #fff;
	padding: 15px;
	border-radius: 8px;
}

.sidebar .widget {
	margin-bottom: 20px;
}

.sidebar h3.wp-block-heading {
	background: #F5F6FA;
	padding: 8px 12px 8px 16px;
	border-radius: 6px;
	position: relative;
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: bold;
}

.sidebar h3.wp-block-heading::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 4px;
	height: 100%;
	background: #3B82F6;
	border-radius: 6px 0 0 6px;
}

.sidebar .wp-block-categories-list {
	font-size: 14px;
}

.sidebar .wp-block-categories-list li {
	position: relative;
	padding: 10px 0 10px 24px;
	border-bottom: 1px solid #eee;
	transition: all 0.3s ease;
}

.sidebar .wp-block-categories-list li:last-child {
	border-bottom: none;
}

.sidebar .wp-block-categories-list li::before {
	content: '\25b6';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	color: #3B82F6;
	font-size: 14px;
}

.sidebar .wp-block-categories-list li a {
	color: #333;
	display: block;
}

.sidebar .wp-block-categories-list li a:hover {
	color: #3B82F6;
	padding-left: 4px;
}

.share-buttons {
	margin-top: 20px;
	display: flex;
	align-items: center;
	justify-content: space-around;
	background-color: #A3BFFA;
	padding: 10px 20px;
	border-radius: 8px;
}

.share-label {
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
}

.share-divider {
	width: 1px;
	height: 20px;
	background-color: rgba(255, 255, 255, 0.5);
}

.share-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: #fff;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	border: none;
	background-color: transparent;
	transition: transform 0.2s ease;
}

.share-button:hover {
	transform: scale(1.1);
}

/* コピーボタン用の追加スタイル */
.share-button.copy {
	width: auto; /* 幅を自動調整 */
	padding: 0 12px; /* アイコンとテキストの間隔 */
	border-radius: 20px; /* 角丸を調整 */
}

.button-text {
	margin-left: 8px; /* アイコンとテキストの間隔 */
	font-size: 12px; /* テキストサイズ */
	color: #fff;
}

.wp-block-group {
	margin-bottom: 20px;
}

.main-content h2.wp-block-heading {
	background: #F5F6FA;
	padding: 8px 12px 8px 16px;
	border-radius: 6px;
	position: relative;
	margin: 0 0 20px 0;
	font-size: 16px;
	font-weight: bold;
}

.main-content h2.wp-block-heading::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 4px;
	height: 100%;
	background: #3B82F6;
	border-radius: 6px 0 0 6px;
}

.pagination {
	width: 100%;
	padding: 10px 0;
	text-align: center;
	background: #fff;
	border-radius: 8px;
}

.pagination .nav-links {
	display: inline-flex;
}

.pagination .page-numbers + .page-numbers {
	margin-left: 10px;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	color: #333;
	background: #F5F6FA;
	border-radius: 4px;
	font-size: 14px;
	transition: background 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
	background: #3B82F6;
	color: #fff;
}

.pagination .prev,
.pagination .next {
	font-weight: bold;
}

/* いいね画像ランキング */
.ranking-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ranking-item {
	display: flex;
	border: 1px solid #F5F6FA;
	width: calc(50% - 5px);
	padding: 10px;
}

.ranking-image {
	position: relative;	
	width: 50%;
	padding-top: 50%;
}

.ranking-image img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 100%;
	max-height: 100%;
}

.ranking-details {
	display: flex;
	width: 50%;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
}

.like-number i {
	color: #F63B82;
}

.parent-link {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 16px;
	background: #3B82F6;
	color: #fff;
	border-radius: 20px;
	font-size: 14px;
	transition: background 0.3s ease;
}

.parent-link:hover {
	background: #0073aa;
}

.no-parent {
	color: #999;
	font-size: 14px;
	display: block;
	margin-top: 10px;
}

/* 404ページ専用スタイル */
.error-404-image {
	text-align: center;
	margin: 5px 0 20px;
}

.error-404-image img {
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.error-404-options {
	list-style: none;
	padding: 0;
	margin: 20px 0;
}

.error-404-options li {
	margin-bottom: 10px;
	font-size: 16px;
}

.error-404-options li a {
	color: #3B82F6; /* テーマの青 */
	text-decoration: underline;
}

.error-404-options li a:hover {
	color: #0073aa;
}

/* 検索結果ページ */
.no-results {
	width: 100%;
	background: #fff;
	padding: 20px;
	border-radius: 8px;
}

.no-results  img {
	width: 100%;
	max-width: 300px;
	padding: 15px;
	display: block;
	margin: 0 auto;
}

/* 検索フォームのスタイル */
.search-form {
	margin: 20px auto;
	display: flex;
	align-items: stretch; /* ← stretchで高さそろえる */
	justify-content: center;
	max-width: 400px;
}

.search-label {
	flex: 1;
}

.search-field,
.search-submit {
	box-sizing: border-box; /* IE含むすべてのブラウザで安定 */
	height: 40px; /* 固定の高さにしてズレ防止（任意で調整） */
	font-size: 14px;
	line-height: 1.5;
	vertical-align: middle;
}

.search-field {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #eee;
	border-right: none;
	border-radius: 6px 0 0 6px;
	background: #fff;
	color: #333;
	outline: none;
	transition: border-color 0.3s ease;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23999" d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"/></path></svg>');
	background-size: 16px;
	background-repeat: no-repeat;
	background-position: 12px center;
}

.search-field:focus {
	border-color: #3B82F6;
}

.search-submit {
	padding: 0 15px; /* 高さは固定されてるので上下padding不要 */
	background: #3B82F6;
	border: none;
	border-radius: 0 6px 6px 0;
	cursor: pointer;
	transition: background 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-submit i {
	color: #fff;
	font-size: 16px;
}

.search-submit:hover {
	background: #0073aa;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
	.search-form {
		max-width: 100%;
		padding: 0 15px;
	}

	.search-field {
		padding: 8px 15px 8px 35px;
		background-size: 14px;
		height: 40px;
	}

	.search-submit {
		height: 40px;
		padding: 0 12px;
	}

	.search-submit i {
		font-size: 14px;
	}
}

/* パンくずリスト */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.breadcrumb-wrapper {
	background: #FFF;
	padding: 8px 0;
}

.breadcrumb {
	max-width: 1130px;
	margin: 0 auto;
	padding: 0 10px;
	font-size: 15px;
}

.breadcrumb a {
	color: #3B82F6;
}

.breadcrumb i.fa-solid.fa-house {
	vertical-align: 1px;
}

.breadcrumb i.fa-solid.fa-angles-right {
	color: #CCC;
	font-size: 12px;
	margin: 0 4px;
	vertical-align: 1px;
}



/* レスポンシブ対応 */
@media (max-width: 1280px) {
	.breadcrumb,
	.container {
		max-width: 960px;
	}
	
	.content-wrapper {
		width: 660px;
	}
	
	.sidebar {
		width: 280px;
	}
}

@media (max-width: 1024px) {
	.breadcrumb,
	.container {
		flex-direction: column;
		max-width: 780px;
	}
	
	.container {
		flex-direction: column;
	}
	
	.content-wrapper,
	.sidebar {
		width: 100%;
		min-height: 0%;
	}
}

@media (max-width: 660px) {
	.post-list {
		flex-direction: column;
	}
	.post-item {
		width: 100%;
	}
}

@media (max-width: 600px) {
	header {
		padding: 15px 15px 20px 15px; /* モバイルで少し縮小 */
	}

	header .site-title img {
		width: 220px;
	}
	
	.site-tagline {
		padding: 8px 15px; /* 小さい画面で少し縮小 */
		font-size: 12px; /* 文字サイズを調整 */
	}

	.tagline-icon {
		font-size: 10px; /* アイコンを少し小さく */
	}
	
	.site-tagline p {
		margin: 0 6px;
	}
	
	.post-title {
		font-size: 22px;
	}

	.footer-menu-list {
		flex-direction: column;
		align-items: center;
		margin: 0;
	}

	.footer-menu-list li {
		margin: 7.5px 0;
	}

	.footer-menu-list li a {
		justify-content: center; /* 縦並び時も中央揃え */
	}

	.site-footer {
		padding: 30px 15px;
	}

	.share-buttons {
		padding: 8px 12px; /* パディングを縮小 */
	}

	.share-label {
		font-size: 12px; /* ラベルを少し小さく */
	}

	.share-divider {
		height: 16px; /* 区切り線を短く */
		margin: 0 4px; /* 左右の余白を縮小 */
	}

	.share-button {
		width: 32px; /* ボタンサイズを縮小 */
		height: 32px;
		font-size: 16px; /* アイコンサイズを調整 */
	}

	.share-button.copy {
		width: 32px; /* コピーボタンも同じサイズに */
		padding: 0; /* パディングをリセット */
		border-radius: 50%; /* 丸型に戻す */
	}

	.button-text {
		display: none; /* コピーボタンのテキストを非表示 */
	}
	
	.ranking-item {
		width: 100%; /* 1カラム化 */
	}

}