@charset "UTF-8";
/* ==========================================================================
   第2ひまわりほいくえん 基本スタイル（ヘッダー・メニュー・写真・フッター・お知らせ記事）
   旧Avadaテーマの設定値（色・文字サイズ・余白）を写しています。
   ========================================================================== */

:root {
	--ym-yellow: #ffc107;
	--ym-yellow-dark: #f7ca00;
	--ym-text: #747474;
	--ym-heading: #333333;
	--ym-link: #333333;
	--ym-button: #aaa56f;
	--ym-bg-outer: #d7d6d6;
	--ym-footer-bg: #f9f9f9;
	--ym-copyright-bg: #282a2b;
	--ym-site-width: 1100px;
	--ym-font: dnp-shuei-mgothic-std, sans-serif;
	/* 見出し・メニュー・ボタンは旧Avadaの書体設定のまま（日本語部分はOS標準の書体で表示される） */
	--ym-font-h1: Andada;
	--ym-font-h2: "Antic Slab";
	--ym-font-nav: Content;
	--ym-font-button: "PT Sans";
}

/* 基本 ------------------------------------------------------------------ */

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: #ffffff;
	color: var(--ym-text);
	font-family: var(--ym-font);
	font-size: 20px;
	font-weight: 600;
	line-height: 30px;
	word-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	border-style: none;
}

a {
	color: var(--ym-link);
	text-decoration: none;
	transition: color .2s ease;
}

a:hover {
	color: var(--ym-yellow-dark);
}

h1, h2, h3, h4, h5, h6 {
	color: var(--ym-heading);
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 .6em;
}

p {
	margin: 0 0 20px;
}

strong,
b {
	font-weight: 700;
}

td {
	line-height: 30px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ym-skip:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 8px 16px;
	background: #fff;
	color: #333;
	font-size: 14px;
}

/* WordPress 標準の配置クラス（旧Avadaと同じ余白） */
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; text-align: center; }
.alignleft { display: inline; float: left; margin-right: 15px; }
.alignright { display: inline; float: right; margin-left: 15px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; text-align: center; }

/* ヘッダー -------------------------------------------------------------- */

.ym-header {
	position: relative;
	z-index: 100;
	background: #ffffff;
}

.ym-header__inner {
	max-width: var(--ym-site-width);
	margin: 0 auto;
	padding: 36px 30px 24px; /* 旧サイトと同じくロゴの上36px */
	text-align: center;
	line-height: 30px;
}

.ym-logo__link {
	display: inline-block;
}

.ym-logo__img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 163px;
	vertical-align: baseline;
}

/* グローバルナビ（黄色の帯） */
.ym-gnav-holder {
	height: 50px;
}

.ym-gnav {
	position: relative;
	background: var(--ym-yellow);
	border-bottom: 1px solid #e5e5e5;
}

.ym-gnav__toggle {
	display: none;
}

.ym-gnav .ym-menu {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin: 0 auto;
	padding: 0 30px;
	max-width: var(--ym-site-width);
	list-style: none;
}

.ym-gnav .ym-menu > li {
	position: relative;
	padding-right: 60px;
}

.ym-gnav .ym-menu > li:last-child {
	padding-right: 0;
}

.ym-gnav .ym-menu > li > a {
	position: relative;
	display: flex;
	align-items: center;
	height: 49px;
	color: #ffffff;
	font-family: var(--ym-font-nav);
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
}

.ym-gnav .ym-menu > li > a:hover,
.ym-gnav .ym-menu > .is-current > a {
	color: #eaeaea;
}

/* 現在のページ：下向きの矢印（Avada「arrow」ハイライト） */
.ym-gnav .ym-menu > .is-current:not(.ym-menu__item--button) > a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -12px;
	margin-left: -25px;
	border-top: 12px solid var(--ym-yellow);
	border-left: 25px solid transparent;
	border-right: 25px solid transparent;
	z-index: 2;
}

/* メニュー内ボタン（保護者の皆様へ） */
.ym-gnav .ym-menu > .ym-menu__item--button > a {
	height: auto;
	padding: 11px 23px;
	background: var(--ym-button);
	border-radius: 2px;
	color: #ffffff;
	font-family: var(--ym-font-button);
	font-size: 13px;
	line-height: 17px;
	text-transform: uppercase;
	transition: background-color .2s ease;
}

.ym-gnav .ym-menu > .ym-menu__item--button > a:hover {
	background: #7a7c51;
	color: #ffffff;
}

/* サブメニュー */
/* スクロール時の追従メニュー（白） */
.ym-is-stuck .ym-gnav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: #ffffff;
	border-bottom: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .118);
	animation: ym-drop .25s ease;
}

/* 追従時は旧Avadaと同じく 14px・項目間35px */
.ym-is-stuck .ym-gnav .ym-menu > li {
	padding-right: 35px;
}

.ym-is-stuck .ym-gnav .ym-menu > li:last-child {
	padding-right: 0;
}

.ym-is-stuck .ym-gnav .ym-menu > li:not(.ym-menu__item--button) > a {
	font-size: 14px;
}

.admin-bar.ym-is-stuck .ym-gnav {
	top: 32px;
}

.ym-is-stuck .ym-gnav .ym-menu > li > a {
	color: #333333;
}

.ym-is-stuck .ym-gnav .ym-menu > li:not(.ym-menu__item--button) > a:hover,
.ym-is-stuck .ym-gnav .ym-menu > .is-current:not(.ym-menu__item--button) > a {
	color: #eaeaea;
}

.ym-is-stuck .ym-gnav .ym-menu > .ym-menu__item--button > a {
	color: #ffffff;
}

.ym-is-stuck .ym-gnav .ym-menu > li > a::after {
	display: none;
}

@keyframes ym-drop {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

/* メインビジュアル ------------------------------------------------------- */

.ym-hero {
	position: relative;
	z-index: 1;
	height: 0;
	padding-bottom: 50%; /* 幅の半分の高さ（旧サイトのスライダーと同じ） */
	padding-bottom: max(50%, 200px); /* スマホでも最低200px */
	max-height: 1000px;
	overflow: hidden;
}

.ym-hero__image {
	position: absolute;
	inset: 0;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: 50% 50%;
	background-repeat: no-repeat;
}

/*
 * 下層ページ（801px以上）：旧サイトと同じく、写真はページの一番上からヘッダーの裏に敷かれ、
 * スクロールしても止まったまま本文が上に重なる。
 * ヘッダーの高さぶん上に引き上げる値は theme.js が実際の高さで設定する（下の -281px は目安）。
 */
@media (min-width: 801px) {
	.ym-hero--parallax {
		margin-top: -281px;
	}

	.ym-hero--parallax .ym-hero__image {
		will-change: transform;
	}
}

/* 本文 ------------------------------------------------------------------ */

.ym-main {
	position: relative;
	z-index: 2;
	background: #ffffff;
	padding: 55px 0 40px;
}

.ym-container {
	max-width: calc(var(--ym-site-width) + 60px);
	margin: 0 auto;
	padding: 0 30px;
	box-sizing: border-box;
}

.ym-content::after {
	content: "";
	display: table;
	clear: both;
}

/* 投稿（お知らせ）------------------------------------------------------- */

.ym-post-nav {
	display: flex;
	justify-content: flex-end;
	gap: 21px;
	margin: 0 0 60px;
	padding: 0;
	border-top: 1px solid #e0dede;
	border-bottom: 1px solid #e0dede;
	font-size: 20px;
	line-height: 34px;
}

.ym-post-nav__prev::before {
	content: "‹";
	margin-right: 8px;
	font-size: 22px;
}

.ym-post-nav__next::after {
	content: "›";
	margin-left: 8px;
	font-size: 22px;
}

.ym-post__header {
	margin-bottom: 28px;
}

.ym-post__title {
	margin: 0;
	color: var(--ym-heading);
	font-family: var(--ym-font-h2);
	font-size: 20px;
	font-weight: 400;
	line-height: 27px;
}

.ym-post__thumb {
	margin-bottom: 30px;
}

.ym-post .ym-content a {
	color: #333333;
}

/* 一覧 ------------------------------------------------------------------ */

.ym-archive__title {
	margin: 0 0 30px;
	font-size: 26px;
	text-align: center;
}

.ym-archive__list {
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
	border-top: 1px solid #e0dede;
}

.ym-archive__item {
	border-bottom: 1px solid #e0dede;
}

.ym-archive__item a {
	display: flex;
	gap: 24px;
	padding: 12px 6px;
}

.ym-archive__item time {
	flex: 0 0 auto;
	color: #a0a0a0;
	font-size: 16px;
}

.ym-archive__item-title {
	color: #333333;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 6px;
	font-size: 16px;
}

.nav-links .page-numbers {
	display: inline-block;
	min-width: 36px;
	padding: 2px 10px;
	border: 1px solid #e0dede;
	text-align: center;
}

.nav-links .current {
	background: var(--ym-yellow-dark);
	border-color: var(--ym-yellow-dark);
	color: #ffffff;
}

.ym-404 {
	text-align: center;
}

/* フッター -------------------------------------------------------------- */

.ym-footer {
	position: relative;
	z-index: 2;
}

.ym-footer__main {
	padding: 43px 0 40px;
	background: var(--ym-footer-bg);
	border-top: 1px solid #000000;
	color: #000000;
	text-align: center;
}

.ym-footer__logo,
.ym-footer__entry {
	margin-top: 20pt;
}

.ym-footer__address {
	font-size: 16px;
}

.ym-footer__inner {
	max-width: var(--ym-site-width);
	margin: 0 auto;
	padding: 0 30px;
}

.ym-footer__copyright {
	padding: 18px 0 16px;
	background: var(--ym-copyright-bg);
	border-top: 1px solid #4b4c4d;
	color: #ffffff;
	font-size: 12px;
	line-height: 30px;
	text-align: center;
}

.ym-footer__copyright p {
	margin: 0;
}

/* ページトップへ */
.ym-totop {
	position: fixed;
	right: 75px;
	bottom: 0;
	z-index: 90;
	width: 48px;
	height: 35px;
	background: #333333;
	border-radius: 6px 6px 0 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease;
}

.ym-totop.is-visible {
	opacity: .9;
	visibility: visible;
}

.ym-totop span {
	position: absolute;
	top: 15px;
	left: 50%;
	width: 10px;
	height: 10px;
	margin-left: -5px;
	border-top: 2px solid #ffffff;
	border-left: 2px solid #ffffff;
	transform: rotate(45deg);
}

/* スマートフォン（800px以下：旧Avadaの切替幅）--------------------------- */

@media (max-width: 800px) {
	.ym-header__inner {
		padding: 20px 30px 17px;
		border-bottom: 1px solid #e5e5e5;
	}

	/* スマホのメニュー：旧Avadaの「クラシック」表示（枠つきの選択欄＋右端の三本線） */
	.ym-gnav-holder {
		height: auto;
		padding: 6px 30px 7px;
		background: #ffffff;
	}

	.ym-gnav,
	.ym-is-stuck .ym-gnav {
		position: relative;
		top: auto;
		background: transparent;
		border-bottom: 0;
		box-shadow: none;
		animation: none;
	}

	.ym-gnav__toggle {
		position: relative;
		display: block;
		box-sizing: border-box;
		width: 100%;
		height: 35px;
		padding: 0 50px;
		background: #f9f9f9;
		border: 1px solid #dadada;
		color: #333333;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 12px;
		font-weight: 400;
		line-height: 33px;
		text-align: center;
		cursor: pointer;
	}

	.ym-gnav__toggle-icon {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 50px;
		border-left: 1px solid #dadada;
	}

	.ym-gnav__toggle-icon::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 22px;
		height: 4px;
		margin: -9px 0 0 -11px;
		background: #dadada;
		border-radius: 2px;
		box-shadow: 0 7px 0 #dadada, 0 14px 0 #dadada;
	}

	.ym-gnav__list {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 50;
	}

	.ym-gnav.is-open .ym-gnav__list {
		display: block;
	}

	.ym-gnav .ym-menu,
	.ym-is-stuck .ym-gnav .ym-menu {
		display: block;
		margin: 0;
		padding: 0;
		border-left: 1px solid #dadada;
		border-right: 1px solid #dadada;
	}

	.ym-gnav .ym-menu > li,
	.ym-gnav .ym-menu > li:last-child {
		margin: 0;
		padding: 0;
	}

	.ym-gnav .ym-menu > li > a,
	.ym-is-stuck .ym-gnav .ym-menu > li > a,
	.ym-gnav .ym-menu > .ym-menu__item--button > a {
		display: block;
		height: 35px;
		padding: 0 20px;
		background: #f9f9f9;
		border-bottom: 1px solid #dadada;
		border-radius: 0;
		box-sizing: border-box;
		color: #333333;
		font-family: Arial, Helvetica, sans-serif;
		font-size: 12px;
		font-weight: 700;
		line-height: 34px;
		text-align: center;
		text-transform: none;
	}

	.ym-gnav .ym-menu > li > a:hover,
	.ym-gnav .ym-menu > .ym-menu__item--button > a:hover {
		background: #f6f6f6;
		color: #333333;
	}

	.ym-gnav .ym-menu > li > a::after {
		display: none !important;
	}

		.ym-container,
	.ym-footer__inner {
		padding: 0 30px;
	}

	/* 旧Avadaと同じく、標準テンプレート・記事ページはスマホで本文の下に50pxの余白 */
	.ym-main > .ym-container,
	.ym-main > .ym-page > .ym-container {
		padding-bottom: 50px;
	}

	.ym-archive__item a {
		flex-direction: column;
		gap: 0;
	}

	.ym-totop {
		right: 16px;
	}
}

