@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500&family=Jost:wght@500&display=swap");
/*************** HTML ***************/
body {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
  background-color: #FFFFFF;
  color: #333333;
  font-family: "Noto Serif JP", sans-serif;
  font-size: clamp(1.4rem, 0.3125vw + 1.3rem, 1.6rem);
  line-height: 1.5;
  letter-spacing: 0.05em;
}

a {
  color: #333333;
}
a:link, a:visited {
  text-decoration: none;
}
a:hover {
  color: #249191;
  transition: 0.25s;
}

/*************** Header ***************/
header {
  z-index: 1;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background-color: #FFFFFF;
}
header div {
  display: flex;
  align-items: center;
  padding: 1rem;
}
header div h1 {
  flex-shrink: 1;
  line-height: 0;
}
header div h1 a {
  display: inline-block;
}
header div h1 img {
  width: 100%;
  min-width: 80px;
  max-width: 320px;
}
header div nav {
  flex-shrink: 0;
  margin-left: auto;
  font-weight: 500;
  font-size: clamp(1.4rem, 0.3125vw + 1.3rem, 1.6rem);
  letter-spacing: 0.1em;
}
header div nav ul {
  display: flex;
  justify-content: end;
  align-items: center;
  list-style: none;
}
header div nav ul li {
  margin-left: clamp(1rem, 1.5625vw + 0.5rem, 2rem);
}
header div nav ul li:first-child, header div nav ul li:nth-last-child(2) {
  display: none;
}
header div nav ul li:last-child {
  display: none;
}
header div nav ul li:last-child p:last-child {
  font-family: "Jost";
}

/*************** Main Visual ***************/
#main_visual {
  position: relative;
  margin-bottom: 12rem;
  width: 100%;
  min-height: 40rem;
}
#main_visual #copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 40%;
  left: 50%;
  color: #FFFFFF;
  transform: translate(-50%, -40%);
}
#main_visual #copy h2 {
  width: 100%;
  line-height: 0;
}
#main_visual #copy h2 svg {
  width: 80vw;
  min-width: 280px;
  max-width: 560px;
  --fill: #FFFFFF;
  filter: drop-shadow(0 0 0.5rem #000000);
}
#main_visual::after {
  display: block;
  padding-top: 50%;
  content: "";
}

/* Fade Images */
#fade_images {
  display: grid;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  list-style: none;
}
#fade_images li:not(:first-child) {
  z-index: -1;
}
#fade_images li {
  grid-area: 1/1;
  background-position: top;
  background-size: cover;
  opacity: 1;
}
#fade_images::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
}

/* Scroll Down */
#scroll_down {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
  height: 100%;
}
#scroll_down a {
  position: sticky;
  bottom: 10px;
  overflow: hidden;
  padding-top: 50px;
  width: 30px;
}
#scroll_down a::before {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -15px;
  width: 30px;
  height: 50px;
  border: #FFFFFF 2px solid;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.2);
  content: "";
}
#scroll_down a::after {
  position: absolute;
  top: 2px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 3px;
  box-shadow: 0 7px 0 0 #FFFFFF, 0 20px 0 0 #FFFFFF, 0 33px 0 0 #FFFFFF;
  animation: scroll_down 1.2s ease-in-out infinite;
  content: "";
}
@keyframes scroll_down {
  0%, 100% {
    box-shadow: 0 7px 0 0 rgba(255, 255, 255, 0.5), 0 20px 0 0 rgba(255, 255, 255, 0.5), 0 33px 0 0 rgba(255, 255, 255, 0.5);
  }
  25% {
    box-shadow: 0 7px 0 0 #FFFFFF, 0 20px 0 0 rgba(255, 255, 255, 0.5), 0 33px 0 0 rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow: 0 7px 0 0 rgba(255, 255, 255, 0.5), 0 20px 0 0 #FFFFFF, 0 33px 0 0 rgba(255, 255, 255, 0.5);
  }
  75% {
    box-shadow: 0 7px 0 0 rgba(255, 255, 255, 0.5), 0 20px 0 0 rgba(255, 255, 255, 0.5), 0 33px 0 0 #FFFFFF;
  }
}

/*************** Main ***************/
main {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  padding: 2rem;
}
main h2 {
  z-index: 0;
  position: relative;
  margin-bottom: 8rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  background-color: #249191;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 2.4rem;
  letter-spacing: 0.1em;
}
main h2::before {
  z-index: -1;
  position: absolute;
  right: 1.5rem;
  bottom: 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Jost";
  text-transform: uppercase;
  letter-spacing: 0.05em;
  content: attr(data-text);
}

/***** Greeting *****/
#greeting {
  padding-bottom: 12rem;
  width: 100%;
}
#greeting p {
  font-weight: 500;
  font-size: clamp(1.4rem, 0.625vw + 1.2rem, 1.8rem);
  text-align: center;
  line-height: 2;
  letter-spacing: 0.05em;
}
#greeting p:not(:last-child) {
  margin: 0 auto 4rem;
}
#greeting p:last-child {
  display: flex;
  justify-content: end;
  align-items: flex-end;
  margin-top: 6rem;
  text-align: left;
}

/***** Business *****/
/***** Recruit *****/
#business, #recruit {
  width: 100%;
}
#business h2 ~ p, #recruit h2 ~ p {
  margin: -6rem 0 8rem;
  padding: 0 2rem;
}
#business ul, #recruit ul {
  list-style: none;
}
#business ul li, #recruit ul li {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 8rem;
}
#business ul li figure, #recruit ul li figure {
  padding: 2rem;
}
#business ul li figure img, #recruit ul li figure img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 0.5rem;
}
#business ul li div, #recruit ul li div {
  padding: 2rem;
  width: 100%;
}
#business ul li div h3, #recruit ul li div h3 {
  border-bottom: #249191 1px solid;
  margin-bottom: 2rem;
  color: #333333;
  font-weight: 500;
}
#business ul li div p:not(:last-child), #recruit ul li div p:not(:last-child) {
  margin: 0 auto 2rem;
}

/***** Company *****/
#company {
  padding-bottom: 12rem;
  width: 100%;
}
#company > ul {
  list-style: none;
}
#company > ul > li > dl {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
#company > ul > li > dl > dt {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  width: 100%;
  background-color: #EFEFEF;
  font-weight: 500;
}
#company > ul > li > dl > dd {
  display: flex;
  align-items: center;
  padding: 2rem;
  width: 100%;
  word-wrap: break-word;
}
#company > ul > li > dl > dd ul {
  list-style: none;
}
#company > ul > li > dl > dd ul li:not(:last-child) {
  margin-bottom: 2rem;
}
#company > ul > li > dl > dd ul.counter li {
  counter-increment: count;
}
#company > ul > li > dl > dd ul.counter li::before {
  content: counter(count) ". ";
}
#company > ul > li > dl > dd > dl {
  width: 100%;
}
#company > ul > li > dl > dd > dl dt {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: rgba(239, 239, 239, 0.5);
}
#company > ul > li > dl > dd > dl dt:not(:last-of-type) {
  margin-bottom: 0.2rem;
}
#company > ul > li > dl > dd > dl dd {
  padding: 2rem 0.5rem;
}

/***** Access *****/
#access {
  padding-bottom: 12rem;
  width: 100%;
}
#access section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#access section figure {
  padding: 2rem;
}
#access section figure img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 0.5rem;
}
#access section div {
  padding: 2rem;
  width: 100%;
}
#access section div address {
  margin: 2rem 0;
  font-style: normal;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}
#access iframe {
  width: 100%;
  border-radius: 0.5rem;
}

/*************** Footer ***************/
footer {
  margin-top: 12rem;
  background: #EFEFEF;
}
footer div {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}
footer div h2 {
  padding: 6rem 2rem 1rem;
  width: 100%;
  text-align: center;
  line-height: 0;
}
footer div h2 img {
  width: 100%;
  max-width: 280px;
}
footer div address {
  padding: 0 2rem 6rem;
  font-style: normal;
  font-size: clamp(1.2rem, 0.3125vw + 1.1rem, 1.4rem);
  text-align: center;
  letter-spacing: 0.05em;
}
footer p {
  padding: 1rem;
  width: 100%;
  background-color: #333333;
  color: #FFFFFF;
  font-size: clamp(1.2rem, 0.3125vw + 1.1rem, 1.4rem);
  text-align: center;
  letter-spacing: 0.05em;
}
footer a {
  display: inline-block;
}

/*************** Element ***************/
/* Button */
.button {
  text-align: center;
}
.button a, .button button {
  display: inline-flex;
  justify-content: center;
  position: relative;
  margin: 6rem auto 0;
  padding: 1.5rem 6rem;
  outline: #FFFFFF 1.5px solid;
  outline-offset: -4px;
  border-radius: 0.5rem;
  background-color: #333333;
  color: #FFFFFF;
  font-size: clamp(1.4rem, 0.625vw + 1.2rem, 1.8rem);
  text-indent: 0.05em;
  letter-spacing: 0.05em;
}
.button a:hover, .button a:focus, .button button:hover, .button button:focus {
  background-color: rgba(51, 51, 51, 0.8);
}
.button a.accent, .button button.accent {
  background-color: #249191;
}
.button a.accent:hover, .button a.accent:focus, .button button.accent:hover, .button button.accent:focus {
  background-color: rgba(36, 145, 145, 0.8);
  transition: 0.25s;
}
.button a::after, .button button::after {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 1.5rem;
  bottom: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-color: transparent transparent transparent #FFFFFF;
  border-width: 1rem 0 1rem 1.5rem;
  border-style: solid;
  content: "";
}

/* Back To Top */
#back_to_top {
  display: block;
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 60px;
  height: 60px;
}
#back_to_top:hover, #back_to_top:focus {
  outline: none;
  --fill-opacity: 0.8;
}

/*************** Keyframes ***************/
@keyframes fadein_transition {
  0% {
    opacity: 0;
    transform: translate(0, 5rem);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}
/*************** Media ***************/
@media (min-width: 480px) {
  header div {
    padding-left: 2rem;
  }
  header div nav ul li:first-child, header div nav ul li:nth-last-child(2) {
    display: list-item;
  }
  #company > ul > li > dl > dt {
    border-radius: 0.5rem;
  }
}
@media (min-width: 768px) {
  header div nav ul li:last-child {
    display: list-item;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: #249191;
    color: #FFFFFF;
    text-align: center;
    text-indent: 0.05em;
  }
  header div nav ul li:last-child p a {
    color: #FFFFFF;
  }
  header div nav ul li:last-child p:last-child a {
    color: #FFFFFF;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
  }
  #business ul li, #recruit ul li {
    flex-wrap: nowrap;
    padding: 2rem;
  }
  #business ul li figure img, #recruit ul li figure img {
    max-width: 480px;
  }
  #company > ul > li {
    margin-bottom: 0.2rem;
  }
  #company > ul > li > dl > dt {
    padding: 2rem;
    width: 30%;
    border-radius: initial;
  }
  #company > ul > li > dl > dd {
    width: 70%;
  }
  #company > ul > li:first-of-type dl dt {
    border-radius: 0.5rem 0.5rem 0 0;
  }
  #company > ul > li:last-of-type {
    margin-bottom: 0;
  }
  #company > ul > li:last-of-type dl dt {
    border-radius: 0 0 0.5rem 0.5rem;
  }
  #company > ul > li:last-of-type dl dd dl dt {
    border-radius: 0.5rem;
  }
  #access section {
    flex-wrap: nowrap;
    padding: 2rem;
  }
  #access section figure img {
    max-width: 480px;
  }
}
@media (min-width: 1080px) {
  header div, main {
    margin: 0 auto;
    width: 1080px;
  }
}