/* === お問い合わせ・法務ページ === */
/**
 * Den-SHOW Design System 1.0 GM Candidate
 * 【概要】Contact / Privacy の実務ページ専用スタイル。
 * 【目的】Page Purpose First と Simplicity First に基づき、可読性と操作性を優先する。
 * 【修正時の注意】固定UI、Contact Form 7、reCAPTCHAとの競合を必ず実機確認する。
 */
.ds-simple-hero {
  display: flex;
  min-height: 360px;
  padding: 170px 0 78px;
  align-items: flex-end;
  background: linear-gradient(180deg, #f8faf8 0%, #fff 100%);
}
.ds-simple-hero .ds-kicker {
  margin: 0 0 16px;
  color: var(--ds-green, #4dbb62);
  font:
    600 13px/1.2 Inter,
    sans-serif;
  letter-spacing: 0.18em;
}
.ds-simple-hero h1 {
  margin: 0;
  color: #142018;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.04em;
}
.ds-contact-section,
.ds-legal-section {
  padding: 96px 0 128px;
  background: #fff;
}
.ds-contact-layout {
  max-width: 820px;
}
.ds-contact-intro {
  margin-bottom: 56px;
  color: #4b554e;
  font-size: 16px;
  line-height: 2;
}
.ds-contact-intro p {
  margin: 0 0 12px;
}
.ds-contact-note {
  color: #747d77;
  font-size: 14px;
}
.ds-contact-form {
  padding: 48px;
  border: 1px solid #e5eae6;
  background: #fbfcfb;
  box-shadow: 0 22px 70px rgba(23, 52, 31, 0.06);
}
.ds-contact-form label {
  display: block;
  margin: 0 0 26px;
  color: #26352b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}
.ds-contact-form .required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #edf6ef;
  color: #287f3d;
  font-size: 10px;
  letter-spacing: 0.08em;
  vertical-align: middle;
}
.ds-contact-form input[type="text"],
.ds-contact-form input[type="email"],
.ds-contact-form input[type="tel"],
.ds-contact-form select,
.ds-contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border: 1px solid #ccd6ce;
  border-radius: 2px;
  background: #fff;
  color: #1b251e;
  font:
    400 16px/1.6 "Noto Sans JP",
    sans-serif;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.ds-contact-form textarea {
  min-height: 190px;
  resize: vertical;
}
.ds-contact-form input:focus,
.ds-contact-form select:focus,
.ds-contact-form textarea:focus {
  border-color: var(--ds-green, #4dbb62);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(77, 187, 98, 0.12);
}
.ds-contact-form .wpcf7-list-item {
  margin: 0;
}
.ds-contact-form .wpcf7-list-item-label {
  font-weight: 400;
}
.ds-contact-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 9px;
  vertical-align: -3px;
  accent-color: var(--ds-green, #4dbb62);
}
.ds-contact-form input[type="submit"] {
  min-width: 190px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: #183b25;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}
.ds-contact-form input[type="submit"]:hover {
  background: #235630;
  transform: translateY(-2px);
}
.ds-contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12px;
}
.ds-contact-form .wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 14px 16px !important;
  border-width: 1px !important;
  font-size: 14px;
  line-height: 1.7;
}
.ds-contact-privacy {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid #e5eae6;
}
.ds-contact-privacy h2 {
  margin: 0 0 14px;
  color: #26352b;
  font-size: 18px;
}
.ds-contact-privacy p {
  margin: 0 0 12px;
  color: #68716b;
  line-height: 1.9;
}
.ds-contact-privacy a {
  color: #287f3d;
  font-weight: 600;
  text-decoration: none;
}
.ds-legal-content {
  max-width: 860px;
}
.ds-legal-lead {
  margin: 0 0 64px;
  font-size: 16px;
  line-height: 2.1;
}
.ds-legal-content h2 {
  margin: 58px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1e7e2;
  color: #203027;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
}
.ds-legal-content p,
.ds-legal-content li {
  color: #4e5952;
  font-size: 15px;
  line-height: 2;
}
.ds-legal-content ul {
  padding-left: 1.4em;
}
/* Fixed UI Principle: reCAPTCHA badgeとの競合を避ける。ContactページではCTA自体を出力しない。 */
.ds-floating-contact {
  bottom: max(120px, calc(120px + env(safe-area-inset-bottom))) !important;
}
/* === レスポンシブ・環境別調整 === */
@media (max-width: 760px) {
  .ds-simple-hero {
    min-height: 280px;
    padding: 128px 0 54px;
  }
  .ds-contact-section,
  .ds-legal-section {
    padding: 64px 0 90px;
  }
  .ds-contact-form {
    padding: 26px 18px;
  }
  .ds-floating-contact {
    bottom: max(112px, calc(112px + env(safe-area-inset-bottom))) !important;
  }
  .ds-legal-content h2 {
    font-size: 19px;
  }
}

/* ============================================================
   GM Candidate P0.1 / Contact・Privacy 表示修正
   【概要】公開後の実機確認で判明したヘッダー、フォーム、通知表示を修正。
   【目的】TOPと同じナビゲーション幅、明瞭な送信結果、安定したフォーム操作を実現する。
   【修正時の注意】Contact Form 7の標準クラスを変更する場合は本セクションも同期する。
   ============================================================ */

/* StandaloneページでもTOPと同じPCナビゲーション寸法を適用する。 */
@media (min-width: 901px) {
  body.denshow-standalone-page .ds-floating-nav {
    width: min(1260px, calc(100% - 52px)) !important;
    height: 72px !important;
    padding: 0 30px !important;
  }
  body.denshow-standalone-page .ds-floating-nav .ds-nav-logo img {
    max-height: 42px !important;
  }
  body.denshow-standalone-page .ds-nav-links {
    height: 100% !important;
    gap: 24px !important;
    align-items: center !important;
  }
  body.denshow-standalone-page .ds-nav-links > a,
  body.denshow-standalone-page .ds-nav-dropdown__trigger {
    display: inline-flex !important;
    min-height: 72px !important;
    align-items: center !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.075em !important;
  }
}

/* Contact Form 7：送信結果を背景上で確実に読める配色へ固定する。 */
.ds-contact-form .wpcf7-response-output {
  border-color: #4dbb62 !important;
  background: #f2faf4 !important;
  opacity: 1 !important;
  color: #203027 !important;
}
.ds-contact-form form.invalid .wpcf7-response-output,
.ds-contact-form form.unaccepted .wpcf7-response-output,
.ds-contact-form form.payment-required .wpcf7-response-output {
  border-color: #d9a928 !important;
  background: #fff9e8 !important;
  color: #6a4a00 !important;
}
.ds-contact-form form.failed .wpcf7-response-output,
.ds-contact-form form.aborted .wpcf7-response-output,
.ds-contact-form form.spam .wpcf7-response-output {
  border-color: #c83e49 !important;
  background: #fff2f3 !important;
  color: #7b1d24 !important;
}

/* selectの文字切れを防止する。ブラウザ標準UIを維持しつつ高さを明示する。 */
.ds-contact-form select {
  overflow: visible !important;
  height: auto !important;
  min-height: 56px !important;
  padding: 12px 44px 12px 15px !important;
  line-height: 1.5 !important;
  white-space: normal !important;
  text-overflow: clip !important;
}
.ds-contact-form select option {
  background: #fff !important;
  color: #1b251e !important;
  line-height: 1.5 !important;
}

/* PCでは短い注意文を1行で見せ、モバイルでは自然に折り返す。 */
@media (min-width: 901px) {
  .ds-contact-privacy p {
    font-size: 14px;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
}

/* モバイル法務ページの表示安定化。WordPress親テーマのcontent制御を打ち消す。 */
@media (max-width: 900px) {
  body.denshow-standalone-page,
  body.denshow-standalone-page .ds-page,
  body.denshow-standalone-page .ds-legal-section,
  body.denshow-standalone-page .ds-legal-content {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: none;
    opacity: 1 !important;
  }
  body.denshow-standalone-page .ds-legal-content {
    width: min(100% - 30px, 860px) !important;
    margin-inline: auto !important;
  }
  .ds-contact-privacy p {
    white-space: normal;
  }
}

/* ============================================================
   GM Candidate P0.2 / Navigation・Floating CTA 最終配置
   【概要】独立ページのナビゲーション幅をTOPと完全に揃え、
           フローティングお問い合わせ導線を画面中央下へ移動する。
   【目的】ページ間の見た目の不一致とreCAPTCHAバッジとの競合を解消する。
   【修正時の注意】ContactページではPHP側でCTAを出力しない。
   ============================================================ */
@media (min-width: 901px) {
  body.denshow-standalone-page .ds-floating-nav {
    right: 28px !important;
    left: 28px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }
}

/* reCAPTCHAは右下、問い合わせCTAは中央下に分離する。 */
.ds-floating-contact {
  right: auto !important;
  bottom: max(24px, calc(24px + env(safe-area-inset-bottom))) !important;
  left: 50% !important;
  transform: translateX(-50%) translateZ(0) !important;
}
.ds-floating-contact:hover,
.ds-floating-contact:focus-visible {
  transform: translateX(-50%) translateY(-3px) !important;
}
@media (max-width: 760px) {
  .ds-floating-contact {
    right: auto !important;
    bottom: max(18px, calc(18px + env(safe-area-inset-bottom))) !important;
    left: 50% !important;
    transform: translateX(-50%) translateZ(0) !important;
  }
  .ds-floating-contact:hover,
  .ds-floating-contact:focus-visible {
    transform: translateX(-50%) translateY(-2px) !important;
  }
}

/* ============================================================
   P0.3：右側中央の縦型フローティングCTA
   【概要】お問い合わせ導線を画面右側中央の縦長タブへ変更する。
   【目的】reCAPTCHA、本文、フッターのいずれとも競合せず、常時視認できる導線にする。
   【設計思想】固定UIは画面端に集約し、コンテンツ領域を侵食しない。
   【修正時の注意】ContactページではPHP側でCTAを出力しない。
   ============================================================ */
.ds-floating-contact {
  top: 50% !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  display: flex !important;
  width: 54px !important;
  min-width: 54px !important;
  height: 154px !important;
  min-height: 154px !important;
  padding: 18px 0 !important;
  gap: 10px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 16px 0 0 16px !important;
  box-shadow: -10px 14px 36px rgba(28, 79, 43, 0.18) !important;
  line-height: 1 !important;
  letter-spacing: 0.12em !important;
  writing-mode: vertical-rl !important;
  transform: translateY(-50%) translateZ(0) !important;
  text-orientation: upright !important;
}
.ds-floating-contact__arrow {
  margin: 0 !important;
  writing-mode: horizontal-tb !important;
  transform: rotate(90deg) !important;
}
.ds-floating-contact:hover,
.ds-floating-contact:focus-visible {
  transform: translateY(-50%) translateX(-4px) !important;
}
@media (max-width: 760px) {
  .ds-floating-contact {
    top: 50% !important;
    right: 0 !important;
    bottom: auto !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 136px !important;
    min-height: 136px !important;
    padding: 14px 0 !important;
    border-radius: 14px 0 0 14px !important;
    font-size: 12px !important;
    transform: translateY(-50%) translateZ(0) !important;
  }
  .ds-floating-contact:hover,
  .ds-floating-contact:focus-visible {
    transform: translateY(-50%) translateX(-3px) !important;
  }
}

/* ============================================================
   GM Candidate P0.4 / Canonical Privacy・共通HERO・Navigation統一
   【概要】Contact / Privacy を事業ページと同じHERO・ナビゲーション基盤へ統合する。
   【目的】ページ間のメニューバー寸法差を根本解消し、独立ページにもブランドの連続性を持たせる。
   【修正時の注意】ナビゲーション寸法は事業ページの .ds-page--hero-final と同値に保つ。
   ============================================================ */
body.denshow-standalone-page .ds-page--hero-final .ds-floating-nav {
  right: auto !important;
  left: 50% !important;
  width: min(1260px, calc(100% - 52px)) !important;
  max-width: none !important;
  height: 72px !important;
  padding: 0 30px !important;
  transform: translateX(-50%) !important;
}

.ds-utility-hero {
  position: relative;
  display: flex;
  overflow: hidden;
  isolation: isolate;
  min-height: 560px;
  padding: 190px 0 92px;
  align-items: flex-end;
  background: radial-gradient(
      circle at 78% 34%,
      rgba(68, 170, 86, 0.16),
      transparent 34%
    ),
    linear-gradient(145deg, #07110b 0%, #0d1b12 54%, #13251a 100%);
}
.ds-utility-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(93, 211, 112, 0.62),
    transparent
  );
}
.ds-utility-hero__glow {
  position: absolute;
  top: 4%;
  right: 7%;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(76, 190, 94, 0.11);
  filter: blur(90px);
}
.ds-utility-hero__symbol {
  position: absolute;
  right: 7%;
  bottom: -20%;
  z-index: -1;
  width: min(34vw, 480px);
  height: auto;
  opacity: 0.09;
  filter: grayscale(1) brightness(2.1);
  pointer-events: none;
}
.ds-utility-hero__content {
  position: relative;
  z-index: 1;
}
.ds-utility-hero .ds-kicker {
  margin: 0 0 20px;
  color: #65d67a;
  font:
    700 13px/1.2 Inter,
    sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.ds-utility-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.055em;
}
@media (max-width: 900px) {
  body.denshow-standalone-page .ds-page--hero-final .ds-floating-nav {
    right: 12px !important;
    left: 12px !important;
    width: calc(100vw - 24px) !important;
    height: auto !important;
    padding: 8px 12px !important;
    transform: none !important;
  }
  .ds-utility-hero {
    min-height: 420px;
    padding: 145px 0 68px;
  }
  .ds-utility-hero__symbol {
    right: -12%;
    bottom: -5%;
    width: 72vw;
    opacity: 0.075;
  }
  .ds-utility-hero h1 {
    font-size: clamp(38px, 11vw, 56px);
  }
}

/* ============================================================
   GM Candidate P0.5 / Privacy Navigation・CTA・Language Rule
   【概要】Privacyページのナビゲーション基盤をContactと統一し、
           フローティングCTAの矢印を廃止。HEROタイトルは英語表記とする。
   【目的】全ページ共通のヘッダー幅と、メニュー日本語／タイトル英語の表記ルールを徹底する。
   【修正時の注意】メニュー項目は日本語を維持し、HERO見出し・演出文字は英語を許容する。
   ============================================================ */

/* PrivacyもContactと同じ hero-final 基盤でナビゲーション幅を確定する。 */
body.denshow-privacy-page .ds-page--hero-final .ds-floating-nav,
body.denshow-contact-page .ds-page--hero-final .ds-floating-nav {
  right: auto !important;
  left: 50% !important;
  width: min(1260px, calc(100% - 52px)) !important;
  max-width: none !important;
  height: 72px !important;
  padding: 0 30px !important;
  transform: translateX(-50%) !important;
}

/* 縦型CTAは文字だけで成立させ、矢印は表示しない。 */
.ds-floating-contact__arrow {
  display: none !important;
}

/* 英語タイトルは欧文書体・文字間で明確に見せる。 */
.ds-utility-hero h1 {
  font-family: Inter, "Noto Sans JP", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.ds-utility-hero .ds-kicker {
  letter-spacing: 0.14em;
  text-transform: none;
}

@media (max-width: 900px) {
  body.denshow-privacy-page .ds-page--hero-final .ds-floating-nav,
  body.denshow-contact-page .ds-page--hero-final .ds-floating-nav {
    right: 12px !important;
    left: 12px !important;
    width: calc(100vw - 24px) !important;
    height: auto !important;
    padding: 8px 12px !important;
    transform: none !important;
  }
}
