@charset "UTF-8";

/* html {
  font-size: 62.5%;
} */

@media print, screen and (min-width: 641px) {
  .master {
      width: min(100%, 980px);
  }
}


a{
  transition: opacity var(--transition);
}

@media (any-hover: hover) {
  a:hover {
    opacity: 0.7;
    transition: opacity var(--transition);
  }

  input[type="submit"]:hover {
    opacity: 0.7;
  }

}


/* /////////CONTACT//////// */
#contact-contents{


  table, div#wpcf7cpcnf table{
    width: var(--contact-width);
    margin-inline: auto;
    border-top: 1px solid #ddd;
  }

  tr , div#wpcf7cpcnf tr{
    display: grid;
    grid-template-columns: min(100%, 320px) 1fr;
    padding: 24px 0;
    border-bottom: 1px solid #ddd;

    &:is(:nth-last-of-type(1),:nth-last-of-type(2)){
      th{
        align-self: flex-start;
        padding-top: 1rem;
      }
    }

    @media (width <= 599px){
      grid-template-columns: 1fr;
      padding: 24px 0;
      border-bottom: 1px solid #ddd;
    }
  }

  th{
    text-align: left;
    font-weight: bold;
    font-size: 16px;

    span{
      font-size: 16px;
    }

    @media (width <= 599px){
        margin-bottom: 16px;
    }
  }

  th.any{
    span{
        font-size: 12px;
    }
  }


  td{
    container-type: inline-size;
  }

}

@media print, screen and (min-width: 641px) {
    #contact-contents span {
        padding: revert;
        margin-right: revert;
        color: revert;
        background-color: revert;
        border-radius: revert;
        font-weight: bold;
    }
}

@media screen and (max-width: 489px) {
    #contact-contents span {
        padding: revert;
        color: revert;
        background-color: revert;
        border-radius: revert;
        font-weight: bold;
        display: block;
        width: revert;
        margin: revert;
    }
}

@media screen and (max-width: 640px) and (min-width: 490px) {
    #contact-contents span {
        padding: revert;
        margin-right: revert;
        color:revert;
        background-color:revert;
        border-radius: revert;
        font-weight: bold;
    }
}


#contact.sub #contact-contents p {
    height: revert;
    line-height: revert;
    margin-top: revert;
    padding-left: revert;
    background-color: revert;
    color: revert;
}

#contact.sub #contact-contents p.file-text{
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}


#contact.sub #contact-contents p span{
    font-size: 16px;
    padding: revert;
}

@media screen and (max-width: 489px) {
    #contact.sub #contact-contents p span {
        line-height: 16px;
        margin: 0;
        padding: revert;
        width: revert;
    }
}


#contact.sub #contact-contents div{
    margin: 16px 0 0;

    @media (width <= 599px){
        margin: 40px 0 0;
    }
}

.wpcf7-not-valid-tip{
  color: #dc3232 !important;
  font-size: 16px;
}


/* ////formまわり//// */
.form-wrapper{
  --contact-width: min(100%, 960px);
  --color-orange: #cc6600;

  width: var(--contact-width);
  margin: 60px 0 0;
  margin-inline: auto;


  .m-button-parts{
    --unit: 16px;

    width: min(85%, 234px);
    margin-top: 40px;
    color: white;
    /* cursor: pointer; */
    background-color: var(--color-orange);
    border: none;
    border-radius: 3.6rem;
    font-weight: bold;

    @media (width <= 599px){
        margin-top: 10px;
    }
  }

  @media (width <= 599px){
    margin: 3.2rem 0 0;
  }


}

.required{
  display: flex;
  align-items: center;

  &::before {
  padding: 2px 8px;
  margin-right: 8px;
  font-size: 10px;
  color: white;
  content: "必須";
  background-color: var(--color-orange);
  border-radius: 5px;
  }
}

.any{
  display: flex;
  align-items: center;

  &::before {
  padding: 2px 8px;
  margin-right: 8px;
  font-size: 10px;
  color: white;
  content: "任意";
  background-color: #333;
  border-radius: 5px;
  }
}

::placeholder {
  font-size: 15px;
  color: #999;
}

input,
textarea,
#wpcf7cpcnf td {
  width: 100%;
  padding: 1.1rem 1.5rem;
  background-color: #ecedf2;
  border: 1px solid #ddd;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.5;

  @media (width <= 599px){
    padding: 1em;
  }
}

textarea {
  --min-rows: 10lh;
  --max-rows: 24lh;

  box-sizing: border-box;
  width: var(--contact-width);
  min-block-size: var(--min-rows);
  max-block-size: var(--max-rows);
  field-sizing: content;
  resize: block;
}

select{
    font-size: 16px;
    width: 100%;
    padding: 16px;

}

input[type="file"]{
  background-color: revert;
  border: revert;
  padding: 0;
}

input[type="reset"],
input[value="確認"],
input[value="送信"] {
  /* padding: 0;
  text-align: center; */
  cursor: pointer;
}

.wpcf7-checkbox{
  display: grid;
  gap: 1.2rem;
  justify-content: start;
}

.wpcf7-list-item{
display: block;
margin: auto;

  label{
    display: flex;
    gap: 16px;
    margin-top: 32px;

    input[type="checkbox"]{
      width: 15px;
    }

  }
}

.wpcf7-spinner {
    position: relative;
    display: inline-block;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    visibility: hidden;
    background-color: #23282d;
    border: none;
    border-radius: 100%;
    opacity: 0.75;
}

.wpcf7 .wpcf7-submit:disabled{
  filter: grayscale(1);
}


/* 確認画面(Confirm Plus Contact Form 7 */
div#wpcf7cpcnf{
  z-index: 1;
  padding: 5rem 0 6rem;
}

div.wpcf7cp-btns{
  display: flex;
  gap: 3.2rem;
  width: min(90%, 640px);
  margin-inline: auto;
  margin-top: 8rem;

  button{
  --unit: 16px;

    position: relative;
    display: flex;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    width: min(85%, 450px);
    padding: var(--unit);
    margin: auto;
    color: white;
    letter-spacing: var(--wide-letter);
    cursor: pointer;
    background: inherit;
    background-color: var(--color-orange);
    border: none;
    border-radius: 3.6rem;
    transition: var(--transition);

    @media (width <= 599px){
      --unit: 1.2rem;
    }

  }

  @media (width <= 599px){
      flex-wrap: wrap;
      margin-top: 4rem;
  }

}

@media (any-hover: hover){
  div.wpcf7cp-btns button:hover{
    opacity: .8;
  }
}

/* reCAPTCHA
.grecaptcha-badge{left:0!important;z-index: 10;width:70px!important;transition: all var(--transition) !important;}
.grecaptcha-badge:hover{left:0!important;width:256px!important;}*/


/* /////////PRIVACY POLICY//////// */
.privacy {
  margin: 24px auto 0;
}

.privacy-tittle{
    font-size: 16px;
    text-align: left;

    @media (width <= 599px){
        word-break: keep-all;
        text-align: center;
    }
  }

.privacy-text {
  line-height: 1.8 !important;
  word-break: normal;
  font-size: 14px;
  text-align: left !important;
}

.#contact.sub .bottomText{
    margin-top: 40px;
}