/* お問い合わせナビゲーションボタン */
.contact-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0 auto 3rem;
  max-width: 600px;
}

.contact-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 2rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--accent-orange);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-brown);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-nav-btn:hover {
  background-color: var(--accent-orange);
  color: var(--text-white);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(237, 125, 49, 0.3);
}

.contact-nav-btn svg {
  color: var(--accent-orange);
  transition: color 0.3s ease;
}

.contact-nav-btn:hover svg {
  color: var(--text-white);
}

.contact-nav-btn span {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* お問い合わせカード */
.contact-form-card {
  max-width: 700px;
  margin: 0 auto 3rem;
  scroll-margin-top: 100px;
}

.page-bottom-cta {
  scroll-margin-top: 100px;
}

/* Contact Form 7 デフォルトスタイルの上書き */
.wpcf7 {
  width: 100%;
}

.wpcf7-form {
  width: 100%;
}

.wpcf7-form p {
  margin: 0;
}

.contact-intro {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  color: var(--text-medium);
}

#contact p {
  margin-bottom: 10px;
}

label.inline,
input[type="checkbox"] + label {
	display: inline;
	font-weight: 400;
	margin-right: 0.5rem;
}

#contact label {
  display: flex;
  align-items: baseline;
}

input[type="radio"],
input[type="checkbox"] {
  padding: 0 !important; /* paddingを消す */
  margin: 0 0.5em 0 0 !important; /* ラベルとの間に余白を追加 */
  width: auto !important;      /* 幅を自動（ボタンの大きさだけ）にする */
  height: auto !important;     /* 高さも自動にする */
  display: inline-block !important;
}

input[type="radio"] {
  appearance: radio !important; /* ラジオボタンの見た目を強制する */
  -webkit-appearance: radio !important;
}

input[type="checkbox"] {
  appearance: checkbox !important; /* チェックボックスの見た目を強制する */
  -webkit-appearance: checkbox !important;
}

form input[type="submit"],
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  -webkit-appearance: none; /* iOS Safari用 */
  appearance: none;
  display: block;
  width: 100%;
  max-width: 250px;
  background-color: var(--accent-orange);
  color: var(--text-white);
  font-size: 14px;
  text-align: center;
  border-radius: 50px;
  position: relative;
  transition: .3s;
  margin: 40px auto 0;
  cursor: pointer;
  border: none;
  padding: 1em 2em;
}

form input,
form textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  display: block;
  max-width: 100%;
  width: 100%;
  box-shadow: none;
  border: 1px solid var(--secondary-beige);
  padding: 1em;
  font-family: inherit;
  font-size: inherit;
}


.wpcf7-list-item-label {
  white-space: nowrap;
}

.wpcf7-list-item {
  margin: auto;
}

/* 電話リンクのスタイル */
.phone-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: opacity 0.3s;
}

.phone-link:hover {
  opacity: 0.8;
}

/* 丸で囲んだ電話アイコン */
.phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--accent-orange);
  border-radius: 50%;
  font-size: 1.3rem;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.phone-link:hover .phone-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 電話お問い合わせセクション */
.phone-contact-card {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--secondary-beige);
}

.phone-contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.phone-number {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.phone-hours {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* 電話モーダル */
.phone-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.phone-modal.show {
  display: flex;
}

.phone-modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

.phone-modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-orange);
}

.phone-modal-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.modal-close-btn {
  background-color: var(--accent-orange);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.modal-close-btn:hover {
  opacity: 0.8;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Contact Form 7 メッセージスタイル */
.wpcf7-response-output {
  margin: 1.5rem 0 0;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.wpcf7-mail-sent-ok {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.wpcf7-spinner {
  display: inline-block;
  margin-left: 0.5rem;
}

/* プライバシーポリシー同意チェックボックスのスタイル調整 */
.wpcf7-list-item {
  margin: 0!important;
}

.wpcf7-acceptance .wpcf7-list-item-label {
  /* display: flex; */
  align-items: baseline;
  gap: 0.5rem;
}

/* 必須表示 */
.form__label .required {
  color: #dc3545;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  font-weight: 400;
}
