@charset "UTF-8";

/* ========================================
   お問い合わせモーダル
   ======================================== */

.sp-hide {
  display: block;
}

@media (max-width: 767px) {
  .sp-hide {
    display: none;
  }
}


.pc-hide {
  display: block;
}

@media (min-width: 768px) {
  .pc-hide {
    display: none;
  }
}

.contact-button {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: block;
  width: 100%;
  max-width: 400px;
  margin-top: 0;
  margin-right: auto;
  margin-left: auto;
  padding: .75rem 1rem;
  transition: background-color .1s, opacity .1s;
  text-align: center;
  color: #fff;
  border-radius: 3em;
  background-color: #0A66C2;
}

.contact-button:active,
.contact-button:hover,
.contact-button:link,
.contact-button:visited {
  text-decoration: none;
  color: #fff;
}

.contact-button:hover,
.contact-button:active {
  opacity: 0.8;
  background-color: #1991f5;
}

.contact-button::before {
  content: "";
  right: 1rem;
  font-size: 1.25rem;
  position: absolute;
  top: calc(50% - .2em);
  display: inline-block;
  margin-top: -.625rem;
  pointer-events: none;
  color: #fff;
  font-family: iconfont;
  font-weight: 400;
  font-style: normal;
  font-variant: normal;
  text-decoration: none;
  text-transform: none;
}

.nc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}

.nc-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.nc-modal_overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.nc-modal_dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  transform: scale(0.98);
  transition: transform 0.25s ease;
}

.nc-modal[aria-hidden="false"] .nc-modal_dialog {
  transform: scale(1);
}

.nc-modal_close {
  position: absolute;
  top: 5px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: #333;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nc-modal_close:hover,
.nc-modal_close:focus {
  background-color: rgba(0, 0, 0, 0.06);
  color: #000;
}

.nc-modal_close:focus {
  outline: 2px solid #0A66C2;
  outline-offset: 2px;
}

.nc-modal_closeIcon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.nc-modal_closeIcon::before,
.nc-modal_closeIcon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  content: "";
}

.nc-modal_closeIcon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nc-modal_closeIcon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}


.nc-modal_title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  color: #333;
  border-bottom: 1px solid #D9D9D9;
}

.nc-modal_body {
  padding: 24px 16px 16px;
}

.nc-modal_titleIcon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

/* カード2枚（お問い合わせフォーム / LINE） */
.nc-modal_cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.nc-modal_card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: #F0F0F3;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.nc-modal_card:hover,
.nc-modal_card:focus {
  background-color: #eeeeee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: inherit;
}

.nc-modal_cardIcon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nc-modal_cardIcon--form {
  background-color: #0A66C2;
  border-radius: 8px;
}

.nc-modal_cardIcon--form img,
.nc-modal_cardIcon--line img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nc-modal_cardText {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.nc-modal_cardTitle {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #333;
}

.nc-modal_cardDesc {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: #333;
}

.nc-modal_cardDesc small {
  font-size: 80%;
  display: block;
  margin-top: .1em;
}


/* 電話で質問 */
.nc-modal_phoneRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.nc-modal_phoneIcon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.nc-modal_phoneLink {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
  color: #333;
  font-weight: 700;
  flex-shrink: 0;
}

.nc-modal_phoneLink:hover,
.nc-modal_phoneLink:focus {
  color: #0A66C2;
}

.nc-modal_phoneDesc {
  width: 100%;
  margin-left: 8px;
}

/* ビュー切り替え（電話で質問パネル Figma 2381:3227） */
.nc-modal_view--phone {
  display: none;
}

.nc-modal.is-phone .nc-modal_view--choices {
  display: none;
}

.nc-modal.is-phone .nc-modal_view--phone {
  display: block;
}

.nc-modal_intro {
  margin: 0 0 24px;
  font-weight: bold;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #333;
  text-align: center;
}

.nc-modal_contactBlock {
  padding: 24px 16px 16px;
  border: 1px solid #D9D9D9;
  border-radius: 10px;
}

.nc-modal_contactHeading {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nc-modal_contactTel {
  font-weight: 700;
  color: #0A66C2;
  text-decoration: none;
}

.nc-modal_contactTel:hover {
  text-decoration: underline;
}

.nc-modal_contactHours {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  text-align: center;
}

.nc-modal_contactNotes {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #757575;
}

.nc-modal_contactNotes li {
  position: relative;
}

.nc-modal_contactNotes li:last-child {
  margin-bottom: 0;
}

.nc-modal_contactNotes li::before {
  display: inline-block;
  width: 1em;
  content: "※";
  vertical-align: top;
  text-indent: 0;
}

/* スマホではカードを縦並びに */
@media (max-width: 559px) {
  .nc-modal_cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .nc-modal {
    padding: 240px 0 0;
    align-items: flex-end;
  }

  .nc-modal_body {
    padding-bottom: 24px;
  }

  .nc-modal_dialog {
    border-radius: 8px 8px 0 0;
    max-width: 100%;
  }

  .nc-modal_title {
    width: 90%;
    margin: auto;
    padding: 16px 0;
  }

  .nc-modal_card {
    padding: 24px;
    border-radius: 10px;
  }

  .nc-modal_cardTitle {
    font-size: 18px;
  }

  .nc-modal_cardIcon {
    width: 64px;
    height: 64px;
  }

  .nc-modal_cardIcon--form img,
  .nc-modal_cardIcon--line img {
    width: 64px;
    height: 64px;
  }

  .nc-modal_cardDesc {
    font-size: 14px;
  }

  .nc-modal_phoneIcon {
    width: 30px;
    height: 30px;
  }

  .nc-modal_phoneRow {
    flex-wrap: wrap;
    gap: 0px 8px;
  }

  .nc-modal_phoneDesc {
    margin-left: 38px;
  }

  .nc-modal_intro {
    font-size: 16px;
  }

  .nc-modal_contactHeading {
    flex-direction: column;
    margin-bottom: 16px;
  }

  .nc-modal_contactBlock {
    border-radius: 8px;
    padding: 16px;
  }

  .nc-modal_contactHours {
    font-size: 14px;
  }

}


@media (min-width: 768px) {
  .nc-modal_dialog {
    max-width: 680px;
    border-radius: 12px;
    box-shadow: 0 1px 10px 4px rgba(0, 0, 0, 0.25);
  }



  .nc-modal_title {
    font-size: 18px;
    padding: 14px 16px;
  }

  .nc-modal_body {
    padding: 24px;
  }

  .nc-modal_cards {
    gap: 24px;
    margin-bottom: 24px;
  }

  .nc-modal_card {
    padding: 24px 24px 24px 32px;
    gap: 24px;
    border-radius: 10px;
  }

  .nc-modal_cardTitle {
    font-size: 1.0625rem;
  }

  .nc-modal_cardDesc {
    font-size: 0.875rem;
  }



  .nc-modal_phoneRow {
    font-size: 0.9375rem;
  }
}
