:root {
  --font_color: #231f11;
  --accent_color: #15aa24;
  --accent_color_font: #0a8716;
  --base_color: #fff081;
  --base_color_deep: #e6c922;
  --base_color_bright: #fe7701;
  --base_color_bright02: #fb8a28;
  --base_color_font: #f56e00;
}

body {
  background-color: var(--base_color);
  color: var(--font_color);
}

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

header {
  background-color: #fff;
  padding: 0 0 5px;
  background-image: none;
}

.site_name {
  padding: 16px 0 16px 15px;
  width: 70%;
}

.yoyaku_tel {
  width: 160px;
  position: absolute;
  top: 50px;
  right: 10px;
}

#overlay-button {
  padding: 30px 10px;
  position: absolute;
}

.sp_menu {
  padding: 22px 10px;
  color: var(--font_color);
}

#overlay {
  inset: 0;
}

/* フッター
---------------- */
footer {
  background-color: var(--base_color);
  padding-top: 0;
}

.footer_area {
  background: linear-gradient(transparent 15%, #fff 15% 80%);
}

.footer_menu_area {
  width: 50%;
  margin: 0 auto;
}

.footer_sub_menu a:link,
.footer_sub_menu a:visited {
  color: var(--font_color);
}


.footer_sub_menu a:hover {
  color: var(--font_color);
  opacity: 0.8;
}

/* メイン　コンテンツ
--------------- */

h1,
h2,
h3,
h4 {
  font-family: "ヒラギノ丸ゴ Pro W4", "ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic Pro", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "HG丸ｺﾞｼｯｸM-PRO", "HGMaruGothicMPRO";
}

h1 {
  display: none;
  visibility: hidden;
}

.daycare_tit {
  position: absolute;
  top: 3%;
  right: 10px;
  /* transform: translateX(-50%); */
  width: min(30%, 260px);
}

h2 {
  font-size: 1.9rem;
  text-align: center;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-style: normal;
}

h3 {
  font-size: 1.4rem;
  text-align: left;
}

.catch {
  text-align: center;
}

.container:has(.top_area) {
  position: relative;
  overflow: hidden;
}

.top_area h1 {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
 
}
/* デイサービス */
.top_area h1 {
  top: 5%;
  line-height: 1.2;
}

.top_bg {
  position: absolute;
  bottom: -1px;
  width: 100vw;
  height: 7vw;
}

.top_bg img {
  height: 100%;
}

.main_container {
  padding: 0 15px;
  max-width: 1230px;
  margin: 0 auto;
}

figure {
  padding: 0;
  margin: 0;
  max-width: 350px;
  width: 100%;
}

figcaption {
  margin: 0.5rem 0;
  color: #5d320f;
}

.kakomi {
  background-color: #fff;
  border: none;
  border-radius: 1rem;
}

/* グッドタイムクラブ・やぶっちゃ
------------------------------ */

.tit_goodtime {
  text-align: center;
  background-image: linear-gradient(#024a09 50%, #099617 100%);
  background-clip: text;
  color: transparent;
  font-size: min(7.2vw, 2.8rem);
  padding-top: min(8vw, 3rem);
  font-weight: 700;
}

/* お問い合わせはこちら
------------------ */
.main_upper {
  background: url(daycare/images/top_bg04.svg) no-repeat bottom / 100% 7vw, linear-gradient(var(--base_color), #ffef74);
  padding-bottom: 4rem;
}

.tel {
  font-size: 140%;
  margin-bottom: 2rem;
}

.tel span {
  color: var(--accent_color_font);
  font-weight: bold;
}

.tel a {
  font-size: 2rem;
  letter-spacing: 0.05em;
}

.tel a:link,
.tel a:visited {
  color: var(--font_color);

}

.tel a::before {
  content: '';
  display: inline-block;
  width: min(7vw, 45px);
  height: min(7vw, 45px);
  background: url(daycare/images/tel_icon.svg) no-repeat center;
  margin: 0 10px 0 0;
}

.tel_bunkatsu {
  margin-top: 2rem;
  text-align: center;
}

.tel_bunkatsu p {
  margin: 0;
}

.insta {
  font-size: 120%;
}

.insta a {
  display: block;
  background-color: var(--base_color_bright);
  padding: 15px 70px;
  width: fit-content;
  margin: 1rem auto 3rem;
  font-size: 1.2em;
  border-radius: 5px;
}

.insta a::before {
  content: '';
  display: inline-block;
  width: min(7vw, 30px);
  height: min(7vw, 30px);
  background: url(daycare/images/insta_icon.svg) no-repeat center;
  margin: auto 10px -5px 0;
}

.insta a:link,
.insta a:visited {
  color: #fff;
}

.insta a:hover {
  background-color: var(--base_color_bright02);
}

/* サービス紹介
-------------------- */

.service img {
  border-radius: 10px;
}

.service .catch {
  color: #855c39;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.service .item {
  border-bottom: 4px dotted #b08b6a;
  padding-bottom: 2rem;
}

.service .item:last-child {
  border: none;
  padding-bottom: 0;
}

.service .item p:last-child {
  margin: 0.5rem;
}

.service.kakomi {
  margin-bottom: 0;
  border: 4px solid #b08b6a;
}

.service h2 {
  margin: 0.5rem 0 1rem;
}

.service h3 {
  color: var(--accent_color_font);
  font-size: 150%;
  margin-bottom: 0.5rem;
}

.service h3::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50vh;
  background-color: var(--accent_color_font);
  margin: auto 5px 0 0;
}

.service .bunkatsu img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

/* 館内紹介
-------------------- */

.kannai h2 {
  color: #fff;
  text-shadow: 0 0 7px #b29a15;
  margin-bottom: 0;
}

.kannai {
  padding: 1px 0 3rem;
  background-color: var(--base_color_deep);
}

.kannai .bunkatsu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.kannai .bunkatsu div {
  padding: 10px;
  background-color: #fff;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.kannai .bunkatsu img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.kannai h3 {
  background-color: #fffbca;
  width: fit-content;
  padding: 10px 30px 10px 50px;
  position: relative;
  margin-top: 0;
  top: 35px;
  left: 50%;
  transform: translate(-50%, 0);
  font-size: 140%;
  line-height: 1.5;
  color: #564a06;
  text-indent: -1.5rem;
}

.kannai h3::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url(daycare/images/list_icon.svg) no-repeat center;
  margin: auto 10px -1px 0;
  z-index: 1;
  position: relative;
}

/* 当月のカレンダー
------------------------ */

.cal_item div {
  max-width: 400px;
  margin: 0 auto;

}

.cal_item div a {
  display: block;
  background-color: #fff;
  padding: 20px;
  border-radius: 1rem;
}

.cal_item div img {
  border: 1px solid #aaa;
}

.cal_item div a p {
  text-align: center;
  margin: 1rem 0 0 0;
}

/* ご利用までの流れ
--------------- */
.flow {
  background: url(daycare/images/top_bg03.svg) no-repeat top / 100% 7vw, #e5e0c7;
  padding-bottom: 3rem;
  padding-top: 1rem;
  margin-top: -1px;
}

.flow .main_container {
  max-width: 750px;
}

.flow h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-top: 2rem;
}

.flow .catch {
  color: #5d320f;
}

.flow ol {
  list-style: none;
}

.flow ol li {
  background-color: #fff;
  padding: 10px 40px;
  border-radius: 50vh;
  margin: 0 0 3rem 0;
  font-size: 120%;
  position: relative;
}

.flow li:last-child {
  margin-bottom: 0;
}

.flow ol li:not(:last-child)::after {
  display: block;
  content: '';
  width: 40px;
  height: 20px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background-color: #cd894f;
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translate(-50%, 100%);

}

.flow li span {
  color: var(--base_color_font);
}

/* 各種規約等
------------------ */
.kiyaku {
  background-color: #fff;
  border-radius: 1rem;
  margin-top: 3rem;
  padding-bottom: 1px;
  border: 2px solid #aa794f;
}

.flow .kiyaku h2 {
  font-size: 150%;
  margin: 0 0 0.5rem;
  padding-top: 1rem;
  color: #8f501d;
}

.kiyaku ul {
  margin-bottom: 1rem;
}

.kiyaku li {
  list-style: none;
  font-size: 120%;
  margin-bottom: 1rem;
}

.kiyaku li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 16px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background-color: var(--base_color_bright);
  background-color: var(--accent_color);
  margin-right: 10px;
}

.kiyaku li::after {
  content: '';
  display: inline-block;
  width: 15px;
  height: 20px;
  background: url(daycare/images/pdf_icon.svg) no-repeat center;
  margin: auto 0 -5px 10px;
}

.kiyaku li a {
  padding-bottom: 2px;
}

.kiyaku li a:link,
.kiyaku li a:visited {
  color: var(--font_color);
  background-image: linear-gradient(0deg, var(--font_color) 1px, transparent 1px);
}

.kiyaku li a:hover {
  color: #65635d;
}

/* 地図・住所など
--------------------- */

.map {
  border-radius: 1rem;
  overflow: hidden;
}

.map iframe {
  vertical-align: bottom;
}

.access {
  padding: 3rem 0 0;
}

.access p {
  text-align: center;
  font-size: 120%;
}

.access .kakomi {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4rem;
}

.access dt {
  color: var(--base_color_font);
  font-size: 120%;
}

.access dd {
  margin-left: 0;
  font-size: 120%;
}

.access dd a {
  padding-bottom: 2px;
}

.access dd a:link,
.access dd a:visited {
  color: var(--font_color);
  background-image: linear-gradient(0deg, var(--font_color) 1px, transparent 1px);
}

.access dd a:hover {
  color: #65635d;
}

.access dd a::after {
  content: '';
  display: inline-block;
  width: 15px;
  height: 20px;
  background: url(daycare/images/pdf_icon.svg) no-repeat center;
  margin: auto 0 -5px 10px;
}

.access dl:last-child {
  margin-bottom: 0;
}

@media (min-width:600px) {
  #overlay-button {
    padding: 32.5px 10px;
  }
}

@media (min-width:750px) {

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

  header {
    background-image: none;
    padding: 15px 0 22px;
  }

  /* ハンバーガーメニュー */
  .site_name {
    padding: 0 0 0 15px;
    width: min(35%, 370px);
  }

  .main_menu_sp {
    display: block;
  }

  #overlay ul {
    margin-top: 7rem;
  }

  /* ハンバーガーボタン */
  #overlay-button {
    padding: 32px 20px;
    border-radius: 50%;
    right: 15px;
    top: 15px;
    background-color: #fff;
    border: 3px solid #f6d937;
  }

  #overlay-button span,
  #overlay-button span::before,
  #overlay-button span::after {
    background-color: var(--font_color);
  }

  #overlay-button:hover span,
  #overlay-button:hover span::before,
  #overlay-button:hover span::after {
    background-color: var(--font_color);
  }

  .sp_menu {
    display: none;
  }

  /* tel */
  .yoyaku_tel {
    width: min(30vw, 280px);
    top: 15px;
    right: 120px
  }

  /* フッター
---------------- */
  .footer_area {
    background: #fff;
  }

  .footer_site_name {
    width: 100%;
    flex-basis: 30%;
    margin-left: 0;
    max-width: 400px;
  }

  .footer_tel {
    width: 100%;
    flex-basis: 25%;
    max-width: 300px;
    margin-right: 30px;
  }

  .footer_menu_area {
    width: 100%;
    margin: 0;
    flex-basis: 18%;
    max-width: 200px;
  }

  /* メイン　コンテンツ
--------------- */

  h2 {
    font-size: 2.5rem;
  }

  figcaption {
    font-size: 1rem;
  }


  .kakomi {
    padding: 2rem 2.5rem;

  }

  .kakomi p {
    font-size: 1.1rem;
  }

  .container:has(.top_area) {
    max-height: 750px;
  }


  .top_area h1 {
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.6;
    top: 7%;
  }

  /* グッドタイムクラブ・やぶっちゃ
------------------------------ */

.tit_goodtime {
  background-image: linear-gradient(#024a09 45%, #099617 70%);
}



  /* お問い合わせはこちら
------------------ */
  .main_upper {
    padding-bottom: 7rem;
  }

  .tel_bunkatsu {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
  }

  .tel {
    margin-bottom: 0;
    font-size: 110%;
    line-height: 1.6;
  }

  .tel a {
    font-size: min(4vw, 2.8rem);
    pointer-events: none;

  }

  .tel a::before {
    margin: auto 15px -3px 0;
  }

  .insta {
    font-size: 1.1rem;
  }

  .insta a {
    font-size: 1em;
    margin-bottom: 2rem;
  }

  .insta a::before {
    margin: auto 10px -8px 0;
  }

  /* サービス紹介
  ---------------------- */
  .kakomi.service {
    margin-bottom: 0;
  }

  .service .catch {
    font-size: 1.3rem;
  }

  .service h3 {
    font-size: 130%;
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
  }

  .service h3::before {
    width: 12px;
    height: 12px;
    margin: auto 5px 3px 0;
  }

  .service .item>div:first-child {
    flex-basis: 67%;
  }

  .service .item p:last-child {
    margin: 0;
  }

  .service figure {
    flex-basis: 31.2%;
  }

  .service .bunkatsu:has(figure) {
    margin: 2.5rem 0 0.5rem;
  }

  /* 画像がある場合は画像と文字は横並び */
  .service .item:has(figure) {
    display: flex;
    gap: 30px;
  }

  /* 画像が2つ以上ある場合は画像と文字は縦並び */
  .service .item:has(figure+figure) {
    display: block;
  }

  /* 画像が2つ以上ある場合は画像は横並び */
  .service .item .bunkatsu:has(figure+figure) {
    justify-content: left;
    display: flex;
    gap: 30px;
  }

  /* 館内紹介
-------------------- */
  .kannai {
    padding-bottom: 4rem;
    margin-top: -1px;
  }

  .kannai .item {
    width: 70%;
    position: relative;
    margin-top: 3rem;
  }

  .kannai .item:nth-child(2n) {
    margin-left: auto;
  }

  .kannai .bunkatsu {
    display: flex;
    flex-wrap: wrap;
    gap: 25px 20px;
    justify-content: center;
  }
  .kannai .bunkatsu>div {
    flex-basis: calc((100% - 20px) / 2);
  }

  .kannai .item:nth-child(2n+1) h3 {
    left: auto;
    right: -50px;
    transform: translateX(100%);
  }

  .kannai h2 {
    margin-bottom: -1rem;
    margin-top: 0.5rem;
  }

  .kannai h3 {
    position: absolute;
    top: 0;
    left: -50px;
    transform: translateX(-100%);
    font-size: 100%;
    padding: min(3vw, 50px) min(3vw, 45px) min(3vw, 50px) min(4.3vw, 60px);
    border-radius: 10px;
    text-indent: -1rem;
    font-size: min(2vw, 100%);
  }

  .kannai h3::before {
    width: 14px;
    height: 14px;
    margin: auto 5px -1px 0;
  }

  .kannai h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 30px;
    border-bottom: #fffbca 15px solid;
    border-right: transparent 25px solid;
    border-left: transparent 25px solid;
    position: absolute;
    bottom: 30px;
    right: -25px;
  }

  .kannai .item:nth-child(2n+1) h3::after {
    right: auto;
    left: -25px;
  }

  /* ご利用までの流れ
--------------- */
  .flow {
    padding-bottom: 4rem;
    padding-top: 3rem;
  }

  .flow p {
    text-align: center;
  }

  .flow ol li {
    line-height: 1.6;
    font-size: 1.1rem;
    padding: 15px 50px;
  }

  .flow li span {
    font-size: 1rem;
    margin-left: 15px;
  }

  /* 各種規約等
------------------ */
  .kiyaku {
    padding-left: 20px;
    padding-right: 20px;
  }

  .flow .kiyaku h2 {
    font-size: 1.4rem;
  }

  .kiyaku ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 0;
  }

  .kiyaku li {
    font-size: 1.1rem;
  }

  .flow li:last-child {
    margin-bottom: 1.1rem;
  }

  /* 地図・住所など
--------------------- */
  .access {
    padding-top: 4rem;
  }

  .access p {
    font-size: 120%;
  }

  .access p,
  .access dt,
  .access dd {
    /* text-align: center; */
    text-align: left;
    font-size: 1.1rem;
  }

}

@media (min-width:1025px) {
  .daycare_tit {
    top: 4%;
    right: 5%;
  }

  

  /* 地図・住所など
--------------------- */
  .access .kakomi {
    max-width: 100%;
  }

  .access .kakomi .bunkatsu {
    display: flex;
  }

  .access .kakomi .bunkatsu>div {
    flex-basis: 50%;
  }

  .access .kakomi .bunkatsu>div:not(:first-child) {
    border-left: 3px dotted #ae8e72;
    padding-left: 30px;
  }
}

@media (min-width:1300px) {
  .top_area .main_img {
    height: 750px;
    object-fit: cover;
    object-position: bottom;
  }
}