/* =========================================================
   おひさまこどもえん 共通スタイル
   - 画面幅：PC 1001px〜 / タブレット 801〜1000px / スマホ 〜800px（さらに 640px 以下で一部変化）
   - 中身の幅は最大 1050px（旧サイトと同じ）
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: #fff;
	color: #000;
	font-family: "ibm-plex-sans", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	word-wrap: break-word;
}

img { max-width: 100%; height: auto; vertical-align: top; border: 0; }
a { color: #000; text-decoration: none; }
a:hover { color: #ff9800; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }
iframe { border: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	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: 10000;
	width: auto; height: auto; padding: 8px 16px; clip: auto;
	background: #fff; box-shadow: 0 0 4px rgba(0,0,0,.4);
}

/* 中身の幅 */
.ym-container {
	width: 100%;
	max-width: 1110px;   /* 1050 + 左右 30 */
	margin: 0 auto;
	padding: 0 30px;
}

/* 背景画像の入った帯（PCでは背景を画面に固定。スマホは固定しない＝旧サイトと同じ） */
.ym-bg {
	display: flow-root;          /* 中の要素のマイナス余白が外にはみ出さないように */
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}
@media (min-width: 801px) {
	.ym-bg--fixed { background-attachment: fixed; }
}

/* 太字の本文（旧サイトの本文と同じ 16px 太字） */
.ym-text {
	font-size: 16px;
	font-weight: 700;
	line-height: 40px;
}

/* 表示の出し分け */
@media (min-width: 641px) { .ym-only-sm { display: none !important; } }
@media (max-width: 640px) { .ym-hide-sm { display: none !important; } }

/* 文字に水色のマーカー */
.ym-marker { background: linear-gradient(transparent 50%, #a8eaff 50%); }

/* ---------------------------------------------------------
   ヘッダー
   --------------------------------------------------------- */
.ym-header {
	position: relative;
	z-index: 1001;
	background: #fff;
}
.ym-header__inner {
	position: relative;
	padding: 0 30px;
}
.ym-gnav {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 197px;
}
.ym-gnav__list {
	display: flex;
	align-items: center;
}
.ym-gnav__list li { margin: 0 12.5px; }
.ym-header__logo { margin: 0 12.5px; }
.ym-logo { display: block; }
.ym-logo__img { display: block; width: 294px; height: auto; }
.ym-gnav__icon {
	display: block;
	width: 80px;
	transition: transform .6s ease;
}
.ym-gnav__list a:hover .ym-gnav__icon,
.ym-gnav__list a:focus .ym-gnav__icon { transform: scale(1.1); }

.ym-mnav__toggle { display: none; }
.ym-mnav { display: none; }

@media (max-width: 1000px) {
	.ym-gnav {
		justify-content: flex-start;
		height: auto;
		padding: 31px 0;
	}
	.ym-gnav__list { display: none; }
	.ym-header__logo { margin: 0; max-width: calc(100% - 55px); }
	.ym-logo__img { width: 294px; max-width: 100%; }

	.ym-mnav__toggle {
		display: block;
		position: absolute;
		top: 50%;
		right: 30px;
		width: 30px;
		height: 30px;
		margin-top: -15px;
		padding: 0;
		background: none;
		border: 0;
		cursor: pointer;
	}
	.ym-mnav__bars span {
		position: absolute;
		left: 0;
		width: 30px;
		height: 2px;
		background: #333;
		transition: transform .25s, opacity .25s;
	}
	.ym-mnav__bars span:nth-child(1) { top: 6px; }
	.ym-mnav__bars span:nth-child(2) { top: 14px; }
	.ym-mnav__bars span:nth-child(3) { top: 22px; }
	.ym-mnav-open .ym-mnav__bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.ym-mnav-open .ym-mnav__bars span:nth-child(2) { opacity: 0; }
	.ym-mnav-open .ym-mnav__bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

	.ym-mnav {
		position: fixed;
		top: 0; right: 0; bottom: 0; left: 0;
		z-index: -1;
		display: flex;
		align-items: center;
		justify-content: center;
		background: rgba(255, 255, 255, .95);
	}
	.ym-mnav[hidden] { display: none; }
	.ym-mnav__list { text-align: center; }
	.ym-mnav__list a {
		display: inline-block;
		color: #333;
		font-family: "PT Sans", sans-serif;
		font-size: 16px;
		line-height: 35px;
	}
	.ym-mnav__list a:hover { color: #333; text-decoration: underline; }
	.ym-mnav-open { overflow: hidden; }
}

/* ---------------------------------------------------------
   白い丸いボタン
   --------------------------------------------------------- */
.ym-btn {
	display: inline-block;
	padding: 16px;
	background: #fff;
	color: #000;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
	border-radius: 30px;
	box-shadow: 0 2px 2px 0 rgba(0,0,0,.12), 0 1px 5px 0 rgba(0,0,0,.12), 0 3px 1px -2px rgba(0,0,0,.2);
	-webkit-tap-highlight-color: transparent;
	transition: .2s ease-out;
}
.ym-btn--small { width: 150px; }
.ym-btn--large { width: 250px; }
.ym-btn:hover,
.ym-btn:focus {
	color: #000;
	transform: translateY(-4px);
	box-shadow: 0 4px 8px 0 rgba(0,0,0,.12), 0 3px 10px 0 rgba(0,0,0,.12), 0 4px 7px -2px rgba(0,0,0,.2);
}

/* ---------------------------------------------------------
   トップのお知らせ一覧（旧 What's New Generator と同じ見た目）
   --------------------------------------------------------- */
.ym-news {
	margin: 10px 0;
	word-break: break-all;
	overflow: hidden;
}
.ym-news hr {
	height: 0;
	margin: 0;
	border: 0;
	border-top: 1px solid #808080;
	border-bottom: 1px solid #d9d9d9;
}
.ym-news__item {
	display: block;
	padding: 7px 0;
	color: #000;
	line-height: 27px;
}
.ym-news__item:hover { background: #f5f5f5; color: #000; }
.ym-news__date {
	display: block;
	margin-left: .3em;
	color: #808080;
	white-space: nowrap;
}
.ym-news__title { display: block; padding: 0 2px; }
.ym-news__new {
	padding: 1px 5px;
	font-size: 74%;
	vertical-align: middle;
	color: #fff;
	background: #ff4500;
	border-radius: 3px;
}
@media (min-width: 600px) {
	.ym-news__date { float: left; width: 8.1em; overflow: hidden; }
	.ym-news__title { overflow: hidden; }
}

/* ---------------------------------------------------------
   地図・住所（各ページの下）
   --------------------------------------------------------- */
.ym-access {
	position: relative;
	height: 889px;
	padding: 30px 30px 0;
	background-position: center top;
	text-align: center;
}
/* トップだけ旧サイトで地図の上の余白が少し広い */
.ym-page-home .ym-access { padding-top: 49px; }
.ym-access__map {
	max-width: 1050px;
	height: 500px;
	margin: 0 auto;
	overflow: hidden;
}
.ym-access__map iframe {
	display: block;
	width: 100%;
	height: 860px;
	margin-top: -150px;
}
.ym-access__body { position: relative; }
.ym-access__icon {
	position: absolute;
	top: -73px;
	left: 50%;
	width: 200px;
	margin-left: -100px;
}
.ym-access__icon img { display: block; width: 200px; }
.ym-access__address {
	position: absolute;
	top: 136px;
	left: 0;
	right: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}
.ym-access__contact {
	position: absolute;
	top: 201px;
	left: 0;
	right: 0;
}
.ym-access__tel {
	position: absolute;
	top: 277px;
	left: 0;
	right: 0;
}
.ym-access__tel img { width: 300px; }

/* ---------------------------------------------------------
   フッター
   --------------------------------------------------------- */
.ym-footer {
	padding: 18px 30px 16px;
	background: #282a2b;
	border-top: 1px solid #4b4c4d;
}
.ym-footer__copyright {
	max-width: 1050px;
	margin: 0 auto;
	color: #fff;
	font-size: 12px;
	line-height: 18px;
}

/* 右側の追従ボタン（PCのみ） */
.ym-fixed-btn {
	position: fixed;
	right: 5px;
	bottom: 100px;
	z-index: 2;
}
.ym-fixed-btn img { display: block; width: 100px; }
@media (max-width: 1000px) {
	.ym-fixed-btn { display: none; }
}

/* ページの先頭へ（PCのみ） */
.ym-totop {
	position: fixed;
	right: 75px;
	bottom: 0;
	z-index: 3;
	width: 48px;
	height: 35px;
	background: #333;
	border-radius: 6px 6px 0 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}
.ym-totop.is-visible { opacity: .9; visibility: visible; }
.ym-totop span {
	position: absolute;
	top: 14px;
	left: 18px;
	width: 12px;
	height: 12px;
	border-top: 2px solid #fff;
	border-left: 2px solid #fff;
	transform: rotate(45deg);
}
@media (max-width: 800px) {
	.ym-totop { display: none; }
}

/* ---------------------------------------------------------
   お知らせ記事・一覧・その他のページ
   --------------------------------------------------------- */
.ym-titlebar {
	padding: 0 30px;
	background: #f6f6f6;
	border-top: 1px solid #d2d3d4;
	border-bottom: 1px solid #d2d3d4;
}
.ym-titlebar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1050px;
	min-height: 85px;
	margin: 0 auto;
}
.ym-titlebar__title {
	color: #333;
	font-family: "Antic Slab", "ibm-plex-sans", sans-serif;
	font-size: 18px;
	line-height: normal;
}
.ym-breadcrumbs {
	flex-shrink: 0;
	margin-left: 20px;
	color: #333;
	font-size: 10px;
	line-height: 15px;
}
.ym-breadcrumbs a { color: #333; }
@media (max-width: 800px) {
	.ym-titlebar__inner { display: block; min-height: 70px; padding: 20px 0; text-align: center; }
	.ym-breadcrumbs { display: none; }
}

.ym-single { padding-top: 0; padding-bottom: 0; }
.ym-post-nav {
	margin: 0 0 60px;
	padding: 3px 0;
	text-align: right;
	border-top: 1px solid #e0dede;
	border-bottom: 1px solid #e0dede;
	line-height: 28px;
}
.ym-post-nav a { margin-left: 20px; }
.ym-post-nav__prev::before { content: "\2039"; margin-right: 8px; }
.ym-post-nav__next::after { content: "\203A"; margin-left: 8px; }
.ym-post__title {
	margin: 0 0 28px;
	color: #333;
	font-family: "Antic Slab", "ibm-plex-sans", sans-serif;
	font-size: 20px;
	line-height: 27px;
}
.ym-post-nav--empty { height: 0; padding: 0; border: 0; margin-bottom: 40px; }
.ym-page .ym-content,
.ym-404 { padding-top: 40px; }

.ym-archive { padding-top: 40px; padding-bottom: 60px; }
.ym-archive__list li { border-bottom: 1px solid #e0dede; }
.ym-archive__list a { display: block; padding: 14px 0; }
.ym-archive__list time { display: inline-block; min-width: 9em; color: #808080; }
.ym-archive__empty { padding: 40px 0; }
.ym-404 p { margin-bottom: 20px; }

/* 記事の本文（旧サイトの本文と同じく 16px 太字） */
.ym-content { font-size: 16px; font-weight: 700; line-height: 1.5; }
.ym-content p { margin: 0 0 20px; }
.ym-content h2 { margin: 30px 0 15px; color: #333; font-family: "Antic Slab", "ibm-plex-sans", sans-serif; font-size: 20px; font-weight: 400; }
.ym-content h3 { margin: 25px 0 12px; color: #333; font-size: 18px; }
.ym-content ul { margin: 0 0 20px 1.5em; list-style: disc; }
.ym-content ol { margin: 0 0 20px 1.5em; list-style: decimal; }
.ym-content li { margin-bottom: 4px; }
.ym-content a { color: #000; text-decoration: none; }
.ym-content a:hover,
.ym-content a:focus { text-decoration: underline; }
.ym-content hr { margin: 30px 0; border: 0; border-top: 1px solid #e0dede; }
.ym-content table { margin: 20px auto; }
.ym-content img { height: auto; }
.ym-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.ym-content .alignleft { float: left; margin: 0 20px 20px 0; }
.ym-content .alignright { float: right; margin: 0 0 20px 20px; }
.ym-content .wp-caption { max-width: 100%; }
.ym-content::after { content: ""; display: table; clear: both; }

/* 旧サイトの記事で使っていた部品（過去の記事をそのまま表示するため） */
.tbl-r02 th { padding: 10px; font-size: 11pt; font-weight: 400; color: #fff; background: rgba(0, 128, 255, .51); border: 1px solid #ccc; }
.tbl-r02 td { padding: 20px 60px; background: #fff; border: 1px solid #ccc; font-weight: 400; font-size: 18px; }
@media (max-width: 640px) {
	.tbl-r02 { width: 100%; }
	.tbl-r02 th, .tbl-r02 td { display: block; width: 100%; border-bottom: none; }
	.last td:last-child { width: 100%; border-bottom: 1px solid #ccc; }
}
.under { background: linear-gradient(transparent 50%, #a8eaff 50%); }
.fuwauki_btn_red, .fuwauki_btn_b {
	display: inline-block; padding: 1em; background: #fff; color: #000 !important; text-align: center; text-decoration: none !important;
	border-radius: 30px; box-shadow: 0 2px 2px 0 rgba(0,0,0,.12), 0 1px 5px 0 rgba(0,0,0,.12), 0 3px 1px -2px rgba(0,0,0,.2); transition: .2s ease-out;
}
.fuwauki_btn_red { width: 250px; }
.fuwauki_btn_b { width: 150px; }
.fuwauki_btn_red:hover, .fuwauki_btn_b:hover { transform: translateY(-4px); }
.sankou-badge, .link-badge { margin: 0 8px 0 1px; padding: 3px 6px; font-size: 75%; color: #fff; border-radius: 6px; box-shadow: 0 0 3px #ddd; white-space: nowrap; }
.sankou-badge { background: #f15a24; }

/* ---------------------------------------------------------
   ポップアップ（教育内容）
   --------------------------------------------------------- */
.ym-modal {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 2000;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.ym-modal[hidden] { display: none; }
.ym-modal__backdrop {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	background: rgba(0, 0, 0, .5);
}
.ym-modal__dialog {
	position: relative;
	width: 900px;
	max-width: calc(100% - 20px);
	margin: 60px auto 30px;
	background: #f6f6f6;
	border: 1px solid rgba(0, 0, 0, .2);
	border-radius: 6px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
}
.ym-modal__header {
	height: 54px;
	padding: 15px;
	border-bottom: 1px solid #ebebeb;
}
.ym-modal__close {
	float: right;
	padding: 0;
	background: none;
	border: 0;
	color: #000;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	opacity: .2;
	cursor: pointer;
}
.ym-modal__close:hover { opacity: .5; }
.ym-modal__body { padding: 24px 33px 30px; }
.ym-modal__image { display: block; width: 100%; margin: 0 auto; }
.ym-modal__footer {
	padding: 19px 20px 20px;
	text-align: right;
	border-top: 1px solid #ebebeb;
}
.ym-modal__button {
	padding: 11px 29px;
	color: #fff;
	font-family: "PT Sans", sans-serif;
	font-size: 14px;
	line-height: 20px;
	text-transform: uppercase;
	background: linear-gradient(to top, #ff9800, #ffc107);
	border: 0;
	border-radius: 2px;
	cursor: pointer;
}
.ym-modal__button:hover { background: #ff9800; }
.ym-modal-open { overflow: hidden; }

/* 二重線の枠に見出しが乗った説明（旧サイトの cp_point） */
.ym-point {
	position: relative;
	margin: 64px 7px 20px;
	padding: 50px 50px 40px;
	border: 2px double #da3c41;
}
.ym-point__title {
	position: absolute;
	top: -1.5em;
	left: 2em;
	padding: 10px 50px;
	color: #f15a24;
	font-size: 18px;
	font-weight: 700;
	line-height: 27px;
	background: #fff;
	border: 2px solid #da3c41;
	border-radius: 10px;
}
.ym-point__text { font-size: 14.4px; line-height: 1.5; }
@media (max-width: 640px) {
	.ym-modal__dialog { margin-top: 20px; }
	.ym-modal__body { padding: 15px; }
	.ym-point { margin: 50px 0 10px; padding: 40px 15px 20px; }
	.ym-point__title { left: 1em; padding: 8px 24px; }
}

/* ---------------------------------------------------------
   写真のスライド（年間行事）
   --------------------------------------------------------- */
.ym-slider { position: relative; overflow: hidden; }
.ym-slider__track { position: relative; padding-top: 75%; }
.ym-slider__slide {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity .6s ease;
}
.ym-slider__slide.is-active { opacity: 1; z-index: 1; }
.ym-slider__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ym-slider__dots {
	position: absolute;
	bottom: 16px;
	left: 0;
	right: 0;
	z-index: 2;
	text-align: center;
	line-height: 0;
}
.ym-slider__dots li { display: inline-block; margin: 0 6px; }
.ym-slider__dots button {
	width: 11px;
	height: 11px;
	padding: 0;
	background: rgba(0, 0, 0, .5);
	border: 0;
	border-radius: 50%;
	box-shadow: inset 0 0 3px rgba(0, 0, 0, .3);
	cursor: pointer;
}
.ym-slider__dots button.is-active { background: #333; }
