/*
Theme Name: みんなのたからづかマチ文庫
Template: twentytwentyfive
Description: Twenty Twenty-Five の子テーマ。旧テーマ（Layers）のデザインを引き継ぐ。
Version: 0.1.0
Author: メディアピクニック
Text Domain: machibunko-child
*/

/* ------------------------------------------------------------
   ヘッダー（スクロールしても上に固定）
------------------------------------------------------------ */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
.mb-header-logo img {
	display: block;
}
.mb-nav a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}
.mb-nav a:hover,
.mb-nav a:focus {
	color: #fff;
}

/* ------------------------------------------------------------
   オレンジの見出し帯（お知らせ／作品／収蔵の案内など）
------------------------------------------------------------ */
.mb-band {
	background-color: var(--wp--preset--color--orange);
	color: #fff;
	text-align: center;
	padding: 15px;
	margin-bottom: 30px;
}

/* ------------------------------------------------------------
   作品カード
------------------------------------------------------------ */
.mb-card {
	background-color: var(--wp--preset--color--card);
	height: 100%;
}
.mb-card .wp-block-post-featured-image {
	margin: 0;
}
.mb-card .wp-block-post-featured-image img {
	display: block;
}
.mb-card .wp-block-post-title a {
	color: #000;
	text-decoration: none;
}
.mb-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--orange);
}

/* タグ（アイコン付き） */
.mb-tags {
	font-size: 12px;
	color: rgba(0, 0, 0, 0.55);
}
.mb-tags::before {
	content: "";
	display: inline-block;
	width: 1.1em;
	height: 1em;
	margin-right: 0.4em;
	vertical-align: -0.1em;
	background-color: rgba(0, 0, 0, 0.55);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M0 1.5V8l9 9 7.5-7.5-9-9H1.5A1.5 1.5 0 0 0 0 1.5zM4 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm9-5.5h2l9 9-7.5 7.5-1-1 6.5-6.5z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M0 1.5V8l9 9 7.5-7.5-9-9H1.5A1.5 1.5 0 0 0 0 1.5zM4 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm9-5.5h2l9 9-7.5 7.5-1-1 6.5-6.5z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.mb-tags a {
	color: inherit;
	text-decoration: none;
}
.mb-tags a:hover {
	color: var(--wp--preset--color--orange);
}

/* 「詳しく見る」ボタン（作品一覧ページ） */
.mb-readmore {
	display: inline-block;
	background-color: var(--wp--preset--color--blue);
	color: #fff !important;
	font-size: 15px;
	padding: 5px 15px;
	border-radius: 5px;
	text-decoration: none;
}
.mb-readmore:hover {
	opacity: 0.85;
}

/* ------------------------------------------------------------
   オレンジ枠のボタン（作品の一覧／詳しくはこちら）
------------------------------------------------------------ */
.mb-btn-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--orange);
	border: 3px solid var(--wp--preset--color--orange);
	border-radius: 5px;
	font-size: 24px;
	font-weight: 700;
	padding: 4px 18px;
}
.mb-btn-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--orange);
	color: #fff;
}

/* ------------------------------------------------------------
   サイドバー
------------------------------------------------------------ */
.mb-widget {
	background-color: #fff;
	padding: 20px;
}
.mb-widget-title {
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	color: #000;
	margin-bottom: 20px;
}
.mb-widget .wp-block-tag-cloud a {
	color: rgba(0, 0, 0, 0.75);
	text-decoration: none;
}
.mb-widget .wp-block-search__button {
	background-color: var(--wp--preset--color--blue);
	color: #fff;
	border: none;
}

/* 記事下のメタ情報 */
.mb-meta {
	font-size: 12px;
	color: rgba(0, 0, 0, 0.55);
}
.mb-meta a {
	color: inherit;
	text-decoration: none;
}

/* ------------------------------------------------------------
   フッター
------------------------------------------------------------ */
.mb-footer {
	color: rgba(255, 255, 255, 0.9);
	font-weight: 700;
}
.mb-footer-title {
	background-color: #fff;
	color: #000;
	font-size: 18px;
	padding: 15px;
	text-align: center;
	margin-bottom: 15px;
}
.mb-footer p {
	margin: 0;
	line-height: 2;
}
.mb-footer a {
	color: #fff;
	text-decoration: none;
}
.mb-copyright {
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	font-size: 12px;
	font-weight: 400;
	color: #fff;
}

/* ------------------------------------------------------------
   旧サイトの「追加CSS」から引き継ぎ（作品ページの本文用）
------------------------------------------------------------ */
.single .wp-block-post-content {
	line-height: 2;
	color: #000;
}
.catchcopy {
	font-size: x-large;
	font-weight: bold;
	margin-bottom: 10px;
}
.textblock {
	margin-bottom: 30px;
}
.textblock h5 {
	font-size: large;
	font-weight: bold;
	margin-bottom: 0;
}
.bookdata {
	border: solid 1px #666;
	margin-top: 50px;
	padding: 4%;
}
.bookdata h4 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: large;
}
strong {
	color: #000;
	font-weight: bold;
	padding: 0 3px;
	background-color: var(--wp--preset--color--marker);
}
/* 見出し帯・ボタン内の strong にはマーカーをかけない */
.mb-band strong,
.wp-block-button strong {
	background: none;
	padding: 0;
	color: inherit;
}

/* ------------------------------------------------------------
   スマホ
------------------------------------------------------------ */
@media (max-width: 781px) {
	.mb-btn-outline .wp-block-button__link {
		font-size: 20px;
	}
	.mb-hero-copy {
		font-size: 18px !important;
	}
}

/* 作品グリッド：タブレット2列、スマホ1列 */
@media (max-width: 900px) {
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
@media (max-width: 600px) {
	.wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

/* 調整（2026-10-24 見比べ後） */
.wp-block-cover.alignfull .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: 1000px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.wp-block-search__input {
	border-radius: 0;
	border: 1px solid #ccc;
}
.wp-block-search__button {
	white-space: nowrap;
	border-radius: 3px;
	padding: 8px 16px;
}
.bookdata h4 {
	font-weight: 700;
}

/* ------------------------------------------------------------
   固定ページ（マチ文庫とは／作る・収蔵させる／FAQ／お問い合せ）
------------------------------------------------------------ */
.page .wp-block-post-content,
.page main p,
.page main li {
	color: #000;
	line-height: 2.4;
}
.mb-lead {
	font-size: 24px;
	font-weight: 700;
	line-height: 2 !important;
	margin-bottom: 30px;
}
.mb-sec {
	font-size: 30px;
	font-weight: 400;
	margin-top: 40px;
	margin-bottom: 15px;
}
.mb-qa {
	margin-bottom: 35px;
}
.mb-q {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
}
.page main p.mb-a {
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

/* お問い合せフォーム（Contact Form 7） */
.wpcf7 label {
	font-weight: 700;
	color: #000;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
	width: 100%;
	max-width: 500px;
	padding: 6px;
	border: 1px solid #ddd;
	background: #fff;
}
.wpcf7 textarea {
	width: 100%;
	max-width: 660px;
	border: 1px solid #ddd;
	background: #fff;
}
.wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--blue);
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: 5px 15px;
	font-size: 15px;
	cursor: pointer;
}
@media (max-width: 781px) {
	.mb-lead { font-size: 18px; }
	.mb-sec { font-size: 24px; }
}

/* ヘッダーと本文の間の余白をなくす（見出し写真をヘッダー直下に） */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* スマホ調整 */
@media (max-width: 781px) {
	.single .wp-block-post-title {
		font-size: 26px;
	}
	.wp-block-cover.alignfull {
		min-height: 240px !important;
	}
	.wp-block-cover h1 {
		font-size: 28px !important;
	}
	.mb-band {
		font-size: 20px;
	}
	/* 開いたメニュー */
	.mb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: center !important;
		gap: 28px;
		padding-top: 30px;
	}
	.mb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		font-size: 20px;
	}
}

/* スマホ調整２ */
.wpcf7 input,
.wpcf7 textarea {
	box-sizing: border-box;
}
@media (max-width: 781px) {
	.wp-block-cover.alignfull .wp-block-cover__inner-container {
		padding-left: 20px;
		padding-right: 20px;
	}
}
@media (max-width: 781px) {
	.mb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: center !important;
	}
}

/* 見出し帯は常に太字 */
h1.mb-band, h2.mb-band {
	font-weight: 700;
}
