@charset "utf-8";
/* ==========================================================================
   お問い合わせ 共通（トップページのモーダル・お問い合わせページで共用）
   ========================================================================== */

:root {
  --hw-pink: #e85a78;
  --hw-pink-dark: #d23f5f;
  --hw-pink-light: #fdeef1;
  --hw-pink-border: #f2a3b4;
  --hw-blue: #1f6fc5;
  --hw-blue-dark: #174f93;
  --hw-blue-light: #eaf3fd;
  --hw-blue-border: #9fc7ee;
  --hw-text: #333;
  --hw-muted: #666;
  --hw-white: #fff;
  --hw-radius: 12px;
  --hw-shadow: 0 6px 24px rgba(0, 0, 0, .12);
  --hw-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "メイリオ", Meiryo, sans-serif;
}

/* --------------------------------------------------------------------------
   アイコン（SVGスプライト）
   -------------------------------------------------------------------------- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   選択カード  .contact-choice
   -------------------------------------------------------------------------- */
.contact-choice {
  --choice-color: var(--hw-pink);
  --choice-bg: var(--hw-pink-light);
  --choice-border: var(--hw-pink-border);
  display: flex;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  width: 100%;
  padding: 20px 24px;
  border: 2px solid var(--choice-border);
  border-radius: var(--hw-radius);
  background: var(--choice-bg);
  color: var(--hw-text);
  font-family: var(--hw-font);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.contact-choice--business {
  --choice-color: var(--hw-blue);
  --choice-bg: var(--hw-blue-light);
  --choice-border: var(--hw-blue-border);
}

.contact-choice:hover,
.contact-choice:focus-visible {
  opacity: 1; /* サイト共通の a:hover の半透明を打ち消す */
  transform: translateY(-2px);
  box-shadow: var(--hw-shadow);
}

.contact-choice:focus-visible {
  outline: 3px solid var(--choice-color);
  outline-offset: 3px;
}

.contact-choice__figure {
  width: 110px;
  height: 84px;
}

.contact-choice__body {
  flex: 1;
  min-width: 0;
}

.contact-choice__title {
  display: block;
  margin-bottom: 6px;
  color: var(--choice-color);
  font-size: 1.375rem;
  font-weight: bold;
  line-height: 1.4;
}

.contact-choice--business .contact-choice__title {
  color: var(--hw-blue-dark);
}

/* 見出しを意味のまとまりで改行させる */
.contact-choice__phrase {
  display: inline-block;
}

.contact-choice__text {
  display: block;
  color: var(--hw-text);
  font-size: .9375rem;
  line-height: 1.7;
}

.contact-choice__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--choice-color);
  color: var(--hw-white);
  font-size: 22px;
  flex-shrink: 0;
}

.contact-choices {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   選択モーダル  .contact-modal
   -------------------------------------------------------------------------- */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
  font-family: var(--hw-font);
  animation: contact-modal-fade .25s ease-out;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  cursor: pointer;
}

.contact-modal__dialog {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 36px 32px 32px;
  border-radius: 16px;
  background: var(--hw-white);
  box-shadow: var(--hw-shadow);
  animation: contact-modal-pop .25s ease-out;
}

.contact-modal__title {
  margin: 0 0 28px;
  padding-bottom: 14px;
  color: var(--hw-text);
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  background: linear-gradient(var(--hw-pink), var(--hw-pink)) center bottom / 60% 3px no-repeat;
}

.contact-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eee;
  color: var(--hw-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contact-modal__close:hover,
.contact-modal__close:focus-visible {
  background: #ddd;
}

/* モーダル表示中は背面をスクロールさせない */
.is-contact-modal-open,
.is-contact-modal-open body {
  overflow: hidden;
}

@keyframes contact-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes contact-modal-pop {
  from { transform: translateY(16px) scale(.98); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal,
  .contact-modal__dialog,
  .contact-choice {
    animation: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .contact-modal__dialog {
    padding: 28px 16px 20px;
  }

  .contact-modal__title {
    margin-bottom: 20px;
    padding-right: 36px;
    padding-left: 36px;
    font-size: 1rem;
  }

  .contact-modal__close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .contact-choice {
    gap: 10px;
    padding: 14px 12px;
  }

  .contact-choice__figure {
    width: 56px;
    height: 44px;
  }

  .contact-choice__title {
    font-size: 1rem;
  }

  .contact-choice__text {
    font-size: .8125rem;
  }

  .contact-choice__arrow {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .contact-choice__br {
    display: none;
  }
}
