@charset "UTF-8";
/* ==========================================================
   児童発達支援事業所リンク 固有スタイル
   読み込み順： lightning.css（テーマ） → wp-blocks.css（WordPress設定） → このファイル
   色はWordPressの設定（wp-blocks.css）と同じ値です：
     メイン #3f2b24 / 背景 #edeae2 / 文字 #381a00 / カード背景 #decbb9
   ========================================================== */

/* ---------- 共通：はみ出し・ずれ防止 ---------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; overflow-wrap: anywhere; line-break: strict; }
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 100000; background: #fff; padding: .5em 1em; top: 5px; left: 5px; }

/* ---------- ヘッダー（文字ロゴ） ---------- */
.site-header-logo a span { font-weight: 700; }
@media (max-width: 991.98px) {
	.site-header-logo { font-size: 1.2rem; white-space: normal; padding-right: 50px; padding-left: 50px; }
}
@media (max-width: 374.98px) {
	.site-header-logo { font-size: 1.05rem; }
}

/* ---------- パンくず ---------- */
.breadcrumb-home-icon { vertical-align: -1px; margin-right: .3em; }

/* ---------- トップのスライド（2枚・フェード） ---------- */
.ltg-slide { position: relative; overflow: hidden; background: #000; }
.ltg-slide-inner { position: relative; aspect-ratio: 1900 / 600; }
.ltg-slide-item { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.ltg-slide-item.is-active { opacity: 1; z-index: 1; }
.ltg-slide-item-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ltg-slide-pagination { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; text-align: center; }
.ltg-slide-dot { width: 8px; height: 8px; margin: 0 4px; padding: 0; border: none; border-radius: 50%; background: #fff; opacity: .5; cursor: pointer; }
.ltg-slide-dot.is-active { opacity: 1; }
.ltg-slide-arrow { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: none; background: transparent; cursor: pointer; }
.ltg-slide-arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; border-top: 3px solid #fff; border-left: 3px solid #fff; }
.ltg-slide-prev { left: 10px; }
.ltg-slide-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.ltg-slide-next { right: 10px; }
.ltg-slide-next::before { transform: translate(-70%, -50%) rotate(135deg); }
@media (max-width: 767.98px) {
	.ltg-slide-arrow { display: none; }
}

/* ---------- VK Blocks 相当 ---------- */
.is-style-vk-image-circle img { -webkit-mask-image: var(--vk_image-mask-circle); mask-image: var(--vk_image-mask-circle); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; aspect-ratio: 1 / 1; object-fit: cover; }
.is-style-vk-image-wave04 img { -webkit-mask-image: var(--vk_image-mask-wave04); mask-image: var(--vk_image-mask-wave04); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.entry-body h2.is-style-vk-heading-solid_bottomborder_black { position: relative; border: none; background: none; padding: 0 0 .6em; border-bottom: 1px solid #000; border-radius: 0; }
.entry-body .is-style-vk-heading-plain { position: relative; border: none !important; background: none !important; padding: 0 !important; border-radius: 0; }
.entry-body .is-style-vk-heading-plain::before, .entry-body .is-style-vk-heading-plain::after { content: none !important; }

/* 角丸のカード（大切にしていること）：スマホで文字が端に付かないように */
.entry-body .wp-block-group.has-background { padding: 1.25em 1.5em 1.5em; }
@media (max-width: 575.98px) {
	.entry-body .wp-block-group.has-background { padding: 1em 1em 1.25em; }
	/* 中央寄せの改行（<br>）を、スマホでは自然な折り返しに */
	.entry-body .wp-block-group.has-background p br { display: none; }
}

/* ---------- 過ごし方：時間アイコン・写真の行（スマホでも崩れないように） ---------- */
@media (max-width: 781px) {
	.entry-body .wp-block-columns.are-vertically-aligned-center { gap: .5em; margin-bottom: 2em; padding-bottom: 1.5em; border-bottom: 1px dashed rgba(63,43,36,.25); }
	.entry-body .wp-block-columns.are-vertically-aligned-center > .wp-block-column { flex-basis: 100% !important; }
	.entry-body .wp-block-columns.are-vertically-aligned-center .wp-block-image { margin-top: 0 !important; margin-bottom: 0 !important; }
	.entry-body .wp-block-columns.are-vertically-aligned-center .wp-block-image img[width="100"] { width: 80px; }
	.entry-body .wp-block-columns.are-vertically-aligned-center .is-style-vk-image-circle img { width: 160px !important; }
	.entry-body .wp-block-button__width-75 { width: 100% !important; }
}
html { scroll-behavior: smooth; }
#am, #pm { scroll-margin-top: 90px; }

/* ---------- 教室ページ：地図 ---------- */
.entry-body iframe[src*="google"] { width: 100%; }
@media (max-width: 781px) {
	.entry-body iframe[src*="google"] { height: 260px !important; }
}

/* ---------- お知らせ（トップ） ---------- */
.wp-block-latest-posts__list li { overflow: hidden; padding: 1em 0; border-bottom: 1px solid rgba(63,43,36,.15); margin: 0; }
.wp-block-latest-posts__list li:first-child { border-top: none; padding-top: .5em; }
.wp-block-latest-posts__featured-image.alignleft { margin-right: 1em; margin-bottom: .5em; }
.wp-block-latest-posts__featured-image img { width: 100px; height: 100px; object-fit: cover; display: block; }
.wp-block-latest-posts__post-title { display: block; font-weight: 700; color: var(--vk-color-primary); }
.wp-block-latest-posts__post-date { display: block; font-size: .8125rem; }
.wp-block-latest-posts__post-excerpt { margin-top: .5em; }
.wp-block-latest-posts__post-excerpt p { margin: 0 0 .5em; }
.wp-block-latest-posts__post-excerpt p:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
	.wp-block-latest-posts__featured-image img { width: 72px; height: 72px; }
}

/* ---------- 表（会社概要） ---------- */
.wp-block-table { overflow-x: auto; margin: 0 0 2em; }
.wp-block-table table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.5); }
.wp-block-table th, .wp-block-table td { border: 1px solid rgba(63,43,36,.3); padding: .75em 1em; text-align: left; vertical-align: top; }
.wp-block-table th { width: 8em; white-space: nowrap; background: #decbb9; }
@media (max-width: 575.98px) {
	.wp-block-table th, .wp-block-table td { display: block; width: 100%; }
	.wp-block-table td { border-top: none; }
	.wp-block-table tr + tr th { border-top: none; }
}

/* ---------- フッター ---------- */
.site-footer-content .widget { margin-bottom: 1.5rem; }
.site-footer-content ul.menu { list-style: none; padding: 0; margin: 0; }
.site-footer-content ul.menu li a { display: block; padding: .5em .2em; text-decoration: none; border-bottom: 1px solid rgba(63,43,36,.15); }
.site-footer-content ul.menu ul.sub-menu { list-style: none; padding-left: 1em; margin: 0; }

/* ---------- トップへ戻るボタン（VK ExUnit相当） ---------- */
.page_top_btn { position: fixed; right: 2%; bottom: 3%; z-index: 99999; width: 40px; height: 38px; color: transparent; border: none; border-radius: 4px; background: rgba(0,0,0,.8) var(--veu_page_top_button_url, url("../images/to-top-btn-icon.svg")) center center no-repeat; background-size: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.8), 0 0 0 2px rgba(0,0,0,.8); text-indent: -9999px; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.scrolled .page_top_btn { opacity: 1; visibility: visible; }
.page_top_btn span { display: none; }

/* ---------- 補正：スクロール後の固定メニューが背景と同じ色で見えなくなるのを修正 ---------- */
.header_scrolled .global-nav .nav > li > a { color: #3f2b24; }
.header_scrolled .global-nav-list > li::before { border-bottom-color: #3f2b24; }
.header_scrolled .site-header { box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.wp-block-latest-posts__post-excerpt { overflow: hidden; }

/* ---------- 画像の丸・波の形（ファイルを直接開いても表示されるよう、形をCSSに埋め込み） ---------- */
:root {
	--vk_image-mask-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='50'/%3E%3C/svg%3E");
	--vk_image-mask-wave04: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 3c13 0 21 6 30 12s17 15 17 31-6 25-13 33-18 18-34 18-26-7-35-15S3 66 3 50s7-26 15-34S37 3 50 3z'/%3E%3C/svg%3E");
}

/* ---------- 大切にしていること：PCでは文字と画像を横並び（画像は右・左交互）、スマホでは文字が上・画像が下 ---------- */
@media (min-width: 768px) {
	.page-mission .mission-card { display: grid; grid-template-columns: minmax(0, 1fr) 260px; column-gap: 2.5em; align-items: center; padding: 2em 2.5em; }
	.page-mission .mission-card > * { grid-column: 1; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
	.page-mission .mission-card > figure { grid-column: 2; grid-row: 1 / span 20; margin: 0 !important; align-self: center; }
	.page-mission .mission-card--img-left { grid-template-columns: 260px minmax(0, 1fr); }
	.page-mission .mission-card--img-left > * { grid-column: 2; }
	.page-mission .mission-card--img-left > figure { grid-column: 1; }
	.page-mission .mission-card > p:empty { display: none; }
	.page-mission .mission-card > h5 br:first-child, .page-mission .mission-card > h6 br:first-child { display: none; }
	.page-mission .mission-card img { width: 100%; height: auto; }
}
