@charset "UTF-8";
html, body, div, span, h1, h2, h3, h4, h5, h6, p,
blockquote, pre, a, abbr, address, code, em, img, ins,
small, strong, sub, sup, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, menu, nav, output, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

article, aside, details, figcaption, figure,
footer, header, menu, nav, section {
  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style-type: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
}

html {
  font-family: "Gothic A1", sans-serif;
  font-size: 62.5%;
}

.contact-page {
  padding: 1.6rem 1.6rem 4rem;
  background-color: #EAEFF4;
}
@media (max-width: 960px) {
  .contact-page {
    padding: 1.2rem;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(42rem, 1fr);
  gap: 1.6rem;
  align-items: start;
}

.contact-intro-card,
.contact-form-card {
  border-radius: 1.2rem;
}

.contact-intro-card {
  position: sticky;
  top: 1.6rem;
  height: calc(100dvh - 3.2rem);
  padding: 5.6rem 8rem 7.2rem;
  background-color: #FFFFFF;
}

.contact-intro-logo {
  display: inline-block;
}
.contact-intro-logo img {
  width: 22.2rem;
}

.contact-intro-content {
  max-width: 74rem;
  margin: 6.4rem auto 0;
}

.contact-intro-label {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
  color: #051B27;
  font-family: "Gothic A1", sans-serif;
  font-size: 1.3rem;
}
.contact-intro-label span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background-color: #0B42DB;
}

.contact-intro-content h1 {
  margin-bottom: 4.4rem;
  color: #051B27;
  font-size: clamp(3.2rem, 3.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.contact-intro-image {
  overflow: hidden;
  aspect-ratio: 1.62/1;
  border-radius: 0.8rem;
  background-color: #EAEFF4;
}
.contact-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-form-card {
  padding: 4.8rem 2.8rem 5.6rem;
  background-color: #F7F9F4;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-intro-card {
    position: relative;
    top: auto;
    height: auto;
    padding: 4rem 2.4rem;
  }
  .contact-intro-content {
    margin-top: 5rem;
  }
  .contact-form-card {
    padding: 4rem 2.4rem;
  }
}
@media (max-width: 480px) {
  .contact-intro-content h1 {
    font-size: 3rem;
  }
  .contact-intro-image {
    aspect-ratio: 4/3;
  }
}
/* 旧電話ブロックを他テンプレートで再利用する場合の互換スタイル */
.contact-tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 4rem;
  background-color: #FFFFFF;
  border-radius: 0.8rem;
  border: 1px solid #D8E0E8;
  text-align: center;
}
.contact-tel__label {
  font-size: 1.6rem;
  font-weight: 700;
  color: #051B27;
}
.contact-tel__number {
  font-family: "Gothic A1", sans-serif;
  font-size: clamp(3.6rem, 6vw, 5.6rem);
  font-weight: 700;
  color: #0B42DB;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: opacity 0.2s ease;
}
.contact-tel__number:hover {
  opacity: 0.75;
}
.contact-tel__note {
  font-size: 1.4rem;
  color: #5F6F7A;
  line-height: 1.9;
}