@charset "UTF-8";
body {
  background: url(../img/common/sub-page-title-back.jpg) center/auto;
}

#sub-page-title {
  margin: 0 auto -30px;
  width: 100%;
  max-width: 1000px;
  background: #fff;
  border-radius: 50% / 100% 100% 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/.5;
}
#sub-page-title>a {
  color: #42210b;
}
#sub-page-title a:hover {
  text-decoration: none;
}
#sub-page-title hgroup {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}
#sub-page-title h1 {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
}
#sub-page-title h1 span {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .07rem;
  display: block;
}
#sub-page-title h1 strong {
  line-height: 1.3;
  display: block;
}
#sub-page-title nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
#sub-page-title nav li a {
  width: 256px;
  height: 66px;
  border-radius: 100vw;
  background: #86c03f;
  box-shadow: 0 4px 0 #006837;
  color: #fff;
  font-size: 2.247rem;
  font-weight: 600;
  letter-spacing: .17em;
  display: flex;
  align-items: center;
  transition: all .2s;
}
#sub-page-title nav li a:hover {
  text-decoration: none;
  box-shadow: none;
  transform: translateY(4px);
}
#sub-page-title nav li a.active {
  background-color: #006837 !important;
  box-shadow: none;
  transform: translateY(4px);
}
#page {
  background: #fff6e3;
}
h2 {
  margin-bottom: 50px;
}
@media screen and (max-width: 900px) {
  #sub-page-title {
    width: 100%;
  }
  #sub-page-title hgroup {
    scale: 0.8;
  }
  #sub-page-title nav {
    scale: 0.8;
    translate: 0 -20px;
  }
}
@media screen and (max-width: 767px) {
  #sub-page-title {
    margin: 30px auto 0;
    padding: 20px 0 40px;
    width: 100%;
    background: none;
    border-radius: 0;
    aspect-ratio: auto;
  }
  #sub-page-title {
    position: relative;
    overflow: hidden;
  }
  #sub-page-title * {
    position: relative;
    z-index: 2;
  }
  #sub-page-title::after {
    content: '';
    width: 161vw;
    height: 161vw;
    min-width: 600px;
    min-height: 600px;
    border-radius: 100vw;
    background: #fff;
    position: absolute;
    top: 0;
    z-index: 1;
  }
  #sub-page-title hgroup {
    flex-direction: column-reverse;
    scale: 1;
  }
  #sub-page-title hgroup img {
    width: 200px;
    height: auto;
  }
  #sub-page-title h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: .09em;
  }
  #sub-page-title h1 span {
    margin-bottom: 5px;
    font-size: 1.8rem;
    letter-spacing: .17rem;
  }
  #sub-page-title h1 strong {
    line-height: 1.2;
  }
  #sub-page-title nav {
    scale: 1;
    translate: 0 0;
  } 
  #sub-page-title nav ul {
    gap: 10px;
  }
  #sub-page-title nav li a {
    width: 110px;
    height: 98px;
    border-radius: 10px;
    font-size: 1.7rem;
    letter-spacing: .17em;
    text-align: center;
    align-items: start;
    justify-content: center;
  }
  h2 {
    margin-bottom: 30px;
  }
}
