@charset "UTF-8";
/* #Contact main { padding-top: calc(var(--fixed-header-height) + 100px); } */
.p-contact { background: #484848; padding-block: clamp(100px, 10vw, 300px); }
.p-contact__inner { background: #fff; border-radius: 40px; box-sizing: border-box; padding: clamp(35px, 8vw, 70px) clamp(20px, 4vw, 40px); box-shadow: 0 16px 40px rgba(0,0,0,.04); }
.p-contact__head { text-align: center; margin-bottom: clamp(24px, 3.5vw, 32px); }
.p-contact__title { font-family: var(--font-mincho); font-size: clamp(26px, 4.8vw, 40px); letter-spacing: .18em; margin: 0; }
.p-contact__subtitle { margin-top: 8px; font-size: 14px; letter-spacing: .18em; }
.p-contact__intro { font-size: clamp(13px, 1.6vw, 15px); line-height: 2; margin-bottom: clamp(24px, 3vw, 32px); }
.p-contact__note { margin-top: 12px; font-size: 12px; color: #777; }

.c-form { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 22px); }
.c-form__group { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; column-gap: clamp(16px, 2vw, 24px); row-gap: 8px; padding-bottom: clamp(12px, 2vw, 18px); border-bottom: 1px solid #ececec; }
.c-form__label-wrap { display: flex; align-items: center; gap: 8px; }
.c-form__label { font-size: clamp(13px, 1.6vw, 15px); font-weight: 600; }
.c-form__required { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; border-radius: 3px; padding: 2px 8px 4px; line-height: 1.1; background: #c0392b; color: #fff; }
.c-form__optional { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; border-radius: 3px; padding: 2px 8px 4px; line-height: 1.1; background: #e4e4e4; color: #555; }
.c-form__required-mark { color: #c0392b; margin-right: 2px; }
.c-form__field { width: 100%; }
.c-form__field--wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.c-form input[type="text"] { width: 100%; box-sizing: border-box; border-radius: 8px; border: 1px solid #ddd; padding: 10px 12px; font-size: 14px; line-height: 1.6; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; appearance: none; }
.c-form input[type="email"] { width: 100%; box-sizing: border-box; border-radius: 8px; border: 1px solid #ddd; padding: 10px 12px; font-size: 14px; line-height: 1.6; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; appearance: none; }
.c-form input[type="tel"] { width: 100%; box-sizing: border-box; border-radius: 8px; border: 1px solid #ddd; padding: 10px 12px; font-size: 14px; line-height: 1.6; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; appearance: none; }
.c-form input[type="date"] { width: 100%; box-sizing: border-box; border-radius: 8px; border: 1px solid #ddd; padding: 10px 12px; font-size: 14px; line-height: 1.6; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; appearance: none; }
.c-form select { width: 100%; box-sizing: border-box; border-radius: 8px; border: 1px solid #ddd; padding: 10px 36px 10px 12px; font-size: 14px; line-height: 1.6; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%); background-position: calc(100% - 16px) 14px, calc(100% - 11px) 14px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.c-form textarea { width: 100%; box-sizing: border-box; border-radius: 8px; border: 1px solid #ddd; padding: 10px 12px; font-size: 14px; line-height: 1.6; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; appearance: none; resize: vertical; min-height: 160px; }
.c-form input:focus { outline: none; border-color: var(--main-color); box-shadow: 0 0 0 1px rgba(37,37,37,.15); }
.c-form select:focus { outline: none; border-color: var(--main-color); box-shadow: 0 0 0 1px rgba(37,37,37,.15); }
.c-form textarea:focus { outline: none; border-color: var(--main-color); box-shadow: 0 0 0 1px rgba(37,37,37,.15); }

.c-form__choice { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.c-form__choice input { width: 16px; height: 16px; }

.c-form__help { font-size: 12px; color: #777; margin: 0 0 6px; }

.c-form__policy { font-size: 13px; line-height: 1.8; position: relative; }
.c-form__policy-text { margin: 0 0 8px; }
.c-form__policy-text a { text-decoration: underline; text-underline-offset: 3px; }
.c-form__policy-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.c-form__policy-check input { width: 16px; height: 16px; }
.c-form__policy-badge { position: absolute; top: 16px; right: 0; }

.c-form__attention { margin-top: 8px; font-size: 11px; color: #888; }

.c-form__actions { margin-top: clamp(20px, 3vw, 28px); display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.c-form__submit { min-width: 180px; border-radius: 999px; padding: 12px 28px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all .25s ease; background: var(--main-color); color: #fff; text-align: center; }
.c-form__reset { min-width: 180px; border-radius: 999px; padding: 12px 28px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all .25s ease; background: #e6e6e6; color: #333; }

.c-form__submit:hover { opacity: .8; transform: translateY(-1px); }
.c-form__reset:hover { background: #d2d2d2; }

/*php工房確認画面*/
#Contact.confirmation tr:has:input[name="プライバシーポリシー"] { display: none!important; }
#Contact.confirmation td { width: calc(100% - 30em); }
#Contact.confirmation h2.ttl { max-width: inherit; text-align: center; font-size:clamp(1.375rem, 1.158rem + 0.92vw, 1.75rem); font-weight: 500; margin-bottom: 30px; }
#Contact.confirmation p.error_ttl { position: relative; max-width: inherit; text-align: center; font-size:clamp(1.063rem, 0.99rem + 0.31vw, 1.188rem); line-height: 1.5; font-weight: 500; margin-bottom: 30px; }
#Contact.confirmation table.formTable { width: 100%; margin: clamp(30px, 3vw, 60px) auto; border-collapse: collapse; font-size: clamp(14px, 1.8vw, 16px); line-height: 3.5rem;}
#Contact.confirmation table.formTable th { width: 30%; padding: 10px 0; border-top: 1px solid #D8D8DE; font-weight: 700; }
#Contact.confirmation table.formTable td { padding: 3% 0; border-top: 1px solid #D8D8DE; line-height: 1.5; background: #fff; padding-left: 20px; padding-right: 20px; text-align: left; }
#Contact.confirmation table.formTable th:last-of-type, table.formTable td:last-of-type { border-bottom: 1px solid #D8D8DE; background: #f5f5f5; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
#Contact.confirmation table.formTable tr { font-size: clamp(13px, 1.8vw, 15px); }
#Contact.confirmation .btn_flex { display: flex; justify-content: space-around; }
#Contact.confirmation input[type="submit"] { min-width: 180px; border-radius: 999px; padding: 12px 28px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all .25s ease; background: var(--main-color); color: #fff; text-align: center; }
#Contact.confirmation input[type="button"] { min-width: 180px; border-radius: 999px; padding: 12px 28px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all .25s ease; background: #c8c8c8; color: #333; }
#Contact.confirmation input[type="button"]:hover { color: #fff; opacity: .8; transform: translateY(-1px); }
#Contact.confirmation input[type="submit"]:hover { color: #fff; opacity: .8; transform: translateY(-1px); }
#Contact.confirmation .check_area { display: flex; justify-content: center; gap: 20px; }
#Contact.confirmation .error_wrap { margin-bottom: 30px; }
#Contact.confirmation .error_messe { padding: 0 3%; color: #da2727; background: #f5f5bb; display: inline-block; font-size: clamp(13px, 3vw, 15px); font-weight: 700; margin: 10px 0; }
/* #Contact.confirmation input[type="button"] { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: min(100%, 360px); width: 100%; height: 80px; padding: 0 28px; box-sizing: border-box; border: 1px solid #666666; background: #666666; color: #fff; font-weight: 700; letter-spacing: .02em; text-decoration: none; transition: .35s; font-size: clamp(16px, 3vw, 21px); }
#Contact.confirmation input[type="submit"] { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: min(100%, 360px); width: 100%; height: 80px; padding: 0 28px; box-sizing: border-box; border: 1px solid var(--blue-color); background: #fff; color: var(--blue-color); font-weight: 700; letter-spacing: .02em; text-decoration: none; transition: .35s; font-size: clamp(16px, 3vw, 21px); } */

@media only screen and (max-width: 768px) {
  .c-form__group { grid-template-columns: 1fr; }
  .p-contact__inner { border-radius: 28px; }
  .c-form__policy-badge { position: static; margin-left: 8px; }
  .c-form__actions { flex-direction: column; }
  #Contact.confirmation table.formTable th , #Contact.confirmation table.formTable td { width: 100%; }
  #Contact.confirmation input[type="button"] , #Contact.confirmation input[type="submit"] { font-size: 14px!important; }
  #Contact.thanks p { text-align: left; }
  #Contact.confirmation .check_area { flex-direction: column; gap: 10px; }
  #Contact.confirmation table.formTable th:last-of-type, table.formTable td:last-of-type { display: block; border-bottom: none; line-height: 1.5;}
}
