@charset "UTF-8";
/* 01 共通：既存のGLEAMWORKS本文・フォント設定を引き継ぐ */
.gw-contact {
  --gw-form-black: #262626;
  --gw-form-white: #eeeeee;
  --gw-form-accent: #ff9600;
  color: var(--gw-form-black);
  font-family: var(--font-ja, "Noto Sans JP", sans-serif);
  font-size: 14px;
  line-height: 1.8;
  width: 100%;
  min-width: 0;
}
.gw-contact *, .gw-contact *::before, .gw-contact *::after { box-sizing: border-box; }
.gw-contact .gw-contact-intro { margin: 0 0 28px; }
.gw-contact-required, .gw-contact-optional { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 400; white-space: nowrap; vertical-align: middle; }
.gw-contact-required { padding: 1px 7px; border-radius: 3px; background: var(--gw-form-black); color: var(--gw-form-white); }
.gw-contact-optional { padding: 1px 0; }
.gw-contact-fields { border-top: 1px solid var(--gw-form-black); }

/* 02 入力行：PCはラベル＋入力欄、スマホは縦並び */
.gw-contact-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px 28px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--gw-form-black); }
.gw-contact-row > p, .gw-contact-consent > p, .gw-contact-actions > p { margin: 0; }
.gw-contact-label { display: block; padding-top: 11px; font-size: 14px; font-weight: 500; }
.gw-contact-value { min-width: 0; }
.gw-contact-value > p { margin: 0; }
.gw-contact .wpcf7-form-control-wrap { display: block; width: 100%; }
.gw-contact input[type="text"],
.gw-contact input[type="email"],
.gw-contact input[type="tel"],
.gw-contact select,
.gw-contact textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--gw-form-black);
  border-radius: 6px;
  background: var(--gw-form-white);
  color: var(--gw-form-black);
  font: inherit;
  line-height: 1.6;
  transition: border-color .2s ease, outline-color .2s ease;
}
.gw-contact input[type="email"], .gw-contact input[type="tel"] { font-family: var(--font-en, "Roboto", sans-serif); }
.gw-contact input::placeholder, .gw-contact textarea::placeholder { color: var(--gw-form-black); opacity: .55; }
.gw-contact textarea { min-height: 190px; resize: vertical; }
.gw-contact select { cursor: pointer; padding-right: 32px; }
.gw-contact input:focus-visible, .gw-contact select:focus-visible, .gw-contact textarea:focus-visible, .gw-contact-policy-box:focus-visible { outline: 2px solid var(--gw-form-accent); outline-offset: 3px; }
.gw-contact .gw-contact-help { margin: 8px 0 0; font-size: 12px; line-height: 1.8; }
.gw-contact .gw-contact-count { margin: 8px 0 0; text-align: right; font-size: 12px; }

/* 03 プライバシーポリシー：本文のスクロールと同意状態 */
.gw-contact-privacy { margin-top: 44px; }
.gw-contact .gw-contact-policy-title { margin: 0 0 12px; font-size: 16px; font-weight: 500; line-height: 1.8; }
.gw-contact-policy-box { height: 240px; max-height: 40vh; min-height: 160px; margin-top: 16px; padding: 20px 24px; border: 1px solid var(--gw-form-black); border-radius: 6px; background: var(--gw-form-white); overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: var(--gw-form-black) var(--gw-form-white); }
.gw-contact .gw-contact-policy-box p { margin: 0 0 16px; font-size: 12px; line-height: 2; }
.gw-contact .gw-contact-policy-box ul { margin: 0 0 16px; padding-left: 1.5em; font-size: 12px; line-height: 2; }
.gw-contact .gw-contact-policy-box li { margin: 0 0 4px; padding-left: 0; }
.gw-contact .gw-contact-policy-box a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.gw-contact .gw-contact-policy-box a:hover { color: var(--gw-form-accent); }
.gw-contact .gw-contact-policy-box h3 { margin: 24px 0 8px; font-size: 13px; font-weight: 500; }
.gw-contact .gw-contact-policy-box > :first-child { margin-top: 0; }
.gw-contact .gw-contact-policy-box > :last-child { margin-bottom: 0; }
.gw-contact .gw-contact-policy-status { margin: 12px 0 0; font-size: 12px; min-height: 1.8em; }
.gw-contact-consent { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.gw-contact-consent:disabled { opacity: .5; }
.gw-contact-consent .wpcf7-list-item { margin: 0; }
.gw-contact-consent label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.gw-contact-consent:disabled label { cursor: not-allowed; }
.gw-contact-consent input[type="checkbox"] { appearance: auto; flex: 0 0 auto; width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--gw-form-accent); }
.gw-contact-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* 04 送信：中央揃え・幅300px・hover時102% */
.gw-contact-actions { position: relative; margin-top: 36px; text-align: center; }
.gw-contact .gw-contact-submit { display: inline-flex; align-items: center; justify-content: center; width: 300px; max-width: 100%; min-height: 48px; margin: 0; padding: 10px 30px; border: 1px solid var(--gw-form-black); border-radius: 6px; background: var(--gw-form-black); color: var(--gw-form-white); font: inherit; cursor: pointer; transform-origin: center; transition: transform .2s ease, color .2s ease, opacity .2s ease; }
.gw-contact .gw-contact-submit:disabled { opacity: .4; cursor: not-allowed; }
@media (hover: hover) { .gw-contact .gw-contact-submit:not(:disabled):hover { transform: scale(1.02); color: var(--gw-form-accent); } }
.gw-contact .gw-contact-submit:focus-visible { outline: 2px solid var(--gw-form-accent); outline-offset: 4px; }
.gw-contact-actions .wpcf7-spinner { position: absolute; top: 12px; margin: 0 0 0 12px; background: var(--gw-form-black); }

/* 05 CF7の入力エラー・送信結果（色数は増やさない） */
.gw-contact .wpcf7-not-valid { border-color: var(--gw-form-accent); outline: 1px solid var(--gw-form-accent); }
.gw-contact .wpcf7-not-valid-tip { margin-top: 8px; color: var(--gw-form-black); font-size: 12px; }
.wpcf7 form:has(.gw-contact) .wpcf7-response-output { margin: 28px 0 0; padding: 16px 20px; border: 1px solid #262626; border-left: 4px solid #ff9600; border-radius: 6px; color: #262626; font-size: 14px; }

/* 06 スマホ・動きを減らす設定 */
@media (max-width: 767px) {
  .gw-contact-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px 0; }
  .gw-contact-row > p, .gw-contact-consent > p, .gw-contact-actions > p { margin: 0; }
.gw-contact-label { display: block; padding-top: 0; }
  .gw-contact input[type="text"], .gw-contact input[type="email"], .gw-contact input[type="tel"], .gw-contact select, .gw-contact textarea { font-size: 16px; /* iPhoneで入力時の意図しない拡大を防ぐ */ }
  .gw-contact-policy-box { padding: 16px; }
  .gw-contact-actions .wpcf7-spinner { position: static; display: block; margin: 12px auto 0; }
}
@media (prefers-reduced-motion: reduce) { .gw-contact *, .gw-contact *::before, .gw-contact *::after { transition: none !important; transform: none !important; } }
