.contact {
  background: #6b1f1f;
  height: 750px;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
  place-items: start center;
  font-family: "Noto Sans JP", "Noto Sans", system-ui, sans-serif;
  padding-top: 50px;
}

.contact__inner {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  height: 100%;
  display: grid;
  place-items: start center !important;
}

.contact__head {
  margin-top: -10px;
}

.contact__panel {
  width: 950px;
  height: 620px;
  background: #fff;
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center !important;
  align-content: start;
  padding: 30px 60px 30px;
  box-sizing: border-box;
  row-gap: 0;
  margin-top: 0px;
  background: rgba(255, 255, 255, 0.8);
}

.contact__photo {
  position: absolute;
  left: 50%;
  top: 0;
  width: 950px;
  height: 620px;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.contact__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.2) translate(5%, -5%);
}

.contact__title {
  margin: 0 0 22px;
}

.contact__title .dual-title__en {
  font-family: "Noto Serif JP", serif !important;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 500;
}

.contact__title .dual-title__word {
  text-shadow:
    -2px 0 #fff,
    2px 0 #fff,
    0 -2px #fff,
    0 2px #fff,
    -2px -2px #fff,
    2px -2px #fff,
    -2px 2px #fff,
    2px 2px #fff;
  position: relative;
  display: inline-block;
}

.contact__title .dual-title__word img.dual-mark.contact__mark {
  position: absolute;
  left: 50%;
  top: 0;
  width: 150px;
  height: auto;
  transform: translate(-175px, -45px);
  pointer-events: none;
}

.contact__lead {
  margin: 16px 0 22px;
  font-size: 30px;
  line-height: 1.55;
  text-align: center;
  color: #111;
}

.contact__btns {
  display: flex;
  gap: 22px;
  margin-bottom: 22px;
}

.contact__btn {
  width: 350px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  background: #fff;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 0 2px #6e2424;
}

.contact__btn--line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.contact__line-icon {
  width: 70px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.contact__note-title {
  margin: 0 0 10px;
  font-size: 15px;
  color: #111;
  text-align: center;
}

.contact__notes {
  width: min(720px, 100%);
  margin: 0 auto;
  font-size: 11px;
  line-height: 1.8;
  color: #111;
  text-align: left;
  max-width: 550px;
}

.contact__notes p {
  margin: 0 0 6px;
}

.contact__notes-last {
  margin-top: 10px;
}

.contact__mark-img {
  position: absolute;
  left: 50%;
  top: 0;
  width: 150px;
  transform: translate(-75px, 85px);
}

.contact__title.dual-title {
  display: grid;
  justify-items: center;
  row-gap: 0px;
}

.contact__title .dual-title__jp {
  display: block;
  margin: -8px 0 0 !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.contact {
  position: relative;
}

.contact::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #fff;
}

.contact__form-icon {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .contact__btn:hover {
    background: #6e2424;
    color: #fff;
    box-shadow: inset 0 0 0 2px #6e2424;
    border-color: #6e2424;
    transition: 180ms ease;
  }
}

@media (max-width: 767px) {
  .contact {
    background: transparent;
    width: 100%;
    margin: 0;
    padding: 0;
    height: auto;
    min-height: auto;
  }

  .contact__inner {
    width: 100%;
    min-height: auto;
    margin: 0;
    display: block;
    transform: none;
    position: relative;
  }

  .contact__photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    transform: none;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .contact__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 80%;
    transform: scale(1.2);
  }

  .contact__panel {
    width: 100%;
    min-height: auto;
    height: auto;
    padding: 22px 8px 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    border-top: 1px solid #6e2424;
    border-bottom: 1px solid #6e2424;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  .contact__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    z-index: 1;
  }

  .contact__panel-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: none;
  }

  .contact__head {
    margin-top: 0;
  }

  .contact__title {
    margin: 0;
  }

  .contact__lead {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
  }

  .contact__lead br {
    display: none;
  }

  .contact__btns {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 2px 0 0;
  }

  .contact__btn {
    width: 100%;
    min-width: 0;
    height: 64px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    color: #111;
    background: rgba(255, 255, 255, 0.92);
    border: 0.5px solid rgba(110, 36, 36, 0.7) !important;
    box-shadow: inset 0 0 0 0.5px #6e2424;
  }

  .contact__btns .contact__btn--form {
    font-weight: 400;
  }

  .contact__btns .contact__btn--line {
    font-weight: 400;
  }

  .contact__btn--form,
  .contact__btn--line {
    gap: 6px;
  }

  .contact__form-icon,
  .contact__line-icon,
  .contact__btn--line img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
  }

  .contact__btn--line span {
    white-space: nowrap;
  }

  .contact__note-title {
    margin: 4px 0 0;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
  }

  .contact__notes {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    font-size: 11px;
    line-height: 1.65;
    color: #111;
    text-align: left;
  }

  .contact__notes p {
    margin: 0 0 6px;
  }

  .contact__notes-last {
    margin-top: 8px;
  }

  .contact::after {
    display: none;
  }

  .contact__note-title,
  .contact__notes {
    display: none;
  }
}

@media (min-width: 900px) and (max-width: 1024px) {
  .contact {
    height: 700px;
    padding-top: 44px;
  }

  .contact__inner {
    width: calc(100% - 32px);
    max-width: 100%;
  }

  .contact__panel,
  .contact__photo {
    width: min(820px, calc(100vw - 80px));
    height: 560px;
  }

  .contact__photo {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  .contact__panel {
    padding: 28px 40px 30px;
  }

  .contact__panel-inner {
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
  }

  .contact__lead {
    margin: 12px 0 18px;
    font-size: 24px;
    line-height: 1.5;
  }

  .contact__btns {
    gap: 18px;
    margin-bottom: 18px;
    justify-content: center;
  }

  .contact__btn {
    width: 290px;
    height: 96px;
    font-size: 22px;
  }

  .contact__line-icon {
    width: 54px;
    height: 42px;
  }

  .contact__note-title {
    margin: 0 0 8px;
    font-size: 14px;
  }

  .contact__notes {
    max-width: 520px;
    font-size: 11px;
    line-height: 1.7;
  }
}

