html {
  scroll-behavior: smooth;
}

body {
  font-family: "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho Pro", serif;
  background-color: #f8f8f8;
}

/*topビジュアル*/
#hero {
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-news {
  background-image: linear-gradient(to bottom, rgba(10, 61, 83, 0.8) 0%, rgba(10, 61, 83, 0.3) 60%, rgba(10, 61, 83, 0) 80%), url("../img/news/news-heroimg.png");
}

.hero-recruit {
  background-image: linear-gradient(to bottom, rgba(10, 61, 83, 0.8) 0%, rgba(10, 61, 83, 0.3) 60%, rgba(10, 61, 83, 0) 80%), url("../img/recruit/recruit-heroimg.png");
}

.hero-copy {
  position: absolute;
  bottom: 15%;
  left: 8%;
  z-index: 1;
  color: white;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  text-align: left;
  margin-bottom: 2em;
}

.hero-copy h2 {
  font-weight: 500;
  line-height: 1.2;
  font-size: 58px;
}

.hero-copy p {
  font-size: 20px;
  margin: 0;
  padding: 0 0 0 0.5em;
}

/*ニュース*/
.news-container {
  display: grid;
  grid-template-columns: 35% 1fr;
  grid-template-rows: auto;
}

.news-left {
  display: flex;
  flex-direction: column;
  gap: 2em;
  grid-area: 1 / 1 / 2 / 2;
}

.news-side01,
.news-side02 {
  width: 95%;
}

.newslist-area {
  grid-area: 1 / 2 / 3 / 3;
  width: 90%;
  margin-left: auto;
}

.news-side01 a,
.news-side02 a {
  text-decoration: none;
  color: #222;
}

.news-side01 h4,
.news-side02 h4 {
  margin-bottom: 0;
}

.news-side01 p,
.news-side02 p {
  margin: 0;
  padding: 0;
}

.news-side01 ul,
.news-side02 ul {
  list-style: none;
  margin-top: 0.5em;
  padding: 0 0 1em 0;
}

.news-side01 li,
.news-side02 li {
  padding: 1em 0;
  border-bottom: solid 1px #dddddd;
}

.n-underline {
  padding-bottom: 2px;
  font-weight: bold;
  position: relative;
  border-bottom: 1px solid #dddddd;
  font-size: 1.2em;
}

.n-underline::before {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 40%;
  height: 2px;
  background: #04afcd;
}

.side-date {
  display: flex;
  align-items: center;
  margin-bottom: 0.5em;
}

.side-date p {
  font-size: 0.8em;
  color: #777777;
  line-height: 10px;
}

.side-date span {
  margin-left: 0.5em;
}

.n-detael-date {
  color: #5e5e5e;
  display: inline-block;
  margin-bottom: 0;
  padding-bottom: 0;
}

.n-detael-tag {
  display: inline-block;
  margin-left: 1em;
  font-weight: bold;
  margin-bottom: 0;
  padding-bottom: 0;
}

.oshirase {
  color: #01bf89;
}

.saiyoujoho {
  color: #0193bf;
}

.topics {
  color: #0153bf;
}

.sonota {
  color: #bfac01;
}

.side-date span {
  margin-left: 0.5em;
}

.side-topics {
  display: flex;
  justify-content: space-between;
}

.side-topics span {
  font-size: 0.8em;
  color: #777777;
  margin-right: 0.5em;
}

.news-tab {
  width: 100%;
  margin-bottom: 2em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.news-tab ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  max-width: 80%;
  padding: 0;
  font-weight: bold;
}

.news-tab > :first-child {
  margin-left: 0;
}

.news-tab a {
  text-decoration: none;
  color: rgba(33, 33, 33, 0.555);
}

.news-tab .current a {
  color: #04afcd;
}

.news-header p {
  font-size: 12px;
  color: #666;
  margin-bottom: 20px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item a {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  text-decoration: none;
}

.news-img {
  width: 140px;
  height: 75px;
  object-fit: cover;
  margin-right: 20px;
}

.news-info {
  display: flex;
  align-items: center;
  width: 100%;
}

.news-date {
  font-size: 18px;
  color: #888;
  margin-right: 1em;
}

.news-date span {
  display: block;
}

.news-tag {
  color: #04afcd;
  font-size: 12px;
}

.news-title {
  color: #333;
  text-decoration: none;
  font-size: 18px;
}

.news-arrow {
  width: 20px;
}

.news-pagenation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  height: 45px;
  max-width: 350px;
  margin: 2em auto;
  font-weight: bold;
}

.newslist-area ol {
  list-style: none;
  margin: 2em auto;
  padding: 0;
}

.news-pagenation a {
  color: rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.news-pagenation .current a {
  color: black;
}

/*おしらせ詳細*/
.newsdetail-area {
  width: 95%;
  margin: 0 auto;
  grid-area: 1 / 2 / 3 / 3;
}

.newsdetail-area h4 {
  font-size: 24px;
  margin-top: 0.5em;
  padding-bottom: 1.2em;
  border-bottom: solid 1px #dddddd;
}

.newsdetail-area img {
  width: 100%;
  margin-top: 2em;
}

.back-btn {
  display: flex;
  width: 85%;
  max-width: 350px;
  border-radius: 2em;
  border: solid 1px #04afcd;
  padding: 0.8em 1.5em;
  margin: 3em auto 0;
}

.back-btn a {
  width: 100%;
  text-decoration: none;
  color: #04afcd;
}

.b-btn-flex {
  display: flex;
  align-items: center;
  width: 100%;
}

.b-btn-flex p {
  margin: 0;
  padding: 0;
  width: 85%;
  text-align: center;
}

.b-btn-flex img {
  max-width: 20px;
  margin: 0;
}

/*リクルートページ*/
.recruit-top-area {
  width: 100%;
  margin: auto;
  text-align: center;
  margin-bottom: 3em;
}

.recruit-top-area h4 {
  font-size: 24px;
  margin-bottom: 0;
}

.r-contact-area {
  display: flex;
  justify-content: space-between;
}

.recruit-contact-box {
  background-color: #fff;
  display: grid;
  grid-template-columns: 40% 1fr;
  grid-template-rows: 1fr;
  width: 45%;
  padding: 0 1em;
  align-items: center;
}

.r-contact-facility {
  grid-area: 1 / 1 / 3 / 2;
  text-align: start;
  font-size: 18px;
  margin: 1em 0;
  font-weight: 800;
}

.recruit-contact-box p {
  font-size: 14px;
  color: #222;
  text-align: start;
  margin: 0;
}

.r-contact-tell {
  grid-area: 1 / 2 / 2 / 3;
  padding: 1em 0 0.25em 0;
}

.r-contact-tell::before {
  content: "";
  background-image: url(../img/recruit/tell.png);
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: contain;
  vertical-align: middle;
  margin-right: 0.5em;
}

.r-contact-mail {
  grid-area: 2 / 2 / 3 / 3;
  padding: 0.25em 0 1em 0;
}

.r-contact-mail::before {
  content: "";
  background-image: url(../img/recruit/mail.png);
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: contain;
  vertical-align: middle;
  margin-right: 0.5em;
}

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

.recruit-container a.fade-hover {
  text-decoration: none;
  transition: color 0.3s ease;
}

.recruit-container a.fade-hover:hover {
  color: rgba(4, 175, 205, 0.5);
}

.recruit-side {
  width: 35%;
}

.recruit-side ul {
  list-style: none;
  margin-top: 0.5em;
  padding: 0 0 1em 0;
}

.recruit-side li {
  padding: 0.3em 0.5em;
  margin: 0.5em 0;
  font-weight: 900;
}

.w-box {
  background-color: #fff;
}

.w-box p {
  padding: 1em;
  margin: 0;
  font-weight: 800;
}

.w-box a {
  text-decoration: none;
  color: #222;
  font-weight: 800;
}

.recruit-detail-area {
  width: 62%;
}

.recruit-detail-area h4 {
  font-size: 32px;
  font-weight: 800;
  margin-top: 0;
}

.recruit-detail-box {
  width: 100%;
  background-color: #fff;
  padding: 2em 1.5em;
  box-sizing: border-box;
  margin-bottom: 2em;
}

.recruit-tag {
  background-color: #04afcd;
  color: #fff;
  border-radius: 35px;
  padding: 0.5em 1.5em;
  font-size: 12px;
}

.recruit-detail-box h5 {
  font-size: 24px;
  letter-spacing: 0.1em;
  font-weight: 800;
  margin-bottom: 0.5em;
}

.recruit-detail-box table {
  width: 100%;
}

.recruit-detail-box th {
  width: 20%;
  font-weight: normal;
  font-size: 14px;
  color: #545454;
  padding: 1em 0 1em 0.5em;
  margin: 0;
  text-align: left;
}

.recruit-detail-box td {
  padding: 1em 0;
  margin: 0;
  font-size: 16px;
  color: #222;
}

.r-line01,
.r-line02 {
  border-bottom: solid 1px #ddd;
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  #hero {
    height: 400px;
  }

  .hero-recruit {
    background-image: linear-gradient(to bottom, rgba(10, 61, 83, 0.8) 0%, rgba(10, 61, 83, 0.3) 60%, rgba(10, 61, 83, 0) 80%), url("../img/recruit/recruit-heroimg-sp.png");
  }

  .hero-copy {
    bottom: 20%;
    left: 6%;
  }

  .hero-copy h2 {
    font-weight: 400;
    font-size: 38px;
  }

  .news-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(100px, auto);
  }

  .news-left {
    display: flex;
    flex-direction: column;
    gap: 2em;
    grid-area: 2 / 1 / 3 / 2;
  }

  .news-side01,
  .news-side02 {
    width: 100%;
  }

  .newslist-area {
    grid-area: 1 / 1 / 2 / 2;
    width: 100%;
    margin: auto;
    margin-bottom: 2em;
    overflow: hidden;
  }

  .news-tab {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
  }

  .news-tab::-webkit-scrollbar {
    display: none;
  }

  .news-tab ul {
    flex-wrap: nowrap;
    width: max-content;
  }

  .news-tab li {
    white-space: nowrap;
  }

  .news-tab li a {
    display: inline-block;
    padding: 0 1.5em;
    font-size: 15px;
    text-decoration: none;
  }

  .news-tab li.current a {
    color: #00bcd4;
    font-weight: bold;
    border-bottom: 2px solid #00bcd4;
  }

  .news-tab a {
    text-decoration: none;
    color: #aaa;
  }

  .news-info {
    flex-direction: column;
    align-items: flex-start;
    width: 95%;
  }

  .news-title {
    margin: 0;
  }

  .news-date {
    display: flex;
    align-items: center;
    font-size: 1em;
    margin-bottom: 0.4em;
  }

  .news-tag {
    font-size: 1em;
    margin-left: 0.5em;
  }

  .news-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 20px;
  }

  .news-list a {
    font-size: 16px;
  }

  .news-arrow {
    width: 15px;
  }

  .newsdetail-area {
    grid-area: 1 / 1 / 2 / 2;
    margin-bottom: 3em;
  }

  .recruit-top-area {
    margin-bottom: 1em;
  }

  .recruit-top-area p {
    font-size: 14px;
  }

  .r-contact-area,
  .recruit-container {
    width: 100%;
    flex-direction: column;
    margin: auto;
  }

  .recruit-contact-box {
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    margin-bottom: 1em;
    padding: 0 1.5em;
  }

  .recruit-contact-box h5 {
    margin: 0.5em 0 0.2em;
  }

  .r-contact-facility {
    grid-area: 1 / 1 / 2 / 2;
  }

  .r-contact-tell {
    grid-area: 2 / 1 / 3 / 2;
    padding: 0.5em 0 0.25em 0;
  }

  .r-contact-mail {
    grid-area: 3 / 1 / 4 / 2;
    padding: 0.25em 0 0.5em 0;
  }

  .recruit-side,
  .recruit-detail-area {
    width: 100%;
  }

  .recruit-detail-area h4 {
    margin-bottom: 0.5em;
    font-size: 24px;
  }

  .recruit-detail-box {
    padding: 2em 1em 1em;
  }

  .recruit-detail-box h5 {
    margin: 1em 0 0.5em;
    letter-spacing: 0.05em;
  }

  .w-box p {
    font-size: 16px;
    font-weight: 900;
  }

  th,
  td {
    display: block;
    width: 100%;
  }

  .r-line01 {
    border-bottom: none;
  }

  .recruit-detail-box th {
    width: 50%;
    padding: 1.2em 0 0 0;
  }
}
