/* J-FLOOR contact page v1.1
   会社概要ページv1.3と同じ配色・余白・メインビジュアル設計。
   問い合わせページ専用CSS。既存CSSファイルは変更しない。
*/

/* メインビジュアル */
.page-contact .works-loop-hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #eef6fb;
  border-bottom: 1px solid rgba(5, 38, 79, .08);
}
.page-contact .works-loop-hero__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.page-contact .works-loop-hero__track {
  width: 100%;
  height: 100%;
}
.page-contact .works-loop-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}
.page-contact .works-loop-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 28%, rgba(255,255,255,.72) 41%, rgba(255,255,255,.18) 58%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,0) 55%, rgba(255,255,255,.26) 100%);
}
.page-contact .works-loop-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
}
.page-contact .works-loop-hero__content {
  width: min(520px, 46vw);
  padding-left: 18px;
}
.page-contact .works-loop-hero__en {
  margin: 0 0 8px;
  color: #c8a24a;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .18em;
  font-weight: 800;
}
.page-contact .works-loop-hero h1 {
  margin: 0;
  color: #05264f;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.08;
  letter-spacing: .08em;
  font-weight: 900;
}
.page-contact .works-loop-hero h1::after {
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 14px;
  background: #c8a24a;
  content: "";
}
.page-contact .works-loop-hero__lead {
  margin: 18px 0 0;
  color: #08264d;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 700;
}
.page-contact .works-loop-hero__breadcrumb {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  margin: 0;
  padding: 0;
  font-size: 12px;
}
.page-contact .works-loop-hero__breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  list-style: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(5, 38, 79, .10);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(5, 38, 79, .08);
  backdrop-filter: blur(6px);
}
.page-contact .works-loop-hero__breadcrumb li,
.page-contact .works-loop-hero__breadcrumb a {
  color: rgba(5, 38, 79, .72);
  text-decoration: none;
}
.page-contact .works-loop-hero__breadcrumb li + li::before {
  margin-right: 8px;
  color: rgba(5, 38, 79, .35);
  content: "/";
}

/* セクション共通 */
.jf-contact-intro,
.jf-contact-form-section,
.jf-contact-complete {
  padding: 76px 0;
}
.jf-contact-intro,
.jf-contact-complete {
  background: #fff;
}
.jf-contact-form-section {
  padding-bottom: 90px;
  background: #f7f9fb;
}
.jf-contact-heading {
  margin: 0 0 6px;
  color: #05264f;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 900;
  text-align: center;
}
.jf-contact-subheading {
  margin: 0 0 40px;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

/* 案内 */
.jf-contact-intro .jf-contact-heading {
  margin-bottom: 34px;
}
.jf-contact-intro__body {
  max-width: 900px;
  margin: 0 auto;
}
.jf-contact-intro__body > p {
  margin: 0 0 16px;
  color: #444;
  font-size: 15px;
  line-height: 2;
}
.jf-contact-intro__tel {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 8px;
}
.jf-contact-intro__tel span {
  color: #05264f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}
.jf-contact-intro__tel a {
  color: #05264f;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 900;
  text-decoration: none;
}
.jf-contact-intro__tel small {
  color: #666;
  font-size: 12px;
}

/* エラー表示 */
.jf-contact-error {
  max-width: 980px;
  margin: 0 auto 24px;
  padding: 18px 22px;
  color: #8d2222;
  background: #fff5f5;
  border: 1px solid #e2baba;
}
.jf-contact-error p {
  margin: 0 0 8px;
  font-weight: 800;
}
.jf-contact-error ul {
  margin: 0;
  padding-left: 20px;
}
.jf-contact-error li {
  margin: 3px 0;
}

/* フォーム */
.jf-contact-form {
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7ecf1;
  box-shadow: 0 10px 26px rgba(5, 38, 79, .05);
}
.jf-contact-field {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  margin: 0;
  border-bottom: 1px solid #e7ecf1;
}
.jf-contact-field > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 24px;
  color: #05264f;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 800;
  background: #f3f6f9;
}
.jf-contact-control {
  padding: 18px 24px;
  background: #fff;
}
.jf-contact-control input,
.jf-contact-control select,
.jf-contact-control textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  color: #333;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
  border: 1px solid #cfd7df;
  border-radius: 0;
  box-sizing: border-box;
}
.jf-contact-control input,
.jf-contact-control select {
  min-height: 50px;
}
.jf-contact-control textarea {
  min-height: 210px;
  resize: vertical;
}
.jf-contact-control input:focus,
.jf-contact-control select:focus,
.jf-contact-control textarea:focus {
  outline: 2px solid rgba(200, 162, 74, .45);
  outline-offset: 1px;
  border-color: #c8a24a;
}
.jf-contact-required,
.jf-contact-optional {
  display: inline-block;
  flex: 0 0 auto;
  padding: 2px 7px;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 800;
}
.jf-contact-required {
  color: #fff;
  background: #05264f;
}
.jf-contact-optional {
  color: #68727d;
  background: #fff;
  border: 1px solid #cfd7df;
}
.jf-contact-form__footer {
  padding: 32px 24px 36px;
  text-align: center;
}
.jf-contact-form__footer > p {
  margin: 0 0 18px;
  color: #555;
  font-size: 13px;
  line-height: 1.8;
}
.jf-contact-form__footer .jf-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 142px;
  padding: 12px 18px;
  background: linear-gradient(90deg, #06214a, #0b3674);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: 0;
  box-shadow: 0 6px 14px rgba(6, 33, 74, .16);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, filter .18s ease;
}
.jf-contact-form__footer .jf-contact-submit:hover {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
  filter: none;
}
.jf-contact-form__footer .jf-contact-submit span {
  font-size: 16px;
  line-height: 1;
}
.jf-contact-form__footer .jf-contact-submit:focus-visible {
  outline: 3px solid rgba(200, 162, 74, .5);
  outline-offset: 3px;
}
/* 送信完了 */
.jf-contact-complete {
  padding-bottom: 90px;
}
.jf-contact-complete__panel {
  max-width: 820px;
  margin: 0 auto;
  padding: 54px 48px;
  text-align: center;
  background: #f7f9fb;
  border-top: 3px solid #c8a24a;
}
.jf-contact-complete__en {
  margin: 0 0 12px;
  color: #c8a24a;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .18em;
  font-weight: 900;
}
.jf-contact-complete h2 {
  margin: 0 0 24px;
  color: #05264f;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.5;
  font-weight: 900;
}
.jf-contact-complete__panel > p:not(.jf-contact-complete__en) {
  margin: 0 0 8px;
  color: #444;
  font-size: 15px;
  line-height: 1.9;
}
.jf-contact-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 52px;
  margin-top: 30px;
  padding: 12px 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  background: #05264f;
  border-top: 3px solid #c8a24a;
  box-sizing: border-box;
}
.jf-contact-back:hover {
  background: #0a376d;
}

@media (max-width: 960px) {
  .page-contact .works-loop-hero__shade {
    background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 45%, rgba(255,255,255,.28) 76%, rgba(255,255,255,0) 100%);
  }
  .page-contact .works-loop-hero__content {
    width: min(470px, 70vw);
  }
}

@media (max-width: 760px) {
  .jf-contact-field {
    grid-template-columns: 1fr;
  }
  .jf-contact-field > label {
    padding: 14px 18px;
  }
  .jf-contact-control {
    padding: 14px 18px 18px;
  }
}

@media (max-width: 640px) {
  .page-contact .works-loop-hero {
    height: 250px;
  }
  .page-contact .works-loop-hero__breadcrumb {
    left: 0;
    bottom: 12px;
    font-size: 11px;
  }
  .page-contact .works-loop-hero__content {
    width: 88vw;
    padding-left: 0;
  }
  .page-contact .works-loop-hero h1 {
    font-size: 32px;
  }
  .page-contact .works-loop-hero__lead {
    font-size: 13px;
    line-height: 1.75;
  }
  .jf-contact-intro,
  .jf-contact-form-section,
  .jf-contact-complete {
    padding: 48px 0;
  }
  .jf-contact-form-section,
  .jf-contact-complete {
    padding-bottom: 64px;
  }
  .jf-contact-intro__body > p {
    font-size: 14px;
    line-height: 1.9;
  }
  .jf-contact-intro__tel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
  }
  .jf-contact-intro__tel small {
    grid-column: 1 / -1;
  }
  .jf-contact-intro__tel a {
    font-size: 22px;
  }
  .jf-contact-subheading {
    margin-bottom: 30px;
  }
  .jf-contact-field > label {
    padding: 12px 16px;
  }
  .jf-contact-control {
    padding: 12px 16px 16px;
  }
  .jf-contact-control textarea {
    min-height: 180px;
  }
  .jf-contact-form__footer {
    padding: 28px 16px 32px;
  }
  .jf-contact-form__footer .jf-contact-submit {
    min-width: 138px;
    padding: 12px 16px;
  }
  .jf-contact-complete__panel {
    padding: 40px 20px;
  }
  .jf-contact-back {
    min-width: 220px;
  }
}
