@charset "utf-8";

html {
  scroll-behavior: auto;
}

/* ==================================================
   TOP CONTACT
================================================== */

.top-contact {
  position: relative;
  width: 100%;
  padding: 3rem 0;
  background-color: #FFFFFF;
  isolation: isolate;
}

/* ==================================================
   CONTACT BACKGROUND
================================================== */

.top-contact__bg {
  position: absolute;
  z-index: 0;

  top: 0;
  left: 0;

  width: 100%;
  height: 720px;

  background-image: url("https://marinebase.jp/system_panel/uploads/images/contact-back.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;

  overflow: hidden;

  pointer-events: none;
}


/* 下側を白でくり抜く */
.top-contact__bg::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -130px;

  width: max(1800px, 160vw);
  height: 320px;

  background-color: #FFFFFF;

  border-radius: 50%;

  transform: translateX(-50%);
}


/* ==================================================
   TABLET
================================================== */

@media screen and (max-width: 1024px) {

  .top-contact__bg {
    height: 620px;

    background-size: auto 620px;
  }

  .top-contact__bg::after {
    bottom: -105px;

    width: 190vw;
    height: 190px;
  }

}


/* ==================================================
   SP
================================================== */

@media screen and (max-width: 768px) {

  .top-contact__bg {
    height: 460px;

    background-position: center top;
    background-size: auto 460px;
  }

  .top-contact__bg::after {
    bottom: -60px;

    width: 220vw;
    height: 110px;
  }

}

/* ==================================================
   INNER
================================================== */

.top-contact__inner {
  position: relative;
  z-index: 2;
}


/* ==================================================
   CARD
================================================== */

.top-contact__card {
  width: min(100%, 1024px);

  margin: 0 auto;
  padding: 54px 10% 62px;

  background-color: #FFFFFF;

  border: 2px solid var(--color-border);
  border-radius: 24px;
}


/* ==================================================
   HEAD
================================================== */

.top-contact .common-head {
  width: 100%;
}

.top-contact .common-head__jp {
  justify-content: flex-start;
}

.top-contact .common-head__en {
  color: var(--color-button);
}

.top-contact__lead {
  margin: 22px 0 0;

  color: var(--color-text);

  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
}


/* ==================================================
   FORM WRAP
================================================== */

.top-contact__form {
  width: 100%;

  margin-top: 42px;
}

.top-contact__form form,
.top-contact__form .formWrap {
  width: 100%;

  margin: 0;
  padding: 0;
}

.top-contact__form .container {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}


/* ==================================================
   FORM ROW
================================================== */

.top-contact__form .formRow {
  display: block !important;

  width: 100%;

  margin: 0 !important;
  padding: 0 0 22px !important;
}

.top-contact__form .formRow:last-child {
  padding-bottom: 0 !important;
}


/* ==================================================
   FORM TH
================================================== */

.top-contact__form .formTh {
  display: flex !important;
  align-items: center;

  gap: 6px;

  width: 100% !important;
  max-width: none !important;

  margin: 0 0 8px !important;
  padding: 0 !important;
}

.top-contact__form .formTh label {
  margin: 0;

  color: var(--color-text);

  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}


/* ==================================================
   REQUIRED
================================================== */

.top-contact__form .requiredText {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: auto !important;
  min-width: 26px;
  min-height: 17px;

  margin: 0 !important;
  padding: 2px 5px !important;

  color: #FFFFFF !important;
  background-color: #D90000;

  border-radius: 2px;

  font-size: 9px;
  font-weight: 500;
  line-height: 1;
}


/* ==================================================
   FORM TD
================================================== */

.top-contact__form .formTd {
  display: block !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}


/* ==================================================
   INPUT / SELECT / TEXTAREA
================================================== */

.top-contact__form input[type="text"],
.top-contact__form input[type="email"],
.top-contact__form select,
.top-contact__form textarea {
  box-sizing: border-box;

  width: 100% !important;

  margin: 0;

  color: var(--color-text);
  background-color: #F7F7F7;

  border: 1px solid #D5D5D5;
  border-radius: 4px;

  box-shadow: none;
  outline: none;

  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 400;

  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}


/* Input
---------------------------------------- */

.top-contact__form input[type="text"],
.top-contact__form input[type="email"],
.top-contact__form select {
  height: 44px;
  min-height: 44px;

  padding: 10px 13px;
}


/* Textarea
---------------------------------------- */

.top-contact__form textarea {
  display: block;

  min-height: 170px;

  padding: 13px 14px;

  resize: vertical;
}


/* Placeholder
---------------------------------------- */

.top-contact__form input::placeholder,
.top-contact__form textarea::placeholder {
  color: #AAAAAA;

  opacity: 1;
}


/* Focus
---------------------------------------- */

.top-contact__form input[type="text"]:focus,
.top-contact__form input[type="email"]:focus,
.top-contact__form select:focus,
.top-contact__form textarea:focus {
  background-color: #FFFFFF;

  border-color: var(--color-button);
}


/* ==================================================
   SELECT
================================================== */

.top-contact__form .checkArea {
  width: 100%;
}

.top-contact__form .checkArea > div {
  width: 100%;
}

.top-contact__form select {
  cursor: pointer;
}


/* ==================================================
   PRIVACY
================================================== */

.top-contact__form .formRow:has(.formCheck) {
  padding-top: 4px !important;
}

.top-contact__form .text-center {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  width: 100%;
}


/* Checkbox
---------------------------------------- */

.top-contact__form .formCheck {
  flex-shrink: 0;

  width: 16px;
  height: 16px;
  min-height: 0;

  margin: 0;
  padding: 0;

  cursor: pointer;
}


/* Privacy Label
---------------------------------------- */

.top-contact__form .privacyLabel {
  margin: 0;

  color: var(--color-text);

  font-family: var(--font-base);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;

  cursor: pointer;
}


/* ==================================================
   SUBMIT
================================================== */

.top-contact__form .formBtnTd {
  display: flex !important;
  justify-content: center;

  width: 100% !important;
  max-width: none !important;

  margin: 6px 0 0 !important;
  padding: 0 !important;
}


/* Button
---------------------------------------- */

.top-contact__form .formSend {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 220px;
  min-height: 48px;

  margin: 0 auto;
  padding: 12px 24px;

  color: #FFFFFF;
  background-color: var(--color-button);

  border: 1px solid var(--color-button);
  border-radius: 14px;

  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;

  cursor: pointer;

  transition:
    background-color var(--transition),
    border-color var(--transition),
    opacity var(--transition);
}

@media (hover: hover) {

  .top-contact__form .formSend:hover {
    color: #FFFFFF;
    background-color: var(--color-blue-dark);
    border-color: var(--color-blue-dark);

    opacity: 1;
  }

}


/* ==================================================
   TABLET
================================================== */

@media screen and (max-width: 1024px) {

  .top-contact {
    padding: 100px 0 110px;
  }

  .top-contact__bg {
    background-size: auto 650px;
  }

  .top-contact__card {
    width: min(100%, 800px);

    padding: 48px 52px 54px;
  }

}


/* ==================================================
   SP
================================================== */

@media screen and (max-width: 768px) {

  .top-contact {
    padding: 80px 0 90px;
  }


  /* Background
  ---------------------------------------- */

  .top-contact__bg {
    background-position: center top;
    background-size: auto 430px;
  }


  /* Card
  ---------------------------------------- */

  .top-contact__card {
    width: 100%;

    padding: 32px 20px 36px;

    border-width: 1px;
    border-radius: 18px;
  }


  /* Head
  ---------------------------------------- */

  .top-contact__lead {
    margin-top: 16px;

    font-size: 13px;
    line-height: 1.8;
  }

  .top-contact__lead br {
    display: none;
  }


  /* Form
  ---------------------------------------- */

  .top-contact__form {
    margin-top: 30px;
  }

  .top-contact__form .formRow {
    padding-bottom: 19px !important;
  }


  /* Label
  ---------------------------------------- */

  .top-contact__form .formTh {
    margin-bottom: 7px !important;
  }

  .top-contact__form .formTh label {
    font-size: 12px;
  }

  .top-contact__form .requiredText {
    min-width: 24px;

    font-size: 8px;
  }


  /* Input
  ---------------------------------------- */

  .top-contact__form input[type="text"],
  .top-contact__form input[type="email"],
  .top-contact__form select {
    height: 44px;
    min-height: 44px;

    padding: 10px 12px;

    font-size: 13px;
  }


  /* Textarea
  ---------------------------------------- */

  .top-contact__form textarea {
    min-height: 140px;

    padding: 12px;
  }


  /* Privacy
  ---------------------------------------- */

  .top-contact__form .text-center {
    align-items: flex-start;

    text-align: left;
  }

  .top-contact__form .privacyLabel {
    font-size: 10px;
  }


  /* Submit
  ---------------------------------------- */

  .top-contact__form .formBtnTd {
    margin-top: 4px !important;
  }

  .top-contact__form .formSend {
    width: min(100%, 220px);

    font-size: 12px;
  }

}


/* ==================================================
   SMALL SP
================================================== */

@media screen and (max-width: 480px) {

  .top-contact__card {
    padding: 28px 16px 32px;
  }

  .top-contact__form .formSend {
    width: 100%;
  }

}


/* ==================================================
   PRIVACY BOX
================================================== */

.top-contact__form .privacyBox {
  width: 100%;
  height: 140px;

  margin: 0;
  padding: 16px 18px;

  background-color: #F7F7F7;

  border: 1px solid #D5D5D5;
  border-radius: 4px;

  overflow-x: hidden;
  overflow-y: auto;

  box-sizing: border-box;

  scrollbar-width: thin;
  scrollbar-color: #BEBEBE transparent;
}


/* Text
---------------------------------------- */

.top-contact__form .privacyBox p {
  margin: 0;

  color: #666666;

  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
}

.top-contact__form .privacyBox p + p {
  margin-top: 14px;
}


/* Scrollbar
---------------------------------------- */

.top-contact__form .privacyBox::-webkit-scrollbar {
  width: 6px;
}

.top-contact__form .privacyBox::-webkit-scrollbar-track {
  background-color: transparent;
}

.top-contact__form .privacyBox::-webkit-scrollbar-thumb {
  background-color: #BEBEBE;
  border-radius: 10px;
}


/* ==================================================
   SP
================================================== */

@media screen and (max-width: 768px) {

  .top-contact__form .privacyBox {
    height: 120px;

    padding: 14px;
  }

  .top-contact__form .privacyBox p {
    font-size: 11px;
    line-height: 1.8;
  }

}





/* ==================================================
   FORM ERROR
================================================== */

.formError {
  margin-top: -40px !important;
  z-index: 990;
}

.formError .formErrorContent {
  z-index: 991;
}

.formError .formErrorArrow {
  z-index: 996;
}

.ui-dialog .formError {
  z-index: 5000;
}

.ui-dialog .formError .formErrorContent {
  z-index: 5001;
}

.ui-dialog .formError .formErrorArrow {
  z-index: 5006;
}

.inputContainer {
  position: relative;
  float: left;
}

.formError {
  position: absolute;

  top: 300px;
  left: 300px;

  display: block;

  cursor: pointer;
  text-align: left;
}

.formError.inline {
  position: relative;

  top: 0;
  left: 0;

  display: inline-block;
}

.ajaxSubmit {
  display: none;

  padding: 20px;

  background: #55ea55;

  border: 1px solid #999;
}

.formError .formErrorContent {
  position: relative;

  width: 100%;
  min-width: 120px;

  padding: 4px 10px;

  color: #FFFFFF;
  background: #ee0101;

  border: 2px solid #ddd;
  border-radius: 6px;

  box-shadow: 0 0 6px #000;

  font-size: 11px;
}

.formError.inline .formErrorContent {
  border: none;
  border-radius: 0;

  box-shadow: none;
}

.greenPopup .formErrorContent {
  background: #33be40;
}

.blackPopup .formErrorContent {
  color: #FFFFFF;

  background: #393939;
}

.formError .formErrorArrow {
  position: relative;

  width: 15px;

  margin: -2px 0 0 13px;
}

body[dir="rtl"] .formError .formErrorArrow,
body.rtl .formError .formErrorArrow {
  margin: -2px 13px 0 0;
}

.formError .formErrorArrowBottom {
  top: 2px;

  margin: 0 0 0 12px;

  box-shadow: none;
}

.formError .formErrorArrow div {
  display: block;

  height: 1px;

  margin: 0 auto;

  background: #ee0101;

  border-left: 2px solid #ddd;
  border-right: 2px solid #ddd;

  box-shadow: 0 2px 3px #444;

  font-size: 0;
  line-height: 0;
}

.formError .formErrorArrowBottom div {
  box-shadow: none;
}

.greenPopup .formErrorArrow div {
  background: #33be40;
}

.blackPopup .formErrorArrow div {
  color: #FFFFFF;

  background: #393939;
}

.formError .formErrorArrow .line10 {
  width: 13px;

  border: none;
}

.formError .formErrorArrow .line9,
.formError .formErrorArrow .line8 {
  width: 11px;
}

.formError .formErrorArrow .line9 {
  border: none;
}

.formError .formErrorArrow .line7 {
  width: 9px;
}

.formError .formErrorArrow .line6 {
  width: 7px;
}

.formError .formErrorArrow .line5 {
  width: 5px;
}

.formError .formErrorArrow .line4 {
  width: 3px;
}

.formError .formErrorArrow .line3 {
  width: 1px;

  border-left: 2px solid #ddd;
  border-right: 2px solid #ddd;
  border-bottom: 0 solid #ddd;
}

.formError .formErrorArrow .line2 {
  width: 3px;

  background: #ddd;

  border: none;
}

.formError .formErrorArrow .line1 {
  width: 1px;

  background: #ddd;

  border: none;
}


/* ==================================================
   THANKS PAGE
================================================== */

.thanks-page {
  width: 100%;

  padding: 70px 20px 120px;

  background-color: #FFFFFF;
}


/* ==================================================
   Inner
================================================== */

.thanks-page__inner {
  width: min(100%, 760px);

  margin: 0 auto;

  text-align: center;
}


/* ==================================================
   Mizuhiki
================================================== */

.thanks-page__mark {
  width: min(100%, 360px);

  margin: 0 auto 52px;
}

.thanks-page__mark img {
  display: block;

  width: 100%;
  height: auto;
}


/* ==================================================
   Title
================================================== */

.thanks-page__title {
  margin: 0;

  color: var(--color-text);

  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 400;

  line-height: 1.6;
  letter-spacing: 0.05em;
}


/* ==================================================
   Text
================================================== */

.thanks-page__text {
  margin-top: 30px;
}

.thanks-page__text p {
  margin: 0;

  color: var(--color-text);

  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 400;

  line-height: 1.9;
  letter-spacing: 0.04em;
}

.thanks-page__text p + p {
  margin-top: 18px;
}


/* ==================================================
   Button Wrap
================================================== */

.thanks-page__button-wrap {
  display: flex;
  justify-content: center;

  margin-top: 34px;
}


/* ==================================================
   Button
================================================== */

.thanks-page__button {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 220px;
  min-height: 54px;

  padding: 12px 20px;

  color: var(--color-text);
  background-color: #FFFFFF;

  border: 1px solid #8C8C8C;

  text-decoration: none;

  overflow: hidden;

  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.thanks-page__button::before {
  content: "";

  position: absolute;
  z-index: 0;

  inset: 0;

  background-color: var(--color-switch);

  transform: scaleX(0);
  transform-origin: left center;

  transition: transform 0.4s ease;
}

.thanks-page__button p {
  position: relative;
  z-index: 2;

  margin: 0;

  color: inherit;

  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 400;

  line-height: 1.4;
  letter-spacing: 0.04em;
}

.thanks-page__button:hover {
  color: var(--color-text);

  border-color: #404040;
}

.thanks-page__button:hover::before {
  transform: scaleX(1);
}


/* ==================================================
   Tablet
================================================== */

@media screen and (max-width: 1024px) {

  .thanks-page {
    padding-top: 60px;
    padding-bottom: 100px;
  }

}


/* ==================================================
   SP
================================================== */

@media screen and (max-width: 767px) {

  .thanks-page {
    padding:
      50px
      20px
      80px;
  }

  .thanks-page__mark {
    width: min(100%, 280px);

    margin-bottom: 36px;
  }

  .thanks-page__title {
    font-size: 24px;
  }

  .thanks-page__text {
    margin-top: 24px;
  }

  .thanks-page__text p {
    font-size: 14px;

    line-height: 1.8;
  }

  .thanks-page__button-wrap {
    margin-top: 30px;
  }

  .thanks-page__button {
    width: 200px;
    min-height: 50px;
  }

}


/* ==================================================
   Small SP
================================================== */

@media screen and (max-width: 480px) {

  .thanks-page__title {
    font-size: 22px;
  }

  .thanks-page__text p {
    font-size: 13px;
  }

  .thanks-page__text br {
    display: none;
  }

}