/* ===== Formly X 共通スタイル（ヘッダー・フッター・ボタン・ベース） ===== */
:root {
  --fx-gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%);
  --fx-blue: #3B82F6;
  --fx-pink: #EC4899;
  --fx-purple: #8B5CF6;
  --fx-dark: #13202f;
  --fx-font: "Zen Kaku Gothic New", "Hiragino Sans", "ヒラギノ角ゴシック", Meiryo, Helvetica, Arial, system-ui, sans-serif;
}

/* Reset / Base（index.html と一致） */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--fx-font) !important;
  color: var(--fx-dark);
  -webkit-font-smoothing: antialiased;
  background: #fff;
  font-size: 14px;
  line-height: 1.7;
}
body *, body *::before, body *::after { font-family: inherit; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
main { margin-top: 0 !important; }

/* ===== Header（index.htmlと共通） ===== */
.header-global {
  min-width: 960px;
  height: 72px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 101;
  background-color: #fff;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
}
.header-global > .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  height: 100%;
}
.header-global__logo a {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-global__logo a img {
  height: 27px;
  width: auto;
}
.header-global__nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;   /* base.min.css と同じく nav を右寄せ */
}
.p-navigation-global__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
/* base.min.css の `.header-global__nav > ul > li a { padding: 0 14px }` と一致 */
.header-global__nav > ul > li a,
.p-navigation-global__list > li > a {
  display: block;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fx-dark);
  transition: color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.header-global__nav > ul > li a:hover,
.p-navigation-global__list > li > a:hover {
  color: var(--fx-purple);
}
.header-global__buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}
.header-global__sp-buttons {
  display: none;
}

/* ===== Buttons ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  font-family: inherit;
}
/* base.min.css の `.header-global a:hover { text-decoration: underline }` を打ち消す */
.button:hover,
.button:focus,
.header-global__buttons .button:hover,
.header-global__sp-buttons .button:hover {
  text-decoration: none;
}
.button.-gradient {
  background: var(--fx-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  border: 1.5px solid #1a1a1a;
}
.button.-gradient:hover {
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.button.-outline {
  background: #fff;
  color: var(--fx-dark);
  border: 1.5px solid #1a1a1a;
}
.button.-outline:hover {
  border-color: var(--fx-purple);
  color: var(--fx-purple);
}
.button.-gradient-large {
  background: var(--fx-gradient);
  color: #fff;
  padding: 16px 40px;
  font-size: 16px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  border: 1.5px solid #1a1a1a;
}
.button.-outline-large {
  background: #fff;
  color: var(--fx-dark);
  border: 1.5px solid #1a1a1a;
  padding: 15px 40px;
  font-size: 16px;
  border-radius: 50px;
}

/* ===== Footer（index.html と一致） ===== */
.l-footer {
  background: var(--fx-dark);
  padding: 48px 0 32px;
  text-align: center;
}
.l-footer .footer__links {
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.l-footer .footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.l-footer .footer__links a:hover { color: #fff; }
.l-footer .footer__links span {
  color: rgba(255,255,255,0.4);
  margin: 0 12px;
}
.l-footer .footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* ===== セクション スクロール フェードイン（その場でふわっと） ===== */
.fade-section {
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
  will-change: opacity;
}
.fade-section.is-visible {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .fade-section,
  .fade-section.is-visible {
    opacity: 1;
    transition: none;
  }
}

/* ===== Form Errors（送信失敗時のエラー表示） ===== */
.form-errors {
  display: none;
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-left: 3px solid #ef4444;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 10px;
  color: #b91c1c;
  font-size: 11px;
  line-height: 1.5;
}
.form-errors.is-visible { display: block; }
.form-errors__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.form-errors__list li {
  margin: 0;
  padding: 0;
}
.form-errors__list li + li { margin-top: 2px; }

/* ===== Privacy Modal ===== */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.privacy-modal.is-open { display: flex; }
.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.privacy-modal__card {
  position: relative;
  width: min(880px, calc(100% - 32px));
  max-height: 86vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.privacy-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(15,23,42,0.06);
  color: var(--fx-dark);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
  font-family: inherit;
}
.privacy-modal__close:hover { background: rgba(15,23,42,0.12); }
.privacy-modal__body {
  overflow-y: auto;
  padding: 40px 48px 48px;
  -webkit-overflow-scrolling: touch;
}
.privacy-modal__body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--fx-dark);
}
.privacy-modal__body .privacy-bar {
  display: inline-block;
  width: 48px; height: 4px;
  background: var(--fx-gradient);
  margin: 0 0 20px;
  border-radius: 2px;
}
.privacy-modal__body .privacy-lead {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.9;
  margin-bottom: 28px;
}
.privacy-modal__body section { margin-bottom: 24px; }
.privacy-modal__body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--fx-dark);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e5e7eb;
  position: relative;
}
.privacy-modal__body h3::before {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 36px; height: 2px;
  background: var(--fx-gradient);
}
.privacy-modal__body p,
.privacy-modal__body li {
  font-size: 13px;
  line-height: 1.85;
  color: #374151;
}
.privacy-modal__body ol,
.privacy-modal__body ul {
  padding-left: 1.4em;
  margin: 6px 0 10px;
}
.privacy-modal__body ol li,
.privacy-modal__body ul li { margin-bottom: 2px; }
.privacy-modal__body .privacy-updated {
  font-size: 12px;
  color: #6b7280;
  text-align: right;
  margin: 20px 0 0;
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
  .privacy-modal__card { max-height: 92vh; }
  .privacy-modal__body { padding: 32px 22px 32px; }
  .privacy-modal__body h2 { font-size: 20px; }
  .privacy-modal__body h3 { font-size: 14px; }
}
@media screen and (max-width: 768px) {
  .header-global {
    min-width: unset;
    height: 56px;
    font-size: 13px;
  }
  .header-global > .inner {
    padding: 0 16px;
  }
  .header-global__nav,
  .header-global__buttons {
    display: none;
  }
  .header-global__sp-buttons {
    display: flex !important;
    gap: 8px;
    align-items: center;
  }
}
