/* =========================================================
   里山deあそびあ テーマ CSS（C案 里山たんけん隊）
   ========================================================= */

:root {
	--asobia-navy: #1D3557;
	--asobia-sun: #FFD45C;
	--asobia-orange: #F28C38;
	--asobia-shadow: 0 8px 0 rgba(29, 53, 87, .12);
}

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

/* ---------- ヘッダー ---------- */
.asobia-header { background: var(--asobia-sun); }
.asobia-header .asobia-logo img { height: 72px !important; width: auto !important; display: block; }
.asobia-header .asobia-tagline { font-size: 13px; font-weight: 700; line-height: 1.4; margin: 0; }
.asobia-header .wp-block-navigation .wp-block-navigation-item__content {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
	border-radius: 999px; background: #fff; font-weight: 700; text-decoration: none;
}
.asobia-header .wp-block-navigation .wp-block-navigation-item__content:hover { background: #FFF8E7; }
.asobia-header .asobia-tel .wp-block-button__link { border-radius: 999px; min-height: 44px; padding: 10px 20px; }

/* ---------- ボタン（立体） ---------- */
.asobia-btn-3d .wp-block-button__link { box-shadow: 0 5px 0 #0B1A2E; font-size: 17px; }
.asobia-btn-3d.asobia-btn-sun .wp-block-button__link { box-shadow: 0 5px 0 #C99A1E; }
p.asobia-pill { display: table; }
.wp-block-button__link:active { transform: translateY(3px); box-shadow: none; }

/* ---------- ヒーロー（4枚の写真） ---------- */
.asobia-hero { background-image: url("../images/hero-sky-photo.jpg"); background-size: cover; background-position: center top; }
.asobia-hero { position: relative; overflow: hidden; }
.asobia-hero::before {
	content: ""; position: absolute; left: 27%; top: 8px; width: 104px; height: 140px; pointer-events: none;
	background: url("../images/kite.svg") no-repeat center / contain; animation: asobia-kite 6s ease-in-out infinite alternate;
}
.asobia-hero > * { position: relative; z-index: 1; }
@keyframes asobia-kite { from { transform: translate(0, 0) rotate(-3deg); } to { transform: translate(6px, -8px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .asobia-hero::before { animation: none; } }
.asobia-hero h1 { text-shadow: 3.0px 0.0px 0 #fff, 2.8px 1.1px 0 #fff, 2.1px 2.1px 0 #fff, 1.1px 2.8px 0 #fff, 0.0px 3.0px 0 #fff, -1.1px 2.8px 0 #fff, -2.1px 2.1px 0 #fff, -2.8px 1.1px 0 #fff, -3.0px 0.0px 0 #fff, -2.8px -1.1px 0 #fff, -2.1px -2.1px 0 #fff, -1.1px -2.8px 0 #fff, -0.0px -3.0px 0 #fff, 1.1px -2.8px 0 #fff, 2.1px -2.1px 0 #fff, 2.8px -1.1px 0 #fff, 6.0px 0.0px 0 #fff, 5.9px 1.2px 0 #fff, 5.5px 2.3px 0 #fff, 5.0px 3.3px 0 #fff, 4.2px 4.2px 0 #fff, 3.3px 5.0px 0 #fff, 2.3px 5.5px 0 #fff, 1.2px 5.9px 0 #fff, 0.0px 6.0px 0 #fff, -1.2px 5.9px 0 #fff, -2.3px 5.5px 0 #fff, -3.3px 5.0px 0 #fff, -4.2px 4.2px 0 #fff, -5.0px 3.3px 0 #fff, -5.5px 2.3px 0 #fff, -5.9px 1.2px 0 #fff, -6.0px 0.0px 0 #fff, -5.9px -1.2px 0 #fff, -5.5px -2.3px 0 #fff, -5.0px -3.3px 0 #fff, -4.2px -4.2px 0 #fff, -3.3px -5.0px 0 #fff, -2.3px -5.5px 0 #fff, -1.2px -5.9px 0 #fff, -0.0px -6.0px 0 #fff, 1.2px -5.9px 0 #fff, 2.3px -5.5px 0 #fff, 3.3px -5.0px 0 #fff, 4.2px -4.2px 0 #fff, 5.0px -3.3px 0 #fff, 5.5px -2.3px 0 #fff, 5.9px -1.2px 0 #fff, 0 6px 12px rgba(29,53,87,.25); }
.asobia-hero .has-large-font-size { text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.asobia-pill {
	display: inline-block; padding: 4px 16px; border-radius: 999px; background: #fff;
	font-size: 14px; font-weight: 700;
}
.asobia-mosaic {
	display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: 250px 200px; gap: 14px !important;
}
.asobia-mosaic > .wp-block-image { margin: 0 !important; position: relative; border: 6px solid #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--asobia-shadow); background: #E6F4D9; }
.asobia-mosaic > .wp-block-image:nth-child(1),
.asobia-mosaic > .wp-block-image:nth-child(4) { grid-column: span 2; }
.asobia-mosaic > .wp-block-image:nth-child(2) { transform: rotate(2deg); }
.asobia-mosaic > .wp-block-image:nth-child(3) { transform: rotate(-2deg); }
.asobia-mosaic > .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.asobia-mosaic > .wp-block-image figcaption {
	position: absolute; left: 12px; top: 12px; margin: 0; padding: 2px 14px; border-radius: 999px;
	background: var(--asobia-navy); color: #fff; font-weight: 800; font-size: 14px;
}
.asobia-mosaic > .wp-block-image:nth-child(1) figcaption { background: #2F7A3B; }
.asobia-mosaic > .wp-block-image:nth-child(3) figcaption { background: var(--asobia-orange); color: var(--asobia-navy); }
.asobia-mosaic > .wp-block-image:nth-child(4) figcaption { background: var(--asobia-sun); color: var(--asobia-navy); }

/* ---------- 重要なお知らせ ---------- */
.asobia-notice {
	display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 20px; margin: 0 0 40px;
	background: #FFF1EE; border: 3px solid #C0392B; border-radius: 20px; padding: 16px 24px;
}
.asobia-notice__label {
	display: inline-flex; align-items: center; gap: 8px; padding: 4px 16px 4px 6px; border-radius: 999px;
	background: #C0392B; color: #fff; font-weight: 800; white-space: nowrap;
}
.asobia-notice__icon {
	width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #C0392B;
	display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.asobia-notice__list { list-style: none; margin: 0; padding: 0; flex: 1 1 360px; display: flex; flex-direction: column; gap: 4px; }
.asobia-notice__list li { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding-top: 2px; }
.asobia-notice__list time { font-size: 14px; color: #8A2A1F; font-weight: 700; }
.asobia-notice__list a { font-weight: 800; color: #1D3557; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- つぎの活動 ---------- */
.asobia-next {
	position: relative; margin-top: 32px;
	background: #fff; border: 3px solid var(--asobia-navy); border-radius: 28px; padding: 24px 32px 24px 190px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
}
.asobia-next__chara { position: absolute; left: 24px; bottom: -3px; width: 150px; height: 150px; object-fit: contain; }
.asobia-next__bubble {
	position: absolute; left: 150px; top: -40px; padding: 6px 16px; white-space: nowrap;
	border: 3px solid var(--asobia-navy); border-radius: 18px 18px 18px 4px; background: var(--asobia-sun);
	font-weight: 800; font-size: 15px;
}
.asobia-next__label { padding: 6px 18px; border-radius: 999px; background: var(--asobia-orange); font-weight: 800; }
.asobia-next__date { font-weight: 800; font-size: 28px; }
.asobia-next__title { flex: 1 1 300px; font-size: 20px; font-weight: 700; }
.asobia-next__title small { display: block; font-size: 14px; font-weight: 500; color: #4A5B70; }
.asobia-next__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 14px; background: #FFF8E7; font-weight: 700; text-decoration: none; }

/* ---------- 4つのたんけん隊 ---------- */
.asobia-teams { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px !important; }
.asobia-team { background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--asobia-shadow); margin: 0 !important; }
.asobia-team > .wp-block-image { margin: 0 !important; height: 190px; position: relative; }
.asobia-team > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asobia-team > .wp-block-image figcaption {
	position: absolute; left: 16px; top: 14px; margin: 0; width: 44px; height: 44px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 20px;
	border: 3px solid #fff; background: var(--team, #2F7A3B);
}
.asobia-team > .asobia-team__body { padding: 20px 22px 24px; }
.asobia-team h3 { color: var(--team, #2F7A3B); margin: 0 0 4px; font-size: 21px; }
.asobia-team .asobia-team__place { color: #4A5B70; font-size: 14px; margin: 0 0 6px; }
.asobia-team p { margin: 0; font-size: 15px; }
.asobia-team.is-numazawa { --team: #2F7A3B; }
.asobia-team.is-nagatoro { --team: #2C6E9E; }
.asobia-team.is-kawa { --team: #1C8FC2; }
.asobia-team.is-higashine { --team: #C2650F; }

/* ---------- たんけんすごろく ---------- */
.asobia-sugoroku {
	list-style: none; margin: 0; padding: 0; display: grid;
	grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 48px;
}
.asobia-step {
	position: relative; background: #fff; border-radius: 24px; padding: 20px 22px; margin: 0;
	display: flex; gap: 16px; align-items: flex-start;
	border: 3px dashed color-mix(in srgb, var(--team) 35%, #fff);
}
.asobia-step__no {
	flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--team); color: #fff;
	display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px;
}
.asobia-step__body { display: flex; flex-direction: column; gap: 2px; line-height: 1.55; }
.asobia-step__date { font-weight: 800; font-size: 18px; }
.asobia-step__date small { font-size: 13px; font-weight: 500; color: #4A5B70; }
.asobia-step__title { font-weight: 700; font-size: 15px; }
.asobia-step__place { font-size: 13px; color: #4A5B70; }
.asobia-step.is-next { border: 3px solid var(--asobia-orange); }
.asobia-step.is-cancelled .asobia-step__title { text-decoration: line-through; text-decoration-thickness: 1px; color: #4A5B70; }
.asobia-tag { align-self: flex-start; margin-top: 6px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 800; text-decoration: none; }
.asobia-tag.is-cancel { background: #E4E7EC; }
.asobia-tag.is-next { background: var(--asobia-sun); }
.asobia-tag.is-report { background: #E6F4D9; }
.asobia-arrow {
	position: absolute; width: 34px; height: 34px; border-radius: 50%; background: var(--asobia-orange); z-index: 1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: center; background-size: 18px;
}
.asobia-arrow.is-right { right: -43px; top: 50%; margin-top: -17px; }
.asobia-arrow.is-left { left: -43px; top: 50%; margin-top: -17px; transform: rotate(180deg); }
.asobia-arrow.is-down { bottom: -43px; left: 50%; margin-left: -17px; transform: rotate(90deg); }
.asobia-empty { text-align: center; }

/* ---------- かつどう報告（クエリーループ） ---------- */
.asobia-reports .wp-block-post-template { gap: 48px 32px !important; }
.asobia-reports .wp-block-post { display: flex; flex-direction: column; gap: 12px; }
.asobia-reports .wp-block-post-featured-image {
	margin: 0; background: #fff; padding: 12px 12px 36px; box-shadow: 0 6px 18px rgba(29, 53, 87, .14);
	aspect-ratio: auto !important;
}
.asobia-reports .wp-block-post-featured-image img,
.asobia-reports .wp-block-post-featured-image a { display: block; width: 100%; height: 200px !important; object-fit: cover; }
.asobia-reports .wp-block-post:nth-child(3n+1) .wp-block-post-featured-image { transform: rotate(-2deg); }
.asobia-reports .wp-block-post:nth-child(3n+2) .wp-block-post-featured-image { transform: rotate(1.5deg); }
.asobia-reports .wp-block-post:nth-child(3n) .wp-block-post-featured-image { transform: rotate(-1deg); }
.asobia-reports .wp-block-post-terms a {
	display: inline-block; padding: 0 10px; border-radius: 999px; background: #D4E6F3;
	font-size: 13px; font-weight: 700; text-decoration: none;
}
.asobia-reports .wp-block-post-title { font-size: 18px; line-height: 1.55; margin: 0; }
.asobia-reports .wp-block-post-title a { text-decoration: none; }
.asobia-noimage a { display: flex !important; align-items: center; justify-content: center; background: #E6F4D9; color: #2F7A3B; font-weight: 800; text-decoration: none; }

/* ---------- 声・ふきだし ---------- */
.asobia-bubble { border-radius: 24px 24px 24px 6px; padding: 20px 24px !important; font-size: 15px; }
.asobia-bubble.is-right { border-radius: 24px 24px 6px 24px; }

/* ---------- フッター ---------- */
.asobia-footer-scene { position: relative; width: 100vw; max-width: none; margin: 64px 0 -1px calc(50% - 50vw); line-height: 0; }
.asobia-footer-wave { display: block; width: 100%; height: 60px; }
.asobia-footer-art { margin: 0 !important; align-self: center; }
.asobia-footer-art img { display: block; width: 260px; max-width: 100%; height: auto; }
.asobia-footer a { color: #fff; }
.asobia-footer .asobia-footer__tel a { color: var(--asobia-sun); text-decoration: none; }

/* ---------- 記事ページ ---------- */
.asobia-article { background: #fff; border-radius: 32px; padding: clamp(24px, 4vw, 56px) !important; }
.asobia-article .wp-block-post-content img { border-radius: 16px; }

/* ---------- スマートフォン・タブレット ---------- */
@media (max-width: 1000px) {
	.asobia-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.asobia-reports .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
	.asobia-sugoroku { grid-template-columns: 1fr; gap: 44px; }
	.asobia-step { grid-column: auto !important; grid-row: auto !important; }
	.asobia-arrow, .asobia-arrow.is-right, .asobia-arrow.is-left {
		left: 50%; right: auto; top: auto; bottom: -41px; margin: 0 0 0 -17px; transform: rotate(90deg);
	}
}
@media (max-width: 640px) {
	.asobia-hero::before { left: auto; right: 12px; top: 8px; width: 70px; height: 95px; }
	.asobia-header .asobia-logo img { height: 52px; }
	.asobia-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 180px 140px; }
	.asobia-mosaic > .wp-block-image:nth-child(1), .asobia-mosaic > .wp-block-image:nth-child(4) { grid-column: span 2; }
	.asobia-mosaic > .wp-block-image:nth-child(2), .asobia-mosaic > .wp-block-image:nth-child(3) { grid-row: 2; }
	.asobia-mosaic > .wp-block-image:nth-child(4) { display: none; }
	.asobia-teams { grid-template-columns: 1fr; }
	.asobia-reports .wp-block-post-template { grid-template-columns: 1fr !important; }
	.asobia-next { padding: 20px 20px 20px 20px; margin-top: 64px; }
	.asobia-footer-art { order: 3; width: 100%; }
	.asobia-footer-art img { width: 200px; margin: 0 auto; }
	.asobia-next__chara { left: auto; right: 12px; bottom: auto; top: -70px; width: 96px; height: 96px; }
	.asobia-next__bubble { left: auto; right: 104px; top: -34px; font-size: 13px; border-radius: 18px 18px 4px 18px; }
}

/* 横スクロール防止（フッターの波） */
.wp-site-blocks { overflow-x: clip; }
