/* Reset CSS */
:root {
  --primary-color: #1168ac;
  --secondary-color: #ffda2a;
  --bk-color: #231815;
  --wt-color: #fff;
  --border: #7a7a7a;
  --maplink: #969797;
  --fs-10px: 10px;
  --fs-12px: 12px;
  --fs-13px: 13px;
  --fs-14px: 14px;
  --fs-16px: 16px;
  --fs-17px: 17px;
  --fs-18px: 18px;
  --fs-19px: 19px;
  --fs-20px: 20px;
  --fs-21px: 21px;
  --fs-22px: 22px;
  --fs-23px: 23px;
  --fs-25px: 25px;
  --fs-26px: 26px;
  --fs-27px: 27px;
  --fs-28px: 28px;
  --fs-31px: 31px;
  --fs-36px: 36px;
  --fs-40px: 40px;
  --font-ss: 10px;
  --yugo-m: 'yugo-m', sans-serif;
  --yugo-b: 'yugo-b', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'yugo-m';
  font-weight: 400;
  src: url('../../assets/font/yugo-m.woff') format('woff2'), url('../../assets/font/yugo-m.woff') format('woff');
}

@font-face {
  font-family: 'yugo-b';
  font-family: var(--yugo-b);
  src:
    url('../../assets/font/yugo-b.woff') format('woff2'),
    url('../../assets/font/yugo-b.woff') format('woff');
}


html,
body {
  height: 100%;
  font-family: var(--yugo-m), “Helvetica Neue”, Helvetica, Arial, “Yu Gothic”, “游ゴシック”, YuGothic, Meiryo, sans-serif;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
  font-family: var(--yugo-b);
  font-weight: 500;
}

.blue {
  color: var(--primary-color);
}

.textright {
  text-align: right;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

.bold {
  font-family: var(--yugo-b);
  font-weight: 500;
}


.container {
  width: 90%;
  max-width: 1030px;
  margin: auto;
  padding: 0 15px;
}


.back-to-top {
  position: fixed;
  right: 10px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 999;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 9999px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  /* フェード用（初期は非表示） */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s ease;

  /* 非表示時はクリック無効化 */
  pointer-events: none;
}

/* 表示状態（100px超えで付与） */
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* フォーカス/ホバー */
.back-to-top:hover svg {
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 2px solid #4da3ff;
  outline-offset: 2px;
}

/* アニメーションを苦手とする環境配慮 */
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

/* fade */

.fade-in-up {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 子要素をパラパラ表示 */
.fade-in-up.is-visible>* {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Hamburger button (always fixed) */
.hamburger {
  position: fixed;
  top: 12px;
  right: 9px;
  width: 62px;
  height: 62px;
  display: grid;
  border: none;
  z-index: 1001;
  cursor: pointer;
  background: var(--primary-color);
  justify-content: center;
  padding: 12px 0 5px;
  gap: 8px;
}

.hamburger .bar {
  display: block;
  height: 2px;
  background: var(--wt-color);
  margin: 0;
  transition: transform .25s ease, opacity .25s ease, width .25s ease;
}

.hamburger .menutext {
  color: var(--wt-color);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-align: center;
}

.hamburger .bar {
  width: 35px;
}


.hamburger[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
  background-color: var(--wt-color);
}

.hamburger[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
  width: 0;
  background-color: var(--wt-color);
}

.hamburger[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);

}


/* ===== Nav base */
.nav {
  position: fixed;
  inset: 0;
  /* backdrop-filter: blur(2px); */
  opacity: 0;
  transition: opacity .25s ease;

  background: rgb(0 0 0 / 62%);
}

.nav-inner {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(86vw, 360px);
  background: var(--primary-color);
  transform: translateX(100%);
  transition: all 0.6s 0s cubic-bezier(0.875, 0.005, 0.090, 0.990);
  padding: 90px 20px 28px;
  overflow-y: auto;
  box-shadow: -8px 0 24px rgba(0, 0, 0, .1);
}

.nav-inner ul li {
  border-bottom: 1px solid var(--wt-color);
  padding: 15px 0;
}

.nav-inner a {
  display: block;

}

.nav.is-open {
  opacity: 1;
  pointer-events: auto;
  z-index: 1000;
}

.nav.is-open .nav-inner {
  transform: translateX(0);
}



/* ===== Desktop (>=769px) は常時表示の水平ナビに */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .nav {
    position: static;
    opacity: 1;
    margin-left: auto;
    background: none;
  }

  .nav-inner {
    position: static;
    transform: none;
    height: auto;
    width: 100%;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;

  }

  /*nav*/
  nav .nav-inner {
    background-color: var(--font-color);
    padding: clamp(10px, 1.2vw, 20px) 0;
    text-align: center;

  }

  nav .nav-inner ul {
    display: flex;
    justify-content: center;
    align-items: center;

  }

  nav .nav-inner ul li {
    border-left: 1px solid var(--bk-color);
    text-align: center;
    padding: 0 clamp(10px, 1.9vw, 30px);
    line-height: 1.78;
  }

  nav .nav-inner ul li:first-child {
    border-left: none;

  }

  nav .nav-inner ul li:last-child {
    border-right: none;
  }

  nav .nav-inner ul li a {
    font-size: clamp(var(--fs-13px), 1.5vw, var(--fs-18px));
    margin-bottom: 0;
    font-family: var(--yugo-b);
    font-weight: 500;
    transition: ease .4s;
    opacity: 1;
  }

  nav .nav-inner ul li a:hover {
    opacity: 0.5;
  }

  ul.blanklink {
    position: absolute;
    top: 30px;
    right: 20px;
    background: #333;
    display: flex;
    flex-direction: column;
  }

  ul.blanklink.is_sp {
    display: none;
  }

  ul.blanklink li {
    width: 190px;
    border: none;
  }

}

/* ユーザーがアニメ抑制設定のとき */
@media (prefers-reduced-motion: reduce) {

  .hamburger .bar,
  .nav,
  .nav-inner {
    transition: none !important;
  }
}

/* スクロールロック用（JSで body に付与） */
.body-lock {
  overflow: hidden;
  touch-action: none;
}

/* ===== Hamburger button (always fixed) */
/* ===================================== */


#floting a {
  background-color: var(--bk-color);
}

ul.blanklink li a {
  padding: 10px;
  display: block;
  color: var(--wt-color);
  text-align: center;
}

ul.blanklink li:first-child {
  background-color: var(--primary-color);

}

ul.blanklink li:last-child {
  background-color: var(--font-color);
}










/* Header */
header {
  position: relative;
  display: flex;
  align-items: end;
}

header .headerbar {

  text-align: center;
  padding: 23px 0;
}

header .headerbar h1 {
  font-size: clamp(var(--fs-22px), 2.6vw, var(--fs-28px));
  line-height: 1;
}

header .logo {
  padding: 20px clamp(10px, 2vw, 30px);
  background-color: var(--secondary-color);

}

header .logo img {

  text-align: center;
  margin: auto;
}





/*kv*/
#kv {
  background-color: var(--secondary-color);
}

.swiper-container {
  overflow: hidden;
  position: relative;

}

.swiper-container .swiper-slide img {
  max-width: 100%;
}

.catcp {
  position: absolute;
  z-index: 1;
  top: 9%;
  left: 5%;


}

.catcp li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  margin-bottom: 20px;
}

/* 遅延だけを個別で調整 */
.catcp li:nth-child(1) {
  transition-delay: .4s;
}

.catcp li:nth-child(2) {
  transition-delay: .6s;
}

/* ページ読み込み完了後 */
.loaded .catcp li {
  opacity: 1;
  transform: translateY(0);
}

.kvnintei {
  position: absolute;
  z-index: 1;
  top: 2%;
  right: 1.2%;
}

.kvnintei li {
  margin-bottom: 1em;
}


/*section*/
section h2 {
  text-align: center;
  font-size: clamp(28px, 3vw, 37px);
  color: var(--font-color);
  display: flex;
  justify-content: center;
  flex-direction: column;
  font-family: var(--yugo-b);
  font-weight: 500;
}

section h2 span {
  display: block;
  font-size: clamp(20px, 2vw, 22px);
  text-align: center;
  margin: auto;
  margin-bottom: 10px;
  font-family: var(--yugo-b);
  font-weight: 500;
}

section .dotlist li {
  position: relative;
  padding-left: 12px;
  line-height: 1.6;
  margin-bottom: 10px;
}

section .dotlist li::before {
  content: "";
  width: 3px;
  height: 3px;
  border: 1px solid var(--font-color);
  background-color: var(--font-color);
  border-radius: 100px;
  position: absolute;
  left: 0;
  top: 17px;
  font-size: var(--fs-12px);
  line-height: 1.6;

}

/* footer */
footer {
  background: var(--primary-color);
  color: var(--wt-color);
  text-align: center;
  padding: 20px 0 0;
}

footer .footernav ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .footernav ul li {
  border-right: 1px solid var(--wt-color);
  list-style: 2;
  font-size: clamp(10px, 1.5vw, 20px);
  font-family: var(--yugo-b);
  font-weight: 500;
}

footer .footernav ul li:last-child {
  border-right: none;
}

footer .footernav ul a {
  padding: 5px 40px;
  display: block;
  transition: ease .4s;
  opacity: 1;
}

footer .footernav ul a:hover {
  opacity: 0.5;
}

footer .footlogo {
  text-align: center;
  margin: 85px auto 25px;
  display: flex;
  justify-content: center;
}

footer .footercopy {
  display: flex;
  justify-content: center;
  gap: 1em;
}

footer .footercopy li {
  font-size: 12px;
}

footer .footercopy li .is_sp {
  display: none;
}

.is_pc {
  display: block;
}

.swiper-button-prev,
.swiper-button-next {
  display: none !important;

}

.floating {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0) + 0px);
  display: none;
  justify-content: center;
  transform: translateY(100%);
  transition: transform .35s ease, opacity .35s ease;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}




/*----------------------
contents
------------------------*/
.textbortder {
  border-bottom: 3px solid var(--primary-color);
}

.rechead3 {
  margin: auto;
  display: flex;
  justify-content: center;

}

/*philosophy*/
#philosophy {
  padding: 30px 0 90px;
  background-color: var(--secondary-color);
}

#philosophy h2 span {
  color: var(--primary-color);
}

#philosophy h2::before {
  content: '';
  background: url(../../assets/img/SVG/icon-ps.svg)no-repeat;
  display: block;
  width: 55px;
  height: 55px;
  text-align: center;
  margin: 0 auto 0px;
}


#philosophy h3 {
  font-size: clamp(30px, 3vw, 32px);
  text-align: center;
  letter-spacing: 0;
  margin-bottom: 20px;
  margin-top: 30px;
  padding: 0 10px;
}

#philosophy p {
  font-size: clamp(19px, 2vw, 22px);
  text-align: center;
  font-family: var(--yugo-b);
  font-weight: 500;
  margin-bottom: 40px;
  line-height: 1.7;

}

#philosophy .philobox {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 60px;
}

#philosophy .philobox dl {
  background-color: var(--primary-color);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  height: 283px;
  text-align: center;
  gap: 20px;
}

#philosophy .philobox dl dd h4 {
  color: var(--wt-color);
  font-size: clamp(10px, 1.5vw, 24px);

}

#philosophy .philobox dl dd h5 {
  color: var(--secondary-color);
  font-size: clamp(23px, 2.4vw, 26px);
  margin-top: 5px;
}


/*service*/
#service {
  padding: 0 0 100px;
}

#service .servicekv {
  background: url(../../assets/img/1.5x/bg-service@1.5x.png) no-repeat;
  background-size: cover;
  height: 422px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#service h2 {
  color: var(--wt-color);
}

#service h2 span {
  color: var(--secondary-color);
}

#service h2::before {
  content: '';
  background: url(../../assets/img/SVG/icon-service.svg)no-repeat;
  display: block;
  width: 53px;
  height: 39px;
  text-align: center;
  margin: 0 auto 10px;
}

#service h3 {
  font-size: clamp(30px, 3vw, 32px);
  text-align: center;
  letter-spacing: 0;
  margin-bottom: 30px;
  margin-top: 70px;
  padding: 0 10px 0px;
}

#service .rechead3+p {
  font-size: clamp(20px, 2vw, 22px);
  text-align: center;
  margin-bottom: 40px;
  font-family: var(--yugo-b);
  font-weight: 500;
}

#service .servicebox {
  padding: 0 60px;
}


#service .servicebox article h4 {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: clamp(24px, 2.2vw, 26px);

  text-align: center;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 20px;
}

#service .servicebox article ul {
  margin-bottom: 20px;
  padding-left: 10px;
}

#service .servicebox article ul li span {
  color: var(--primary-color);
}

#service .servicebox article ul li {
  font-size: clamp(19px, 2vw, 20px);
  line-height: 2.1;
}

/*group*/
#group {
  background-color: var(--secondary-color);
  padding: 80px 0 120px;
}

#group h2 span {
  color: var(--primary-color);
}

#group h2::before {
  content: '';
  background: url(../../assets/img/SVG/icon-group.svg)no-repeat;
  display: block;
  width: 44px;
  height: 44px;
  text-align: center;
  margin: 0 auto 5px;
}

#group .groupbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 0 60px
}

#group .midhead3,
#group .groupbox dl dt h3 {
  font-size: clamp(24px, 2.5vw, 27px);
  font-family: var(--yugo-b);
  font-weight: 500;
  text-align: center;
  margin: 20px 0;
}

#group .groupbox dl img {
  margin-bottom: 10px;
}

#group .groupbox dl dd {
  display: flex;
  align-items: center;
  flex-direction: column;
}

#group .groupbox dl dd p {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.4;
  letter-spacing: -0.032em;
}

#group .groupbox dl dd a {
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 5px 12px 12px;
  display: block;
  width: 182px;
  text-align: center;
  margin-top: 30px;
  transition: ease .4s;
  font-family: var(--yugo-b);
  font-weight: 500;
  border: 1px solid var(--primary-color);
}

#group .groupbox dl dd a:hover {
  border: 1px solid var(--primary-color);
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

#group .groupbox dl dd h3 {
  font-size: clamp(20px, 2vw, 22px);

  margin: 0 0 10px 0;

}

#group .midhead3 {
  margin: 70px 0 30px;
}

/*recruit*/
#recruit {
  padding-bottom: 90px;
}

#recruit .reckv {
  display: flex;
}

#recruit h2 {
  padding: 90px 0 60px;
}

#recruit h2::before {
  content: '';
  background: url(../../assets/img/SVG/icon-recruit.svg)no-repeat;
  display: block;
  width: 54px;
  height: 55px;
  text-align: center;
  margin: 0 auto 0px;
}



#recruit h3 {
  display: inline-block;
  font-size: clamp(30px, 3vw, 32px);
  padding: 0 10px;
  text-align: center;

  margin-bottom: 30px;
}

#recruit p {
  text-align: center;
  font-size: clamp(19px, 2vw, 21px);
  margin-bottom: 1em;
  line-height: 1.76;
}

#recruit dl.nintei {
  border: 3px solid var(--primary-color);
  border-radius: 10px;
  padding: 30px 10px 30px 30px;
  display: flex;
  gap: 1.5em;
  margin-top: 50px;
  align-items: center;

}

#recruit .nintei dd {
  font-size: clamp(18px, 2.5vw, 32px);
  letter-spacing: -0.032em;
  font-family: var(--yugo-b);
  font-weight: 500;
}

/*staff*/
#staff {
  padding: 80px 0 60px;
  background-color: #fff8dc;
}

#staff h2 {
  margin-bottom: 40px;
}

#staff h2 span {
  color: var(--bk-color);
}

#staff .staffbox {

  display: grid;
  grid-template-columns: 49% 1fr;
  gap: 3em;

}

#staff .staffbox p {
  font-size: clamp(15px, 1.6vw, 18px);
  padding-top: 5px;
  text-align: justify;

}

#staff .staffbox .stafftxt h3 {
  font-size: clamp(27px, 3vw, 34px);

  margin-bottom: 10px;
  margin-top: 0.5em;

}

#staff .staffbox .staffimg img+p {
  font-family: var(--yugo-b);
  font-weight: 500;
}

#staff .staffbox .stafftxt p {
  font-size: clamp(19px, 2vw, 21px);
  line-height: 1.8;
}

/*calture*/
#calture {
  padding: 100px 0 50px;
}

#calture h2 {
  margin-bottom: 30px;
}

#calture h2 span {
  color: var(--bk-color);
  font-family: var(--yugo-b);
  font-weight: 500;
  margin-top: 10px;
}

#calture .calturebox {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

#calture .calturebox dl {
  background-color: var(--primary-color);
  color: var(--wt-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 212px;
  justify-content: center;
}

#calture .calturebox dl dt {
  justify-content: center;
  padding: 20px 0 0;
  display: flex;
  margin: auto;
}

#calture .calturebox dl dd {
  height: 36%;
  padding: 0px;
  text-align: center;
  font-size: clamp(15px, 1.6vw, 22px);
  line-height: 1.3;
  font-family: var(--yugo-b);
  font-weight: 500;
}

#calture .calturebox dl dd small {
  font-size: clamp(14px, 1.6vw, 20px);
  line-height: 1;
  font-family: var(--yugo-m);
}

/*joblist*/
#joblist {
  padding: 40px 0 0px;
}

#joblist h2 {
  margin-bottom: 30px;
}

#joblist h2 span {
  margin-top: 5px;
}

#joblist span {
  color: var(--bk-color);
}

#joblist dl {
  font-size: 19px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 2em;
  padding: 20px 0;
  line-height: 1.4;
}

#joblist dl:nth-child(1) {
  border-top: 1px solid var(--border);
}

#joblist dl dt {
  color: var(--primary-color);
  font-family: var(--yugo-b);
  font-weight: 500;
  padding-left: 10px;
}

#joblist dl dd {
  font-feature-settings: "palt";
  letter-spacing: 0.08em;
}

#joblist .septext4 span {
  color: var(--primary-color);
}

#joblist .septext4 {
  justify-content: space-between;
  width: 4em;
  display: flex;
}


/*form*/
#form {
  padding: 100px 0 90px;
}

#form h2 {
  color: var(--primary-color);
  margin-bottom: 30px;

}

#form h2 span {
  color: var(--bk-color) !important;
  margin-top: 5px;
}

#form form dl {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 2em;
}

#form form dl:first-child {
  border-top: 1px solid var(--border);
}

#form form dl:last-child {
  border: none;
}

#form form dl dd {
  width: 70%;
}

#form form dl dt {
  font-family: var(--yugo-b);
  font-weight: 500;
}

#form form dl dd .namecol {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#form form dl dd .namecol .block {
  display: block;
  width: fit-content;
}

#form form dl dd .namecol label:last-child {
  margin-left: auto;
}

#form form dl dd label {
  display: flex;
}

#form form dl dd label span {
  font-size: clamp(10px, 1.1vw, 13px);
  width: 6em;
  display: block;
}

#form form input[type=text],
#form form input[type=email],
#form form dl.tel input[type=tel],
#form form dl dd input[type=date] {
  border: #898989 1px solid;
  padding: 10px;
  box-sizing: border-box;
  display: block;
}


#form input {
  font-size: 16px;
}

#form form dl dd .namecol input[type=text] {
  width: 180px;
}

#form form dl.bt input[type=text],
#form form dl.tel input[type=tel],
#form form dl dd input[type=date] {
  width: 100%;

}

#form form dl.inputemail dd>div {
  margin-bottom: 10px;
}

#form form dl.inputemail dd small {
  margin-bottom: 10px;
}

#form form dl.inputemail input[type=email] {
  width: 100%;
}

#form form dl.tel p {
  margin: 40px 0 10px;
  font-family: var(--yugo-b);
  font-weight: 500;
}

#form form dl strong {
  color: var(--primary-color);
  font-family: var(--yugo-b);

}

#form form small {
  font-size: 13px;

}

#form form button {
  background: var(--primary-color);
  padding: 10px;
  color: var(--wt-color);
  border: 1px solid var(--primary-color);
  margin: 0 0 40px 0;
  width: min(214px);
  position: relative;
  transition: ease .4s;
  font-family: var(--yugo-b);
  font-weight: 500;
  font-size: 15px;
}

#form form button:hover {
  border: 1px solid var(--primary-color);
  background: var(--wt-color);
  color: var(--primary-color);
}

#form form button:after {
  content: '';
  background: url(../../assets/img/SVG/icon-arrow.svg) no-repeat 0 0;
  background-size: cover;
  display: block;
  width: 8px;
  height: 14px;
  position: absolute;
  right: 20px;
  top: 0;
  bottom: 0;
  margin: auto;
}

#form form dl.inputemail dd small.kakunin {
  margin-bottom: 0;
}


/*************************/
.error {
  display: none;
  color: #c0392b;
}

.note {
  display: block;
  margin-top: .4rem;
  font-size: .85rem;
  color: #666;
}

/* 送信前は一切エラーを見せない */
form:not(.submitted) input {}

/* 送信後のみ、invalidを可視化 */
form.submitted input:invalid {
  border-color: #f00;
  background-color: #ffe3eb;
}

form.submitted input:valid {

  background-color: #ffffff;
}

/* 送信後のみ、該当フィールド直後の .error を表示 */
form.submitted input:invalid+.error {
  display: block;
}

/* 送信後、未クリアのエラーがある間はボタンを視覚的に無効風に */
form.submitted:has(input:invalid) button[type="submit"] {
  opacity: .6;
  pointer-events: none;
}

/*************************/


/*cta*/
#cta {
  padding: 80px 0;
  background-color: var(--secondary-color);
  text-align: center;

}

#cta h2 {
  position: relative;
  text-align: center;
  margin: auto;
}

#cta h2::before {
  content: '';
  background: url(../../assets/img/SVG/icon-contact.svg)no-repeat;
  display: block;
  height: 63px;
  width: 63px;
  text-align: center;
  margin: 0 auto 10px;
}

#cta h3 {
  font-size: clamp(20px, 2.8vw, 32px);
  margin: 30px 0 30px;
}

#cta dl {
  border: 8px solid var(--bk-color);
  max-width: 726px;
  margin: 10px auto;
  padding: 14px;
}

#cta dl dt {
  font-size: clamp(19px, 2vw, 22px);
  font-family: var(--yugo-b);
  font-weight: 500;
  line-height: 1;

}

#cta dl dd {
  font-size: clamp(19px, 2vw, 22px);
  font-family: var(--yugo-b);
  font-weight: 500;
  line-height: 1.2;
}

.tellink a {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: 1;
  margin: 5px 0 0;
}

#cta dl dd a span {
  font-size: clamp(33px, 5vw, 57px);
  font-family: var(--yugo-b);
  font-weight: 500;
  position: relative;
  margin-left: 0.1em;


}

/*corporate*/
#corporate {
  padding: 80px 0 80px;
  max-width: 1050px;
  margin: auto;
}

#corporate h2 {
  position: relative;
  text-align: center;
  margin: auto;
}

#corporate h2::before {
  content: '';
  background: url(../../assets/img/SVG/icon-cp.svg)no-repeat;
  display: block;
  height: 69px;
  width: 69px;
  text-align: center;
  margin: 0 auto 10px;
}

#corporate .greeting {
  margin: 90px auto;

}

#corporate .greeting .greetingbox {
  display: grid;
  grid-template-columns: 1fr 38%;
  gap: 55px;
  margin: 50px 0;
}

#corporate .greeting h3 {
  font-size: clamp(20px, 3vw, 37px);
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;


}

#corporate .greeting h3 b {
  margin-right: 0.5em;
  font-weight: 500;
}

#corporate .greeting h3 span {
  font-size: clamp(20px, 1.6vw, 22px);
}

#corporate .greeting h4 {
  font-size: clamp(27px, 3vw, 32px);

  margin-bottom: 20px;

}

#corporate .greeting p {
  font-size: clamp(19px, 2vw, 21px);
  line-height: 1.95;
  text-align: justify;
}

#corporate .greetingimg picture:last-child {
  margin-top: 1em;
}

#corporate .cpinfo {}

#corporate .cpinfo dl {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 1em;
  font-size: 19px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 25px;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 25px;
  letter-spacing: 0.4px;

}

#corporate .cpinfo dl:last-child {
  border: none;
}

#corporate .cpinfo dl dt {
  font-family: var(--yugo-b);
  font-weight: 500;
}

#corporate .septext {
  width: 3em;
  display: flex;
  justify-content: space-between;
}

#corporate .cpinfo dl dd .telfaxlist {
  display: flex;
  gap: 1em;
}


#joblist .maplink.is_pc {
  display: inline-block;
}

.maplink {
  display: inline-block;
  border: var(--maplink) solid 1px;
  color: var(--maplink);
  font-size: clamp(10px, 1.2vw, 13px);
  padding: 3px 6px;
  top: -2px;
  position: relative;
  margin-left: 1.3em;
  transition: ease .5s;
  text-align: center;
  letter-spacing: 0.08em;
  font-family: var(--yugo-b);
  font-weight: 500;
  line-height: 1;
}

.maplink:hover {
  background: var(--bk-color);
  color: var(--wt-color);
}

.is_sp {
  display: none;
}

.is_pc {
  display: inherit;
}





@media (max-width: 768px) {
  body {}

  section h2 span {
    margin-top: 0px;
  }

  header {
    background-color: var(--secondary-color);

  }

  header .logo {
    padding: 18px;
  }


  .container {
    width: 100%;
    padding: 0 30px;
  }

  .is_sp {
    display: inline;
  }

  .is_pc {
    display: none;
  }

  .nav {
    pointer-events: none;
  }

  .nav-inner a {
    display: block;
    color: var(--wt-color);
  }

  header .headerbar h1 {
    line-height: 1.5;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: block !important;
    color: var(--wt-color) !important;

  }

  .swiper-button-prev:after,
  .swiper-button-next:after {
    font-size: 20px !important;
  }

  .btn-resv {
    display: block;
    margin: auto;
    width: 210px;
    padding: 12px;
  }

  /*footer*/
  footer {
    padding: 20px 0 0;
  }

  footer .footlogo {
    margin: 30px;
  }

  footer .footlogo img {
    width: 225px;
  }

  footer .footernav {
    display: none;
  }

  footer .footercopy {
    flex-direction: column;
    gap: 5px;
  }

  footer .footercopy li {
    font-size: 14px;
  }

  /*kv*/
  .kvnintei {
    display: none;
  }

  .catcp li:first-child img {
    width: 253px;
  }

  section h2 {
    font-size: 33px;
  }


  /*#philosophy*/
  #philosophy {
    padding: 20px 0 70px;

  }

  #philosophy .rechead3 {
    justify-content: start;
  }

  #philosophy .container {
    padding-right: 40px;
    padding-left: 40px;
  }

  #philosophy h2::before {
    margin-bottom: 0;
    left: 3px;
    position: relative;
  }

  #philosophy h2 span {
    color: var(--primary-color);
    margin-top: 0;
  }

  #philosophy h3 {
    border: none;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.4;
    padding: 0;
    font-feature-settings: "palt";
    letter-spacing: -0.03em;
  }

  #philosophy .philobox {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 15px;
  }

  #philosophy p {
    text-align: justify;
    line-height: 1.73;

    margin-bottom: 20px;
    font-feature-settings: "palt";
    letter-spacing: 0.06em;
  }

  #philosophy .philobox dl {
    height: auto;
    padding: 20px 0 10px;
    gap: 10px;
  }

  #philosophy .philobox dl dd {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }


  #philosophy .philobox dl dd h4 {
    font-size: 21px;
  }

  #philosophy .philobox dl dd h5 {
    margin-top: 0;

  }

  /*#service*/
  #service {
    padding: 0 0 20px;
  }

  #service .container {
    padding-right: 20px;
    padding-left: 20px;

  }

  .servicehead {
    padding-right: 20px;
    padding-left: 20px;
  }

  #service .servicekv {
    background: url(../../assets/img/1.5x/bg-service-sp@1.5x.png) no-repeat 0;
    height: 340px;
    background-size: cover;
  }



  #service h2::before {
    margin-bottom: 5px;
  }

  #service .rechead3 {
    justify-content: start;
  }

  #service h3 {
    border: none;
    text-align: left;
    font-size: 32px;
    padding: 40px 0 10px;
    margin: 0;
    line-height: 1.3;
  }

  #service .rechead3+p {
    text-align: left;
    margin-bottom: 20px;
    font-family: var(--yugo-m);
  }

  #service .servicebox {
    padding: 0;
  }

  #service .servicebox article ul {
    padding: 0 10px;
  }

  #service .servicebox article ul li {
    line-height: 1.47;
    margin-bottom: 1em;
    ;
  }

  #service .servicebox article h4 {
    margin-bottom: 10px;
  }

  /*#group*/
  #group {
    padding: 60px 0 80px;
  }

  #group h2 span {
    color: var(--primary-color);
    letter-spacing: 0.1em;
    padding-top: 0;
    margin-top: 0;
  }

  #group .groupbox {
    padding: 0;
  }

  #group .groupbox dl dd h3 {
    color: var(--primary-color);
  }

  #group .groupbox dl dd p {
    font-feature-settings: normal;
  }

  /*recruit*/
  #recruit {
    padding: 0px 0 10px;
  }

  #recruit h2 {
    padding: 40px 0 10px;
  }

  #recruit h2 span {}

  #recruit .reckv li:nth-child(2) {
    display: none;
  }

  #recruit h3 {
    border: none;
    margin-bottom: 20px;
    padding: 0;
  }

  #recruit dl.nintei {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    margin-top: 20px;
  }

  #recruit .nintei dd {
    line-height: 1.6;
    text-align: justify;
  }

  #recruit p {
    text-align: justify;
    margin-bottom: 30px;
  }


  /*staff*/
  #staff {
    background-color: transparent;
    padding: 40px 0;
  }

  #staff h2 {
    margin-bottom: 10px;
  }


  #staff .staffbox {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #staff .staffimg p {
    text-align: center;
    font-family: var(--yugo-b);
    font-weight: 500;
  }

  #staff h2 span {
    margin-top: 0;
  }

  #staff .staffbox .stafftxt h3 {
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    display: block;
    padding: 5px;
    line-height: 1.3;
    margin: 5px 0;
  }

  #staff .staffbox .stafftxt p {
    line-height: 1.78;
    font-weight: 400;
  }

  /*#calture*/
  #calture {
    padding: 0;
  }

  #calture h2 {
    margin-bottom: 10px;
  }

  #calture h2 span {
    margin-top: 0;
  }

  #calture .calturebox {
    gap: 10px;
  }

  #calture .calturebox dl {
    height: 130px;
    padding: 10px 0 5px;
    gap: 5px;

  }


  #calture .calturebox dl:nth-child(1) img {
    width: 50px;
  }

  #calture .calturebox dl:nth-child(2) img {
    width: 41px;
  }

  #calture .calturebox dl:nth-child(3) img {
    width: 63px;
  }

  #calture .calturebox dl:nth-child(4) img {
    width: 37px;
  }

  #calture .calturebox dl:nth-child(5) img {
    width: 59px;
  }


  #calture .calturebox dl:nth-child(6) img {
    width: 50px;
  }

  #calture .calturebox dl:nth-child(7) img {
    width: 52px;
  }

  #calture .calturebox dl:nth-child(8) img {
    width: 49px;
  }

  #calture .calturebox dl:nth-child(9) img {
    width: 50px;
  }

  #calture .calturebox dl:nth-child(10) img {
    width: 54px;
  }

  /*#joblist*/

  #joblist {
    padding: 50px 0 10px;
  }

  #joblist h2 {
    margin-top: 0;
    margin-bottom: 20px;
  }

  #joblist h2 span {
    margin-top: 0;
    line-height: 1;
  }

  #joblist dl {
    grid-template-columns: 1fr;
    border-bottom: none;
    gap: 10px;
  }



  #joblist span {
    margin: 0;
  }

  #joblist dl:nth-child(1) {
    border: none;
  }

  #joblist dl dt {
    color: var(--primary-color);
    font-family: var(--yugo-b);
    font-weight: 500;
    padding-left: 5px;
    border-bottom: 1px solid;
    padding-bottom: 1px;
  }

  #joblist dl dd {
    padding-left: 5px;
    text-align: justify;
  }

  #joblist .maplink {
    font-size: 13px;
    top: -3px;
    margin-left: 0.5em;
    line-height: 1;
    padding: 4px 7px 2px;
  }

  #joblist .maplink.is_pc {
    display: none;
  }

  .is_sp.maplink {
    display: inline-block;
    border: var(--maplink) solid 1px;
    color: var(--maplink);
    font-size: clamp(10px, 1.2vw, 13px);
    padding: 0px 6px;
    top: -2px;
    position: relative;
    margin-left: 1.4em;
    transition: ease .5s;
    text-align: center;
    letter-spacing: 0.08em;
  }

  .is_pc.maplink {
    display: none;
  }

  /*#group*/
  #group .groupbox {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #group .midhead3 {
    margin: 40px 0 20px;
  }

  /*#calture*/
  #calture .calturebox {
    grid-template-columns: 1fr 1fr;
  }

  /*#cta*/
  #cta {
    padding: 50px 0 40px;
  }

  #cta dl {
    margin: 10px 30px;
  }

  .tellink a img {
    width: 20px;
  }



  #cta h2 {
    font-size: 37px;
  }

  #cta h2 span {
    font-size: 22px;
  }

  #cta h3 {
    line-height: 1;
    margin: 20px 0 20px;
  }

  /*#corporate*/
  #corporate {
    padding: 70px 0 20px;
  }

  #corporate h2::before {
    width: 61px;
    height: 62px;
  }

  #corporate .cpinfo dl {
    grid-template-columns: 1fr;
    border: none;
    padding: 0;
    gap: 0;
  }

  #corporate .cpinfo dl dd .telfaxlist {
    flex-direction: column;
    gap: 1px;
  }

  #corporate .cpinfo dl dt {
    border-bottom: 1px solid var(--border);
    margin-bottom: 5px;
    padding-bottom: 5px;
  }

  #corporate .maplink {
    display: none;
  }

  #corporate .greeting h3 b {
    display: none;
  }

  #corporate .greeting h3 {
    border-bottom: none;
    padding-left: 5px;
  }

  #corporate .greeting .greetingbox {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 10px 0 90px;
    padding: 0;
  }

  #corporate .greeting {
    margin: 40px auto;
  }

  #corporate .greeting h4 {
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    display: block;
    padding: 5px;
    line-height: 1.3;

  }

  #corporate .greeting .greetingtext h4 {
    display: none;
  }



  /*form*/
  #form h2 {

    margin-bottom: 0px;
  }

  #form h2 span {
    margin-top: 0;
  }

  #form {
    padding: 30px 0 0;
  }

  #form form dl:first-child {
    border: none;
  }

  #form .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  #form form dl {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0 0;
  }

  #form form dl dd {
    width: 100%;
  }

  #form form dl dd .namecol label:last-child {
    margin-left: 0;

  }

  #form form dl dd .namecol .block,
  #form form dl dd .namecol input[type=text] {
    width: 100%;
  }

  #form form dl dd .namecol {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #form form button {

    padding: 10px 15px;
    margin: 20px auto 30px;
    width: 236px;
    font-size: 16px;
    font-family: var(--yugo-b);
    font-weight: 500;
    letter-spacing: 0.05em;
    display: block;
  }

  #form form dl.tel p {
    margin: 30px 0 10px;
    font-family: var(--yugo-b);
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.04em;
  }

  #form form dl {
    border: none;
  }

  #form form dl dt {
    font-family: var(--yugo-b);
    font-weight: 500;
    background: #fff8dc;
    margin: 0 calc(50% - 50vw);
    padding: 10px 20px;
    font-size: 18px;
    border-top: 1px solid var(--bk-color);
    border-bottom: 1px solid var(--bk-color);
  }

  #form form dl.inputemail dd small.kakunin {
    font-size: 17px;
  }

  #form form input[type=text],
  #form form input[type=email],
  #form form input[type=date],
  #form form input[type=tel] {
    border: #b0b0b0 1px solid;
    padding: 12px;
    box-sizing: border-box;
    display: block;
    background-color: #f2f2f3;
  }

  #form form input[type=text]:focus,
  #form form input[type=email]:focus,
  #form form input[type=date]:focus,
  #form form input[type=tel] :focus {
    background-color: #fff;
  }

  #form form dl dd label span {
    font-size: 15px;
    width: 3em;
    display: block;
  }
}

@media (768px < width < 1050px) {
  header .logo img {
    width: 180px;
  }

  nav .nav-inner ul li {
    padding: 0 10px;
  }

  /*footer*/
  footer .footernav ul li a {
    padding: 0 10px;
  }

  #form form dl dd {
    width: 100%;
  }

  #form form dl dd .namecol {
    gap: 1em;
  }

  #form form dl dd label {
    width: 100%;
  }

  #form form dl dd .namecol input[type=text] {
    width: 100%;
  }

  #form form dl dd .namecol .block {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .nav-inner {
    width: 100%;
  }

  #form form dl dd input[type="date"] {
    width: fit-content;
    vertical-align: middle;
    padding: 10px;
    line-height: 2em;
    color: var(--bk-color);

  }
}

@media (max-width: 360px) {
  .container {
    width: 100%;
    padding: 0 15px;
  }
}