/* =========================================================
   Lightning Child - Ecological
   この CSS は「選ばれたときだけ効く」書き方にしている（ルール R2-5）。
   1. サイト全体の設定 … body のクラス（カスタマイザー「エコロジカル デザイン」で付く）
   2. ブロックスタイル … is-style-eco-…（ブロックの「スタイル」で選ぶ）
   3. プラグインの表示 … eco-area-check / eco-wards（Ecological Core のショートコードが出す）
   ========================================================= */

:root {
	/* 青は Lightning のキーカラーを使う（外観 → カスタマイズ → Lightning デザイン設定） */
	--eco-accent: var(--wp--preset--color--vk-color-primary, #2881c0);
	--eco-accent-dark: var(--wp--preset--color--vk-color-primary-dark, #206799);
	/* 差し色（明るいオレンジ）。どこでもこの1色だけを使う（暗くした色などは作らない）。カスタマイザー「差し色」で変えられる */
	--eco-pop: #e66a00;
	--eco-ink: #1f2326;
	--eco-sub: #5c6166;
	--eco-paper: #fbfbfb;
	--eco-white: #ffffff;
	--eco-tint: #f2f2f2;
	--eco-line: #e3e3e3;
	--eco-soft: color-mix(in srgb, var(--eco-accent) 8%, #fff);
	--eco-en: 'Jost', 'Zen Kaku Gothic New', sans-serif;
	--eco-radius: 18px;

	/* アイコン（線画）。段落のスタイル「アイコン（〇〇）」で使う */
	--eco-icon-fridge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='2'/%3E%3Cpath d='M6 9.5h12M9 6v1.5M9 12.5v3'/%3E%3C/svg%3E");
	--eco-icon-microwave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Crect x='5' y='8' width='10' height='8' rx='1'/%3E%3Cpath d='M18 9v.01M18 12v.01M18 15v.01'/%3E%3C/svg%3E");
	--eco-icon-tv: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='12' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E");
	--eco-icon-pc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='11' rx='1.5'/%3E%3Cpath d='M2 19h20'/%3E%3C/svg%3E");
	--eco-icon-bike: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='16' r='3.5'/%3E%3Ccircle cx='18' cy='16' r='3.5'/%3E%3Cpath d='M6 16l4-8h5l3 8M10 8l2 8h-6M14 5h3'/%3E%3C/svg%3E");
	--eco-icon-pan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11h13a6 6 0 0 1-6 6H9a6 6 0 0 1-6-6zM16 12l5-3'/%3E%3C/svg%3E");
	--eco-icon-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l9-5 9 5v8l-9 5-9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E");
	--eco-icon-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.5-7-10a4 4 0 0 1 7-2.5A4 4 0 0 1 19 10c0 5.5-7 10-7 10z'/%3E%3C/svg%3E");
	--eco-icon-tree: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-6M12 3l6 8h-3l4 4H5l4-4H6z'/%3E%3C/svg%3E");
	--eco-icon-grass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18M6 20c0-5-2-8-2-8M10 20c0-6 2-10 2-10M14 20c0-5 3-8 3-8M18 20c0-3 2-5 2-5'/%3E%3C/svg%3E");
	--eco-icon-shed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6v10H3z'/%3E%3Cpath d='M8 20v-6h8v6M8 17h8'/%3E%3C/svg%3E");
	--eco-icon-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E");
	--eco-icon-camera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
	--eco-icon-yen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4l6 8 6-8M12 12v8M8 13h8M8 16.5h8'/%3E%3C/svg%3E");
	--eco-icon-face: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1-4 4-6 8-6s7 2 8 6'/%3E%3C/svg%3E");
	--eco-icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11l8-7 8 7v9H4z'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E");
	--eco-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
	--eco-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* =========================================================
   1. サイト全体の設定（カスタマイザー）
   ========================================================= */

body.eco-bg { background-color: var(--eco-bg); }
body.eco-bg .site-body,
body.eco-bg .main-section,
body.eco-bg .site-body-container { background-color: transparent; }

body.eco-text { color: var(--eco-text); }

body.eco-font { font-family: var(--eco-body-font); }
body.eco-font :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea) { font-family: inherit; }

body.eco-size-large { font-size: 17px; }
body.eco-size-xlarge { font-size: 18px; }

/* ヘッダー */
body.eco-header .site-header {
	background-color: color-mix(in srgb, var(--eco-bg, #fff) 92%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: none;
	border-bottom: 1px solid var(--eco-line);
}
body.eco-header .site-header-logo a { letter-spacing: .06em; }

/* スマホのメニュー（VK Mobile Nav）。ボタン：丸・細い青の枠・青の3本線。大きさは Lightning 標準（34px）のまま */
body.eco-mobile-nav .vk-mobile-nav-menu-btn,
body.eco-mobile-nav .vk-mobile-nav-menu-btn.menu-open {
	border: 1px solid color-mix(in srgb, var(--eco-accent) 55%, transparent);
	border-radius: 50%;
	background: color-mix(in srgb, var(--eco-paper) 90%, transparent);
}
body.eco-mobile-nav .vk-mobile-nav-menu-btn::before,
body.eco-mobile-nav .vk-mobile-nav-menu-btn::after {
	content: ""; position: absolute; left: 50%; top: 50%;
	width: 16px; height: 2px; margin: -1px 0 0 -8px; border-radius: 1px;
	background: var(--eco-accent);
	transition: transform .2s, box-shadow .2s;
}
body.eco-mobile-nav .vk-mobile-nav-menu-btn::before { box-shadow: 0 -5px 0 var(--eco-accent), 0 5px 0 var(--eco-accent); }
body.eco-mobile-nav .vk-mobile-nav-menu-btn::after { opacity: 0; }
body.eco-mobile-nav .vk-mobile-nav-menu-btn.menu-open::before { box-shadow: none; transform: rotate(45deg); }
body.eco-mobile-nav .vk-mobile-nav-menu-btn.menu-open::after { opacity: 1; transform: rotate(-45deg); }
body.eco-mobile-nav .vk-mobile-nav { background-color: var(--eco-paper); border-bottom: none; padding: 64px 20px 24px; }
body.eco-mobile-nav .vk-mobile-nav nav > ul { border-top: 1px solid var(--eco-line); }
body.eco-mobile-nav .vk-mobile-nav nav ul li a {
	color: var(--eco-ink); border-bottom: 1px solid var(--eco-line);
	font-size: 15px; font-weight: 500; letter-spacing: .04em; padding: 15px 32px 15px 8px;
}
body.eco-mobile-nav .vk-mobile-nav nav ul li:not(.menu-item-has-children) > a::after {
	content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px;
	border-top: 1.5px solid var(--eco-accent); border-right: 1.5px solid var(--eco-accent);
	transform: translateY(-50%) rotate(45deg);
}
body.eco-mobile-nav .vk-mobile-nav .current-menu-item > a { color: var(--eco-accent); }

/* フッター（背景色はカスタマイザー「フッターの背景色」） */
/* 上の境界はヘッダーの下の線と同じ細線 */
body.eco-footer .site-footer { background-color: var(--eco-footer-bg, #f2f2f2); color: var(--eco-sub); border-top: 1px solid var(--eco-line); }
body.eco-footer .site-footer a { color: var(--eco-ink); }

/* 固定ページの見出し：エコロジカル（薄いグレーの背景に、英字ラベルと大きなページ名を左寄せ。英字ラベルは inc/page-label.php が足す）
   Lightning は帯を中央寄せ（display:flex）にしているので、本文と左端がそろうよう普通の箱に戻す */
body.eco-page-header .page-header {
	display: block;
	min-height: 0;
	text-align: left;
	color: var(--eco-ink);
	background: var(--eco-tint);
	border-bottom: 1px solid var(--eco-line);
}
body.eco-page-header .page-header-inner {
	margin: 0 auto;
	padding-top: clamp(48px, 7vw, 88px);
	padding-bottom: clamp(40px, 6vw, 72px);
}
body.eco-page-header .page-header-title {
	color: var(--eco-ink);
	font-size: clamp(1.9rem, 3vw, 2.125rem);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .04em;
}
.eco-page-header-label { font-family: var(--eco-en); font-size: 13px; letter-spacing: .3em; color: var(--eco-accent); margin-bottom: 10px; }
@media (max-width: 767px) {
	.eco-page-header-label { font-size: 12px; letter-spacing: .15em; margin-bottom: 6px; }
}

/* フッターの連絡先の案内（カスタマイザーでオンのときだけ HTML が出る） */
.eco-footer-contact { text-align: center; padding-top: clamp(36px, 5vw, 56px); padding-bottom: 8px; }
.eco-footer-contact p { margin: 0; }
.eco-footer-contact-title { font-weight: 700; color: var(--eco-ink); }
.eco-footer-contact-tel { font-family: var(--eco-en); font-size: clamp(1.6rem, 4.5vw, 2.25rem); line-height: 1.3; margin: 6px 0 4px !important; }
.site-footer .eco-footer-contact-tel a { color: var(--eco-ink); text-decoration: none; }
.eco-footer-contact-sub { font-family: var(--eco-en); font-size: 15px; }

/* ページトップボタン（ExUnit の #page_top）：カスタマイザーで表示しないを選んだ画面幅だけ隠す */
@media (min-width: 768px) {
	body.eco-hide-pagetop-pc #page_top { display: none !important; }
}
@media (max-width: 767px) {
	body.eco-hide-pagetop-sp #page_top { display: none !important; }
}

/* 画面下の固定ボタン（カスタマイザーでオンのときだけ HTML が出る）。スマホは常に、パソコンは「パソコンでも表示する」のとき（body.eco-fixbar-pc）だけ出す */
.eco-fixbar {
	display: none; gap: 10px;
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: var(--eco-paper);
	border-top: 1px solid var(--eco-line);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}
.eco-fixbar a {
	flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center;
	border-radius: 999px; border: 1.5px solid var(--eco-accent);
	color: var(--eco-accent); background: #fff;
	font-weight: 700; font-size: 16px; text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}
.eco-fixbar a:first-child { background: var(--eco-accent); color: #fff; }
.eco-fixbar a:hover { color: #fff; background: color-mix(in srgb, var(--eco-accent) 85%, #000); border-color: color-mix(in srgb, var(--eco-accent) 85%, #000); }
@media (max-width: 767px) {
	.eco-fixbar { display: flex; }
	body.eco-has-fixbar .site-footer { padding-bottom: 84px; }
}
/* パソコン：白い帯は出さず、画面下の真ん中にボタンだけを浮かせる（帯の部分はクリックが下のページに通る）。右下のページトップボタンはボタンの上へずらす */
@media (min-width: 768px) {
	body.eco-fixbar-pc .eco-fixbar { display: flex; justify-content: center; background: none; border-top: none; box-shadow: none; pointer-events: none; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
	body.eco-fixbar-pc .eco-fixbar a { flex: 0 1 360px; pointer-events: auto; box-shadow: 0 6px 18px rgba(20, 40, 60, .18); }
	body.eco-fixbar-pc.eco-has-fixbar .site-footer { padding-bottom: 84px; }
	body.eco-fixbar-pc #page_top { bottom: 92px; }
}

/* 見つからないページ（404）の専用画面（inc/not-found.php） */
body.eco-404 { overflow-x: clip; }
.eco-404-section {
	margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
	min-height: 62vh; display: flex; align-items: center; justify-content: center;
	padding: clamp(64px, 10vw, 120px) 20px;
	text-align: center;
	background: var(--eco-tint);
}
.eco-404-inner { width: 100%; max-width: 560px; }
.eco-404-icon { width: 64px; height: 64px; color: var(--eco-accent); margin-bottom: 20px; }
.eco-404-title {
	font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; line-height: 1.5; letter-spacing: .04em;
	margin: 0 0 16px; padding: 0; border: none; background: none;
}
.eco-404-title::before, .eco-404-title::after { content: none; }
.eco-404-text { color: var(--eco-sub); margin: 0 0 32px; }
.eco-404-buttons { display: grid; gap: 12px; max-width: 360px; margin: 0 auto; }
.eco-404-buttons .wp-block-button__link { width: 100%; text-align: center; }
@media (min-width: 768px) {
	.eco-404-buttons { grid-template-columns: 1fr 1fr; max-width: 520px; }
	.eco-404-buttons > :first-child { grid-column: 1 / -1; }
}

/* =========================================================
   2. ブロックスタイル
   ========================================================= */

/* --- グループ：ファーストビュー・セクション ---
   上下の余白は、グループの「寸法 → パディング（内側）／マージン（外側）」で1つずつ変えられる。
   その値はブロックに直接書かれ、ここの値より優先される（!important を付けないのはそのため） */
.wp-block-group.is-style-eco-hero {
	padding: clamp(48px, 7vw, 88px) 24px clamp(56px, 8vw, 96px);
	margin-top: 0;
	margin-bottom: 0;
}
.wp-block-group.is-style-eco-section,
.wp-block-group.is-style-eco-section-tint {
	padding: clamp(64px, 9vw, 104px) 24px;
	margin-top: 0;
	margin-bottom: 0;
}
.wp-block-group.is-style-eco-section-tint { background-color: var(--eco-tint); }

/* --- グループ：大きな枠（白／薄い青）・青い帯 --- */
.wp-block-group.is-style-eco-panel,
.wp-block-group.is-style-eco-panel-soft,
.wp-block-group.is-style-eco-band {
	border-radius: 28px;
	padding: clamp(24px, 4vw, 44px);
}
.wp-block-group.is-style-eco-panel { background: var(--eco-white); }
/* 白い背景のセクションに置いたときは、背景との差が小さいので細い枠線を付ける */
.wp-block-group.is-style-eco-section .wp-block-group.is-style-eco-panel { border: 1px solid var(--eco-line); }
/* 大きな枠のあとに続く部品との間をあける（Lightning は隣り合う要素の上の余白を消すので、下の余白で取る） */
.wp-block-group:is(.is-style-eco-panel, .is-style-eco-panel-soft) { margin-bottom: 40px; }
.wp-block-group:is(.is-style-eco-panel, .is-style-eco-panel-soft):last-child { margin-bottom: 0; }
.wp-block-group.is-style-eco-panel-soft { background: var(--eco-soft); }
.wp-block-group.is-style-eco-band { background: var(--eco-accent); color: #fff; }
.wp-block-group.is-style-eco-band .wp-block-heading.is-style-eco-section-title-left { color: #fff; }
.wp-block-group.is-style-eco-band a:not(.wp-block-button__link) { color: inherit; }
/* 青い帯の中のカード・白い枠は、文字を墨色に戻す */
.wp-block-group.is-style-eco-band :is(.is-style-eco-card, .is-style-eco-panel, .is-style-eco-tile) { color: var(--eco-ink); }
.wp-block-group.is-style-eco-band :is(.is-style-eco-card, .is-style-eco-panel, .is-style-eco-tile) .wp-block-heading { color: var(--eco-ink); }
/* 青い帯の中の写真の枠（代表の写真など）は丸く */
.wp-block-group.is-style-eco-band .wp-block-group.is-style-eco-photo {
	width: 120px; height: 120px; min-height: 0; padding: 8px; margin: 0 auto; border-radius: 50%;
	background: color-mix(in srgb, #fff 16%, transparent); border-color: color-mix(in srgb, #fff 60%, transparent); color: #fff;
}
.wp-block-group.is-style-eco-band .wp-block-group.is-style-eco-photo p { font-size: 12px; }

/* --- グループ／列：カード類 --- */
.wp-block-column.is-style-eco-card {
	background: var(--eco-white);
	border-radius: 6px;
	padding: 36px 30px 34px;
}
.wp-block-group.is-style-eco-band .wp-block-column.is-style-eco-card { border-radius: var(--eco-radius); padding: 22px 18px; }
.wp-block-group.is-style-eco-band .wp-block-column.is-style-eco-card p:not([class*="is-style-eco-"]) { font-size: 14px; line-height: 1.7; }
.wp-block-group.is-style-eco-band .wp-block-columns .wp-block-columns { gap: 14px; }
.wp-block-group.is-style-eco-tile,
.wp-block-column.is-style-eco-card-tile {
	background: var(--eco-white);
	border: 1px solid var(--eco-line);
	border-radius: 22px;
	padding: 26px 24px 22px;
	transition: border-color .15s, transform .15s;
}
.wp-block-column.is-style-eco-card-tile { border-radius: 16px; padding: 16px 10px 14px; text-align: center; }
.wp-block-group.is-style-eco-tile:hover { border-color: var(--eco-accent); transform: translateY(-2px); }
.wp-block-group.is-style-eco-tile-main {
	background: var(--eco-accent);
	color: #fff;
	border-radius: 22px;
	padding: 28px 26px 26px;
	height: 100%;
}
.wp-block-group.is-style-eco-tile-main :is(h2, h3, h4, p, li) { color: inherit; }
/* 枠線のカード・青いカードの中にボタンが1つだけあるときは、カードのどこを押してもそのボタンのリンク先へ進む。
   ボタンのリンクを、カード全体を覆う透明な面まで広げる（公開画面だけ。編集画面ではブロックを選べるように広げない）。
   カードの中のほかのリンクは、その面より手前に出して押せるようにする */
:where(body:not(.editor-styles-wrapper)) :is(.wp-block-group.is-style-eco-tile, .wp-block-group.is-style-eco-tile-main):has(.wp-block-button__link):not(:has(.wp-block-button ~ .wp-block-button, .wp-block-buttons ~ .wp-block-buttons)) { position: relative; cursor: pointer; }
:where(body:not(.editor-styles-wrapper)) :is(.wp-block-group.is-style-eco-tile, .wp-block-group.is-style-eco-tile-main):has(.wp-block-button__link):not(:has(.wp-block-button ~ .wp-block-button, .wp-block-buttons ~ .wp-block-buttons)) .wp-block-button__link::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
:where(body:not(.editor-styles-wrapper)) :is(.wp-block-group.is-style-eco-tile, .wp-block-group.is-style-eco-tile-main):has(.wp-block-button__link):not(:has(.wp-block-button ~ .wp-block-button, .wp-block-buttons ~ .wp-block-buttons)) a:not(.wp-block-button__link) { position: relative; z-index: 1; }
/* このボタンには、指したときに transform（持ち上げ）も filter（Lightning の「明るく・鮮やかに」）も付けない。
   どちらもボタンを「カード全体を覆う面」の基準にしてしまい、面がボタンの大きさに縮む → カーソルが外れて元に戻る、をくり返して点滅するため。
   指したときは、カード自体が少し持ち上がり、ボタンの色が濃くなる */
:where(body:not(.editor-styles-wrapper)) :is(.wp-block-group.is-style-eco-tile, .wp-block-group.is-style-eco-tile-main):has(.wp-block-button__link):not(:has(.wp-block-button ~ .wp-block-button, .wp-block-buttons ~ .wp-block-buttons)) .wp-block-button__link:is(:hover, :focus, :active) { transform: none; filter: none; }
/* カラムにカードが1枚だけのとき（できることの3枚など）は、横に並んだカードの高さをそろえ、ボタンを下にそろえる */
.wp-block-column > .wp-block-group:only-child:is(.is-style-eco-tile, .is-style-eco-tile-main) { display: flex; flex-direction: column; height: 100%; }
.wp-block-column > .wp-block-group:only-child:is(.is-style-eco-tile, .is-style-eco-tile-main) .wp-block-buttons:last-child { margin-top: auto; padding-top: 10px; }
.wp-block-group.is-style-eco-row-card {
	background: var(--eco-white);
	border-radius: 20px;
	padding: 22px 24px;
	gap: 18px;
}
.wp-block-group.is-style-eco-row-card + .wp-block-group.is-style-eco-row-card { margin-top: 12px; }
.wp-block-group.is-style-eco-row-card p.is-style-eco-number-ring { flex: none; }
.wp-block-group.is-style-eco-row-card .wp-block-group :is(h3, p) { margin: 0; }
.wp-block-group.is-style-eco-row-card .wp-block-group p { color: var(--eco-sub); font-size: .9em; }
:is(.wp-block-column.is-style-eco-card, .wp-block-group.is-style-eco-tile, .wp-block-group.is-style-eco-tile-main, .wp-block-group.is-style-eco-row-card, .wp-block-column.is-style-eco-card-tile, .wp-block-group[class*="is-style-eco-"] > .wp-block-group__inner-container) > :first-child { margin-top: 0; }
:is(.wp-block-column.is-style-eco-card, .wp-block-group.is-style-eco-tile, .wp-block-group.is-style-eco-tile-main, .wp-block-group.is-style-eco-row-card, .wp-block-column.is-style-eco-card-tile, .wp-block-group[class*="is-style-eco-"] > .wp-block-group__inner-container) > :last-child { margin-bottom: 0; }
:is(.wp-block-column.is-style-eco-card, .wp-block-group.is-style-eco-tile) p:not([class*="is-style-eco-"]) { color: var(--eco-sub); font-size: .9em; }
.wp-block-group.is-style-eco-tile-main p:not([class*="is-style-eco-"]) { opacity: .92; }
/* カードの中の段落・見出しの間を詰める（Lightning の要素の下の余白は、カードの中では大きすぎるため） */
:is(.is-style-eco-card, .is-style-eco-tile, .is-style-eco-tile-main, .is-style-eco-row-card, .is-style-eco-card-tile) > *,
:is(.is-style-eco-tile, .is-style-eco-tile-main) > .wp-block-group__inner-container > * { margin-bottom: 10px; }

/* Lightning（theme.json のないテーマ）では、横並び以外のグループの中身が .wp-block-group__inner-container で包まれる。
   エコロジカルのスタイルのグループでは、その包みを見た目の上でないものとして扱い、中身を直接並べる */
.wp-block-group[class*="is-style-eco-"]:not(.is-style-eco-hero, .is-style-eco-section, .is-style-eco-section-tint) > .wp-block-group__inner-container { display: contents; }

/* --- グループ：写真の枠（写真が入るまでの仮。中に写真の説明を書いておき、写真ができたら画像ブロックに置き換える） --- */
.wp-block-group.is-style-eco-photo {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	min-height: 200px;
	padding: 20px;
	text-align: center;
	color: var(--eco-accent);
	background: var(--eco-soft);
	border: 1.5px dashed color-mix(in srgb, var(--eco-accent) 40%, #fff);
	border-radius: var(--eco-radius);
}
.wp-block-group.is-style-eco-photo::before {
	content: ""; width: 30px; height: 30px; background: currentColor;
	-webkit-mask: var(--eco-icon-camera) center / contain no-repeat; mask: var(--eco-icon-camera) center / contain no-repeat;
}
.wp-block-group.is-style-eco-photo p { margin: 0; color: inherit; font-size: 14px; font-weight: 700; }
.wp-block-group.is-style-eco-photo p + p { font-weight: 400; font-size: 12.5px; color: var(--eco-sub); }
/* 置く場所ごとの写真の枠の形（ファーストビューは横長、人物は縦長、カードの中は正方形） */
.wp-block-group.is-style-eco-hero .wp-block-group.is-style-eco-photo { aspect-ratio: 4 / 3.4; }
.wp-block-columns.is-not-stacked-on-mobile .wp-block-group.is-style-eco-photo { min-height: 0; aspect-ratio: 9 / 10; margin-bottom: 10px; }
.wp-block-column.is-style-eco-card .wp-block-group.is-style-eco-photo { aspect-ratio: 1; border-radius: 12px; border-width: 0; padding: 6px; margin-bottom: 0; }
.wp-block-column.is-style-eco-card > .wp-block-columns { gap: 4px; margin-bottom: 14px; }

/* --- 画像：写真（角丸・3:2 に切りそろえ）。縦長・横長どちらの写真を入れても 3:2 の枠に収め、はみ出た分は中央を基準に切り取る --- */
.wp-block-image.is-style-eco-photo-image { margin: 0; }
.wp-block-image.is-style-eco-photo-image img {
	display: block; width: 100%; height: auto;
	aspect-ratio: 3 / 2; object-fit: cover; object-position: center;
	border-radius: var(--eco-radius);
}
/* --- 画像：そのほかの形（人物は縦長、作業事例は正方形、代表は丸、LINE の吹き出しは小さめ） --- */
.wp-block-image:is(.is-style-eco-photo-portrait, .is-style-eco-photo-square, .is-style-eco-photo-circle, .is-style-eco-photo-bubble) { margin: 0; }
.wp-block-image:is(.is-style-eco-photo-portrait, .is-style-eco-photo-square, .is-style-eco-photo-circle, .is-style-eco-photo-bubble) img {
	display: block; width: 100%; height: auto; object-fit: cover; object-position: center;
}
.wp-block-image.is-style-eco-photo-portrait { margin-bottom: 10px; }
.wp-block-image.is-style-eco-photo-portrait img { aspect-ratio: 9 / 10; border-radius: var(--eco-radius); }
.wp-block-image.is-style-eco-photo-square { position: relative; }
.wp-block-image.is-style-eco-photo-square img { aspect-ratio: 1; border-radius: 12px; }
/* キャプションは写真の左上の札（BEFORE / AFTER の形）。右の列の写真の札は青 */
.wp-block-image.is-style-eco-photo-square figcaption {
	position: absolute; left: 8px; top: 8px; margin: 0;
	padding: 1px 10px; border-radius: 999px;
	font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.7;
	background: #fff; color: var(--eco-ink);
}
.wp-block-column:last-child > .wp-block-image.is-style-eco-photo-square figcaption { background: var(--eco-accent); color: #fff; }
.wp-block-image.is-style-eco-photo-circle img { width: 120px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; border: 3px solid #fff; }
.wp-block-image.is-style-eco-photo-bubble { align-self: flex-end; margin-left: auto; width: 150px; max-width: 70%; }
.wp-block-image.is-style-eco-photo-bubble img { aspect-ratio: 4 / 3; border-radius: 16px 16px 6px 16px; }

/* 編集画面：写真を入れる前の「画像」の欄も、それぞれの形の枠で見せる（丸と吹き出しは小さすぎて押しにくいので普通の大きさのまま） */
.wp-block-image.is-style-eco-photo-image .components-placeholder { aspect-ratio: 3 / 2; min-height: 0; border-radius: var(--eco-radius); }
.wp-block-image.is-style-eco-photo-portrait .components-placeholder { aspect-ratio: 9 / 10; min-height: 0; border-radius: var(--eco-radius); }
.wp-block-image.is-style-eco-photo-square .components-placeholder { aspect-ratio: 1; min-height: 0; border-radius: 12px; }

/* --- グループ：LINE のやりとり（中に吹き出しの段落を並べる） --- */
.wp-block-group.is-style-eco-chat {
	background: var(--eco-white);
	border-radius: 24px;
	padding: 20px;
	display: flex; flex-direction: column; gap: 10px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06);
}
.wp-block-group.is-style-eco-chat > *,
.wp-block-group.is-style-eco-chat > .wp-block-group__inner-container > * { margin: 0 !important; }
:is(.wp-block-group.is-style-eco-chat, .wp-block-group.is-style-eco-chat > .wp-block-group__inner-container) > .is-style-eco-photo { min-height: 0; width: 150px; aspect-ratio: 4 / 3; align-self: flex-end; border-radius: 16px 16px 6px 16px; padding: 8px; }
.wp-block-group.is-style-eco-chat .is-style-eco-photo::before { width: 22px; height: 22px; }
p.is-style-eco-bubble-me,
p.is-style-eco-bubble-shop { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.7; margin: 0; }
p.is-style-eco-bubble-me { align-self: flex-end; margin-left: auto; background: var(--eco-accent); color: #fff; border-bottom-right-radius: 6px; }
p.is-style-eco-bubble-shop { align-self: flex-start; margin-right: auto; background: var(--eco-tint); color: var(--eco-ink); border-bottom-left-radius: 6px; }

/* --- 見出し（Lightning の見出し装飾は、このスタイルを選んだ見出しだけ外す） --- */
.wp-block-heading:is(.is-style-eco-hero-title, .is-style-eco-section-title, .is-style-eco-section-title-left, .is-style-eco-card-title) {
	padding: 0; border: none; background: none; border-radius: 0;
	font-weight: 700; letter-spacing: .04em;
	text-wrap: balance;
}
.wp-block-heading:is(.is-style-eco-hero-title, .is-style-eco-section-title, .is-style-eco-section-title-left, .is-style-eco-card-title)::before,
.wp-block-heading:is(.is-style-eco-hero-title, .is-style-eco-section-title, .is-style-eco-section-title-left, .is-style-eco-card-title)::after { content: none; }
.wp-block-heading.is-style-eco-hero-title { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.5; margin: 0 0 22px; }
/* ファーストビューの中の大見出しは、段（カラム）の幅に合わせて大きさを変え、「夫婦経営の便利屋です。」（11文字）が1行に収まるようにする（最大 48px） */
.wp-block-group.is-style-eco-hero .wp-block-column:has(> .is-style-eco-hero-title) { container-type: inline-size; }
.wp-block-group.is-style-eco-hero .wp-block-heading.is-style-eco-hero-title { font-size: clamp(22px, 8.6cqi, 48px); }
.wp-block-heading.is-style-eco-hero-title em,
.wp-block-heading.is-style-eco-hero-title strong { font-style: normal; color: var(--eco-accent); }
/* 中央・下に短い線（選ばれる理由の見出しの形） */
.wp-block-heading.is-style-eco-section-title { font-size: clamp(1.5rem, 3.2vw, 1.9rem); line-height: 1.5; letter-spacing: .08em; margin: 0 0 48px; scroll-margin-top: 90px; }
.wp-block-heading.is-style-eco-section-title::after { content: ""; display: block; width: 28px; height: 2px; margin: 18px auto 0; background: var(--eco-accent); }
.wp-block-heading.is-style-eco-section-title:not(.has-text-align-center)::after { margin-left: 0; }
/* 左寄せの大きな見出し（エリア確認・お困りごとの見出しの形） */
.wp-block-heading.is-style-eco-section-title-left { font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.45; font-weight: 900; margin: 0 0 12px; scroll-margin-top: 90px; }
.wp-block-heading.is-style-eco-card-title { font-size: 1.15rem; line-height: 1.55; margin: 0 0 8px; }
.wp-block-group.is-style-eco-tile-main .wp-block-heading.is-style-eco-card-title,
.wp-block-column > .wp-block-group.is-style-eco-tile:only-child .wp-block-heading.is-style-eco-card-title { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 900; line-height: 1.4; }
/* 青い小見出し（私たちのことのメッセージの見出しなど） */
.wp-block-heading.is-style-eco-accent-title {
	padding: 0; border: none; background: none; border-radius: 0;
	font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.6; letter-spacing: .04em;
	color: var(--eco-accent); margin: 0 0 18px; text-wrap: balance;
}
.wp-block-heading.is-style-eco-accent-title::before, .wp-block-heading.is-style-eco-accent-title::after { content: none; }

/* --- VK Blocks スライダー：写真スライド（3:2。Smile you と同じ） ---
   写真の比率がバラバラでも 3:2 の枠にそろえ、はみ出た部分は切り取る（中央基準）。VK Blocks の「高さ」の設定より優先する。
   写真がまだ入っていないスライドは薄い灰色の枠になる */
.wp-block-vk-blocks-slider.is-style-eco-photo-slider {
	width: 100%;
	max-width: 800px !important; /* Lightning の全幅セクションの中の幅指定より優先する */
	height: auto !important;
	aspect-ratio: 3 / 2;
	margin: 0 auto !important;
	border-radius: var(--eco-radius);
	overflow: hidden;
	background-color: var(--eco-tint);
	box-shadow: 0 10px 30px rgba(20, 40, 60, .08);
}
.wp-block-vk-blocks-slider.is-style-eco-photo-slider .vk_slider_item { height: auto !important; aspect-ratio: 3 / 2; background-color: var(--eco-tint); }
.wp-block-vk-blocks-slider.is-style-eco-photo-slider .vk_slider_item_container > p:empty { display: none; }

/* --- 次回の無料回収日 [eco_next_free]（Ecological Core。日付は Google カレンダーから）。日付は差し色のオレンジ。押すと無料回収のページへ --- */
.eco-next-free {
	display: inline-grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 18px; row-gap: 2px;
	padding: 12px 22px 14px; border: 1.5px solid var(--eco-pop); border-radius: 14px;
	background: #fff; color: var(--eco-ink); text-decoration: none; line-height: 1.5;
	transition: background-color .2s;
}
a.eco-next-free:hover, a.eco-next-free:focus-visible { background: color-mix(in srgb, var(--eco-pop) 7%, #fff); color: var(--eco-ink); }
.eco-next-free[hidden] { display: none; }
.eco-next-free .eco-next-free-label { grid-column: 1 / -1; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--eco-sub); }
.eco-next-free .eco-next-free-date { font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 700; letter-spacing: .02em; color: var(--eco-pop); }
.eco-next-free-more { font-size: 13px; font-weight: 700; color: var(--eco-pop); white-space: nowrap; }
.eco-next-free-more::after { content: " →"; }
/* 1行の形 [eco_next_free style="line"]（「できること」の無料回収のカードの中）。箇条書きより少し大きく、日付は差し色のオレンジ。かっこを詰めて（palt）1行に収める */
.eco-next-free-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; white-space: nowrap; font-size: 1.04em; font-weight: 700; line-height: 1.5; color: var(--eco-ink); font-feature-settings: "palt"; } /* カードが細い画面幅（3列のタブレットなど）では、はみ出さずに日付だけ次の行へ */
.eco-next-free-line[hidden] { display: none; }
.eco-next-free-line .eco-next-free-date { color: var(--eco-pop); font-size: 1.12em; letter-spacing: .02em; }
p:has(> .eco-next-free-line) { margin: 2px 0 0; }
/* カードの中の枠（[eco_next_free link="no"]）：枠は中身の幅に合わせ（右に余白を作らない）、カードより広くはしない。
   上の箇条書きとの間（箇条書きの下の余白 --vk-margin-element-bottom＋項目の 6px）と、下のボタンとの間（ボタンの上の 10px＋この枠の下の余白）を同じにする。
   日付の大きさはカードの幅に合わせて変える（広い画面では外の枠と同じ大きさ、細いカードでは年から曜日までが1行に収まる大きさ）。
   ショートコードは段落に包まれないことが多いので、幅の基準（container）はカード自体にする */
.wp-block-group.is-style-eco-tile:has(.eco-next-free) { container-type: inline-size; }
.wp-block-group.is-style-eco-tile p:has(> .eco-next-free) { margin: 0; }
.wp-block-group.is-style-eco-tile .eco-next-free { display: grid; grid-template-columns: auto; width: fit-content; max-width: 100%; box-sizing: border-box; margin: 0 0 calc(var(--vk-margin-element-bottom, 24px) - 4px); padding: 10px 18px 12px; }
.wp-block-group.is-style-eco-tile .eco-next-free .eco-next-free-date { font-size: clamp(1.1rem, 8.4cqi, 1.6rem); white-space: nowrap; font-feature-settings: "palt"; }
/* 予定が取れず中身が空になった段落は隠す */
.wp-block-group.is-style-eco-tile p:empty { display: none; }

/* =========================================================
   Contact Form 7（お問い合わせフォーム）
   エコロジカルのパネル（is-style-eco-panel）の中に置いたフォームだけ、サイトの見た目にそろえる（ほかの場所のフォームは Contact Form 7・Lightning の標準のまま）。
   フォームの形：<p><span class="must">必須</span><label> 項目名<br><span class="wpcf7-form-control-wrap">入力欄</span></label></p>（任意の項目は span.free）
   ========================================================= */
.wp-block-group.is-style-eco-panel:has(.wpcf7) { max-width: 760px; margin-left: auto; margin-right: auto; padding: clamp(24px, 5vw, 48px); }
/* スマホは左右の余白を少し詰めて、入力欄と選択肢を広く */
@media (max-width: 599px) {
	.wp-block-group.is-style-eco-panel:has(.wpcf7) { padding: 24px 16px; }
}
.is-style-eco-panel .wpcf7 { color: var(--eco-ink); }
/* 項目ごとのまとまり：項目名は太字、項目の間は広めに */
.is-style-eco-panel .wpcf7-form p { margin: 0 0 26px; font-size: 15px; font-weight: 700; line-height: 1.6; }
.is-style-eco-panel .wpcf7-form label { font-weight: inherit; }
/* 「必須」「任意」の札（必須は差し色のオレンジ。差し色はどこでも同じ1色にそろえる） */
.is-style-eco-panel .wpcf7 :is(.must, .free) { display: inline-block; margin-right: 8px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .04em; vertical-align: 1px; }
.is-style-eco-panel .wpcf7 .must { background: var(--eco-pop); color: #fff; }
.is-style-eco-panel .wpcf7 .free { background: var(--eco-tint); color: var(--eco-sub); }
.is-style-eco-panel .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
/* 文字の入力欄・選択欄 */
.is-style-eco-panel .wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], select, textarea) {
	display: block; width: 100%; max-width: 100%; box-sizing: border-box; margin: 0;
	padding: 12px 14px; border: 1px solid #b9c0c6; border-radius: 10px; background-color: #fff; box-shadow: none;
	font: inherit; font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--eco-ink);
	transition: border-color .2s, box-shadow .2s;
}
.is-style-eco-panel .wpcf7 :is(input, select, textarea)::placeholder { color: #8f969c; opacity: 1; }
.is-style-eco-panel .wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], select, textarea):focus {
	outline: none; border-color: var(--eco-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--eco-accent) 20%, transparent);
}
.is-style-eco-panel .wpcf7 select {
	-webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232881c0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.is-style-eco-panel .wpcf7 textarea { min-height: 170px; resize: vertical; }
/* チェックボックス・ラジオ：丸い枠の選択肢を横に並べる。選んだものは青く */
.is-style-eco-panel .wpcf7 :is(.wpcf7-checkbox, .wpcf7-radio, .wpcf7-acceptance) { display: flex; flex-wrap: wrap; gap: 8px; }
/* 丸い枠は選択肢の外側（.wpcf7-list-item）に付ける。中に label があれば（「use_label_element」）label を枠いっぱいに広げて、文字を押しても選べるようにする */
.is-style-eco-panel .wpcf7 .wpcf7-list-item {
	display: inline-flex; align-items: center; margin: 0;
	border: 1px solid #b9c0c6; border-radius: 999px; background: #fff;
	font-size: 14px; font-weight: 500; line-height: 1.5; cursor: pointer;
	transition: border-color .2s, background-color .2s, color .2s;
}
.is-style-eco-panel .wpcf7 .wpcf7-list-item > label,
.is-style-eco-panel .wpcf7 .wpcf7-list-item:not(:has(> label)) { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; cursor: pointer; }
/* ご依頼内容（irai）の4つの選択肢：パソコンは1行。スマホは2つずつ2行に並べる（1行目：無料回収・その他の不用品回収、2行目：便利屋・その他のお問い合わせ）。
   高さ0の区切りを2つ目と3つ目の間に入れて改行させる。幅360px のスマホまで2行に収まる */
@media (max-width: 599px) {
	.is-style-eco-panel .wpcf7 [data-name="irai"] .wpcf7-checkbox { column-gap: 6px; row-gap: 4px; }
	.is-style-eco-panel .wpcf7 [data-name="irai"] .wpcf7-checkbox::after { content: ""; flex-basis: 100%; height: 0; order: 2; }
	.is-style-eco-panel .wpcf7 [data-name="irai"] .wpcf7-list-item:nth-child(n+3) { order: 3; }
}
.is-style-eco-panel .wpcf7 .wpcf7-list-item:hover { border-color: var(--eco-accent); }
.is-style-eco-panel .wpcf7 .wpcf7-list-item:has(input:checked) { border-color: var(--eco-accent); background: color-mix(in srgb, var(--eco-accent) 14%, #fff); color: var(--eco-accent-dark); font-weight: 700; box-shadow: inset 0 0 0 1px var(--eco-accent); }
.is-style-eco-panel .wpcf7 .wpcf7-list-item:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--eco-accent) 25%, transparent); }
.is-style-eco-panel .wpcf7 .wpcf7-list-item-label { font-weight: inherit; }
.is-style-eco-panel .wpcf7 .wpcf7-list-item input { width: 16px; height: 16px; margin: 0; accent-color: var(--eco-accent); cursor: pointer; }
/* 送信ボタン：サイトの青いボタンと同じ形で、真ん中に */
.is-style-eco-panel .wpcf7-form p:has(> .wpcf7-submit) { margin: 36px 0 0; text-align: center; }
.is-style-eco-panel .wpcf7 .wpcf7-submit {
	-webkit-appearance: none; appearance: none; min-width: 240px; min-height: 52px; padding: 14px 48px;
	border: 1.5px solid var(--eco-accent); border-radius: 999px; background: var(--eco-accent); color: #fff;
	font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .1em; cursor: pointer;
	transition: background-color .2s, border-color .2s, transform .2s;
}
.is-style-eco-panel .wpcf7 .wpcf7-submit:hover { background: var(--eco-accent-dark); border-color: var(--eco-accent-dark); transform: translateY(-2px); }
.is-style-eco-panel .wpcf7 .wpcf7-submit:focus-visible { outline: 3px solid color-mix(in srgb, var(--eco-accent) 35%, transparent); outline-offset: 3px; }
.is-style-eco-panel .wpcf7 .wpcf7-submit:disabled { opacity: .6; cursor: default; transform: none; }
.is-style-eco-panel .wpcf7 .wpcf7-spinner { display: block; margin: 12px auto 0; }
/* 入力の誤りの案内 */
.is-style-eco-panel .wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: #c62828; }
.is-style-eco-panel .wpcf7 .wpcf7-form-control.wpcf7-not-valid:is(input, select, textarea) { border-color: #c62828; }
.is-style-eco-panel .wpcf7 .wpcf7-form-control.wpcf7-not-valid .wpcf7-list-item { border-color: #c62828; }
/* 送信の結果（送れた・入力に誤り・送れなかった） */
.is-style-eco-panel .wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 14px 18px; border: 1.5px solid var(--eco-line); border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.6; text-align: center; }
.is-style-eco-panel .wpcf7 form.sent .wpcf7-response-output { border-color: var(--eco-accent); background: var(--eco-soft); color: var(--eco-accent-dark); }
.is-style-eco-panel .wpcf7 form:is(.invalid, .unaccepted, .payment-required) .wpcf7-response-output { border-color: var(--eco-pop); background: color-mix(in srgb, var(--eco-pop) 8%, #fff); color: var(--eco-pop); }
.is-style-eco-panel .wpcf7 form:is(.failed, .aborted, .spam) .wpcf7-response-output { border-color: #c62828; background: #fdecea; color: #c62828; }
@media (prefers-reduced-motion: reduce) {
	.is-style-eco-panel .wpcf7 .wpcf7-submit, .is-style-eco-panel .wpcf7 .wpcf7-list-item { transition: none; }
	.is-style-eco-panel .wpcf7 .wpcf7-submit:hover { transform: none; }
}

/* --- クエリーループ：記事のカード（ブログ）。カードは「枠線のカード」を使う。「記事のカード」は格子に並べ、「記事の横スライド」は横1列に並べて下のスクロールバーで全部を見渡す --- */
.wp-block-query.is-style-eco-post-cards .wp-block-post-template { gap: 24px; margin-bottom: 40px; }
.wp-block-query:is(.is-style-eco-post-cards, .is-style-eco-post-slider) .wp-block-post-template > li { margin: 0; }
.wp-block-query:is(.is-style-eco-post-cards, .is-style-eco-post-slider) .wp-block-group.is-style-eco-tile { height: 100%; }
.wp-block-query:is(.is-style-eco-post-cards, .is-style-eco-post-slider) .wp-block-post-featured-image { margin: 0 0 14px; }
.wp-block-query:is(.is-style-eco-post-cards, .is-style-eco-post-slider) .wp-block-post-featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.wp-block-query:is(.is-style-eco-post-cards, .is-style-eco-post-slider) .wp-block-post-date { font-family: var(--eco-en); font-size: 13px; color: var(--eco-sub); margin: 0 0 4px; }
.wp-block-query:is(.is-style-eco-post-cards, .is-style-eco-post-slider) .wp-block-post-title { font-size: 1.05rem; line-height: 1.6; font-weight: 700; margin: 0; padding: 0; border: none; background: none; }
.wp-block-query:is(.is-style-eco-post-cards, .is-style-eco-post-slider) .wp-block-post-title::before,
.wp-block-query:is(.is-style-eco-post-cards, .is-style-eco-post-slider) .wp-block-post-title::after { content: none; }
.wp-block-query:is(.is-style-eco-post-cards, .is-style-eco-post-slider) .wp-block-post-title a { color: var(--eco-ink); text-decoration: none; }
.wp-block-query:is(.is-style-eco-post-cards, .is-style-eco-post-slider) .wp-block-post-title a:hover { color: var(--eco-accent); }
@media (max-width: 767px) {
	.wp-block-query.is-style-eco-post-cards .wp-block-post-template.is-layout-grid { grid-template-columns: minmax(0, 1fr); }
}
.wp-block-query.is-style-eco-post-slider .wp-block-post-template {
	display: flex; flex-wrap: nowrap; gap: 24px;
	overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	margin: 0 0 32px; padding: 2px 2px 14px; list-style: none;
}
/* パソコンは3枚、タブレットは2枚、スマホは1枚と次のカードの端が見える幅 */
.wp-block-query.is-style-eco-post-slider .wp-block-post-template > li { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; scroll-snap-align: start; }
@media (max-width: 991px) {
	.wp-block-query.is-style-eco-post-slider .wp-block-post-template > li { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 599px) {
	.wp-block-query.is-style-eco-post-slider .wp-block-post-template { gap: 16px; }
	.wp-block-query.is-style-eco-post-slider .wp-block-post-template > li { flex-basis: 82%; }
}
/* 自動で流れている間は、カードの端にそろえて止める動き（スナップ）を切る（assets/js/blog-slider.js が is-eco-flowing を付ける） */
.wp-block-query.is-style-eco-post-slider.is-eco-flowing .wp-block-post-template { scroll-snap-type: none; }
/* スクロールバー（細い線。つまみはサイトの色）。Chrome・Safari・Edge は ::-webkit-scrollbar、Firefox は scrollbar-width・scrollbar-color */
.wp-block-query.is-style-eco-post-slider .wp-block-post-template::-webkit-scrollbar { height: 4px; }
.wp-block-query.is-style-eco-post-slider .wp-block-post-template::-webkit-scrollbar-track { background: var(--eco-line); border-radius: 999px; }
.wp-block-query.is-style-eco-post-slider .wp-block-post-template::-webkit-scrollbar-thumb { background: var(--eco-accent); border-radius: 999px; }
@supports not selector(::-webkit-scrollbar) {
	.wp-block-query.is-style-eco-post-slider .wp-block-post-template { scrollbar-width: thin; scrollbar-color: var(--eco-accent) var(--eco-line); }
}

/* --- 段落 --- */
p.is-style-eco-label { font-family: var(--eco-en); font-weight: 500; font-size: 12px; letter-spacing: .3em; color: var(--eco-accent); margin-bottom: 8px; text-transform: uppercase; scroll-margin-top: 90px; }
.is-style-eco-band p.is-style-eco-label { color: inherit; opacity: .85; }
p.is-style-eco-kicker {
	display: inline-flex; align-items: center; gap: 8px; width: fit-content;
	font-size: 14px; font-weight: 700; color: var(--eco-accent);
	background: var(--eco-soft); border-radius: 999px; padding: 4px 16px; margin-bottom: 18px;
}
/* ファーストビューの最後に置いた一言は、下の余白をなくす */
.wp-block-group.is-style-eco-hero p.is-style-eco-kicker:last-child { margin-bottom: 0; }
p.is-style-eco-lead { font-size: 1.02rem; color: var(--eco-sub); max-width: 36em; margin-top: 0; }
/* 中央揃えにしたリード文は、幅を絞ったまま真ん中に置く */
p.is-style-eco-lead.has-text-align-center { margin-left: auto; margin-right: auto; }
.is-style-eco-band p.is-style-eco-lead { color: inherit; opacity: .92; }
p.is-style-eco-number { font-family: var(--eco-en); font-weight: 500; font-size: 2.1rem; line-height: 1; color: var(--eco-accent); margin-bottom: 14px; }
p.is-style-eco-number-ring {
	display: grid; place-items: center; width: 46px; height: 46px; margin: 0;
	border: 1.5px solid var(--eco-accent); border-radius: 50%;
	font-family: var(--eco-en); font-weight: 500; font-size: 16px; color: var(--eco-accent);
}
p.is-style-eco-step { font-family: var(--eco-en); font-weight: 500; font-size: 13px; letter-spacing: .14em; color: var(--eco-accent); margin-bottom: 6px; }
p.is-style-eco-tag,
p.is-style-eco-tag-plain { display: inline-block; width: fit-content; font-size: 12.5px; font-weight: 700; line-height: 1.6; border-radius: 999px; padding: 2px 12px; }
p.is-style-eco-tag { background: var(--eco-accent); color: #fff; }
p.is-style-eco-tag-plain { background: var(--eco-tint); color: var(--eco-ink); }
.is-style-eco-tile-main p.is-style-eco-tag { background: #fff; color: var(--eco-accent); }
p.is-style-eco-tel { font-family: var(--eco-en); font-weight: 500; font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: .04em; line-height: 1.25; margin: 0 0 6px; }
p.is-style-eco-tel a { color: inherit; text-decoration: none; }
p.is-style-eco-note { font-size: 14px; color: var(--eco-sub); }
body :is(.is-layout-flow, .is-layout-constrained) > p.is-style-eco-note,
p.is-style-eco-note { margin-block-start: 20px; }
p.is-style-eco-more { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--eco-accent); }
p.is-style-eco-more::after { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--eco-icon-arrow) center / contain no-repeat; mask: var(--eco-icon-arrow) center / contain no-repeat; }
p.is-style-eco-more a { color: inherit; text-decoration: none; }
.is-style-eco-tile-main p.is-style-eco-more { color: #fff; }

/* --- 段落：アイコン（段落の文字は読み上げ用に残し、画面には絵だけを出す） --- */
p[class*="is-style-eco-icon-"] {
	position: relative;
	width: 52px; height: 52px; margin: 0 0 14px;
	border-radius: 16px;
	background: var(--eco-soft);
	color: var(--eco-accent);
	font-size: 0; line-height: 0; overflow: hidden;
}
p[class*="is-style-eco-icon-"]::before {
	content: ""; position: absolute; inset: 12px;
	background: currentColor;
	-webkit-mask: var(--eco-icon) center / contain no-repeat; mask: var(--eco-icon) center / contain no-repeat;
}
.is-style-eco-tile-main p[class*="is-style-eco-icon-"] { background: color-mix(in srgb, #fff 18%, transparent); color: #fff; }
.is-style-eco-card-tile p[class*="is-style-eco-icon-"] { width: 36px; height: 36px; margin: 0 auto 6px; background: none; border-radius: 0; }
.is-style-eco-card-tile p[class*="is-style-eco-icon-"]::before { inset: 2px; }
.is-style-eco-band p[class*="is-style-eco-icon-"] { width: 36px; height: 36px; background: none; border-radius: 0; margin-bottom: 8px; }
.is-style-eco-band p[class*="is-style-eco-icon-"]::before { inset: 3px; }
p.is-style-eco-icon-fridge { --eco-icon: var(--eco-icon-fridge); }
p.is-style-eco-icon-microwave { --eco-icon: var(--eco-icon-microwave); }
p.is-style-eco-icon-tv { --eco-icon: var(--eco-icon-tv); }
p.is-style-eco-icon-pc { --eco-icon: var(--eco-icon-pc); }
p.is-style-eco-icon-bike { --eco-icon: var(--eco-icon-bike); }
p.is-style-eco-icon-pan { --eco-icon: var(--eco-icon-pan); }
p.is-style-eco-icon-box { --eco-icon: var(--eco-icon-box); }
p.is-style-eco-icon-heart { --eco-icon: var(--eco-icon-heart); }
p.is-style-eco-icon-tree { --eco-icon: var(--eco-icon-tree); }
p.is-style-eco-icon-grass { --eco-icon: var(--eco-icon-grass); }
p.is-style-eco-icon-shed { --eco-icon: var(--eco-icon-shed); }
p.is-style-eco-icon-chat { --eco-icon: var(--eco-icon-chat); }
p.is-style-eco-icon-camera { --eco-icon: var(--eco-icon-camera); }
p.is-style-eco-icon-yen { --eco-icon: var(--eco-icon-yen); }
p.is-style-eco-icon-face { --eco-icon: var(--eco-icon-face); }
p.is-style-eco-icon-home { --eco-icon: var(--eco-icon-home); }

/* --- 箇条書き --- */
ul.is-style-eco-check,
ul.is-style-eco-dots,
ul.is-style-eco-facts,
ul.is-style-eco-chips { list-style: none; padding-left: 0; margin-left: 0; }
ul.is-style-eco-check li { position: relative; padding-left: 28px; margin: 0 0 6px; }
ul.is-style-eco-check li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; background: var(--eco-accent); -webkit-mask: var(--eco-icon-check) center / contain no-repeat; mask: var(--eco-icon-check) center / contain no-repeat; }
.is-style-eco-tile-main ul.is-style-eco-check li::before { background: #fff; }
/* 太字で始まる項目は、太字の行と説明の行に分けて、線で区切る（見分け方の箇条書きなど） */
ul.is-style-eco-check li:has(> strong:first-child) { padding: 16px 0 16px 36px; margin: 0; border-bottom: 1px solid var(--eco-line); color: var(--eco-sub); font-size: .92em; }
ul.is-style-eco-check li:has(> strong:first-child):first-child { border-top: 1px solid var(--eco-line); }
ul.is-style-eco-check li:has(> strong:first-child)::before { top: 19px; width: 22px; height: 22px; }
ul.is-style-eco-check li > strong:first-child { display: block; color: var(--eco-ink); font-size: 1.08em; }
ul.is-style-eco-dots { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--eco-sub); }
ul.is-style-eco-dots li { display: flex; align-items: center; gap: 6px; margin: 0; }
ul.is-style-eco-dots li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--eco-accent); }
ul.is-style-eco-facts { font-size: 14.5px; }
ul.is-style-eco-facts li { margin: 0 0 4px; }
ul.is-style-eco-facts li strong:first-child,
ul.is-style-eco-facts li b:first-child { display: inline-block; min-width: 4.5em; font-weight: 400; color: var(--eco-sub); }
ul.is-style-eco-chips { display: flex; flex-wrap: wrap; gap: 8px; }
ul.is-style-eco-chips li { margin: 0; border: 1px solid var(--eco-accent); color: var(--eco-accent); border-radius: 999px; padding: 3px 14px; font-size: 14px; font-weight: 500; background: var(--eco-white); }

/* --- ボタン：塗り・枠線・白（青い帯の上） --- */
.wp-block-button:is(.is-style-eco-primary, .is-style-eco-ghost, .is-style-eco-white) .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 50px; padding: 12px 28px; border-radius: 999px;
	font-weight: 700; letter-spacing: .04em; text-decoration: none;
	transition: transform .2s, background-color .2s, color .2s;
}
/* 色の指定は「.wp-block-buttons」（404 ページは .eco-404-buttons）から書く。編集画面の Lightning のボタンの色（.editor-styles-wrapper .wp-block-buttons … :not(.is-style-outline) …）に負けないようにするため */
:is(.wp-block-buttons, .eco-404-buttons) .wp-block-button.is-style-eco-primary:not(.is-style-outline) .wp-block-button__link { background-color: var(--eco-accent); color: #fff; border: 1.5px solid var(--eco-accent); }
:is(.wp-block-buttons, .eco-404-buttons) .wp-block-button.is-style-eco-primary:not(.is-style-outline) .wp-block-button__link:hover { background-color: var(--eco-accent-dark); border-color: var(--eco-accent-dark); transform: translateY(-2px); }
:is(.wp-block-buttons, .eco-404-buttons) .wp-block-button.is-style-eco-ghost:not(.is-style-outline) .wp-block-button__link { background-color: var(--eco-white); color: var(--eco-accent); border: 1.5px solid var(--eco-accent); }
:is(.wp-block-buttons, .eco-404-buttons) .wp-block-button.is-style-eco-ghost:not(.is-style-outline) .wp-block-button__link:hover { background-color: var(--eco-accent); color: #fff; }
:is(.wp-block-buttons, .eco-404-buttons) .wp-block-button.is-style-eco-white:not(.is-style-outline) .wp-block-button__link { background-color: #fff; color: var(--eco-accent); border: 1.5px solid #fff; }
:is(.wp-block-buttons, .eco-404-buttons) .wp-block-button.is-style-eco-white:not(.is-style-outline) .wp-block-button__link:hover { background-color: transparent; color: #fff; }

/* =========================================================
   3. プラグイン（Ecological Core）のショートコードの表示
   ========================================================= */

/* エリア確認 [eco_area_check] */
/* パソコンでもスマホと同じ1列（地域の選択の下に結果）。白い枠ごと幅を絞って真ん中に置く */
.eco-area-check-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.wp-block-group.is-style-eco-panel:has(.eco-area-check) { max-width: 720px; margin-left: auto; margin-right: auto; }
.eco-area-check label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.eco-area-check .eco-select { position: relative; }
.eco-area-check select {
	appearance: none; width: 100%; min-height: 56px; margin: 0;
	border: 1.5px solid var(--eco-accent); border-radius: 14px;
	padding: 0 44px 0 18px; font: inherit; font-weight: 500; color: var(--eco-ink); background: #fff; cursor: pointer;
}
.eco-area-check .eco-select::after {
	content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
	border-right: 2px solid var(--eco-accent); border-bottom: 2px solid var(--eco-accent);
	transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.eco-area-result { border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; background: var(--eco-tint); min-height: 150px; justify-content: center; }
.eco-area-result p { margin: 0; }
.eco-area-result .eco-area-headline { font-size: 1.1rem; font-weight: 700; line-height: 1.5; }
.eco-area-result .eco-area-row { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.eco-area-result .eco-area-name { flex: 1; min-width: 0; font-weight: 700; }
.eco-area-result .eco-area-more { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font-size: 13px; font-weight: 700; color: var(--eco-accent); text-decoration: none; white-space: nowrap; }
.eco-area-result .eco-area-more::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--eco-icon-arrow) center / contain no-repeat; mask: var(--eco-icon-arrow) center / contain no-repeat; }
.eco-area-result .eco-area-more:hover { text-decoration: underline; }
.eco-area-result .eco-area-hint { font-size: 14px; color: var(--eco-sub); }
.eco-mark { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 5.6em; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.eco-mark-symbol { font-size: 1.05em; line-height: 1; }
.eco-mark.is-ok { background: var(--eco-accent); color: #fff; }
.eco-mark.is-ng { background: #dcdcdc; color: var(--eco-ink); }
.eco-mark.is-ask { background: #fff; color: var(--eco-ink); border: 1px solid #cfcfcf; }

/* 無料回収エリアのタグ [eco_wards] */
.eco-wards { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.eco-wards li { margin: 0; border: 1px solid var(--eco-accent); color: var(--eco-accent); border-radius: 999px; padding: 3px 14px; font-size: 14px; font-weight: 500; background: #fff; }

/* プラグインのボタン（[eco_line_button] など）。子テーマのボタンのスタイルと同じクラスを出すので、上の「ボタン」の見た目が効く */

/* =========================================================
   レスポンシブ（パソコン 1024px〜 / タブレット 768〜1023px / スマホ 〜767px）
   ========================================================= */
@media (max-width: 1023px) {
	.wp-block-column.is-style-eco-card { padding: 28px 22px; }
}
@media (max-width: 767px) {
	body.eco-size-large, body.eco-size-xlarge { font-size: 16px; }
	.wp-block-group:is(.is-style-eco-hero, .is-style-eco-section, .is-style-eco-section-tint) { padding-left: 20px; padding-right: 20px; }
	.wp-block-heading.is-style-eco-section-title { margin-bottom: 32px; }
	p.is-style-eco-label { letter-spacing: .2em; }
	.wp-block-group.is-style-eco-band { border-radius: 22px; }
	.wp-block-group.is-style-eco-hero .wp-block-buttons { flex-direction: column; align-items: stretch; max-width: 420px; }
	.wp-block-group.is-style-eco-hero .wp-block-button,
	.wp-block-group.is-style-eco-hero .wp-block-button__link { width: 100%; }
}

/* 端末で「動きを減らす」をオンにしている人には動きを出さない（R10） */
@media (prefers-reduced-motion: reduce) {
	.wp-block-group.is-style-eco-tile,
	.wp-block-button:is(.is-style-eco-primary, .is-style-eco-ghost, .is-style-eco-white) .wp-block-button__link { transition: none; }
	.wp-block-group.is-style-eco-tile:hover,
	:is(.wp-block-buttons, .eco-404-buttons) .wp-block-button.is-style-eco-primary:not(.is-style-outline) .wp-block-button__link:hover { transform: none; }
}
