@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Shippori+Mincho&display=swap');

*, *::after, *::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  border: none;
  scroll-behavior: smooth;
}

body{
    font-size: 1rem;
    letter-spacing: 1.2px;
    font-family: "MFW-ShinGoPro-Regular";
    font-size: 18px;

    position: relative;
    line-height: 2;
}

p{
    font-size: 18px;
    line-height: 36px;
}

a{
    cursor: pointer;
    color: #000000;
}

img{
    width: 100%;
}

h2{
    font-family: "MFW-RyuminPro-ExHeavy";
    font-weight: 600;
}

h3{
    font-family: "MFW-ShinGoPro-DeBold", 'Noto Sans JP', sans-serif;
    font-weight: 600;
    line-height: 1.4;
}

main{
    z-index: 0;
}

.main-visual{
    background-image: url(/assets/images/top/black_gradient\ 17.46.56.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    width: 100%;
    height: 363px;
    display: flex;
    justify-content: center;
}

.main-visual-content{
    padding-top: 55px;
    padding-left: 6%;
    width: 100%;
    max-width: 1281px;
    margin: 0 auto;
    margin-top: 165px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #ffffff;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
}

.main-title{
    font-family: "MFW-ShinGoPro-DeBold", 'Noto Sans JP', sans-serif;
    font-weight: 600;
    font-size: 50px;
    line-height: 1.2;
    color: white;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.534);
}

.main-title > br{
    display: none;
}

#contact-main > .main-visual > .main-visual-content{
    background-image: url(/assets/images/forms/contact_mv.webp);
}

section{
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.obi{
    height: 66px;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 60px;
    margin-bottom: 32px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.obi-purple{
    background: linear-gradient(to right, #333333 0%, #333333 68%, #96005F 100%);
}

.obi-text h2{
    width: 100%;
    font-family: "MFW-RyuminPro-ExHeavy";
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    padding-left: 30px;
    color: white;
}

.contact-number-content{
    max-width: 1000px;
    margin: 0 auto;
}

.contact-number-wrapper{
    width: 70%;
    margin: 32px auto;
}

.contact-number-title{
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-number-title p{
  font-family: "MFW-ShinGoPro-DeBold", 'Noto Sans JP', sans-serif;
  font-size: 30px;
}

.contact-number-title img{
    width: 25px;
    object-fit: contain;
}

.contact-number{
    font-family: "MFW-ShinGoPro-DeBold", 'Noto Sans JP', sans-serif;
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.8;
    color: #746753;
    cursor: default;
}

.working-hours{
    color: #333333;
    font-size: 20px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.partner-link img{
    width: 70%;
    margin: 0 auto;
    object-fit: contain;
}

.contact-small-text{
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.contact-banner{
  max-width: 1000px;
  margin: -20px auto;
}

/* form css */

.inquiry-form {
  max-width: 1000px;
  margin: 32px auto;
  font-family: "MFW-ShinGoPro-Regular";
  font-size: 16px;
}

.inquiry-form table,
.confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.inquiry-form th,
.inquiry-form td,
.confirm-table th,
.confirm-table td {
  border: 1px solid #ABABAB;
  padding: 12px 30px ;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.5;
}

.inquiry-form th,
.confirm-table th {
  width: 18%;
  background-color: #EBE6DF;
  font-weight: normal;
  text-align: right;
  font-weight: bold;
  padding: 12px;
}

.inquiry-form td input[type="text"],
.inquiry-form td input[type="tel"],
.inquiry-form td input[type="url"],
.inquiry-form td input[type="email"]
{
  padding: 8px;
  box-sizing: border-box;
  border: solid 1px #ABABAB;
  width: 50%;
}

.inquiry-form td select{
  padding: 8px;
  box-sizing: border-box;
  border: solid 1px #ABABAB;
  width: 30%;
}

.inquiry-form td textarea {
  padding: 8px;
  box-sizing: border-box;
  border: solid 1px #ABABAB;
  width: 100%;
  height: 350px
}

.inquiry-form td.checkboxes {
  padding: 0;
  vertical-align: top;
}

.inquiry-form .checkboxes label {
  display: block;
  border-bottom: 1px solid #ccc;
  position: relative;
  padding-left: 60px;
  padding: 12px 0 12px 60px;
}

.checkboxes label:nth-child(4){
  border-bottom: 0;
}

.inquiry-form .checkboxes label:last-child {
  border-bottom: none;
  border-top: none; 
}

.inquiry-form .checkboxes input[type="checkbox"] {
  position: absolute;
  left: 30px;
  top: 14px;
  width: 20px;
  height: 20px;
}

.checkboxes .error-msg{
  margin-left: 30px;
}

.required {
  color: red;
  margin-left: 4px;
}

.note {
  font-size: 0.85em;
  color: #666;
}

.submit-area {
  text-align: center;
  margin-top: 40px;
}

.submit-btn,
.confirm-btn,
.edit-btn,
#final-submit-btn,
.partner-thanks-main .submit-btn {
  background-color: #333333;
  color: #fff;
  border: none;
  width: 270px;
  padding: 20px;
  font-size: 20px;
  cursor: pointer;
}

#final-submit-btn {
  background-color: #AE3535;
}

#final-submit-btn:hover,
.edit-btn:hover,
.submit-btn:hover {
  opacity: 0.8;
}

.privacy-info{
    margin: 32px auto;
    height: 431px;

    border: 1px solid #000000;
    overflow-y: scroll;
    background-color: #ededed;
}

.privacy-content{
    list-style: none;

    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding: 2rem;
}

.privacy-content li p{
  font-size: 16px;
  line-height: 1.8;
}

.privacy-title{
    font-size: 18px;
    font-family: "MFW-ShinGoPro-DeBold", 'Noto Sans JP', sans-serif;
}

.privacy-bold-text{
    font-family: "MFW-ShinGoPro-DeBold", 'Noto Sans JP', sans-serif;
}

.privacy-agree{
    text-align: center;
}

.checkbox{
  text-align: center;
}

.agree-container {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 14px;
}

/* Hide the browser's default checkbox */
.agree-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.agree-container input[type="checkbox"] {
  position: absolute;
  left: 30px;
  top: 14px;
  width: 20px;
  height: 20px;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 21px;
  width: 21px;
  background-color: #ffffff;
  border: 1px solid #CBC8C4;
}

/* On mouse-over, add a grey background color */
.agree-container:hover input ~ .checkmark {
  border: 1px solid #CBC8C4;
  background-color: #ffffff;
}

/* When the checkbox is checked, add a black background */
.agree-container input:checked ~ .checkmark {
  border: 1px solid #333333;
  background-color: #333333;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.agree-container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.agree-container .checkmark:after {
  left: 7.5px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.agree-check{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.error-msg{
    display: none;
    font-size: 12px;
    color: #DC000B;
}

.privacy-text{
    color: #656565;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 300;
}

.privacy-link{
    color: rgb(0, 89, 255);
}

.btns{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

#thanks-section .ryumin-title{
  font-size: 40px;
  text-align: center;
  margin: 60px auto 20px auto;
}

.partner-main .section-para:nth-child(1){
  text-align: center;
  margin: 60px auto 0 auto;
}

.partner-main .contact-small-text{
  font-size: 16px;
}

#thanks-section .section-para{
  font-size: 19px;
}

.file-table{
  width: 90%;
  max-width: 1000px;
  margin: 29px auto;

  border: 1px solid #444444;
}

.row-head{
  background-color: #EBE6DF;
}

.row-head .col p{
  text-align: center;
}

.row, .row-head{
    display: grid;
    grid-template-columns: 1fr 150px;
    border-bottom: 1px solid #444444;
}

.row p, .row-head p{
  padding: 1rem;
}

.row:nth-last-child(1){
  border-bottom: 0;
}

.col{
  border-right: 1px solid #444444;
}

.small-col{
  display: flex;
  align-items: center;
  justify-content: center;
}

.small-col a{
  width: 80%;
  height: 55%;
  padding: 10px;
  margin: 1rem;
  color: white;
  font-size: 14px;
  background-color: #333333;

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

.back-link{
  color: #746753;
  text-align: center;

  display: flex;
  justify-content: center;
}

.error-main{
  height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.error-wrapper{
  max-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding-top: 8%;
}

.error-img{
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  object-fit: contain;
}

.error-main > .error-wrapper > .back-link{
  color: #0087FF;
  text-align: center;
}

.error-main > .error-wrapper > .section-para,
#thanks-section .section-para{
  text-align: center;
}

@media (min-width: 1600px){
  .error-main{
    height: 75vh;
  }

  .error-wrapper{
    padding-top: 7%;
  }
}

@media(max-width: 840px) {

  .pc-mv {
        display: none;
    }

    .sp-mv {
        display: block;
    }

    .main-visual{
        height: 238px;
        margin-top: 72px;
        background-position: bottom;
    }

    .main-title{
      font-size: 30px;
    }

    #contact-main > .main-visual{
        background-image: url(/assets/images/forms/contact_sp_mv.webp);
    }

    #contact-main > .main-visual > .main-visual-content{
      background-image: none;
    }

    .main-visual-content{
        margin-top: 70px;
        padding-top: 0;
        background-image: none;
        gap: 0;
    } 

  .contact-number-wrapper{
    width: 100%;
    margin: 32px auto;
  }

  .contact-number{
    font-size: 7vw;
  }

  .contact-number-title p{
    font-size: 20px;
  }

  .contact-number-title img{
    width: 16px;
  }

  .working-hours{
    font-size: 16px;
  }

  .partner-link img{
    width: 90%;
    max-width: 350px;
  }

  .inquiry-form td input[type="text"], .inquiry-form td input[type="tel"], .inquiry-form td input[type="url"], .inquiry-form td input[type="email"]{
    width: 100%;
  }

  .inquiry-form th, .inquiry-form td, .confirm-table th, .confirm-table td{
    padding: 1rem;
  }

  .inquiry-form td select{
    width: auto;
    max-width: 200px;
  }

  .small-col a{
    height: 50px;
  }


  .inquiry-form .checkboxes label {
    padding: 12px 12px 12px 47px;
  }

  .inquiry-form .checkboxes input[type="checkbox"]{
    left: 16px;
  }
}

@media(max-width: 768px){
  section{
    width: 100%;
  }

  .obi{
    width: 100%;
  }

  #form-section .obi:nth-child(1){
    margin-top: 32px;
  }

  .contact-number-content{
    width: 90%;
  }

  .inquiry-form{
    width: 90%;
  }

  .section-para{
    width: 100%;
  }

  th{
    font-size: 14px;
  }

  /* th br{
    display: none;
  } */

  .error-main{
    height: 60vh;
  }

  .error-main > .error-wrapper > .section-para{
    width: 90%;
    margin: 0 auto;
    line-height: 1.5;
    font-size: 18px;
  }

  .error-sp-footer{
    margin-top: 0;
  }
  
}