@import url("fonts.css");

:root {
  --header-blue: #74bfe6;
  --menu-blue: #277d8d;
  --footer-blue: #e2f3fb;
  --text-color: #201616;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  margin: 0;
  color: var(--text-color);
  background: #fff;
  font-family:
    "Noto Sans JP",
    "Noto Sans CJK JP",
    sans-serif;
}

.site-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  width: 100%;
  height: 66px;
  background: #fff;
}

.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex: 0 0 190px;
  width: 190px;
  padding: 0 20px;
  color: #fff;
  background: var(--header-blue);
  text-decoration: none;
}

.site-logo__pc {
  display: block;
  width: 132px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.site-logo__line {
  display: block;
  width: 100%;
  white-space: nowrap;
}

.site-logo__line--top {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

@media (min-width: 1080px) {
  .site-logo__pc {
    width: 115px;
    letter-spacing: 0.06em;
  }

  .site-logo__line--top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    letter-spacing: 0;
  }
}

.site-logo__sp {
  display: none;
}

.page-top .top-hero,
.page-profile .profile-hero,
.page-recruit .recruit-hero,
.page-entry .form-hero {
  margin-top: -1px;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 44px;
  margin-left: auto;
  padding-right: 25px;
  transform: translateY(2px);
}

.global-nav a {
  color: var(--text-color);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.global-nav__recruit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 134px;
  height: 38px;
  color: #56a9cb !important;
  background: #fff;
  border: 1px solid #56a9cb;
  border-radius: 999px;
  line-height: 1;
  letter-spacing: 0.2em !important;
  transition: color 0.2s ease, background 0.2s ease;
  padding-bottom: 1px;
}

.global-nav__recruit:hover {
  color: #fff !important;
  background: var(--header-blue);
  border-color: var(--header-blue);
}

.menu-button,
.sp-menu {
  display: none;
}

/* Header background extends to the left edge on wide screens */
@media (min-width: 1081px) {
  .site-logo {
    position: relative;
    z-index: 1;
  }

  .site-logo::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 100%;
    width: calc((100vw - 1080px) / 2);
    height: 100%;
    background: var(--header-blue);
  }
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: 120px;
  color: var(--text-color);
  background: var(--footer-blue);
}

.footer-recruit {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid #83bfd5;
  border-radius: 10px;
}

.footer-recruit p {
  margin: 0;
}

.footer-recruit__catch,
.footer-recruit__title,
.footer-recruit__text {
  font-weight: 700;
  text-align: center;
}

.footer-recruit__catch span {
  color: #65b8db;
  font-size: 1.2em;
}

.footer-recruit__catch,
.footer-recruit__title {
  letter-spacing: 0.15em;
}

.footer-recruit__title {
  letter-spacing: 0.08em;
}

.footer-recruit__button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  background: #fff;
  border: 1px solid var(--text-color);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2em;
  text-decoration: none;
  cursor: pointer;
  padding-bottom: 2px;
}

.footer-recruit__button:hover {
  color: #fff;
  background: var(--header-blue);
  border-color: var(--header-blue);
}

.site-footer__inner {
  position: relative;
  margin: 0 auto;
}

.footer-company__name,
.footer-company p {
  margin: 0;
}

.footer-company__name {
  font-weight: 700;
}

.footer-company__mail a {
  color: inherit;
  text-decoration: none;
}

.footer-company__tel-number,
.footer-company__fax-number {
  white-space: nowrap;
}

.footer-company__tel-number strong {
  display: inline;
  white-space: nowrap;
}

.footer-company__address-xs-break,
.footer-company__address-xs-building {
  display: none;
}

.footer-nav {
  display: grid;
}

.footer-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  background: #fff;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
  padding-bottom: 2px;
}

.footer-copyright {
  position: relative;
  margin: 0;
  text-align: center;
}

@media (min-width: 1080px) {
  .site-footer {
    height: 245px;
  min-height: 245px;
  margin-top: 10px;
    background:
      linear-gradient(
        to bottom,
        #fff 0,
        #fff 25px,
        var(--footer-blue) 25px,
        var(--footer-blue) 100%
      );
  }

  .site-footer__inner {
    width: min(940px, calc(100% - 80px));
    height: 245px;
    padding: 59px 320px 15px 0;
  }

  .footer-recruit {
    top: 0;
    right: 70px;
    width: 302px;
    height: 198px;
    padding: 14px 30px 30px;
  }

  .footer-recruit__catch {
    font-size: 21px;
    line-height: 1.25;
  }

  .footer-recruit__title {
    margin-top: 3px !important;
    font-size: 24px;
    line-height: 1.4;
  }

  .footer-recruit__text {
    margin-top: 8px !important;
    font-size: 12px;
  }

  .footer-recruit__button {
    width: 100%;
    height: 45px;
    margin-top: 14px;
    font-size: 16px;
  }

  .footer-company {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
  }

  .footer-company__name {
    padding-top: 1px;
    font-size: 17px;
    white-space: nowrap;
  }

  .footer-company__details {
    font-size: 13px;
    line-height: 1.7;
  }

  .footer-company__tel {
    display: flex;
    flex-flow: row nowrap;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
  }

  .footer-company__tel-number,
  .footer-company__fax-number,
  .footer-company__separator {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
  }

  .footer-company__tel strong {
    font-size: 20px;
  }

  .footer-company__mail {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
  }

  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 577px;
    margin-top: 22px;
  }

  .footer-nav a {
    height: 24px;
    font-size: 13px;
  }

  .footer-copyright {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 24px;
    left: 0;
    width: 100%;
    margin: 0;
    font-size: 13px;
    text-align: center;
  }
}

/* Footer background extends to both screen edges on wide screens */
@media (min-width: 1081px) {
  .site-footer::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: inherit;
    pointer-events: none;
  }

  .site-footer__inner,
  .footer-copyright {
    z-index: 1;
  }

  .footer-recruit {
    z-index: 2;
  }
}

/* Fixed page-top button */
.top-link {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
}

.top-link img {
  display: block;
  width: 48px;
  height: auto;
}

.top-link:hover {
  opacity: 0.75;
}

@media (max-width: 1079px) {
  .site-header {
    height: 66px;
  }

  .site-logo {
    justify-content: flex-start;
    flex-basis: auto;
    width: auto;
    min-width: 342px;
    padding: 0 28px;
    background: #74bfe6;
  }

  .site-logo__pc,
  .global-nav {
    display: none;
  }

  .site-logo__sp {
    display: block;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.17em;
    white-space: nowrap;
    transform: translateY(-1px);
  }

  .menu-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 79px;
    height: 48px;
    margin-left: auto;
    margin-right: 8px;
    padding: 12px 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: #197896;
    transition:
      transform 0.25s,
      opacity 0.25s;
  }

  .sp-menu {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    padding: 20px;
    background: #fff;
    box-shadow: 0 8px 15px rgb(0 0 0 / 10%);
  }

  .sp-menu.is-open {
    display: grid;
  }

  .sp-menu a {
    padding: 16px 10px;
    color: var(--text-color);
    border-bottom: 1px solid #ddd;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }

  .menu-button.is-open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .menu-button.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.is-open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .site-footer {
    margin-top: 60px;
    padding-top: 280px;
    padding-bottom: 30px;
  }

  .footer-recruit {
    top: -82px;
    left: 50%;
    width: min(540px, calc(100% - 112px));
    min-height: 353px;
    padding: 27px 55px 31px;
    transform: translateX(-50%);
  }

  .footer-recruit__catch {
    font-size: 41px;
    line-height: 1.25;
  }

  .footer-recruit__title {
    margin-top: 3px !important;
    font-size: 43px;
    line-height: 1.45;
  }

  .footer-recruit__text {
    margin-top: 8px !important;
    font-size: 22px;
  }

  .footer-recruit__button {
    height: 78px;
    margin-top: 42px;
    font-size: 28px;
  }

  .site-footer__inner {
    width: 100%;
    padding: 35px 35px 28px;
  }

  .footer-company {
    text-align: center;
  }

  .footer-company__name {
    font-size: 32px;
  }

  .footer-company__details {
    margin-top: 15px;
  }

  .footer-company__address {
    font-size: 22px;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .footer-company__tel {
    display: block;
    margin: 14px 0 0;
    font-size: 28px;
    line-height: 1.45;
    text-align: center;
  }

  .footer-company__tel-number,
  .footer-company__fax-number {
    display: block;
    width: fit-content;
    margin: 0 auto;
  }

  .footer-company__separator {
    display: none;
  }

  .footer-company__tel strong {
    font-size: 39px;
  }

  .footer-company__mail {
    margin-top: 8px !important;
    font-size: 31px;
    font-weight: 700;
    text-align: center;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 44px;
  }

  .footer-nav a {
    min-height: 55px;
    padding: 8px 20px;
    font-size: 25px;
      font-weight: 700;

  }

  .footer-nav a:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 47%;
  }

  .footer-copyright {
    margin-top: 49px;
    font-size: 13px;
  }

}

@media (max-width: 600px) {
  .site-header {
    height: 56px;
  }

  .site-logo {
    min-width: 0;
    max-width: calc(100% - 68px);
    padding: 0 15px;
  }

  .site-logo__sp {
    overflow: hidden;
    font-size: clamp(12px, 3.7vw, 16px);
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
  }

  .menu-button {
    width: 54px;
    height: 42px;
    margin-right: 7px;
    padding: 9px 7px;
  }

  .menu-button span {
    height: 3px;
  }

  .sp-menu {
    top: 56px;
  }

  .menu-button.is-open span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
  }

  .menu-button.is-open span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
  }

  .site-footer {
    margin-top: 98px;
    padding-top: 195px;
  }

  .footer-recruit {
    top: -55px;
    width: calc(100% - 100px);
    min-height: 240px;
    padding: 20px 28px 22px;
  }

  .footer-recruit__catch {
    font-size: 27px;
  }

  .footer-recruit__title {
    font-size: 30px;
  }

  .footer-recruit__text {
    font-size: 14px;
  }

  .footer-recruit__button {
    width: 70%;
    height: 52px;
    margin-top: 26px;
    margin: 26px auto 0;
    font-size: 19px;
  }

  .site-footer__inner {
    padding: 31px 18px 24px;
  }

  .footer-company__name {
    font-size: 22px;
  }

  .footer-company__address {
    font-size: 13px;
  }

  .footer-company__tel {
    font-size: 18px;
  }

  .footer-company__tel strong {
    font-size: 27px;
  }

  .footer-company__mail {
    font-size: 20px;
  }

  .footer-nav {
    gap: 14px;
    margin-top: 34px;
  }

  .footer-nav a {
    min-height: 42px;
    padding: 6px 10px;
    font-size: 16px;
  }

  .footer-nav a:last-child {
    width: 55%;
  }

  .footer-copyright {
    margin-top: 10px;
    font-size: 13px;
    padding-bottom: 15px;
  }

  .top-link {
    right: 10px;
    bottom: 12px;
  }

  .top-link img {
    width: 38px;
  }
}

@media (max-width: 430px) {
  .footer-company__address-building {
    display: block;
  }
}

@media (max-width: 344px) {
  .footer-company__address-xs-break {
    display: block;
  }

  .footer-company__address-xs-building {
    display: inline;
  }

  .footer-company__address-building {
    display: none;
  }
}

/* ========================================
   481px〜600px：フッターの横幅・文字サイズ調整
======================================== */
@media (min-width: 481px) and (max-width: 600px) {
  .footer-recruit {
    width: calc(100% - 60px);
    padding-right: 36px;
    padding-left: 36px;
  }

  .footer-company__name {
    font-size: 24px;
  }

  .footer-company__address {
    font-size: 14px;
  }

  .footer-company__mail {
    font-size: 21px;
  }

  .footer-nav {
    margin-top: 38px;
  }

  .footer-copyright {
    margin-top: 15px;
    font-size:14px;
    margin-top: 15px;
  }
}

/* ========================================
   601px〜1079px：SPヘッダー微調整
======================================== */
@media (min-width: 601px) and (max-width: 1079px) {
  .site-logo {
    flex: 0 0 342px;
    width: 342px;
    min-width: 342px;
    max-width: 342px;
    padding-right: 26px;
    padding-left: 26px;
    overflow: hidden;
  }

  .menu-button {
    transform: translateY(1px);
  }

  .menu-button span {
    height: 4px;
  }
}

/* ========================================
   共通ヘッダー：ロゴ表記を会社名のみに統一
   PC・タブレット・スマートフォン共通
======================================== */

.site-logo {
  justify-content: center;
  text-align: center;
}

.site-logo__text {
  display: block;
  width: 100%;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 1079px) {
  .site-logo {
    justify-content: center;
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-logo__text {
    font-size: 19px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 600px) {
  .site-logo {
    justify-content: center;
    padding-right: 10px;
    padding-left: 10px;
  }

  .site-logo__text {
    overflow: hidden;
    font-size: clamp(13px, 4vw, 17px);
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
  }
}

.punctuation {
  display: inline;
  margin-left: -0.08em;
}
/* ========================================
   共通ヘッダー：1080px以上で画面幅いっぱいに表示
======================================== */
@media (min-width: 1080px) {
  .site-header {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    transform: translateX(-50%);
  }

  @supports (width: 100dvw) {
    .site-header {
      width: 100dvw;
    }
  }

  .site-logo::before {
    content: none;
  }
}

.only-pc-break {
  display: inline;
}

@media (max-width: 1079px) {
  .only-pc-break {
    display: none;
  }
}
