@charset "utf-8";

#contact .container{
    max-width: 68.75rem;
}

/* ============================================================
   02 Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 17rem;
  background: var(--color-white) url("../assets/images/img_home_catch.jpg") center top / cover no-repeat;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 17rem;
  padding-block: 5rem 2.5rem;
}

.hero__inner .page_title{
  padding: 0 2rem;
  font-size: 2.25rem;
  font-weight: 700;
}

.hero__content {
  max-width: 34rem;
}

.hero__title {
  line-height: 0;
}

.hero__title-img {
  display: block;
  width: 29.5rem;
  max-width: 100%;
  height: auto;
  margin-top: 2rem;
}

.hero__lead {
  margin-top: 1.65rem;
  font-size: 1.15rem;
  color: #222222;
  line-height: 1.6;
  font-weight: 500;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.3rem;
  width: 100%;
  margin-top: auto;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0.7rem 2rem;
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--color-white);
  text-align: center;
  white-space: nowrap;
  background-color: var(--color-teal);
  border-radius: 0.25rem;
}

/* ============================================================
   07 Contact
   ============================================================ */

.contact {
  padding-block: 5.25rem;
  color: var(--color-white);
  background-color: var(--color-teal-dark);
}

.contact .section-head__title {
  font-size: 2.25rem;
}

.contact__lead {
  width: fit-content;
  max-width: 100%;
  /*margin: 2.5rem auto 0;*/
  margin: 0 auto;
  font-size: 1rem;
  text-align: center;
  line-height: 1.8;
  white-space: nowrap;
}

.contact_form_box{
  margin-top: 3rem;
}

.mail_form_ttl{
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact_wrap{
  display: flex;
  justify-content: flex-start;
  padding: 2.5rem;
  background: #fff;
  box-shadow: 0 0 10px -6px rgb(0 0 0 / 40%);
  border-radius: 1rem;
  color: var(--color-black);
}

.contact_wrap .contact_wrap_l,
.contact_wrap .contact_wrap_r{
  box-sizing: border-box;
  width: 50%;
}

.contact_wrap .contact_wrap_l{
  padding-right:1.5rem;
  position: relative;
}

.contact_wrap .contact_wrap_l::after{
  content: "";
  width: 2px;
  height: 100%;
  background: #dbdbdb;
  position: absolute;
  top: 0;
  right: -1px;
}

.contact_wrap .contact_wrap_r{
  padding-left: 1.5rem;
}

.contact_wrap dl{
  margin-bottom: 1.3rem;
}

.contact_wrap dl dt{
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.contact_wrap dl dt .komoku_ttl{
  padding-right: 2.5em;
  position: relative;
}

.contact_wrap dl dt .komoku_ttl::after{
    content: "必須";
    display: inline-block;
    background: #222222;
    color: #fff;
    line-height: 1;
    font-size: 0.7em;
    font-weight: 400;
    padding: 0.4em 0.4em 0.4em;
    border-radius: 0.25em;
    position: absolute;
    top: calc(50% - 0.8em);
    right: 0;
}

.contact_wrap dl dt .input_notes{
  font-size: 0.7em;
  font-weight: 400;
  margin-left: 1rem;
}

.contact_wrap dl dd{
  font-size: 1.1rem;
}

.contact_wrap dl dd .input_notes{
  margin-top: 1rem;
  font-size: 0.9em;
}

/*ラジオボタン*/
.radio_list{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
}

.radio_list label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio_list label input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio_list .lbl {
    position: relative;
    display: flex;
    align-items: center;
}

.radio_list .lbl::before {
    content: "";
    width: 24px;
    height: 24px;
    border: 2px solid #666;
    border-radius: 50%;
    margin-right: 10px;
    box-sizing: border-box;
    transition: transform .2s;
}

.radio_list .lbl::after {
    content: "";
    position: absolute;
    left: 7px;      /* 微調整 */
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0117c2;
    transform: translateY(-50%) scale(0);
    transition: transform .2s;
}

.radio_list input[type="radio"]:checked + .lbl::after {
    transform: translateY(-50%) scale(1);
}

.radio_list input[type="radio"]:checked + .lbl::before {
    border: 2px solid #0117c2;
}

/*チェックボックス*/
.check_list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
}

.check_list label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* 本物のチェックボックスを見えなくする */
.check_list input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check_list .lbl {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* 四角い枠 */
.check_list .lbl::before {
    content: "";
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border: 2px solid #666;
    border-radius: 4px;
    box-sizing: border-box;
    background: #fff;
    transition:
        background-color 0.2s,
        border-color 0.2s;
}

/* チェックマーク */
.check_list .lbl::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 6px;
    height: 11px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-60%) rotate(45deg) scale(0);
    transition: transform 0.2s;
}

/* チェック時 */
.check_list input[type="checkbox"]:checked + .lbl::before {
    border-color: #0117c2;
    background: #0117c2;
}

.check_list input[type="checkbox"]:checked + .lbl::after {
    transform: translateY(-60%) rotate(45deg) scale(1);
}

/* キーボード操作時 */
.check_list input[type="checkbox"]:focus-visible + .lbl::before {
    box-shadow: 0 0 0 4px rgba(42, 124, 255, 0.2);
}

/* 無効状態 */
.check_list input[type="checkbox"]:disabled + .lbl {
    cursor: not-allowed;
    opacity: 0.5;
}

/*input*/
.contact_wrap dl dd input[type="text"]{
    width: 100%;
    border: 1px solid #bbb;
    padding: 0.6em 1em 0.5em 1em;
    box-sizing: border-box;
    font-size: 1em;
    border-radius: 0.25rem;
    background: #f4f4f6;
}

/*textarea*/
.contact_wrap dl dd textarea{
    width: 100%;
    height: 10em;
    border: 1px solid #bbb;
    padding: 0.5em 1em;
    box-sizing: border-box;
    font-size: 1em;
    line-height: 1.5;
    border-radius: 0.25rem;
    background: #f4f4f6;
}

.zip_wrap{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact_wrap dl dd .zip_wrap input[type="text"]{
    width: 8rem;
}

/*プライバシーポリシー*/
.privacy_box{
  width: 47.5rem;
  margin: 4rem auto;
  background: #fff;
  color: var(--color-black);
}

.privacy_box .privacy_text{
  padding: 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.privacy_box .privacy_text a{
  color: #1151ff;
  text-decoration: underline;
}

.privacy_box dl.r_privacy{
  padding: 1.5rem;
}

.privacy_box dl.r_privacy dt{
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.privacy_box dl.r_privacy dd{
  overflow-y: auto;
  height: 15rem;
}

.privacy_box dl.r_privacy dd p{
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.privacy_box dl.r_privacy dd ul{
  margin-left: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.privacy_box dl.r_privacy dd ul li{
    padding-left: 1rem;
    position: relative;
}

.privacy_box dl.r_privacy dd ul li::before{
    content: "・";
    position: absolute;
    top: 0;
    left: 0;
}

.privacy_box dl.r_privacy dd p strong{
  font-weight: 600;
}

.privacy_confirm{
  padding: 1rem;
  background: #e4e4e4;
}

.privacy_confirm label{
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.privacy_confirm input[type="checkbox"]{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.privacy_confirm .lbl{
  position: relative;
  display: flex;
  align-items: center;
  font-size: 1.3em;
  font-weight: 500;
}

.privacy_confirm .lbl::before {
    content: "";
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border: 2px solid #666;
    border-radius: 4px;
    box-sizing: border-box;
    background: #fff;
    transition:
        background-color 0.2s,
        border-color 0.2s;
}

.privacy_confirm .lbl::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 6px;
    height: 11px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-60%) rotate(45deg) scale(0);
    transition: transform 0.2s;
}

.privacy_confirm input[type="checkbox"]:checked + .lbl::before {
    border-color: #0117c2;
    background: #0117c2;
}

.privacy_confirm input[type="checkbox"]:checked + .lbl::after {
    transform: translateY(-60%) rotate(45deg) scale(1);
}

.privacy_confirm input[type="checkbox"]:focus-visible + .lbl::before {
    box-shadow: 0 0 0 4px rgba(42, 124, 255, 0.2);
}

.privacy_confirm input[type="checkbox"]:disabled + .lbl {
    cursor: not-allowed;
    opacity: 0.5;
}

.submit_btn{
  margin-top: 4rem;
}

.submit_btn ul{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1.5rem;
}

.submit_btn ul li input[type="button"]{
    min-width: 15rem;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    color: var(--color-black);
    background-color: var(--color-yellow);
    border-radius: 3.125rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.submit_btn ul li input[type="button"].back{
    padding: 0.8rem 3rem;
    font-size: 1.1rem;
    color: var(--color-black);
    background-color: #ddd;
    border-radius: 3.125rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.submit_btn ul li input[type="button"]:hover{
  filter: brightness(1.1);
}

.end_message{
    padding: 2.5rem;
    background: #fff;
    box-shadow: 0 0 10px -6px rgb(0 0 0 / 40%);
    border-radius: 1rem;
    color: var(--color-black);
    font-weight: 500;
    font-size: 1.1em;
}

.end_message p{
  margin-bottom: 1rem;
}

/* ##########SP########## */
@media screen and (min-width:1px) and (max-width:479px) {
  .contact{
    padding-block: 3.25rem;
  }
  .contact__lead{
    white-space: unset;
    text-align: left;
  }

  .contact_wrap{
    display: block;
    padding: 1.5rem;
  }

  .contact_wrap .contact_wrap_l,
  .contact_wrap .contact_wrap_r{
    width: 100%;
  }

  .contact_wrap .contact_wrap_l{
    padding-right: 0;
  }

  .contact_wrap .contact_wrap_l::after{
    display: none;
  }

  .contact_wrap .contact_wrap_r{
    padding-left: 0;
  }

  .check_list{
    gap: 1rem;
  }

  .privacy_box{
    width: 100%;
    margin: 3rem auto;
  }

  .submit_btn{
    margin-top: 3rem;
  }


}
