/* ----------------------------------------------
共通
----------------------------------------------- */

:root {
  --primaryColor: #2a4297;
  --font-EN: "Raleway", sans-serif;
}

/* ----------------------------------------------
トップページ
----------------------------------------------- */

/* - hero
----------------------------------------------- */

.p-topHero {
  position: relative;
  width: 100%;
  height: 100dvh;
}

.p-topHero__slideItem {
  width: 100%;
  height: 100dvh;
}

.p-topHero__slideItem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-topHero__copy {
  position: absolute;
  width: 90%;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  color: #fff;
  font-size: clamp(1.75rem, 2.545vw, 3rem);
  font-weight: 600;
  text-shadow: 0px 0px 5px rgba(74, 63, 53, 1);
}

/* - about
----------------------------------------------- */

.p-topAbout {
  position: relative;
  width: 100%;
  height: 100dvh;
  background-image: url(../img/about-bg.webp);
  background-position: center;
  background-size: cover;
}

.p-topAbout__textBox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.p-topAbout__heading {
  margin-bottom: 100px;
}

.p-topAbout__text {
  text-align: center;
  line-height: 3.85;
}

@media screen and (max-width: 767px) {
  .p-topAbout__heading {
    margin-bottom: 40px;
  }

  .p-topAbout__text {
    text-align: justify;
    line-height: 1.75;
  }
}

/* - service
----------------------------------------------- */

.p-topService__heading {
  margin-top: 100px;
  margin-bottom: 50px;
}

.p-topService__text {
  text-align: center;
}

.p-topService__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  margin-top: 65px;
  margin-bottom: 100px;
}

.p-topService__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 32px 8px;
}

.p-topService__item::before,
.p-topService__item::after {
  content: "";
  position: absolute;
  top: 0;
  background-image: radial-gradient(
    circle,
    var(--primaryColor) 1px,
    transparent 1px
  );
}

.p-topService__item::before {
  left: 0;
  width: 100%;
  height: 3px;
  background-size: 7px 3px;
  background-repeat: repeat-x;
}

.p-topService__item::after {
  right: 0;
  width: 3px;
  height: 100%;
  background-size: 3px 7px;
  background-repeat: repeat-y;
}

.p-topService__item:empty {
  background-image: url(../img/logo-mark.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: min(90%, 70px);
}

.p-topService__img {
  width: min(90%, 130px);
  aspect-ratio: 1/1;
}

.p-topService__name {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  height: 3.2em;
}

@media screen and (min-width: 768px) {
  .p-topService__item:nth-child(-n + 4)::before {
    display: none;
  }

  .p-topService__item:nth-child(4n)::after {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .p-topService__heading {
    margin-top: 80px;
    margin-bottom: 20px;
  }

  .p-topService__text {
    text-align: justify;
  }

  .p-topService__list {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .p-topService__item {
    padding: 8px;
  }
  .p-topService__item:nth-child(-n + 2)::before {
    display: none;
  }

  .p-topService__item:nth-child(2n)::after {
    display: none;
  }

  .p-topService__item:empty {
    display: none;
  }

  .p-topService__img {
    width: min(90%, 100px);
  }

  .p-topService__name {
    font-size: 0.875rem;
  }
}

/* - imageBox
----------------------------------------------- */

.p-topImageBox {
  display: grid;
  gap: 2.18vw;
  grid-template-columns: repeat(3, 1fr);

  margin-top: 160px;
  margin-bottom: 60px;
}

.p-topImageBox__item {
  width: 100%;
  aspect-ratio: 3/2;
}

.p-topImageBox__item {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media screen and (max-width: 767px) {
  .p-topImageBox {
    margin-top: 80px;
    margin-bottom: 40px;

    grid-template-columns: 1fr;
  }
}

/* - EC
----------------------------------------------- */

.p-topEC__heading {
  margin: 140px 0;
}

@media screen and (max-width: 767px) {
  .p-topEC__heading {
    margin-top: 80px;
    margin-bottom: 40px;
  }
}

/* - company
----------------------------------------------- */

.p-topCompany__heading {
  margin-top: 100px;
  margin-bottom: 50px;
}

.p-topCompany__list {
  width: min(400px, 100%);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-topCompany__item {
  display: flex;
  gap: 8px;
}

.p-topCompany__item dt {
  width: 100px;
  font-weight: 500;
}

.p-topCompany__item dd {
  width: calc(100% - 108px);
}

.p-topCompany__item dd > a {
  -webkit-transition: ease 0.4s;
  transition: ease 0.4s;
}

.p-topCompany__item dd > a span.-instagram {
  position: relative;
  padding-left: 18px;
}

.p-topCompany__item dd > a span.-instagram::before {
  position: absolute;
  content: "";
  width: 15px;
  height: 15px;
  top: calc(50% + 2px);
  left: 0;
  transform: translateY(-50%);
  background-image: url(../img/insta.svg);
  background-position: center;
  background-repeat: no-repeat;
}

.p-topCompany__map {
  width: 100%;
  aspect-ratio: 95/30;
  margin-top: 80px;
}

.p-topCompany__map iframe {
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 768px) {
  .p-topCompany__item dd > a:hover {
    opacity: 0.6;
  }
}

@media screen and (max-width: 767px) {
  .p-topCompany__heading {
    margin-top: 80px;
    margin-bottom: 40px;
  }

  .p-topCompany__item dt {
    width: 80px;
  }

  .p-topCompany__item dd {
    width: calc(100% - 88px);
  }

  .p-topCompany__map {
    min-height: 250px;
    margin-top: 40px;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
  }
}

/* - contact
----------------------------------------------- */

.p-topContact__heading {
  margin-top: 140px;
  margin-bottom: 140px;
}

/* フォーム */
.p-contactForm__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.p-contactForm__item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.p-contactForm__item label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 8em;
  pointer-events: none;
}

.p-contactForm__item:last-child label {
  justify-content: flex-start;
}

.p-contactForm__item label span.-must {
  width: fit-content;
  color: #fff;
  background-color: var(--primaryColor);
  padding: 2px 4px;
}

.p-contactForm__item p.-err {
  width: calc(100% - (8em + 16px));
  margin-left: auto;
  color: red;
}

.p-contactForm__item input,
.p-contactForm__item textarea {
  width: calc(100% - (8em + 16px));
  border: 1px solid #696969;
  padding: 20px;
}

.p-contactForm__privacy {
  margin-top: 80px;
}

.p-contactForm__privacy--textBox {
  margin-top: 8px;
  font-size: 14px;
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #696969;
  padding: 20px;
}

.p-contactForm__recaptcha--textBox{
  font-size: 14px;
  text-align: center;
  padding: 20px;
  width: 100%;
  background-color: rgb(42, 66, 151, 0.1);
  margin-top: 40px;
}

.p-contactForm__recaptcha--textBox > a{
  text-decoration: underline;
}

/* recaptcha 非表示 */
.grecaptcha-badge { visibility: hidden; }

.p-contactForm__btnWrap {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.p-contactForm__btnWrap.-flex{
  flex-direction: row;
}

.p-contactForm__btnWrap > .c-btn {
  margin: unset;
}

.p-contactForm__text{
  font-size: 14px;
  text-align: center;
  width: 100%;
}


@media screen and (max-width: 767px) {
  .p-topContact__heading {
    margin-top: 80px;
    margin-bottom: 40px;
  }

  .p-contactForm__list {
    gap: 20px;
  }

  .p-contactForm__item {
    display: flex;
    flex-direction: column;
    gap: 8px 16px;
  }

  .p-contactForm__item label {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
  }

  .p-contactForm__item label span.-must {
    font-size: 0.75rem;
  }

  .p-contactForm__item p.-err {
    width: 100%;
  }

  .p-contactForm__item input,
  .p-contactForm__item textarea {
    width: 100%;
    padding: 8px;
  }

  .p-contactForm__privacy {
    margin-top: 40px;
  }

  .p-contactForm__privacy--textBox {
    padding: 16px;
  }

  .p-contactForm__btnWrap {
    margin-top: 40px;
  }
}

/* - 下層 contact
----------------------------------------------- */

.p-contact {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding-inline: 20px;
}

.p-contact__heading {
  margin-top: 180px;
  margin-bottom: 80px;
}

/* 確認画面 */
.p-contact__confText {
  text-align: center;
  padding: 20px;
  margin-bottom: 40px;
  background-color: rgb(42, 66, 151, 0.1);
}

.p-contactForm__confList {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.p-contactForm__confList label {
  color: var(--primaryColor);
  font-weight: 600;
}

.p-contacForm__confAnswer {
  width: calc(100% - (8em + 16px));
}

@media screen and (max-width: 767px) {
  .p-contact__heading {
    margin-top: 120px;
    margin-bottom: 40px;
  }

  .p-contactForm__confList {
    gap: 20px;
  }

  .p-contacForm__confAnswer {
    width: 100%;
  }
}

/* 完了画面 */
.p-contact__compText {
  text-align: center;
}

@media screen and (max-width: 767px) {
  .p-contact__compText {
    text-align: justify;
  }
}

/* - 下層 equipment
----------------------------------------------- */
.p-equipment__heading {
  margin-top: 180px;
  margin-bottom: 140px;
}

.p-equipmentBlock__title {
  color: var(--primaryColor);
  font-size: 1.625rem;
  font-family: var(--font-EN);
  font-weight: 800;
  letter-spacing: 0.15em;
  border-bottom: 1px solid var(--primaryColor);
  margin-bottom: 40px;
}

.p-equipment__name {
  font-size: 1.125rem;
  font-weight: 800;
}

.p-equipment__caption {
  margin-top: 4px;
}

.p-equipment__text strong {
  color: var(--primaryColor);
}

.p-equipmentBlock + .p-equipmentBlock,
.p-equipment__grid + .p-equipment__grid {
  margin-top: 60px;
}

.p-equipment__img + .p-equipment__img {
  margin-top: 20px;
}

.p-equipment__grid {
  display: grid;
}

.p-equipment__grid.-grid01 {
  grid-template-columns: 42% 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "box01 box01"
    "box02 box03";
  gap: 20px 40px;
}

.p-equipment__grid.-grid02 {
  grid-template-columns: 42% 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "box02 box03";
  gap: 40px;
}

.p-equipment__grid.-grid03 {
  grid-template-columns: 1fr;
  grid-template-areas:
    "box02"
    "box03";
  gap: 40px;
}

.box01 {
  grid-area: box01;
}

.box02 {
  grid-area: box02;
}

.box03 {
  grid-area: box03;
}

.p-equipment__imgGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.p-equipment__imgGrid .p-equipment__img + .p-equipment__img {
  margin-top: 0;
}

@media screen and (max-width: 767px) {
  .p-equipment__heading {
    margin-top: 120px;
    margin-bottom: 60px;
  }

  .p-equipmentBlock__title {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }

  .p-equipment__name {
    font-size: 1rem;
  }

  .p-equipment__caption {
    font-size: 0.75rem;
  }

  .p-equipmentBlock + .p-equipmentBlock,
  .p-equipment__grid + .p-equipment__grid {
    margin-top: 40px;
  }

  .p-equipment__img + .p-equipment__img {
    margin-top: 16px;
  }

  .p-equipment__grid.-grid01,
  .p-equipment__grid.-grid02 {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 16px;
    grid-template-areas:
      "box01"
      "box02"
      "box03";
  }

  .p-equipment__grid.-grid01 {
    grid-template-areas:
      "box01"
      "box02"
      "box03";
  }

  .p-equipment__grid.-grid02 {
    grid-template-areas:
      "box02"
      "box03";
  }

  .p-equipment__grid.-grid03 {
    gap: 16px;
  }

  .p-equipment__imgGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }
}
