html {
  height: 100%;
  overflow-y: scroll;
}

body {
  height: 100%;
  font-family: 'Libre Baskerville', serif;
}

.wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, transparent 40%, #fff 100%), url(../images/main_sp.jpg); 
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100%;
}

header.header {
  aspect-ratio: 4 / 2.8;
  display: flex;
}

main.main {
  margin-bottom: 2rem;
  background-color: rgb(255 255 255 / 80%);
}

.container {
  width: 100%;
  padding-right: .75rem;
  padding-left: .75rem;
  margin-right: auto;
  margin-left: auto;
}

section.introduction {
  padding: .25rem;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  margin-bottom: 1rem;
}

section.introduction p:last-child {
  margin-bottom: 0;
}

section h2 {
  display: flex;
  align-items: center;
}

section h2::before {
  content: "";
  display: block;
  height: 1.5rem;
  width: 1.5rem;
  margin-left: .25rem;
  margin-right: .25rem;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

section h2.info {
  color: #036eb8;
}

section h2.comp {
  color: #e50057;
}

section h2.map {
  color: #f0b937;
}

section h2.info::before {
  background-image: url(../images/icon02.svg);
}

section h2.comp::before {
  background-image: url(../images/icon03.svg);
}

section h2.map::before {
  background-image: url(../images/icon04.svg);
}

section.section {
  padding: .25rem .5rem;
  margin-bottom: 1rem;
  background-color: #fff;
  border: 1px solid #666;
}

.flex_dl {
  margin: 0 0 1rem 0;
}

.flex_dl.summary {
  margin: 1rem 0;
}

.flex_dl dt,
.flex_dl dd {
  padding: 10px 25px;
  margin: 0;
  border: 1px solid #666;
  border-bottom-width: 0;
}

.flex_dl dt {
  text-align: center;
  font-weight: 600;
  background-color: #bddaed;
}

.flex_dl dd:last-child {
  border-bottom-width: 1px;
}

.flex_dl dd:has(span) {
  display: flex;
  padding: 0;
}

.flex_dl dd:has(span) span {
  width: 30%;
  padding: 10px 25px;
  display: flex;
  align-items: center;
}

.flex_dl dd:has(span) span:first-child {
  border-right: 1px solid #666;
  flex-grow: 1;
}

ul.attention {
  margin: 0;
  padding: 0 0 1rem 1rem;
}

ul.attention > li {
  list-style-type: "※";
}

ul.attention ul {
  padding-left: 1rem;
  list-style-type: disc;
}

table.map {
  width: 100%;
  margin-bottom: 1rem;
}

table.map th {
  text-align: center;
  padding: 10px 25px;
  background-color: #bddaed;
  border: 1px solid #666;
  font-weight: bold;
}

table.map td {
  padding: 5px;
  border: 1px solid #666;
}

table.map ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

table.map a {
  text-decoration: underline;
  color: #003edb;
}

p.comp img {
  width: 100%;
}

p.comp img:nth-child(2) {
  margin-top: 1rem;
}

p.map {
  margin-top: 1rem;
  margin-bottom: .5rem;
}

p.map img {
  width: 100%;
  border: 1px solid #666;
}

footer.footer {
  margin-top: auto;
  width: 100%;
  background-color: #008749;
}

footer.footer .footer_in {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px;
  height: 100px;
}

footer.footer .footer_kahakutop a {
  display: block;
  width: 70px;
  height: 80px;
  margin-right: 1rem;
  background: url(../images/kahaku_footer_smart-WH.svg) no-repeat;
  overflow: hidden;
  font-size: 0;
  text-decoration: none;
}

footer.footer .footer_cr {
  margin-left: auto;
  color: #fff;
  font-size: .75rem;
  line-height: normal;
}

footer.footer .footer_totop a {
  display: block;
  border-radius: 10px 10px 0 0;
  border-bottom: none;
  background: #008749 url(../images/btn_totop-WH.svg) no-repeat 11px 11px;
  background-size: 80%;
  width: 107px;
  height: 35px;
  position: absolute;
  right: 10px;
  top: -35px;
  overflow: hidden;
  font-size: 0px;
}

@media(min-width: 768px) {
  .wrapper {
    height: auto;
    min-height: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(to bottom, transparent 0%, transparent 40%, #fff 100%), url(../images/main_pc.jpg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
  }

  header.header {
    aspect-ratio: auto;
    height: 500px;
  }

  nav.nav {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  nav.nav ul li a::before {
    content: "";
    display: block;
    height: 2rem;
    width: 2rem;
    margin-right: .25rem;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  }

  nav.nav ul li a:hover {
    opacity: .8;
  }

  .container {
    padding-right: 0;
    padding-left: 0;
  }

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

  article.container section {
    width: 100%;
  }

  article.container section:nth-last-child(1),
  article.container section:nth-last-child(2) {
    width: calc(50% - .5rem);
  }

  .flex_dl.summary {
    display: flex;
    flex-wrap: wrap;
  }

  .flex_dl.summary dt {
    width: 30%;
    border-right-width: 0;
  }

  .flex_dl.summary dt:nth-last-child(2) {
    border-bottom-width: 1px;
  }

  .flex_dl.summary dd {
    width: 70%;
  }

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

  article.comp section {
    width: 100%;
  }

  article.comp section:nth-child(2),
  article.comp section:nth-child(3) {
    display: flex;
    flex-direction: column;
    width: calc(50% - .5rem);
  }

  article.comp section:nth-child(2) p:last-child,
  article.comp section:nth-child(3) p:last-child {
    margin-top: auto;
  }

  article.comp section:nth-child(4) p:last-child {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  article.comp section:nth-child(4) p:last-child img {
    width: calc(50% - .5rem);
  }

  p.comp img:nth-child(2) {
    margin-top: 0;
  }

  p.pdf {
    text-align: right;
  }

  footer.footer .footer_in {
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 15px 0 15px;
  }

  footer.footer .footer_cr {
    margin: 15px 5px 0 auto;
  }

  footer.footer .footer_kahakutop a {
    width: 300px;
    height: 36px;
    background: url(../images/kahaku_footer_top-WH.svg) no-repeat;
  }
}
