@charset "UTF-8";

/* =========================================================
   Suzuyo Kogyo Mail Form Skin
   - Source: admin/user_template/use_css.tpl
   - Runtime output: css/form.css
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Yu Gothic", "游ゴシック体", YuGothic, "メイリオ", Meiryo, Arial, sans-serif;
  color: #231815;
  background: #fff;
  line-height: 1.8;
  font-size: 1.6rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

#wrapper,
.form-page {
  width: 100%;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* Header */

.form-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.form-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.form-header__logo {
  width: 230px;
  margin: 0;
  padding-left: 20px;
  line-height: 1;
}

.form-header__logo img {
  display: block;
  width: 100%;
}

/* Main */

#main,
.form-main {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 20px 90px;
  flex: 1 0 auto;
}

.section {
  width: 100%;
}

.section__ttl {
  margin: 0 0 40px;
  text-align: center;
  font-family: "游明朝体", YuMincho, "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN W3", "ＭＳ Ｐ明朝", serif;
  font-size: 3rem;
  font-weight: normal;
  line-height: 1.5;
  color: #231815;
}

.section__ttl-inner {
  position: relative;
  display: inline-block;
  padding: 0 58px;
}

.section__ttl-inner::before,
.section__ttl-inner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background: #987515;
}

.section__ttl-inner::before { left: 0; }
.section__ttl-inner::after { right: 0; }

.section__body {
  width: 100%;
}

/* Lead / Error */

#txt_explain,
.form-lead {
  margin: 0 0 28px;
  text-align: center;
}

#txt_explain p,
.form-lead p {
  margin: 0;
}

.form-lead p + p {
  margin-top: 18px;
}

.form-note {
  color: #c00;
  font-weight: 700;
}

.red_txt {
  margin: 0 0 24px;
  color: #c00;
  font-weight: 700;
  text-align: center;
}

.red_txt:empty {
  display: none;
}

/* Table */

.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border-top: 1px solid #d8d8d8;
  margin: 0 0 40px;
}

.table th,
.table td {
  border-bottom: 1px solid #d8d8d8;
  padding: 22px 20px;
  vertical-align: top;
}

.table th {
  width: 280px;
  background: #f6f4ef;
  text-align: left;
  font-weight: 700;
  color: #231815;
}

.table td {
  background: #fff;
}

.table label {
  font-weight: 700;
}

/* Form Parts */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="password"],
textarea,
select {
  width: 100%;
  max-width: 640px;
  padding: 12px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  color: #231815;
  font: inherit;
  line-height: 1.6;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

select {
  cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 6px;
  vertical-align: middle;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #987515;
  box-shadow: 0 0 0 2px rgba(152, 117, 21, 0.15);
}

/* Required / Error Marks */

.required,
.require,
.must,
span[style*="red"],
font[color="red"] {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: #c00;
  color: #fff !important;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 700;
  vertical-align: middle;
}

/* Buttons */

.button_box {
  margin: 36px 0 0;
  text-align: center;
}

input[type="submit"],
input[type="button"],
button,
.form-button-link {
  display: inline-block;
  min-width: 240px;
  padding: 16px 36px;
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
.form-button-link:hover {
  background: #987515;
  border-color: #987515;
  color: #fff;
}

.form-page--confirm .button_box--confirm {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-page--confirm .button_box--confirm button {
  margin: 0;
}

.form-page--confirm .button_box--confirm button[value="戻る"] {
  background: #fff;
  color: #231815;
  border-color: #231815;
}

.form-page--confirm .button_box--confirm button[value="戻る"]:hover {
  background: #f6f4ef;
  border-color: #987515;
  color: #987515;
}

.button_box--back {
  margin-top: 32px;
  text-align: center;
}

.button_box--back a {
  display: inline-block;
  color: #231815;
  border-bottom: 1px solid #231815;
  text-decoration: none;
}

.button_box--back a:hover {
  color: #987515;
  border-color: #987515;
}

/* Complete Page */

.form-lead--complete {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.form-page--complete .form-main,
.form-page--complete #main {
  min-height: calc(100vh - 74px - 67px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-page--complete .section {
  width: 100%;
}

/* Footer */

.form-footer {
  width: 100%;
  background: #000;
  color: #fff;
  flex: 0 0 auto;
}

.form-footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 20px;
  text-align: center;
}

.form-footer__copyright {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* Responsive */

@media screen and (max-width: 768px) {
  body { font-size: 1.5rem; }

  .form-header__inner {
    min-height: 60px;
    justify-content: center;
  }

  .form-header__logo {
    width: 56%;
    max-width: 200px;
    padding-left: 0;
  }

  #main,
  .form-main {
    padding: 40px 16px 64px;
  }

  .section__ttl {
    margin-bottom: 28px;
    font-size: 2.2rem;
  }

  .section__ttl-inner {
    padding: 0 46px;
  }

  .section__ttl-inner::before,
  .section__ttl-inner::after {
    width: 24px;
  }

  #txt_explain,
  .form-lead,
  .red_txt {
    text-align: left;
  }

  .table,
  .table tbody,
  .table tr,
  .table th,
  .table td {
    display: block;
    width: 100%;
  }

  .table th,
  .table td {
    padding: 15px 16px;
  }

  .table th {
    border-bottom: none;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="url"],
  input[type="password"],
  textarea,
  select {
    max-width: none;
  }

  input[type="submit"],
  input[type="button"],
  button,
  .form-button-link {
    width: 100%;
    min-width: 0;
  }

  .form-page--confirm .button_box--confirm {
    display: block;
  }

  .form-page--confirm .button_box--confirm button + button {
    margin-top: 14px;
  }

  .form-lead--complete {
    text-align: left;
  }

  .form-page--complete .form-main,
  .form-page--complete #main {
    min-height: auto;
    display: block;
  }

  .form-footer__inner {
    padding: 18px 16px;
  }

  .form-footer__copyright {
    font-size: 1.2rem;
  }
}


/* Footer navigation / header logo link */
.form-header__logo a {
    display: inline-block;
}
.form-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin-bottom: 14px;
    font-size: 14px;
}
.form-footer__nav a {
    color: #fff;
    text-decoration: none;
}
.form-footer__nav a:hover {
    text-decoration: underline;
}

/* v5: Center complete-page message text for Japanese form */
.form-page--complete .section__body,
.form-page--complete #txt_explain,
.form-page--complete .form-lead,
.form-page--complete .form-lead--complete,
.form-page--complete #txt_explain p,
.form-page--complete .form-lead p,
.form-page--complete .form-lead--complete p,
.form-page--complete .button_box--back {
  text-align: center !important;
}

.form-page--complete #txt_explain,
.form-page--complete .form-lead,
.form-page--complete .form-lead--complete {
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
}
