/* MA-T 災害時感染予防備蓄 LP - カスタムスタイル */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* スマホ固定CTA表示時の下部余白 */
@media (max-width: 1023px) {
  main {
    padding-bottom: 80px;
  }
}

/* セレクトのカスタム矢印 */
select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
}

/* FAQ アコーディオン */
.faq-item summary {
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item .faq-icon {
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

/* フォーム入力エラー時 */
.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626 !important;
}

/* リンクのフォーカスリング統一 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

/* アニメーション軽減モード */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* 印刷時の調整 */
@media print {
  #site-header,
  #mobile-cta {
    display: none;
  }
}
