/*
Theme Name: sasaguchi-kodomoen 
 */

/* ============================
	common
============================ */
:root {
	--leading-trim: calc((1em - 1lh) / 2);
	--main-color: #00A78D;
	--sub-color: #00A7CA;
	--accent-color: #E38CB7;
	--main-text-color: #00927B;
	--bg-color: #FFF;
	--border-color: #00927B;
	--black: #1A1A1A;
	--white: #fff;
	/* 必須ラベル。トップの電車イラスト（home.css の #D05545）と同じ色相・彩度で、
	   白文字のコントラストが AA（4.5:1）を満たす明度に落としたもの */
	--required-color: #CD4937;
	--gray: #9F9F9F;
	--gray-light: #CCC;
	--gray-lighter: #E6E6E6;
	--line-color: #DCDADA;
	--form-bg: #F8F8F8;
	--container-size: 1200px;
	--container-padding: 20px;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

.zen-kaku-gothic-new {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-style: normal;
}

.zen-maru-gothic {
  font-family: "Zen Maru Gothic", sans-serif;
  font-style: normal;
}

.flex-between {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.flex-start {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.ofi {
  font-family: "object-fit: cover;";
  -o-object-fit: cover;
  object-fit: cover;
}

.bold {
  font-weight: 700;
}

@media screen and (max-width: 767px) {
  #wrapper {
    box-shadow: 0 0 10px rgba(30, 30, 30, 0.3);
    margin: 0 auto;
    min-width: 0;
  }
}

/* ============================
	共通パーツ（葉っぱロゴ / CTA ボタン）
============================ */
.site-mark {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%232f8f7e'%3E%3Cellipse cx='50' cy='22' rx='9' ry='18'/%3E%3Cellipse cx='78' cy='50' rx='18' ry='9'/%3E%3Cellipse cx='50' cy='78' rx='9' ry='18'/%3E%3Cellipse cx='22' cy='50' rx='18' ry='9'/%3E%3Ccircle cx='50' cy='50' r='8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  display: block;
  height: 56px;
  width: 56px;
}

img.site-mark {
	background: none;
	height: auto;
  object-fit: contain;
  width: 56px;
}

.cta-green,
.cta-blue,
.cta-pink {
  align-items: center;
  color: var(--white);
  display: flex;
  font-size: 1.7rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
}

.cta-green { background-color: var(--main-color, #00a78d); }
.cta-blue  { background-color: #47bfd8; }
.cta-pink  { background-color: var(--accent-color, #e38cb7); }

.cta-green:link,
.cta-blue:link,
.cta-pink:link,
.cta-green:visited,
.cta-blue:visited,
.cta-pink:visited {
	color: var(--white);
}

/* ============================
	sp-menu
============================ */
#sp-menu {
  /* ナビ項目と CTA の横幅を揃えるための共通値 */
  --sp-menu-width: min(100%, 320px);
  background-color: #f0f7ee;
  box-sizing: border-box;
  left: 0;
  opacity: 0;
  padding: 90px 20px;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: all 0.35s ease;
  width: 100%;
  z-index: 998;
}

#sp-menu.opening {
  height: 100dvh;
  opacity: 1;
  overflow-y: auto;
  pointer-events: auto;
}

#sp-menu .sp-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-inline: auto;
  width: var(--sp-menu-width);
}

/* 挙動は .nav-item a と同じ（白いボタン面 + オフセットの影、ホバーで影の位置へ押し込む） */
#sp-menu .menu-item a {
  --btn-plate: rgb(0 146 123 / 0.35);
  --btn-plate-offset: 5px;
  align-items: center;
  background-color: var(--white);
  border-radius: 30px;
  box-shadow: var(--btn-plate-offset) var(--btn-plate-offset) 0 var(--btn-plate);
  box-sizing: border-box;
  color: #4a4a44;
  display: flex;
  font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.4;
  padding: 15px 38px;
  position: relative;
  text-align: center;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  width: 100%;
}

#sp-menu .menu-item a::after {
  background: url("images/common/arrow_right02.svg") center / contain no-repeat;
  content: "";
  height: 14px;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.4s ease;
  width: 9px;
}

#sp-menu .menu-item a:hover {
  box-shadow: 0 0 0 var(--btn-plate);
  opacity: 1;
  transform: translate(var(--btn-plate-offset), var(--btn-plate-offset));
}

#sp-menu .menu-item a:hover::after {
  transform: translate(3px, -50%);
}

#sp-menu .sp-contact-box {
  border-top: 2px dashed rgb(0 146 123 / 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 30px auto 0;
  padding-top: 30px;
  width: var(--sp-menu-width);

	span {
		color: var(--white);
	}
}

#sp-menu .sp-cta {
  --btn-plate-offset: 5px;
  border-radius: 30px;
  box-shadow: var(--btn-plate-offset) var(--btn-plate-offset) 0 var(--btn-plate);
  box-sizing: border-box;
  padding: 14px 0;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

#sp-menu .sp-cta:hover {
  box-shadow: 0 0 0 var(--btn-plate);
  opacity: 1;
  transform: translate(var(--btn-plate-offset), var(--btn-plate-offset));
}

#sp-menu .sp-cta.cta-green { --btn-plate: rgb(0 116 97 / 0.5); }
#sp-menu .sp-cta.cta-blue  { --btn-plate: rgb(43 137 158 / 0.5); }

/* btn-hamburger */
#btn-hamburger {
  background-color: var(--main-color, #00a78d);
  border-radius: 0 0 0 14px;
  cursor: pointer;
  height: 60px;
  position: relative;
  right: 0;
  top: 0;
  width: 60px;
  z-index: 1000;
}

#btn-hamburger .border {
  background: #fff no-repeat left top;
  height: 2px;
  left: 15px;
  position: absolute;
  transition: opacity, transform 0.2s ease;
  width: 30px;
  z-index: 1;
}

#btn-hamburger .border:first-child {
  top: 33%;
}

#btn-hamburger .border:nth-child(2) {
  transform: rotate(0);
  opacity: 1;
  top: 50%;
}

#btn-hamburger .border:nth-child(3) {
  top: 67%;
}

#btn-hamburger.opening .border:first-child {
  transform: rotate(45deg);
  top: 50%;
}

#btn-hamburger.opening .border:nth-child(2) {
  opacity: 0;
}

#btn-hamburger.opening .border:nth-child(3) {
  top: 50%;
  transform: rotate(-45deg);
}

/* ============================
	header（デザイン刷新：ロゴカード＋ナビピル）
============================ */
#header {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
  font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
}

#header.h-fixed {
  position: fixed;
}

#header > * {
  pointer-events: auto;
}

/* ロゴカード */
#h-site-logo {
  --logo-w: 150px;
  --logo-sub-w: var(--logo-w);
	background-color: #fff;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
	margin-left: 10px;
}

#h-site-logo a {
  display: flex;
  flex-direction: column;
  align-items: center;
	padding: 22px 19px 25px;
  position: relative;
}

#h-site-logo .site-mark {
  transition: height 0.4s ease, opacity 0.4s ease, transform 0.4s ease, width 0.4s ease;
}

#h-site-logo .site-mark--main {
  height: calc(var(--logo-w) * 0.676);
  object-fit: contain;
  width: var(--logo-w);
}

#h-site-logo .site-mark--sub {
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: var(--logo-sub-w);
}

#h-site-logo.is-switched a {
	padding: 28px 19px 32px;
}

#h-site-logo.is-switched .site-mark--main {
  height: calc(var(--logo-sub-w) * 0.196);
  opacity: 0;
  transform: scale(0.85);
  width: var(--logo-sub-w);
}

#h-site-logo.is-switched .site-mark--sub {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#h-site-logo .site-name {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  color: #4a4a44;
  letter-spacing: 5px;
}

#h-gnav-box {
	align-items: center;
  background-color: var(--white);
  display: flex;
  gap: 28px;
  height: 68px;
  margin-right: 10px;
  margin-top: 24px;
  padding-left: 42px;
  padding-right: 14px;
  border-radius: 48px 48px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .07);
}

#h-gnav-box .gnav-list {
  align-items: center;
  display: flex;
  gap: 26px;
}

#h-gnav-box .gnav-list a {
  color: var(--main-text-color);
  font-size: 1.7rem;
  font-weight: 700;
}

@media screen and (max-width: 1304px) {
	#h-site-logo {
	  --logo-w: 90px;
	  --logo-sub-w: 110px;
	}
}

@media screen and (max-width: 767px) {
	#h-site-logo {
	  --logo-w: 56px;
		border-radius: 0 0 14px 0;
		margin-left: 0
	}

	#h-site-logo a {
		padding: 11px 7px 12px;
	}
}

.h-gnav-cta {
	column-gap: 5px;
  display: flex;
  align-items: center;
  height: 52px;
  margin-left: -8px;
  border-radius: 24px;
  overflow: hidden;
}

.h-gnav-cta a {
  height: 52px;
  padding: 0 24px;
}

/* ============================
	footer
============================ */
#footer {
  margin-top: 30px;
  border-radius: 110px 110px 0 0;
  padding: 80px 0 60px;
  background: url("images/common/footer_bg.svg") center / cover no-repeat;
  font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
}

#footer .f-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
	
	@media screen and (max-width: 767px) {
		padding: 0;
	}
}

#footer .f-content {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 60px 40px;
  justify-content: center;
	width: 100%;
}

#footer .f-logo {
  display: block;
	margin-right: auto;
	width: fit-content;
}

#footer .site-mark {
  display: block;
	height: auto;
  width: 178px;
}

#footer .f-address {
  color: #1A1A1A;
  font-size: 1.5rem;
	font-style: normal;
	font-weight: 500;
  line-height: 1.6;
	margin-top: 40px;
}

#footer .f-map {
  color: #1A1A1A;
  font-weight: 700;
	margin-left: 10px;
  text-decoration: underline;
}

#footer .f-map::before {
  background: url("images/common/icon_pin.svg") center / contain no-repeat;
  content: "";
  display: inline-block;
  height: 18px;
  margin-right: 3px;
  vertical-align: -3px;
  width: 14px;
}

#footer .f-nav-area {
  width: 620px;
  max-width: 100%;
}

#footer .f-nav {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: space-between;
  row-gap: 20px;
  column-gap: 24px;
  margin-bottom: 34px;
}

#footer .f-nav a {
  align-items: center;
  color: var(--main-text-color);
  display: flex;
  gap: 8px;
  font-size: 1.6rem;
	font-weight: 700;
}

#footer .f-nav__mark {
  background: url("images/common/arrow_right01.svg") center / contain no-repeat;
  flex: none;
  height: 22px;
  width: 22px;
}

#footer .f-cta {
  display: flex;
  gap: 18px;
  margin-bottom: 30px;
}

#footer .f-cta a {
  flex: 1;
  border-radius: 30px;
  padding: 15px 0;
}

#footer .f-docs {
  color: var(--main-text-color);
  font-size: 1.5rem;
}

#footer .f-docs__head {
  font-weight: 600;
  margin: 0;
}

#footer .f-docs__list + .f-docs__head {
  margin-top: 20px;
}

#footer .f-docs__icon {
  background: url("images/common/icon_download.svg") center / contain no-repeat;
  display: inline-block;
  height: 36px;
  margin-right: 8px;
  vertical-align: middle;
  width: 36px;
}

#footer .f-docs__note {
  font-size: 1.3rem;
  font-weight: 500;
}

#footer .f-docs__list {
  column-gap: 24px;
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  row-gap: 10px;
}

#footer .f-docs__pdf {
  color: var(--main-text-color);
  font-weight: 600;
}

#footer .f-docs__label {
  text-decoration: underline;
}

#footer .f-docs__external {
  align-items: center;
  color: var(--main-text-color);
  display: inline-flex;
  font-weight: 600;
  gap: 6px;
  margin-top: 10px;
}

#footer .f-docs__external::after {
  background: url("images/common/icon_external.svg") center / contain no-repeat;
  content: "";
  flex: none;
  height: 12px;
  width: 12px;
}

#footer .f-sub {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 44px;
}

#footer .f-sub a {
  color: var(--main-text-color);
  font-size: 1.3rem;
	font-weight: 600;
}

#footer .f-instagram img {
  display: block;
  height: auto;
  width: 30px;
}

#footer .f-copyright {
  color: #4a4a44;
  font-size: 1.2rem;
  margin: 40px 0 0;
}

@media screen and (max-width: 1089px) {
  #footer .f-content {
		justify-content: center;
	}
	
	#footer .f-logo {
		margin-inline: auto;
	}
}

@media screen and (max-width: 767px) {
  #footer {
    border-radius: 50px 50px 0 0;
    padding: 60px 0 50px;
  }
	
	#footer .f-map {
		display: block;
		margin-left: 0;
		margin-top: 10px;
	}

  #footer .f-content {
    gap: 60px 30px;
		justify-content: center;
  }

  #footer .f-nav-area {
    width: 100%;
  }

  #footer .f-nav {
    grid-template-columns: 1fr;
  }

  #footer .f-cta {
    flex-direction: column;
  }
	
	#footer .f-copyright {
		margin-top: 20px;
	}
}

/* ============================
	mainvisual
============================ */
.mainvisual {
  width: 100%;
}

/* ============================
	下層ページ共通ヒーロー（template_parts/mod-mainvisual.php）
============================ */
.section-mv {
	/* image-box を .mv-wrap の枠外（右）へはみ出させる量。
	   写真の右端が画面外で切れないよう、--mv-safe-inline（= 4.8vw）を超えない係数にしている */
	--mv-bleed: clamp(30px, 4.4vw, 90px);
	--mv-overhang: 85px;
	--mv-photo-ratio: 771 / 614;
	--mv-radius-x: clamp(120px, 16vw, 240px);
	--mv-radius-y: clamp(110px, 14.8vw, 222px);
	--mv-safe-inline: calc(var(--mv-radius-x) * .3);
	--mv-pad-bottom: calc(var(--mv-radius-y) * .3);
	background-color: rgb(95 235 110 / .2);
	border-radius: 0 0 var(--mv-radius-x) var(--mv-radius-x) / 0 0 var(--mv-radius-y) var(--mv-radius-y);
	margin-bottom: var(--mv-overhang);
	padding: 70px 0 var(--mv-pad-bottom);
	position: relative;

	@media screen and (max-width: 1023px) {
		--mv-bleed: clamp(20px, 4vw, 40px);
		--mv-overhang: 60px;
	}

	@media screen and (max-width: 767px) {
		/* SP は1カラムなのでブリードなし */
		--mv-bleed: 0px;
		--mv-overhang: 40px;
		--mv-radius-x: 60px;
		--mv-radius-y: 50px;
		padding-top: 80px;
	}

	.mv-wrap {
		align-items: start;
		box-sizing: border-box;
		display: grid;
		grid-template-columns: minmax(0, 42%) minmax(0, 58%);
		padding-left: max(var(--container-padding), var(--mv-safe-inline), calc((100% - var(--container-size)) / 2));
		padding-right: max(var(--container-padding), var(--mv-safe-inline), calc((100% - var(--container-size)) / 2 - 20px));
		width: 100%;

		@media screen and (max-width: 1240px) {
			grid-template-columns: minmax(0, 50%) minmax(0, 50%);
		}

		@media screen and (max-width: 1023px) {
			grid-template-columns: minmax(0, 58%) minmax(0, 42%);
		}

		@media screen and (max-width: 767px) {
			gap: 34px;
			grid-template-columns: minmax(0, 1fr);
			padding-right: var(--container-padding);
		}
	}

	.text-box {
		padding-top: 111px;
		text-align: center;

		@media screen and (max-width: 1023px) {
			padding-top: 70px;
		}

		@media screen and (max-width: 767px) {
			padding-top: 6px;
		}
	}

	.ttl-box {
		position: relative;
	}

	.mv-ttl {
		color: var(--main-text-color);
		font-size: clamp(2.8rem, 3.06vw, 4.4rem);
		font-weight: 700;
		letter-spacing: .1em;
		line-height: 1.4;
		margin: 0 auto;
		max-width: 9.9em;
		/* ::after のあしらいを文字に重ねないための余白。あしらいと同じ px 基準で確保する
		   （em だと font-size が縮んだときに px 固定のあしらいへ足りなくなる） */
		padding-bottom: 66px;
		position: relative;
		text-align: center;

		@media screen and (max-width: 767px) {
			padding-bottom: 46px;
		}

		/* タイトルの下をくぐって右上へ抜ける紙飛行機（435x97）。
		   タイトルの幅や文字数では伸縮させず、原寸より少し小さい固定サイズで添える */
		&::after {
			aspect-ratio: 435 / 97;
			background: url("images/common/page_title_bg.png") no-repeat center bottom / 100% auto;
			bottom: -8px;
			content: "";
			left: 50%;
			position: absolute;
			transform: translateX(calc(-50% + 24px));
			width: 300px;

			@media screen and (max-width: 767px) {
				bottom: -6px;
				transform: translateX(calc(-50% + 16px));
				width: 200px;
			}
		}
	}

	.mv-lead {
		color: var(--main-text-color);
		font-size: 1.7rem;
		font-weight: 500;
		line-height: 1.9;
		margin: 44px 0 0;
		text-align: center;

		@media screen and (max-width: 767px) {
			font-size: 1.4rem;
			margin-top: 28px;
		}
	}

	/* MV内のボタン（$page_mv の button キーを指定したページのみ） */
	.mv-btn {
		margin-top: 30px;

		@media screen and (max-width: 767px) {
			margin-top: 22px;
		}

		.c-button {
			min-width: 274px;

			@media screen and (max-width: 767px) {
				min-width: 0;
			}
		}

		/* .text-box の text-align: center が .c-button__label（flex: 1）に効くので戻す */
		.c-button__label {
			text-align: left;
		}
	}

	.image-box {
		margin-bottom: calc((var(--mv-overhang) + var(--mv-pad-bottom)) * -1);
		/* grid の track 幅を変えずに写真だけ右へ広げる（text-box の幅は不変） */
		margin-right: calc(var(--mv-bleed) * -1);
	}

	.photo-box {
		margin: 0;

		/* 素材の縦横比に関わらず MV の高さを揃える（基準は about の mv.png = 771 x 614）。
		   contain なので画像は切り取られず、比率が違う分は余白になる */
		img {
			aspect-ratio: var(--mv-photo-ratio);
			display: block;
			height: auto;
			object-fit: contain;
			width: 100%;
		}
	}

	/* 写真なし（タイトルのみ） */
	&.mv-simple {
		--mv-overhang: 0px;
		padding-bottom: max(56px, var(--mv-pad-bottom));

		@media screen and (max-width: 767px) {
			padding-bottom: max(40px, var(--mv-pad-bottom));
		}

		.mv-wrap {
			grid-template-columns: minmax(0, 1fr);
			padding-right: max(var(--container-padding), var(--mv-safe-inline), calc((100% - var(--container-size)) / 2));
		}

		.text-box {
			padding-top: 40px;

			@media screen and (max-width: 767px) {
				padding-top: 6px;
			}
		}

		/* お知らせなどタイトルだけの MV はタイトルを横幅いっぱいまで使う
		   （あしらいは .mv-ttl の共通ルールで固定サイズなので追従しない） */
		.mv-ttl {
			max-width: 100%;
		}
	}
}

/* ============================
	section
============================ */
.sec-inner {
  padding: 100px 0;
}

.sec-ttl {
  text-align: center;
  margin: 0;
}

.content-width {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: min(100%, calc(var(--container-size) + var(--container-padding) * 2));
}

.content-box {
  margin: 50px 0 0;
}

@media screen and (max-width: 767px) {
  .content-width {
    width: 100%;
  }
}

/* ============================
	ページ下部ナビ（緑パネル）
	template_parts/mod-nav_panel.php の共通部品
============================ */
.section-nav .sec-inner {
  padding: 90px 0;
}

.nav-panel {
  background-image: url("images/common/bg_green.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 40px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 32px clamp(20px, 3vw, 40px) 38px;
  width: min(100%, 1000px);
}

.nav-container {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nav-container--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  width: min(100%, 720px);
}

.nav-container--1 {
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  width: min(100%, 400px);
}

/* 挙動は .c-button と同じ（要素自身がボタン面、影は box-shadow、ホバーで影の位置へ押し込む） */
.nav-item a {
  --btn-plate: rgb(0 146 123 / 0.5);
  --btn-plate-offset: 6px;
  align-items: center;
  background-color: var(--white);
  border-radius: 40px;
  box-shadow: var(--btn-plate-offset) var(--btn-plate-offset) 0 var(--btn-plate);
  box-sizing: border-box;
  color: var(--main-text-color);
  display: flex;
  font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  gap: 12px;
  height: 100%;
  justify-content: center;
  padding: 15px 18px;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.nav-item a:hover {
  box-shadow: 0 0 0 var(--btn-plate);
  opacity: 1;
  transform: translate(var(--btn-plate-offset), var(--btn-plate-offset));
}

.nav-item .icon {
  flex: none;
  height: auto;
  width: 50px;
}

.nav-main a {
  --btn-plate: rgb(0 146 123 / 0.5);
  --btn-plate-offset: 6px;
  align-items: center;
  background-color: var(--white);
  border-radius: 44px;
  box-shadow: var(--btn-plate-offset) var(--btn-plate-offset) 0 var(--btn-plate);
  box-sizing: border-box;
  color: var(--main-text-color);
  display: flex;
  font-family: "Zen Maru Gothic", "Zen Kaku Gothic New", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  gap: 18px;
  justify-content: center;
  letter-spacing: 0.06em;
  margin: 22px auto 0;
  padding: 18px 30px;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  width: min(100%, 720px);
}

.nav-main a:hover {
  box-shadow: 0 0 0 var(--btn-plate);
  opacity: 1;
  transform: translate(var(--btn-plate-offset), var(--btn-plate-offset));
}

.nav-main a:hover .arrow {
  transform: translateX(4px);
}

.nav-main .arrow {
  background: url("images/common/arrow_right02.svg") center / contain no-repeat;
  flex: none;
  height: 20px;
  transition: transform 0.4s ease;
  width: 12px;
}

@media screen and (max-width: 767px) {
  .section-nav .sec-inner {
    padding: 60px 0;
  }

  .nav-panel {
    border-radius: 24px;
    padding: 24px 16px 28px;
  }

  .nav-container {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-main a {
    font-size: 1.7rem;
    padding: 16px 20px;
  }
}

/* ============================
	breadcrumb
============================ */
.breadcrumbs {
	align-items: center;
	background-color: transparent;
  display: flex;
	height: fit-content;
	margin-top: 20px;
	padding: 10px 0;
}

.breadcrumbs,
.breadcrumbs a, 
.breadcrumbs a span {
  color: var(--main-text-color);
	font-size: 1.4rem;
	font-weight: 500;
}

.breadcrumbs span {
	color: #A3A3A3;
}

.breadcrumbs .content-width {
	text-align: left;
}

.breadcrumbs .content-width > span {
	margin-left: 0;
	position: relative;
}

.breadcrumbs .content-width > span:first-child {
	margin-left: 0;
}

.breadcrumbs .content-width > span::before {
	border: 2px solid var(--main-color);
  border-left: 0;
  border-bottom: 0;
  box-sizing: border-box;
	content: "";
	color: var(--main-color);
	display: inline-block;
	height: 8px;
	line-height: 1;
	margin: 0.45em 0.75em 0.15em 0.35em;
	transform: rotate(45deg);
	width: 8px;
}

.breadcrumbs .content-width > span:first-child::before {
	content: none;
}

@media screen and (max-width: 767px) {
	.breadcrumbs {
		padding: 10px 0;
	}
}

/* ============================
	pagenavi
============================ */
.wp-pagenavi {
  clear: both;
  margin: 100px 0 0;
  font-size: 1.6rem;
  text-align: center;
}

.wp-pagenavi a,
.wp-pagenavi span {
	border-radius: 50%;
  display: inline-block;
	font-family: "Aboreto", system-ui;
  width: 3em;
  height: 3em;
  margin: 0 0.5em;
  font-weight: bold;
  line-height: 2.75;
  border: 2px solid var(--main-color);
  text-align: center;
  vertical-align: middle;
  transition: all 0.5s ease;
}

.wp-pagenavi a:hover,
.wp-pagenavi span {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: var(--white);
  opacity: 1;
  text-decoration: none;
}

.wp-pagenavi a:hover {
  transition: all 0.5s ease;
}

.wp-pagenavi .extend {
  background: none;
  border: medium none;
  color: var(--black);
  width: 1em;
}

.wp-pagenavi .extend::after {
  content: "…";
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  position: relative;
  width: 3em;
  height: 3em;
  background-color: var(--white);
  text-indent: -999999px;
  vertical-align: middle;
}

.wp-pagenavi .previouspostslink::after,
.wp-pagenavi .nextpostslink::after {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--main-color);
  border-top: 2px solid var(--main-color);
}

.wp-pagenavi .previouspostslink::after {
	left: 5px;
  transform: rotate(225deg);
}

.wp-pagenavi .nextpostslink::after {
	right: 5px;
  transform: rotate(45deg);
}

.wp-pagenavi .previouspostslink:hover::after,
.wp-pagenavi .nextpostslink:hover::after {
  border-color: var(--white);
}

.result_count {
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.4rem;
  color: #999;
}

/* ============================
	post parts
============================ */
.post-date {
  font-size: 1.5rem;
  min-width: 70px;
}

.post-cats {
  line-height: 1;
  margin: 0 0 0 20px;
}

.post-cats.flex-start {
  justify-content: flex-start;
  align-items: center;
}

.post-cat {
  display: block;
  background-color: #111;
  color: #fff;
  font-size: 1.4rem;
  padding: 4px 10px;
  width: 120px;
  text-align: center;
}

.post-cat + .post-cat {
  margin: 0 0 0 10px;
}

.post-cat:link {
  color: #fff;
}

.post-cat:visited {
  color: #fff;
}

/* ============================
	news list
============================ */
.news-item {
  padding: 20px 0;
}

.news-item + .news-item {
  border-top: 1px solid #1e1e1e;
}

.news-item .post-ttl {
  font-size: 1.5rem;
  margin: 0 0 0 20px;
}

@media screen and (max-width: 767px) {
  .news-item .post-meta {
    width: 100%;
  }
  .news-item .post-ttl {
    margin-left: 0;
  }
}

/* ============================
	card list
============================ */
.card-list {
  margin-top: -30px;
  margin-left: -80px;
}

.card-item {
  width: 280px;
  margin-top: 30px;
  margin-left: 80px;
}

.card-item .post-thumb img {
  width: 100%;
}

.card-item .post-info {
  margin-top: 20px;
}

.card-item .post-ttl {
  font-size: 1.5rem;
  margin: 20px 0 0;
}

@media screen and (max-width: 767px) {
  .card-item {
    width: 100%;
  }
}

/* ============================
	contact form
============================ */
.contact-box {
	background-color: var(--bg-color);
	border-radius: 10px;
	margin-top: 50px;
	padding: 60px 60px;
}

.contact-box .required,
.contact-note .required {
  background-color: var(--required-color);
	border-radius: 2px;
  color: var(--white);
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0 16px;
  padding: 4px 8px;
}

.contact-box .optional,
.contact-note .optional {
  background-color: var(--gray);
	border-radius: 2px;
  color: var(--white);
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0 16px;
  padding: 4px 8px;
}

.contact-box .flex {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 40px;
}

.contact-box .flex span {
	margin-right: 20px;
}

.contact-box input[type="text"],
.contact-box input[type="password"],
.contact-box input[type="email"],
.contact-box input[type="tel"],
.contact-box input[type="url"],
.contact-box input[type="number"],
.contact-box input[type="date"],
.contact-box textarea {
	background-color: var(--form-bg);
	border: 1px solid var(--gray);
	border-radius: 6px;
	box-shadow: unset;
	box-sizing: border-box;
	font-size: 1.7rem;
	font-weight: 500;
	padding: 4px 16px;
	width: 100%;
}

.contact-box input[type="text"].your-address {
	margin-top: 16px;
}

.contact-box input.size-m,
.contact-box select.size-m {
	width: 240px;
}

.contact-box input.size-s,
.contact-box select.size-s {
	width: 120px;
}

.contact-box input[type=radio]{
  position: absolute;
  visibility: hidden;
}

.contact-box .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
}

.contact-box .wpcf7-list-item {
	margin: 0;
}

.contact-box .wpcf7-radio .wpcf7-list-item {
	flex-basis: auto;
	width: auto;
}

.contact-box .wpcf7-radio .wpcf7-list-item-label {
  cursor: pointer;
  display: flex;
}

.contact-box .wpcf7-radio .wpcf7-list-item-label::before {
  background-color: var(--white);
	border: 1px solid var(--gray-light);
  border-radius: 100%;
  content: "";
  height: 16px;
  margin-bottom: auto;
  margin-right: .5em;
  margin-top: auto;
  transition: background-color .3s;
  width: 16px;
}

.contact-box input[type="radio"]:checked + .wpcf7-list-item-label::before {
  background-color: var(--main-color);
  box-shadow: inset 0 0 0 2px var(--white);
}

.contact-box input[type="checkbox"] {
	appearance: none;
	background-color: var(--white);
	border: 1px solid var(--gray-light);
	border-radius: 3px;
  position: relative;
  width: 24px;
  height: 24px;
  vertical-align: -5px;
}

.contact-box input[type="checkbox"]:checked:before {
  position: absolute;
  top: 2px;
  left: 8px;
  transform: rotate(40deg);
  width: 8px;
  height: 15px;
  border-right: 3px solid var(--main-color);
  border-bottom: 3px solid var(--main-color);
  content: '';
}

.contact-box dl {
	align-items: flex-start;
	column-gap: 20px;
	display: flex;
	flex-wrap: wrap;
	row-gap: 15px;
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0;
}

.contact-box dl.flex-align-center {
	align-items: center;
}

.contact-box dl + dl {
	margin-top: 40px;
}

/* 条件付きグループ（資料請求時の住所欄など）も dl と同じ余白でつなぐ
   ※グループ div の class は wpcf7cf-hidden 等になるため data-class で指定 */
[data-class="wpcf7cf_group"] + [data-class="wpcf7cf_group"],
.contact-box dl + [data-class="wpcf7cf_group"],
.contact-box [data-class="wpcf7cf_group"] + dl {
	margin-top: 40px;
}

.contact-box dt {
	margin-top: 6px;
	max-width: 250px;
	width: 100%;
}

.contact-box dt p {
	align-items: center;
	display: flex;
}

.contact-box dd {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0;
	width: calc(100% - 270px);
}

/* お問い合わせ事項などラジオの行は dt とラジオを高さ中央で揃える
   （dt の margin-top: 6px は入力欄用の調整なのでこの行では打ち消す） */
.contact-box dl:has(.wpcf7-radio) {
	align-items: center;
}

.contact-box dl:has(.wpcf7-radio) dt {
	margin-top: 0;
}

.contact-box dd .event-name input {
	background-color: transparent;
	border: none;
	padding: 0;
}

.contact-box dd.note {
	font-size: 1.5rem;
	font-weight: 500;
	margin: 8px 0 24px 0;
}

.contact-box dd.flex-date {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	width: 100%;
}

.contact-box dd.flex-date .label {
	width: 60px;
	
	@media screen and (max-width: 989px) {
		width: 100%;
	}
}

.contact-box dd.flex-date + .flex-date {
	margin-top: 30px;
}

@media screen and (max-width: 767px) {
	.contact-box dl {
		flex-wrap: wrap;
	}
	
	.contact-box dt {
		max-width: unset;
	}
	
	.contact-box dd {
		width: 100%;
	}
}

.wrap-date {
	flex-wrap: wrap;
	gap: 20px;
	width: calc(100% - 235px);
}
				
.wrap-date .flex-date {
	align-items: center;
	display: flex;
	width: 100%;
}

.wrap-date .flex-date .label {
	width: 60px;
}

.wrap-date .flex-date .label + .flex-date {
	margin-top: 30px;
}

@media screen and (max-width: 989px) {
	.wrap-date .flex-date .label {
		width: 100%;
	}
}

@media screen and (max-width: 767px) {
	.wrap-date .flex-date .label + .flex-date {
		width: 100%;
	}
}

.wrap-people {
	align-items: 6;
	display: flex;
	gap: 20px;
	width: calc(100% - 235px);
}
	
.wrap-people dd {
	width: fit-content;
}

.wrap-people dd .people-label {
	width: 50px;
}

.wrap-people dd .wpcf7-form-control-wrap {
	width: auto;
}

.wrap-people dd input {
	margin: 0 10px;
}

@media screen and (max-width: 767px) {
	.wrap-people {
		flex-wrap: wrap;
		width: 100%;
	}
	
	.wrap-people dd p {
		align-items: center;
		column-gap: 10px;
		display: flex;
		justify-content: flex-start;
		width: 100%;
	}
	
	.wrap-people dd input {
		max-width: 80px;
		width: fit-content;
	}
}

.contact-box dd.flex-check .wpcf7-checkbox {
	align-items: flex-start;
	display: flex;
	gap: 40px;
}

.contact-box dd.flex-check .wpcf7-checkbox .wpcf7-list-item-label {
	margin-left: .5em;
}

.contact-box .your-email {
  box-sizing: border-box;
  width: 100%;
}

.contact-box .zip {
  width: 150px;
  box-sizing: border-box;
}

.contact-box .your-address {
  box-sizing: border-box;
  width: 100%;
}

.contact-box .your-content {
  width: 100%;
  box-sizing: border-box;
}

.contact-box .wpcf7-acceptance input[type="checkbox"] {
	background-color: var(--white);
	border: 1px solid var(--gray-light);
	border-radius: 3px;
  position: relative;
  width: 24px;
  height: 24px;
  vertical-align: -5px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.contact-box .wpcf7-acceptance input[type="checkbox"]:checked:before {
  position: absolute;
  top: 2px;
  left: 8px;
  transform: rotate(40deg);
  width: 8px;
  height: 15px;
  border-right: 3px solid var(--main-color);
  border-bottom: 3px solid var(--main-color);
  content: '';
}

.contact-box .wpcf7-select {
	background-color: var(--form-bg);
	border: 1px solid var(--gray);
	border-radius: 6px;
	color: var(--main-text-color);
	font-size: 1.7rem;
	font-weight: 500;
	height: 48px;
	padding: 4px 36px 4px 24px;
	position: relative;
	width: auto;
}

.contact-box .wrap-select > span {
	position: relative;
}

.contact-box .wrap-select > span::after {
	content: "";
	position: absolute;
	right: 10px;
	top: 12px;
	width: 10px;
	height: 10px;
	border-top: 2px solid var(--main-text-color);
	border-left: 2px solid var(--main-text-color);
	transform: translateY(-50%) rotate(-135deg);
	font-size: 20px;
	pointer-events: none;
}

.contact-box .recaptcha-note p {
	font-size: 1.3rem;
	font-weight: 400;
	margin-inline: auto;
	margin-top: 50px;
	width: fit-content;
}

@media screen and (max-width: 767px) {
	.contact-box .wpcf7-select {
		width: 100%;
	}
	
	.contact-box dd.flex-date {
		flex-wrap: wrap;
	}
}

#consent-box {
	border-top: 1px solid var(--line-color);
	margin-top: 70px;
	padding: 30px 10px;
  text-align: center;
}

#consent-box .wpcf7-list-item-label {
	font-size: 1.6rem;
	font-weight: 400;
	margin-left: 1em;
}

#consent-box .privacy-policy {
	color: var(--main-text-color);
	display: block;
	font-size: 1.5rem;
	font-weight: 500;
	margin-inline: auto;
	margin-top: 30px;
	text-decoration: underline;
	width: fit-content;
}

#submit-box .wpcf7-response-output {
  text-align: center;
}

#submit-box {
  width: 300px;
  position: relative;
  margin: 0 auto;
}

#submit-box.wrap-send {
	height: auto;
	margin-top: 60px;
	max-width: 360px;
	position: relative;
	width: 100%;
}

#submit-box .wpcf7-spinner {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 0 0 10px;
}

#submit-box .btn-send {
	column-gap: 30px;
	background-color: var(--main-color);
	border: none;
	border-radius: 40px;
	color: var(--white);
	font-size: 2rem;
	font-weight: 700;
	height: 100%;
	line-height: 1;
	max-height: 74px;
	padding: 26px 20px 26px 20px;
	text-align: center;
	width: 100%;
}

.contact-box .content-policy .content-box {
	background-color: var(--white);
	border: 1px solid var(--gray-lighter);
	border-radius: 6px;
	margin-top: 20px;
	max-height: 150px;
	padding: 0 20px;
	overflow-y: auto;
	width: 100%;
}

.contact-box .content-policy .title p {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0;
}

@media screen and (max-width: 767px) {
	.contact-box {
		padding: 40px 20px;
	}
	
  .contact-box input[type="text"],
  .contact-box input[type="password"],
  .contact-box input[type="email"],
  .contact-box input[type="tel"],
  .contact-box input[type="url"],
  .contact-box input[type="number"],
	.contact-box input[type="date"],
  .contact-box textarea {
    width: 100%;
  }
	
	.contact-box .wpcf7-radio {
		flex-direction: column;
	}

	.contact-box .wpcf7-radio .wpcf7-list-item {
		display: flex;
		flex-wrap: wrap;
	}
	
	.contact-box .wpcf7-radio .wpcf7-list-item label {
		flex-basis: 100%;
	}
	
	#consent-box .wpcf7-list-item-label {
		font-size: 1.3rem;
	}
	
	.contact-box .content-policy .content-box {
		max-height: 300px;
	}
}

/* ============================
	404
============================ */
#error-404 .content-box p {
  text-align: center;
}

@media screen and (min-width: 1251px) {
  #sp-menu {
    display: none;
  }

  #btn-hamburger {
    display: none;
  }
}

@media screen and (max-width: 1250px) {
  #h-gnav-box {
    display: none;
  }
}

/* ============================
	link
============================ */
.c-link {
	border-bottom: 1px solid var(--main-color);
	display: block;
	padding-bottom: 5px;
	padding-right: 10px;
	position: relative;
	transition: all .3s;
	width: fit-content;
}

.c-link .text {
	align-items: center;
	color: var(--main-color);
	column-gap: 20px;
	display: flex;
	font-size: 1.7rem;
	font-weight: 700;
	justify-content: space-between;
	transition: all .2s;
}

.c-link .text::after {
	background-color: var(--main-color);
	content: "";
	display: block;
	height: 9px;
	mask-image: url("./images/common/arrow_right01.svg");
	mask-repeat: no-repeat;
	mask-size: contain;
	transition: all .4s;
	width: 15px;
}

@media screen and (max-width: 767px) {
	.c-link .text {
		font-size: 1.4rem;
	}
}

@media (hover: hover) {
	.c-link:hover {
		opacity: 1;
	}
	
	.c-link:hover span {
		color: var(--main-color);
	}
	
	.c-link:hover .text {
		color: var(--charcoal);
	}
	
	.c-link:hover .text::after {
		translate: 5px 0;
	}
}


/* ============================
	button
============================ */
.c-button {
	--btn-arrow: #00927b;
	--btn-border: var(--border-color);
	--btn-label: var(--main-color);
	--btn-plate: rgb(0 146 123 / .5);
	--btn-plate-offset: 6px;
	align-items: center;
	background-color: var(--white);
	border: 1px solid var(--btn-border);
	border-radius: 40px;
	box-shadow: var(--btn-plate-offset) var(--btn-plate-offset) 0 var(--btn-plate);
	box-sizing: border-box;
	color: #4a4a44;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.5rem;
	gap: 16px;
	justify-content: space-between;
	line-height: 1.4;
	max-width: 100%;
	min-width: 340px;
	padding: 16px 30px;
	position: relative;
	transition: box-shadow .35s ease, transform .35s ease;

	&:hover {
		box-shadow: 0 0 0 var(--btn-plate);
		opacity: 1;
		transform: translate(var(--btn-plate-offset), var(--btn-plate-offset));

		& .c-button__arrow {
			transform: translateX(4px);
		}
	}

	&.c-button--blue {
		--btn-border: #dceaef;
		--btn-plate: #bfe0ea;
	}

	&.c-button--sub {
		--btn-arrow: var(--sub-color);
		--btn-border: var(--sub-color);
		--btn-label: var(--sub-color);
		--btn-plate: #7fc8dc;
	}

	&.c-button--sm {
		min-width: 230px;
	}

	&.c-button--down {
		.c-button__arrow::after {
			transform: translate(-50%, -70%) rotate(135deg);
		}
	}

	@media screen and (max-width: 767px) {
		min-width: 0;
		width: 100%;
		font-size: 1.4rem;
	}
}

.c-button__label {
	color: var(--btn-label);
	flex: 1;
	font-size: 1.6rem;
	font-weight: 700;
}

.c-button__arrow {
	background-color: var(--btn-arrow);
	border-radius: 50%;
	flex: none;
	height: 28px;
	margin-right: -10px;
	position: relative;
	transition: all .4s;
	width: 28px;

	&::after {
		border-radius: 2px;
		border-right: 2px solid #fff;
		border-top: 2px solid #fff;
		content: "";
		height: 9px;
		left: 50%;
		position: absolute;
		top: 50%;
		transform: translate(-65%, -50%) rotate(45deg);
		width: 9px;
	}
}

/* ============================================================
	お知らせカード（template_parts/article-info.php）
============================================================ */
.news-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 70px;
	justify-content: center;
}

.news-card {
	width: calc((100% - 140px) / 3 );
	max-width: 100%;

	@media screen and (max-width: 767px) {
		width: 100%;
	}
}

.news-card__thumb {
	border-radius: 6px;
	border: 1px solid var(--border-color);
	position: relative;
	height: 248px;

	& img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: contain;
	}
}

.news-card__cat {
	background-color: var(--main-color);
	border-radius: 8px;
	bottom: 0;
	color: var(--white);
	font-size: 1.6rem;
	left: 0;
	min-width: 150px;
	padding: 8px 22px;
	position: absolute;
	text-align: center;
	translate: -15px 50%
}

.news-card__date {
	color: var(--main-text-color);
	display: block;
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: .05em;
	margin-top: 34px;
}

.news-card__ttl {
	color: var(--main-text-color);
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.5;
	margin: 8px 0 0;
}

.news-empty {
	text-align: center;
	color: #6b7a70;
}
