/* ============================================================
   トイミッケ寄付LP - style.css
============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1A1A1A;
  line-height: 1.75;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

@keyframes fillbar { from { width: 0; } }

/* ----- 寄付フォーム タブ切替 ----- */
.tab-btn {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: #9a8746;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn--active {
  font-weight: 700;
  background: #fff;
  color: #2C2306;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ----- FAQアコーディオン ----- */
.faq-ans {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.faq-ans[data-open="false"] {
  max-height: 0;
  opacity: 0;
}
.faq-ans[data-open="true"] {
  max-height: 600px;
  opacity: 1;
}

/* ----- フォーカスリング ----- */
button:focus-visible,
a:focus-visible {
  outline: 3px solid #41BDC9;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- 追従CTA ----- */
#floating-cta-wrap {
  position: fixed;
  z-index: 999;
}

/* ----- 印刷時 ----- */
@media print {
  #floating-cta-wrap { display: none !important; }
}

/* ============================================================
   ホバー効果（data-hover属性によるパターン）
   元の Claude Design「style-hover」を再現
============================================================ */
[data-hover] {
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
              transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

[data-hover="hover-yellow-lift"]:hover {
  background: #E8C00C !important;
  transform: translateY(-2px);
}

[data-hover="hover-teal-bg"]:hover {
  background: #F0FAFB !important;
}

[data-hover="hover-yellow-bg-deep"]:hover {
  background: #FFF6D6 !important;
}

[data-hover="hover-translucent"]:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: #fff !important;
}

[data-hover="hover-yellow-outline"]:hover {
  border-color: #FDD416 !important;
  background: #FFFBEC !important;
}

[data-hover="hover-lift-light"]:hover {
  box-shadow: 0 12px 32px rgba(15,64,71,0.12);
  transform: translateY(-2px);
}

[data-hover="hover-lift-dark"]:hover {
  box-shadow: 0 12px 32px rgba(15,64,71,0.2);
  transform: translateY(-2px);
}

[data-hover="hover-fade-88"]:hover { opacity: 0.88; }
[data-hover="hover-fade-90"]:hover { opacity: 0.9; }

/* ============================================================
   寄付フォーム 金額選択ボタン
============================================================ */
.amount-btn {
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.amount-btn--selected {
  border-color: #FDD416 !important;
  border-width: 2px !important;
  background: #FFFBEC !important;
  box-shadow: 0 2px 8px rgba(253,212,22,0.2);
}
.amount-btn:focus-visible {
  outline: 3px solid #FDD416;
  outline-offset: 2px;
}

/* タブ切替時に金額カードの単位表示を変える */
[data-tab-content="once"] .amount-btn [data-unit]::after,
[data-tab-content="monthly"] .amount-btn [data-unit]::after {
  /* CSSのみで切替は難しいので main.jsで textContent を切替 */
}
