:root {
  --main: #3892B0;
  --text: #231815;
  --white: #ffffff;
  --font-size: 16px;
  --content-width: 1440px;
  --content-inner-width: 1200px;
  --header-height: 88px;
  --header-height-sp: 48px;
}
* { margin: 0; padding: 0; box-sizing: border-box;}
html { scroll-padding-top: var(--header-height);}
body {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", "TakaoMincho", "Noto Serif JP", serif;
  font-size: var(--font-size);
  font-weight: normal;
  line-height: 1.5;
  letter-spacing: 0.05em;
}
section { padding: 80px 0; margin: auto;}
ul, ol { list-style-type: none;}
h1, h2, h3, h4 { font-size: 1rem; font-weight: normal; word-break: auto-phrase;}
p { line-height: 2;}
p + p { margin-top: 2em;}
a { color: var(--text); text-decoration: none;}
a, a::before, a::after, a:hover, a:hover:before, a:hover:after { transition: all 0.5s ease;}
a:hover { opacity: 0.7;}
p > a { text-decoration: underline;} 
img { width: 100%; height: auto; vertical-align: bottom;}

.header {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--main);
  padding: 16px 3%;
}
.header .logo { width: 256px; padding-right: 16px;}
.header-nav { display: flex;}
.header-nav a {
  display: block;
  color: var(--white);
  padding: 8px 0;
  margin: 0 1em;
  position: relative;
}
.header-nav a::after {
  content: "";
  width: 100%;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 0;
}
.header-nav a:hover { opacity: 1;}
.header-nav a:hover::after {
  background-color: var(--white);
  opacity: 1;
}

.first-view {
  width: 100%;
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background: url(img/first-view.jpg) no-repeat;
  background-size: cover;
}
.first-view .fv-title {
  width: 60%;
  margin-left: 5%;
}

.sec-title {
  color: var(--main);
  font-size: clamp(1.5rem, 3vw, 40px);
  font-weight: bold;
  text-align: center;
  margin-bottom: 64px;
}
.sec-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 23px;
  background: url(img/icon-title.png) no-repeat;
  background-size: contain;
  margin: 8px auto 0;
}
.sec-inner { width: 90%; max-width: var(--content-inner-width); margin: auto;font-size: clamp(1rem, 2vw, 24px); color: var(--main);}
.content-box { max-width: 900px; margin: auto;}

.bg { position: relative; z-index: 1;}
.bg::before {
  content: "";
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.bg1::before {
  height: 100%;
  background: url(img/section-bg1.jpg) repeat-y;
  background-size: 100%;
}
.bg2::before {
  aspect-ratio: 1912 / 2673;
  background: url(img/section-bg2.jpg) no-repeat;
  background-size: contain;
}
.what-text { font-weight: bold; text-align: center; word-break: auto-phrase;}
.sec-about ol { list-style-type: decimal; padding-left: 1em;}
.sec-about li { margin-top: 1em;}
.sec-about .about-item-head { font-weight: bold;}
.about-item { text-indent: 1em;}
.flow-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  column-gap: 5%;
  align-items: center;
  background: url(img/flow-bg.jpg) no-repeat;
  background-size: cover;
  color: var(--white);
  font-weight: bold;
  text-shadow: 0 0 2px rgba(0, 0, 0, 1);
  padding: 24px;
  margin-bottom: 40px;
}
.flow-item:last-of-type { margin-bottom: 0;}
.flow-item::before {
  content: "";
  display: block;
  aspect-ratio: 1 / 0.6;
}
.flow-item:nth-child(1):before { background: url(img/flow01.jpg) no-repeat; background-size: cover;}
.flow-item:nth-child(2):before { background: url(img/flow02.jpg) no-repeat; background-size: cover;}
.flow-item:nth-child(3):before { background: url(img/flow03.jpg) no-repeat; background-size: cover;}
.flow-item:nth-child(4):before { background: url(img/flow04.jpg) no-repeat; background-size: cover;}
.flow-item:nth-child(5):before { background: url(img/flow05.jpg) no-repeat; background-size: cover;}
.flow-item:nth-child(6):before { background: url(img/flow06.jpg) no-repeat; background-size: cover;}
.flow-title {
  font-size: clamp(1rem, 2vw, 24px);
  padding-left: 48px;
  margin-bottom: 16px;
  position: relative;
}
.flow-title::before {
  content: attr(data-no);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--main);
  width: 32px;
  height: 32px;
  font-size: clamp(1rem, 2vw, 22px);
  font-weight: normal;
  text-shadow: none;
  border-radius: 50%;
  position: absolute;
  top: 0; bottom: 0; left: 0;
  margin: auto 16px auto 0;
}
.flow-content {
  font-size: clamp(1rem, 1.5vw, 18px);
  padding-left: 48px;
}
.plan-item + .plan-item { margin-top: 2em;}
.plan-item a { text-decoration: underline;}
.plan-plice, .plan-head { display: block; font-size: clamp(1rem, 2.5vw, 32px); font-weight: bold;}
.plan-item figure { max-width: 500px; margin: 16px 0; color: var(--text); font-size: 1rem; text-align: center;}
.plan-item img { margin-bottom: 8px;}
.plan-entry-list p,.plan-entry-list p + p { margin-top: 1em;}
.contact-box { display: flex; margin-bottom: 32px;}
.contact-item { display: flex; width: 50%; cursor: pointer;}
.contact-item-content {
  font-weight: bold;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 1 / 0.36;
  display: flex;
  justify-content: space-between;
  column-gap: 5%;
  align-items: center;
  padding: 1.2vw 5%;
}
.contact-item-content::after {
  content: "";
  display: block;
  width: 50%;
  height: 100%;
}
.contact-item-content p { flex-grow: 1; display: flex; flex-direction: column; height: 100%; line-height: 1.5; padding: 4px 0;}
.contact-item-document { margin-left: auto; background-color: #9CC2C5; color: #fff; font-size: clamp(1rem, 2vw, 28px);}
.contact-item-document .contact-item-content { margin-left: auto;}
.contact-item-document .contact-item-content::after { background: url(img/link-document.jpg) no-repeat; background-size: cover;}
.contact-item-contact { margin-right: auto; background-color: #D6CE97; font-size: clamp(1rem, 2.5vw, 32px); text-align: center;}
.contact-item-contact .contact-item-content::after { background: url(img/link-contact.jpg) no-repeat; background-size: cover;}
.contact-item-text { flex-grow: 1; display: flex; flex-direction: column; justify-content: center;}
.contact-item-link {
  display: block;
  width: 80%;
  background-color: var(--white);
  border-radius: 4px;
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 18px);
  text-align: center;
  margin: 8px auto 0;
  padding: 4px;
}
.banner-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: auto;
}

.footer {
  background: url(img/footer-bg.jpg) no-repeat;
  background-size: cover;
  padding: 48px 3% 16px;
  color: var(--white);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-nav {
  padding-left: 5%;
}
.footer-nav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2%;
}
.footer-nav a {
  display: inline-block;
  width: max-content;
  color: var(--white);
  font-weight: bold;
  padding: 4px 0;
  margin: 8px 0;
}
.footer-nav a::before {
  content: "-";
  margin-right: 8px;
}
.footer-logo { width: 400px;}
.copy {
  text-align: center;
  font-size: 12px;
  padding-top: 16px;
  margin-top: 32px;
  border-top: 1px solid var(--white);
}

@media screen and (min-width: 901px) {
  .sp { display: none;} 
}
@media screen and (max-width: 900px) {
  .pc { display: none;}
  body.active { height: 100vh; overflow: hidden;}
  section { padding: 56px 0;}
  .sec-title { margin-bottom: 40px;}
  .header { position: fixed; width: 100%; height: var(--header-height-sp); padding: 8px 2%; z-index: 99;}
  .header .logo { width: auto;}
  .header .logo img { height: calc(var(--header-height-sp) - 16px); width: auto; object-fit: contain;}
  .header-nav {
    display: block;
    width: 100%;
    height: calc(100vh - var(--header-height-sp));
    background-color: var(--main);
    border-top: 1px dotted var(--white);
    position: absolute;
    top: var(--header-height-sp);
    left: 0;
    pointer-events: none;
    padding-top: 40px;
    text-align: center;
    opacity: 0;
    transition: all 0.5s ease;
  }
  .header-nav.active { opacity: 1; pointer-events: auto; transition: all 0.5s ease;}
  .header-nav a { margin: 16px auto; background-color: var(--white); color: var(--main); width: 80%;}
  .header-nav a::after { content: none;}
  .sp-menu {
    width: 40px;
    height: 38px;
    cursor: pointer;
    position: absolute;
    top: 0; bottom: 0; right: 10px;
    margin: auto;
    padding: 6px;
    z-index: 9;
  }
  .sp-menu-bar, .sp-menu-bar::before, .sp-menu-bar::after {
    display: block;
    width: calc(100% - 12px);
    height: 2px;
    background-color: var(--white);
    position: absolute;
    transition: all 0.5s ease;
  }
  .sp-menu-bar { top: 0; bottom: 0; margin: auto;}
  .sp-menu-bar::before { content: ""; width: 100%; top: 8px;}
  .sp-menu-bar::after { content: ""; width: 100%; bottom: 8px;}
  .sp-menu.active .sp-menu-bar { height: 0;}
  .sp-menu.active .sp-menu-bar::before { transform: rotate(45deg); top: 0; bottom: 0; margin: auto;}
  .sp-menu.active .sp-menu-bar::after { transform: rotate(-45deg); top: 0; bottom: 0; margin: auto;}
  .first-view { height: auto; aspect-ratio: 1 / 0.7; padding-top: var(--header-height-sp);}
  .what-text { text-align: left;}
  .flow-box { width: 90%; max-width: 500px; margin: auto;}
  .flow-item { display: block;}
  .flow-item::before { margin-bottom: 24px;}
  .contact-box { display: block;}
  .contact-item { width: 100%;}
  .contact-item-document { font-size: clamp(1rem, 3.6vw, 24px); text-align: center;}
  .contact-item-contact { font-size: clamp(1rem, 3.6vw, 24px);}
  .contact-item-document .contact-item-content,
  .contact-item-contact .contact-item-content { margin: 0 auto;}
  .contact-item-content { padding: 16px 5%; column-gap: 3%; aspect-ratio: auto;}
  .contact-item-content::after { width: 45%;}
  .contact-item-text { min-height: 4.5em; word-break: keep-all;}
  .banner-box { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; column-gap: 5%; row-gap: 16px;}
  .footer-inner { display: block;}
  .footer-nav { padding-left: 0;}
  .footer-nav-list { display: block; width: max-content; margin: auto;}
  .footer-logo { width: 300px; margin: 40px auto;}
}