@charset "UTF-8";

/* ページ全体 */
.main.contact {
  padding: 80px 18px 100px;
  background-color: var(--bg-orange);
}

/* コンテナ */
.contact-container {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  padding: 56px 56px 72px;
  border-radius: 4px;
}

/* ページヘッダー */
.contact__page-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.contact__page-en {
  display: block;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--brand-orange);
  font-weight: 700;
  margin-bottom: 6px;
}

.contact__page-ja {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* リード文 */
.contact__lead {
  font-size: 14px;
  line-height: 2;
  color: #444;
  margin-bottom: 32px;
}

.underline-yellow {
  background: linear-gradient(transparent 60%, #FFFF55 60%);
  display: inline;
}

.bold-red {
  color: #F44F4F;
  font-weight: 700;
}

/* 電話CTAラベル */
.contact__tel-label {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-bottom: 10px;
}

/* 電話CTAラッパー */
.contact__tel-cta {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.contact__tel-cta .cta-btn--tel {
  max-width: 520px;
  width: 100%;
  height: 70px;
  font-size: 20px;
}

/* フォームセクション見出し */
.contact__form-heading {
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-orange);
  margin-bottom: 20px;
}

/* 注記 */
.contact__note {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 28px;
}

.contact__note span {
  color: var(--brand-orange);
}

/* 営業・メディア向けノート */
.contact__biz-note {
  margin-bottom: 24px;
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 10px 14px;
}

.contact__biz-link {
  color: var(--brand-orange);
  font-weight: 700;
  text-decoration: underline;
}

/* ラベルと入力 */
form label {
  display: block;
  margin-bottom: 20px;
  font-weight: 500;
}

.contact__message-hint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #888;
  margin-top: 2px;
  margin-bottom: 4px;
}

.contact__required {
  color: var(--brand-orange);
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
}

select {
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
  color: #ccc;
}

textarea {
  height: 120px;
  resize: vertical;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: none;
  color: #4caf50;
}

/* プライバシーポリシー（フォーム同意） */
.contact__policy-agree {
  margin-top: 30px;
}

.contact__policy-lead {
  font-size: 12px;
  font-weight: 400;
  color: #888;
  line-height: 1.6;
  margin: 0 0 10px;
}

.contact__policy-lead .contact__policy-link {
  color: #888;
  font-weight: 400;
}

.contact__policy-lead .contact__policy-link:hover {
  color: #666;
}

.contact__policy-link {
  color: #e85d04;
  font-weight: 700;
  text-decoration: underline;
}

.contact__policy-link:hover {
  color: #c44d00;
}

.contact__policy-note {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin: 12px 0 0;
}

.contact__agree {
  margin-top: 0;
}

.contact__agree .contact__policy-link {
  font-size: inherit;
}

/* プライバシーポリシー専用ページ */
.contact__policy-page {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.contact__policy-page p {
  margin: 0 0 1em;
}

.contact__policy-back {
  margin-top: 32px;
  text-align: center;
}

.contact__policy-back a {
  color: #e85d04;
  font-weight: 700;
  text-decoration: underline;
}

input[type="checkbox"] {
  transform: scale(1.5);
}

/* 送信ボタンラッパー（JSで生成） */
.contact__submit-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 50px;
}

.contact__submit-wrapper::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0));
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

.contact__submit-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 -2px 0 rgba(0,0,0,0.15) inset;
  pointer-events: none;
  z-index: 2;
}

/* input の上に重ねて shine が見えるようにする */
.contact__submit-wrapper .cta-shine {
  z-index: 3;
  pointer-events: none;
}

/* disabled 時はシャインを止める */
.contact__submit-wrapper.is-pending .cta-shine::after {
  animation: none;
  opacity: 0;
}

.contact__submit-wrapper.is-ready .cta-shine::after {
  animation: ctaShineSweep 3.6s ease-in-out infinite;
  animation-delay: 1.8s;
  opacity: 0.5;
}

/* 矢印 → */
.contact__submit-arrow {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 22px;
  pointer-events: none;
  z-index: 3;
  transition: transform 150ms ease;
}
.contact__submit-wrapper.is-ready:hover .contact__submit-arrow {
  transform: translateY(-50%) translateX(5px);
}

.contact__submit-wrapper.is-pending .contact__submit-arrow {
  opacity: 0.85;
}

/* ボタン本体（cta-btn--form スタイル） */
.contact__submit-btn {
  display: block;
  width: 100%;
  height: 72px;
  background: linear-gradient(180deg, #2fd14a 0%, #15a82a 55%, #0f8a22 100%);
  color: #fff;
  border: none;
  padding: 0 52px 0 0;
  font-size: 30px;
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 80ms ease, filter 120ms ease;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 6px 0 #0a6618,
    0 10px 18px -6px rgba(0,170,40,0.55),
    0 4px 10px -2px rgba(0,0,0,0.35);
  animation: none;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

.contact__submit-wrapper.is-pending .contact__submit-btn {
  cursor: pointer;
  opacity: 1;
}

.contact__submit-wrapper.is-pending:hover .contact__submit-btn {
  filter: brightness(1.04);
}

.contact__submit-wrapper.is-ready .contact__submit-btn {
  animation: ctaBtnBreathe 2.4s ease-in-out 1.2s infinite;
  cursor: pointer;
}

.contact__submit-wrapper.is-ready:hover .contact__submit-btn {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.contact__submit-wrapper.is-ready .contact__submit-btn:active {
  transform: translateY(1px);
  filter: brightness(0.96);
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .contact__submit-btn,
  .cta-shine::after { animation: none !important; }
}

@media screen and (max-width: 768px) {
  .main.contact {
    padding: 40px 0 60px;
  }

  .contact-container {
    padding: 36px 20px 56px;
    border-radius: 0;
  }

  .contact__tel-cta .cta-btn--tel {
    height: 64px;
    font-size: 18px;
  }

  form label {
    margin-bottom: 20px;
    font-size: 14px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 14px;
    margin-top: 8px;
  }

  .contact__policy-box-ttl {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .contact__policy-scroll {
    padding: 16px 16px 24px;
    height: 200px;
  }

  .contact__submit-wrapper {
    margin-top: 40px;
  }

  .contact__submit-btn {
    height: 66px;
    font-size: 22px;
    padding-right: 44px;
  }

  .contact__submit-arrow {
    font-size: 18px;
    right: 18px;
  }
}

.wpcf7-response-output {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(164, 244, 208, 0.9);
  color: #009866;
  z-index: 1000;
  border: none !important;
  margin: 0 !important;
  padding: 16px 48px 16px 16px !important;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  background-color: rgba(255, 202, 202, 0.9);
  color: #fa2c37;
}
.wpcf7-not-valid-tip {
  font-size: 14px;
  color: #fa2c37;
}
.wpcf7-response-output:empty {
  display: none;
}
.wpcf7-response-output::after {
  content: "×";
  display: inline-block;
  width: 24px;
  height: 24px;
  position: absolute;
  top: calc(50% - 12px);
  right: 16px;
  font-size: 24px;
  line-height: 24px;
}

.wpcf7-spinner {
  position: fixed !important;
  top: 50vh;
  left: 50%;
  width: 34px !important;
  height: 34px !important;
  background-color: var(--brand-orange) !important;
}

@media screen and (max-width: 768px) {
  .wpcf7-spinner {
    left: 40%;
  }
}
