/*
Theme Name: photogt
Theme URI: https://www.photo-gt.co.jp/
Description: 高橋五郎スタジオのオリジナルテーマ。現行の静的ページのデザインを踏襲したクラシックな PHP テーマ。
Author: BELFAST
Version: 0.1.0
Requires PHP: 8.1
Text Domain: photogt
*/

/*
 * 共通のスタイルは静的サイトの _reset.css / _existing.css / _existing2.css / text.css を
 * そのまま読み込んでいる（functions.php）。ここにはブログ部分の追加分だけを書く。
 *
 * 新着記事の体裁（.post-item 以下）は、静的トップ index.php の新着ブロックにあった
 * インラインスタイルをそのまま値を変えずに移したもの。
 */

/* ---- ブログの枠組み：PC は本文＋サイドバーの2カラム、スマホは1カラム ---- */
.blog-layout {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	max-width: 960px;
	margin: 0 auto;
}
.blog-main {
	flex: 1 1 auto;
	min-width: 0;
}
.blog-side {
	flex: 0 0 240px;
	width: 240px;
	font-size: 14px;
}
@media screen and (max-width: 768px) {
	.blog-layout {
		display: block;
	}
	.blog-side {
		width: 100%;
		margin-top: 40px;
		padding-top: 30px;
		border-top: 1px solid #ccc;
	}
}

/* ---- ページ見出し（一覧・アーカイブ） ---- */
.blog-heading {
	margin-top: 10px;
}
.blog-heading .archive-type {
	display: block;
	font-size: 13px;
	font-weight: normal;
	color: #999;
}
.blog-note {
	font-size: 14px;
	color: #666;
	margin-bottom: 20px;
}

/* ---- 記事一覧（トップの新着ブロックと同じ） ---- */
.post-item {
	display: flex;
	margin-bottom: 20px;
	border-bottom: 1px solid #ccc;
	padding-bottom: 20px;
}
.post-item .post-thumbnail {
	flex: 0 0 100px;
	margin-right: 20px;
}
.post-item .post-thumbnail img {
	width: 100px;
	height: 100px;
	object-fit: cover;
}
.post-item .post-info {
	flex: 1;
	min-width: 0;
}
.post-item .post-date {
	font-size: 12px;
	color: #999;
}
.post-item .post-title {
	margin: 0;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.4;
}
.post-item .post-title a {
	text-decoration: none;
	color: #333;
}
.post-item .post-excerpt {
	font-size: 14px;
	color: #666;
}

/* WordPress が出す読み上げ用テキスト（ページ送りの見出しなど）は画面に出さない */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---- ページ送り ----
 * _reset.css の nav { width: 960px; display: flex } と nav div { width: 160px }、
 * スマホでの nav { display: none } は静的トップのナビ用なので、ここで打ち消す。
 */
nav.blog-pagination {
	display: block;
	width: auto;
	margin: 30px 0;
	text-align: center;
	font-size: 14px;
}
.blog-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	width: auto;
}
@media screen and (max-width: 600px) {
	nav.blog-pagination {
		display: block;
	}
}
.blog-pagination .page-numbers {
	display: inline-block;
	min-width: 2.2em;
	padding: 6px 8px;
	border: 1px solid #c9c9c9;
	background: #fff;
	color: #614b21;
	text-decoration: none;
	line-height: 1.2;
}
.blog-pagination .page-numbers.current {
	background: #796055;
	border-color: #796055;
	color: #fff;
}
.blog-pagination .page-numbers.dots {
	border: none;
	background: none;
}
.blog-pagination a.page-numbers:hover {
	background: #f8f3e6;
}

/* ---- 記事ページ ---- */
.entry .entry-date {
	font-size: 12px;
	color: #999;
}
.entry .entry-title {
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	font-size: 22px;
	font-weight: bold;
	line-height: 1.4;
	text-align: left;
	margin: 5px 0 20px;
	color: #333;
}
.entry .entry-content {
	line-height: 1.8;
	overflow-wrap: anywhere;
}
.entry .entry-content p {
	margin-bottom: 1em;
}
.entry .entry-content img {
	max-width: 100%;
	height: auto;
}
.entry .entry-content a {
	color: #e16450;
}
.entry .entry-content .alignleft {
	float: left;
	margin: 0 20px 10px 0;
}
.entry .entry-content .alignright {
	float: right;
	margin: 0 0 10px 20px;
}
.entry .entry-content .aligncenter {
	display: block;
	margin: 0 auto 10px;
}
.entry .entry-content::after {
	content: "";
	display: block;
	clear: both;
}
.entry .entry-meta {
	margin-top: 25px;
	padding-top: 15px;
	border-top: 1px solid #ccc;
	font-size: 13px;
	color: #666;
}
.entry .entry-meta a {
	color: #614b21;
}
.entry-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 30px;
	font-size: 14px;
}
.entry-nav a {
	color: #614b21;
	text-decoration: none;
}
.entry-nav a:hover {
	text-decoration: underline;
}
.entry-nav .nav-prev,
.entry-nav .nav-next {
	flex: 1 1 50%;
	min-width: 0;
}
.entry-nav .nav-next {
	text-align: right;
}
.entry-nav .nav-label {
	display: block;
	font-size: 12px;
	color: #999;
}

/* ---- お客様の声（個別） ---- */
.voice-main-image {
	max-width: 700px;
	margin: 0 auto 20px;
	text-align: center;
}

/* ---- サイドバー ---- */
.blog-side .side-section {
	margin-bottom: 30px;
}
.blog-side .side-title {
	font-size: 15px;
	font-weight: bold;
	color: #614b21;
	margin-bottom: 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid #e9cf9f;
}
.blog-side ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.blog-side li {
	padding: 5px 0;
	border-bottom: 1px dotted #ccc;
	line-height: 1.5;
}
.blog-side li a {
	color: #614b21;
	text-decoration: none;
}
.blog-side li a:hover {
	text-decoration: underline;
}
.blog-side .side-recent li a {
	display: block;
}
.blog-side .side-recent .side-date {
	display: block;
	font-size: 12px;
	color: #999;
}
.blog-side select,
.blog-side input[type="search"],
.blog-side input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	padding: 6px 8px;
	border: 1px solid #c9c9c9;
	background: #fff;
	font-size: 14px;
	color: #614b21;
}
.search-form {
	display: flex;
	gap: 6px;
}
.search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
}
.search-form button {
	flex: 0 0 auto;
	padding: 6px 12px;
	border: none;
	background: #796055;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}
.search-form button:hover {
	background: #877260;
}

/* ---- 固定ページ（/753/ など）---- */
.listings_under h1 {
	margin: 0;
	text-align: center;
}
.listings_under h1 img {
	display: inline-block;
}

/* 衣装ギャラリーへの導線（旧 WEB カタログのベタ並べの置き換え） */
.costume-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	max-width: 760px;
	margin: 20px auto 10px;
}
.costume-link {
	flex: 1 1 calc(50% - 12px);
	min-width: 220px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 16px 12px;
	background: #fff;
	border: 1px solid #e4ded3;
	border-radius: 10px;
	text-decoration: none;
	color: #614b21;
	transition: border-color .15s, background .15s;
}
.costume-link:hover {
	border-color: #8a6a39;
	background: #f5efe3;
	color: #614b21;
}
.costume-link__label {
	font-family: 游明朝, "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
	font-size: 17px;
	font-weight: bold;
}
.costume-link__cta {
	display: inline-block;
	font-size: 13px;
	font-weight: bold;
	color: #fff;
	background: #8a6a39;
	border-radius: 99px;
	padding: 6px 16px;
}
@media screen and (max-width: 600px) {
	.costume-link {
		flex-basis: 100%;
	}
}

/* ---- 404 ---- */
.not-found {
	text-align: center;
	padding: 40px 0;
}
.not-found .search-form {
	max-width: 400px;
	margin: 20px auto;
}
