/* common */
html {
  color: #232020;
  font-family: 'Noto Sans JP', sans-serif;
  scroll-behavior: smooth;
}

@media screen and (max-width: 768px) {
  html {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    max-width: 100%;
    overflow-x: visible;
    overflow-y: visible;
  }
}

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

body.js-active {
  overflow: hidden;
}

main {
  overflow: hidden;
}

span {
  display: inline-block;
}

img {
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  margin-top: 26px;
  padding-bottom: 43px;
  text-align: center;
  position: relative;
  letter-spacing: 0.033em;
}

h2::before {
  background-color: #3bc1a4;
  content: '';
  height: 3px;
  bottom: 0;
  position: absolute;
  left: calc(50% - 25px);
  width: 50px;
}

main.--resident h2::before {
  background-color: #ffa63e;
}

h3,
h4,
h5 {
  letter-spacing: 0.013em;
}

p {
  letter-spacing: 0.013em;
}

@media screen and (max-width: 768px) {
  h2 {
    font-size: 22px;
    margin-top: 10px;
    padding-bottom: 20px;
  }

  h2::before {
    height: 2px;
    left: calc(50% - 18px);
    width: 36px;
  }
}

input,
select {
  height: 50px;
  border: #cecece solid 1px;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  padding: 10px;
}

input.c-input-checkbox {
  height: unset;
}

input.--large {
  width: 100%;
}

textarea {
  height: 180px;
  border: #cecece solid 1px;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  resize: vertical;
  padding: 10px;
  width: 100% !important;
}

@media screen and (max-width: 768px) {

  input,
  select {
    height: 40px;
    padding: 8px;
  }

  textarea {
    height: 140px;
    padding: 8px;
  }
}

a:hover {
  opacity: .7;
  text-decoration: none !important;
}

button:hover {
  opacity: .7;
}
