/* お問い合わせページ固有のレイアウト。共通ヘッダー・フッターはルートstyles.cssを使用する。 */

.contact-page {
  background: #fff;
}

.contact-main {
  overflow: hidden;
}

.contact-page__container {
  width: min(calc(100% - 96px), 1320px);
  margin: 0 auto;
}

.contact-page-intro {
  padding: 35px 0 74px;
  background:
    radial-gradient(circle at 7% 28%, rgba(226, 248, 241, 0.6), transparent 28%),
    radial-gradient(circle at 94% 38%, rgba(226, 244, 253, 0.74), transparent 32%),
    linear-gradient(135deg, #fbfffd 0%, #fff 50%, #fafdff 100%);
}

.contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #17447f;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-breadcrumb a {
  color: #118c55;
  text-decoration: underline;
  text-decoration-color: #46bd8a;
  text-underline-offset: 6px;
}

.contact-breadcrumb span[aria-hidden="true"] {
  color: #4873a6;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.contact-page-heading {
  display: grid;
  justify-items: center;
  margin-top: 64px;
  color: var(--navy);
  text-align: center;
}

.contact-page-heading__eyebrow {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  color: #079b51;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1;
}

.contact-page-heading__eyebrow span {
  display: block;
  width: 88px;
  height: 2px;
  background: currentColor;
}

.contact-page-heading h1 {
  margin: 26px 0 0;
  font-size: clamp(48px, 4.45vw, 70px);
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.25;
}

.contact-page-heading__rule {
  display: block;
  width: 66px;
  height: 3px;
  margin-top: 23px;
  background: #079b51;
}

.contact-page-heading > p:not(.contact-page-heading__eyebrow) {
  display: grid;
  gap: 3px;
  margin: 27px 0 0;
  color: #123d78;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: clamp(17px, 1.42vw, 22px);
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 1.62;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.15vw, 32px);
  margin-top: 59px;
}

.contact-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 514px;
  padding: 38px 26px 26px;
  border: 1px solid #bee2fb;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(44, 102, 147, 0.06);
  color: #092f7b;
  text-align: center;
}

.contact-method--line {
  border-color: #9ce8c1;
  background: linear-gradient(135deg, #f6fff9, #fcfffd);
}

.contact-method--mail {
  border-color: #f0d9ad;
  background: linear-gradient(135deg, #fffdf9, #fffaf3);
}

.contact-method__icon {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.contact-method h2 {
  margin: 20px 0 0;
  color: var(--navy);
  font-size: clamp(27px, 2.25vw, 36px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.contact-method > p {
  margin: 18px 0 0;
  color: #103f80;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.65;
}

.contact-method__phone-number {
  margin-top: 8px;
  color: #082f7e;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: clamp(28px, 2.45vw, 39px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  white-space: nowrap;
}

.contact-method--phone > p {
  margin-top: 12px;
}

.contact-method__email-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  padding: 6px 10px 6px 15px;
  margin-top: 16px;
  border-radius: 8px;
  background: rgba(231, 243, 255, 0.66);
}

.contact-method__email {
  flex: 1 1 auto;
  min-width: 0;
  color: #082f7e;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: clamp(14px, 1.06vw, 17px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: left;
  user-select: text;
}

.contact-method__copy-button {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #0a3f98;
  cursor: pointer;
}

.contact-method__copy-button:hover {
  background: rgba(203, 226, 248, 0.7);
}

.contact-method__copy-button:focus-visible {
  outline: 3px solid rgba(7, 155, 81, 0.48);
  outline-offset: 2px;
}

.contact-method__copy-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.contact-method__copy-icon::before {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 12px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: #eaf5ff;
  content: "";
}

.contact-method__copy-status {
  min-height: 23px;
  margin: 5px 0 0;
  color: #087a45;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  visibility: hidden;
}

.contact-method__copy-status[data-state] {
  visibility: visible;
}

.contact-method__copy-status[data-state="error"] {
  color: #a52d3e;
}

.contact-method__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 9px 14px;
  margin-top: auto;
  border: 2px solid #083b92;
  border-radius: 9px;
  color: #07398c;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-method__button:hover,
.contact-consultation__button:hover {
  box-shadow: 0 8px 20px rgba(5, 51, 119, 0.13);
  transform: translateY(-2px);
}

.contact-method__button--line {
  border-color: #00a64f;
  background: linear-gradient(135deg, #00bd57, #009b42);
  color: #fff;
}

.contact-method__button-content {
  display: grid;
  grid-template-columns: 36px auto 10px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: clamp(16px, 1.38vw, 21px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-method__button-content img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.contact-method__button--mail .contact-method__button-content img {
  width: 32px;
  height: 32px;
}

.contact-method__button-content i,
.contact-consultation__button i {
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.contact-information {
  padding: 35px 0 45px;
  background: linear-gradient(180deg, #fff 0%, #f2fbff 100%);
}

.contact-information .contact-page__container {
  padding: clamp(35px, 3.7vw, 54px) clamp(25px, 3.5vw, 52px) clamp(20px, 2.3vw, 34px);
  border: 1px solid #d3ecfb;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(239, 250, 255, 0.96), rgba(232, 247, 255, 0.84));
}

.contact-information h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 2.35vw, 37px);
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.35;
}

.contact-information__rule {
  display: block;
  width: 51px;
  height: 3px;
  margin: 14px 0 22px;
  background: #079b51;
}

.contact-information__list {
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
}

.contact-information__item {
  display: grid;
  grid-template-columns: minmax(245px, 28%) minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  padding: 19px 24px;
  border-bottom: 1px solid #d5e6f2;
}

.contact-information__item:last-child {
  border-bottom: 0;
}

.contact-information__label {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-information__label img {
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.contact-information__label h3 {
  margin: 0;
  color: #0a3481;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.45;
}

.contact-information__item > p {
  margin: 0;
  color: #1d4a85;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: clamp(14px, 1.12vw, 17px);
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.6;
}

.contact-information__item > p a {
  color: #0c3d93;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-consultation {
  padding: 45px 0 68px;
  background: linear-gradient(135deg, #effaff, #f8fcff 72%, #f1fbf8);
}

.contact-consultation__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(460px, 0.94fr);
  align-items: center;
  gap: 34px;
  padding: clamp(30px, 3vw, 42px) clamp(28px, 3.4vw, 46px);
  border: 1px solid #cde5fa;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.contact-consultation__copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 2.05vw, 32px);
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.45;
}

.contact-consultation__copy p {
  margin: 11px 0 0;
  color: #1d4a85;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.65;
}

.contact-consultation__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.contact-consultation__button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 10px 17px;
  border: 2px solid #0b4da1;
  border-radius: 10px;
  color: #073b8f;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 700;
  letter-spacing: 0.035em;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-consultation__button--line {
  border-color: #00a64f;
  background: linear-gradient(135deg, #00bd57, #009b42);
  color: #fff;
}

.contact-consultation__button img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.contact-consultation__button--phone img {
  width: 50px;
  height: 50px;
  margin-left: -3px;
}

.contact-consultation__button > span {
  min-width: 0;
  white-space: nowrap;
}

.contact-consultation__button--phone > span {
  display: grid;
  gap: 1px;
}

.contact-consultation__button--phone {
  grid-template-columns: 44px minmax(0, 1fr) 14px;
}

.contact-consultation__button--phone strong {
  font-size: 1em;
}

.contact-consultation__button--phone i {
  justify-self: end;
}

.contact-consultation__button small,
.contact-consultation__button strong {
  font: inherit;
  line-height: 1.2;
}

.contact-consultation__button strong {
  font-size: 1.08em;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .contact-page__container {
    width: min(calc(100% - 48px), 960px);
  }

  .contact-page-intro {
    padding-bottom: 58px;
  }

  .contact-page-heading {
    margin-top: 53px;
  }

  .contact-methods {
    gap: 16px;
    margin-top: 47px;
  }

  .contact-method {
    min-height: 505px;
    padding: 31px 16px 20px;
  }

  .contact-method__icon {
    width: 88px;
    height: 88px;
  }

  .contact-method h2 {
    font-size: 27px;
  }

  .contact-method > p {
    font-size: 14px;
  }

  .contact-method__phone-number {
    font-size: 28px;
  }

  .contact-method__button {
    min-height: 58px;
  }

  .contact-method__button-content {
    grid-template-columns: 31px auto 9px;
    gap: 8px;
    font-size: 16px;
  }

  .contact-method__button-content img,
  .contact-method__button--mail .contact-method__button-content img {
    width: 31px;
    height: 31px;
  }

  .contact-information__item {
    grid-template-columns: minmax(210px, 31%) minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
  }

  .contact-consultation__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-consultation__copy {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .contact-page__container {
    width: calc(100% - 32px);
  }

  .contact-page-intro {
    padding: 22px 0 46px;
  }

  .contact-breadcrumb {
    gap: 11px;
    font-size: 14px;
  }

  .contact-breadcrumb span[aria-hidden="true"] {
    font-size: 21px;
  }

  .contact-page-heading {
    margin-top: 44px;
  }

  .contact-page-heading__eyebrow {
    gap: 14px;
    font-size: 14px;
  }

  .contact-page-heading__eyebrow span {
    width: 47px;
  }

  .contact-page-heading h1 {
    margin-top: 20px;
    font-size: clamp(38px, 11vw, 48px);
  }

  .contact-page-heading__rule {
    width: 52px;
    margin-top: 18px;
  }

  .contact-page-heading > p:not(.contact-page-heading__eyebrow) {
    gap: 5px;
    margin-top: 21px;
    font-size: 15px;
    line-height: 1.7;
  }

  .contact-page-heading > p:not(.contact-page-heading__eyebrow) span {
    display: block;
  }

  .contact-methods {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 39px;
  }

  .contact-method {
    min-height: 0;
    padding: 30px 20px 20px;
  }

  .contact-method__icon {
    width: 92px;
    height: 92px;
  }

  .contact-method h2 {
    margin-top: 16px;
    font-size: 28px;
  }

  .contact-method > p {
    font-size: 14px;
  }

  .contact-method__phone-number {
    font-size: 30px;
  }

  .contact-method__email-row {
    min-height: 49px;
    padding-left: 10px;
  }

  .contact-method__copy-status {
    min-height: 22px;
  }

  .contact-method__button {
    min-height: 59px;
    margin-top: 21px;
  }

  .contact-method__button-content {
    grid-template-columns: 32px auto 9px;
    gap: 10px;
    font-size: 16px;
  }

  .contact-method__button-content img,
  .contact-method__button--mail .contact-method__button-content img {
    width: 32px;
    height: 32px;
  }

  .contact-information {
    padding: 27px 0 31px;
  }

  .contact-information .contact-page__container {
    padding: 30px 16px 14px;
  }

  .contact-information h2 {
    font-size: 26px;
  }

  .contact-information__rule {
    margin-bottom: 17px;
  }

  .contact-information__item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 17px 14px;
  }

  .contact-information__label {
    gap: 14px;
  }

  .contact-information__label img {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .contact-information__label h3 {
    font-size: 17px;
  }

  .contact-information__item > p {
    padding-left: 44px;
    font-size: 14px;
    line-height: 1.65;
  }

  .contact-consultation {
    padding: 32px 0 44px;
  }

  .contact-consultation__inner {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 26px 18px;
  }

  .contact-consultation__copy {
    text-align: center;
  }

  .contact-consultation__copy h2 {
    font-size: 23px;
  }

  .contact-consultation__copy p {
    font-size: 14px;
  }

  .contact-consultation__actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-consultation__button {
    min-height: 66px;
    font-size: 17px;
  }

  .contact-consultation__button img {
    width: 38px;
    height: 38px;
  }

  .contact-consultation__button--phone img {
    width: 43px;
    height: 43px;
  }
}

@media (max-width: 340px) {
  .contact-page__container {
    width: calc(100% - 24px);
  }

  .contact-method {
    padding-right: 14px;
    padding-left: 14px;
  }

  .contact-method__email {
    font-size: 13px;
  }

  .contact-method__button-content {
    font-size: 15px;
  }

  .contact-information__item > p {
    padding-left: 0;
  }

  .contact-consultation__inner {
    padding-right: 13px;
    padding-left: 13px;
  }
}
