@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD（おなか便り）
    Theme URI: https://swell-theme.com/
    Description: benpikaisyo.com 用 SWELL 子テーマ。配色・フォントの基本は SWELL のカスタマイザーで設定し、ここには SWELL の設定で出せない部分だけを書く。
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* =========================================================
   0. 色と形の値
   メインカラー・テキスト色・背景色は SWELL カスタマイザー側で設定する。
   ここではカスタマイザーに項目がない色だけを持つ。
   ========================================================= */
:root {
	--bp-celadon: #3f7f73;      /* 青磁（＝メインカラーと同じ値） */
	--bp-celadon-deep: #2c5e55; /* 青磁（濃） */
	--bp-celadon-pale: #e8f2ee; /* 青磁（淡） */
	--bp-mallow: #8a5584;       /* 葵：商品の案内だけに使う */
	--bp-mallow-pale: #f4edf3;
	--bp-ochre: #b7791f;        /* 山吹：注意 */
	--bp-ochre-pale: #fbf4e4;
	--bp-ink: #2e3936;
	--bp-line: #d8e5df;
	--bp-muted: #5f6e69;
	--bp-radius-l: 14px;
	--bp-radius-m: 10px;
	--bp-font-heading: "Zen Old Mincho", "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
}

/* =========================================================
   1. 見出しのフォント（本文は SWELL 設定の Noto Sans JP）
   ========================================================= */
.c-pageTitle,
.c-postTitle__ttl,
.post_content h2,
.post_content h3,
.c-secTitle,
.l-articleBottom__title,
.p-toc__ttl,
.c-widget__title,
.bp-hero__title,
.bp-product__name {
	font-family: var(--bp-font-heading);
	font-weight: 700;
	letter-spacing: .04em;
	font-feature-settings: "palt";
}

.c-postTitle__ttl {
	line-height: 1.5;
}

@media (min-width: 960px) {
	.c-postTitle__ttl {
		font-size: 28px;
	}
}

/* =========================================================
   2. 本文の読みやすさ
   ========================================================= */
.post_content {
	line-height: 1.9;
}

.post_content > p {
	margin-bottom: 1.6em;
}

/* リンクは下線つき（カスタマイザーでオン）。ホバーで青磁に寄せる */
.post_content a:not([class]):hover {
	color: var(--bp-celadon);
}

/* キーボード操作時のフォーカスを見えるように */
a:focus-visible,
button:focus-visible,
.c-gnav a:focus-visible,
.swell-block-button a:focus-visible {
	outline: 3px solid #e2b867;
	outline-offset: 2px;
	border-radius: 4px;
}

/* =========================================================
   3. 記事の見出し
   H2 はカスタマイザーで「装飾なし」にしたうえで、ここで形を当てる。
   H3 / H4 は SWELL 標準（２色の下線／左に縦線）を使うので書かない。
   ========================================================= */
.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)):not(.is-style-section_ttl) {
	position: relative;
	margin: 3em 0 1.5em;
	padding: .85em 1em .85em 1.25em;
	background: var(--bp-celadon-pale);
	border-radius: var(--bp-radius-m);
	color: var(--bp-celadon-deep);
	font-size: 1.25em;
	line-height: 1.5;
}

/* 左端の短い縦線：葵の茎のイメージ。章の頭を示す */
.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)):not(.is-style-section_ttl)::before {
	content: "";
	position: absolute;
	top: .9em;
	bottom: .9em;
	left: .55em;
	width: 3px;
	border-radius: 2px;
	background: var(--bp-celadon);
}

@media (min-width: 600px) {
	.post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)):not(.is-style-section_ttl) {
		margin-top: 3.5em;
		font-size: 1.4em;
	}
}

.post_content h3 {
	margin-top: 2.5em;
}

/* =========================================================
   4. 目次
   ========================================================= */
.p-toc.-capbox,
.p-toc.-border,
.p-toc.-simple,
.p-toc.-double,
.p-toc.-stripe {
	border-radius: var(--bp-radius-m);
}

.p-toc__ttl {
	color: var(--bp-celadon-deep);
	font-size: 1.05em;
}

/* =========================================================
   5. 表
   SWELL の表ブロック（横スクロール設定はブロック側で）
   ========================================================= */
.post_content table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--bp-line);
	border-radius: var(--bp-radius-m);
	overflow: hidden;
	font-size: .92em;
	line-height: 1.6;
}

.post_content th,
.post_content td {
	border: none;
	border-bottom: 1px solid var(--bp-line);
	padding: .8em 1em;
}

.post_content tr:last-child th,
.post_content tr:last-child td {
	border-bottom: none;
}

.post_content thead th {
	background: var(--bp-celadon);
	color: #fff;
	font-weight: 700;
}

.post_content tbody th {
	background: var(--bp-celadon-pale);
	color: var(--bp-celadon-deep);
	font-weight: 700;
	text-align: left;
}

/* =========================================================
   6. ボックス類の角丸を揃える（色は SWELL エディター設定で）
   ========================================================= */
.post_content [class*="is-style-big_icon_"],
.post_content [class*="is-style-icon_"],
.post_content .cap_box_content,
.post_content .is-style-bg_main_thin,
.post_content .is-style-border_sm {
	border-radius: var(--bp-radius-l);
}

/* ふきだし：角を少し丸く、行間をゆったりと */
.c-balloon__text {
	border-radius: 14px;
	line-height: 1.75;
}

/* =========================================================
   7. 広告（SWELL設定 > 広告コード で <div class="bp-ad"> に包む）
   ========================================================= */
.bp-ad {
	margin: 2.5em auto;
	padding: .75em 0 1em;
	border-top: 1px solid var(--bp-line);
	border-bottom: 1px solid var(--bp-line);
	text-align: center;
	min-height: 120px; /* 広告の読み込み前後で本文が大きく動かないように */
}

.bp-ad__label {
	display: block;
	margin-bottom: .5em;
	color: var(--bp-muted);
	font-size: 11px;
	letter-spacing: .08em;
}

/* =========================================================
   8. スマホ下部：アンカー広告と重ならないように
   SWELL の右下ボタン（目次・ページトップ）を上に逃がし、
   フッター下にアンカー広告ぶんの余白をとる。
   ========================================================= */
@media (max-width: 959px) {
	.p-fixBtnWrap {
		bottom: calc(96px + env(safe-area-inset-bottom));
		right: 12px;
	}

	.l-footer {
		padding-bottom: calc(100px + env(safe-area-inset-bottom));
	}
}

/* =========================================================
   9. トップ：メインビジュアルのブログパーツ（.bp-hero）
   ========================================================= */
.p-mainVisual .p-blogParts,
.p-mainVisual__textLayer {
	text-align: left;
}

.bp-hero {
	max-width: 640px;
	padding: 2.5em 0 2em;
	color: var(--bp-ink);
}

.post_content .bp-hero__title,
.bp-hero__title {
	margin: 0 0 .6em;
	padding: 0;
	background: none;
	color: var(--bp-celadon-deep);
	font-size: clamp(26px, 6.4vw, 40px);
	line-height: 1.45;
	letter-spacing: .06em;
}

.post_content .bp-hero__title::before {
	content: none;
}

.bp-hero p {
	margin-bottom: 1.25em;
	font-size: 15px;
	line-height: 1.8;
}

.bp-hero__label {
	margin: 1.75em 0 .75em !important;
	color: var(--bp-celadon-deep);
	font-size: 14px !important;
	font-weight: 700;
}

/* 状態チップ：WordPress 標準ボタンを丸いチップに */
.bp-chips.wp-block-buttons {
	gap: 8px;
}

.bp-chips .wp-block-button__link {
	padding: .6em 1.1em;
	border: 1px solid var(--bp-line);
	border-radius: 999px;
	background: #fff;
	color: var(--bp-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	transition: border-color .15s, background-color .15s;
}

.bp-chips .wp-block-button__link:hover {
	border-color: var(--bp-celadon);
	background: var(--bp-celadon-pale);
	color: var(--bp-celadon-deep);
}

/* =========================================================
   10. トップ：カテゴリから探す（.bp-cats ＝ リストブロック）
   ========================================================= */
.bp-cats {
	list-style: none;
	margin: 0;
	padding: 0 !important;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	border-top: 1px solid var(--bp-line);
}

.bp-cats > li {
	margin: 0 !important;
	padding: 0 !important;
	border-bottom: 1px solid var(--bp-line);
}

.bp-cats > li::before {
	content: none !important;
}

.bp-cats a {
	display: flex;
	align-items: baseline;
	gap: 1em;
	padding: 1em .25em;
	color: var(--bp-ink);
	text-decoration: none;
}

.bp-cats a:hover {
	color: var(--bp-celadon-deep);
	background: var(--bp-celadon-pale);
}

.bp-cats strong {
	font-family: var(--bp-font-heading);
	font-size: 1.05em;
	color: var(--bp-celadon-deep);
	min-width: 9.5em;
}

.bp-cats span {
	color: var(--bp-muted);
	font-size: .88em;
}

@media (min-width: 960px) {
	.bp-cats {
		grid-template-columns: 1fr 1fr;
		column-gap: 2.5em;
	}
}

/* =========================================================
   11. 商品の案内（.bp-product）葵色はここだけ
   ========================================================= */
.bp-product {
	margin: 3em 0;
	padding: 1.5em;
	background: var(--bp-mallow-pale);
	border-radius: var(--bp-radius-l);
	border: 1px solid #e3d4e1;
}

.bp-product .wp-block-media-text__media img {
	border-radius: var(--bp-radius-m);
}

.post_content .bp-product__kicker,
.bp-product__kicker {
	margin-bottom: .25em !important;
	color: var(--bp-mallow);
	font-size: 13px;
	font-weight: 700;
}

.post_content .bp-product__name,
.bp-product__name {
	margin: 0 0 .5em !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	color: var(--bp-ink);
	font-size: 1.3em;
}

.post_content .bp-product__name::before,
.post_content .bp-product__name::after {
	content: none !important;
}

.bp-product__note {
	margin-top: 1em !important;
	color: var(--bp-muted);
	font-size: 12px;
	line-height: 1.6;
}

/* =========================================================
   12. このサイトについて（.bp-about）
   ========================================================= */
.bp-about {
	padding: 1.5em;
	border: 1px solid var(--bp-line);
	border-radius: var(--bp-radius-l);
	background: #fff;
	font-size: .95em;
}

/* =========================================================
   13. 記事一覧：カードの角と罫線
   ========================================================= */
.p-postList__thumb,
.c-postThumb__figure {
	border-radius: var(--bp-radius-m);
	overflow: hidden;
}

.p-postList__title {
	line-height: 1.6;
}

/* =========================================================
   14. 動きを減らす設定の人には動かさない
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* 注文フォーム（Contact Form 7 の表組み）: スマホでは項目名を上、入力欄を下に積む */
@media (max-width: 599px) {
	.wpcf7 table.sample, .wpcf7 table.sample tbody, .wpcf7 table.sample tr, .wpcf7 table.sample th, .wpcf7 table.sample td { display: block; width: 100%; }
	.wpcf7 table.sample th { padding: .8em .8em .3em; border-bottom: none; }
	.wpcf7 table.sample td { padding: 0 .8em .9em; }
	.wpcf7 table.sample input[type="text"], .wpcf7 table.sample input[type="email"], .wpcf7 table.sample textarea { width: 100%; max-width: 100%; }
}
