/* RemixIcon設定 */
:where([class^="ri-"])::before {
  content: "\f3c2";
}

/* FAQ用アイコンフォールバック */
.ri-arrow-down-s-line::before {
  content: "▼";
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.ri-arrow-up-s-line::before {
  content: "▲";
  font-family: Arial, sans-serif;
  font-size: 12px;
}

/* フォント設定 */
body {
  font-family: Arial, Helvetica, sans-serif;
}

/* ブラウザデフォルトスタイルのリセット */
a,
button {
  border: none;
  outline: none;
  text-decoration: none;
  box-sizing: border-box;
}

a:focus,
button:focus {
  outline: none;
}

/* ボタンのデフォルトスタイルリセット */
button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

/* カラー設定 */
.text-primary {
  color: #15955c;
}

/* 基本クラスのフォールバック */
.bg-white {
  background-color: white;
}

.hidden {
  display: none;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.justify-center {
  justify-content: center;
}

.font-bold {
  font-weight: bold;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.w-full {
  width: 100%;
}

.text-left {
  text-align: left;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.border-b {
  border-bottom: 1px solid #333333;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.transition-all {
  transition: all 0.3s ease;
}

.border {
  border-width: 1px;
  border-style: solid;
}

.border-primary {
  border-color: #15955c;
}

.text-primary {
  color: #15955c;
}

.hover\:bg-primary:hover {
  background-color: #15955c;
}

.hover\:text-white:hover {
  color: white;
}

.transition-colors {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.bg-white {
  background-color: white !important;
}

.shadow-custom {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* FAQ ボタンスタイル */
.faq-item button {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

.faq-item button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* 資料ダウンロードボタンのホバー効果 */
a[href*="paper"] {
  background-color: #fabd00;
  border-radius: 9999px;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

a[href*="paper"]:hover {
  background-color: #ff8c00 !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* 黄色い背景のボタンホバー効果 */
button[class*="bg-[#FABD00]"],
a[class*="bg-[#FABD00]"] {
  background-color: #fabd00;
  border-radius: 9999px;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

button[class*="bg-[#FABD00]"]:hover,
a[class*="bg-[#FABD00]"]:hover {
  background-color: #ff8c00 !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* フォーカス時のアウトライン除去 */
a[href*="paper"]:focus,
button[class*="bg-[#FABD00]"]:focus,
a[class*="bg-[#FABD00]"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.3);
  border-radius: 9999px;
}

/* 専用クラスでより確実なスタイル適用 */
.download-btn {
  background-color: #fabd00 !important;
  border-radius: 9999px !important;
  transition: all 0.3s ease !important;
  border: none !important;
  outline: none !important;
  text-decoration: none !important;
  display: inline-block !important;
  box-sizing: border-box !important;
}

.download-btn:hover {
  background-color: #ff8c00 !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px) !important;
}

.download-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
}

.download-btn:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.3) !important;
  border-radius: 9999px !important;
}

/* ヘッダーのお問い合わせボタンのスタイル（枠線のみ） */
.contact-btn {
  border: 2px solid #15955c !important;
  color: #15955c !important;
  background-color: transparent !important;
  border-radius: 9999px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  box-sizing: border-box !important;
}

/* FVとフッターの白いお問い合わせボタン */
a[class*="bg-white"][href*="contact"] {
  background-color: white !important;
  color: #15955c !important;
  border: 1px solid #15955c !important;
  border-radius: 9999px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  box-sizing: border-box !important;
}

a[class*="bg-white"][href*="contact"]:hover {
  background-color: #15955c !important;
  color: white !important;
  border-color: #15955c !important;
  border-radius: 9999px !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 15px rgba(21, 149, 92, 0.3) !important;
}

/* ヘッダー専用のお問い合わせボタンスタイル */
.contact-btn {
  border: 2px solid #15955c !important;
  color: #15955c !important;
  background-color: transparent !important;
  border-radius: 9999px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  box-sizing: border-box !important;
}

.contact-btn:hover {
  background-color: #15955c !important;
  color: white !important;
  border-color: #15955c !important;
  border-radius: 9999px !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 15px rgba(21, 149, 92, 0.3) !important;
}

.contact-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(21, 149, 92, 0.3) !important;
}

.contact-btn:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(21, 149, 92, 0.3) !important;
  border-radius: 9999px !important;
}

/* FVとフッターの白いお問い合わせボタン専用スタイル */
.white-contact-btn {
  background-color: white !important;
  color: #15955c !important;
  border: 1px solid #15955c !important;
  border-radius: 9999px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.white-contact-btn:hover {
  background-color: #15955c !important;
  color: white !important;
  border-color: #15955c !important;
  border-radius: 9999px !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 25px rgba(21, 149, 92, 0.3) !important;
}

.white-contact-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 5px 15px rgba(21, 149, 92, 0.3) !important;
}

.white-contact-btn:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(21, 149, 92, 0.3) !important;
  border-radius: 9999px !important;
}

/* レスポンシブフォントサイズ */
.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .md\:text-\[18px\] {
    font-size: 18px;
  }

  .md\:text-lg {
    font-size: 1.125rem;
  }

  .md\:text-3xl {
    font-size: 1.875rem;
  }
}

/* カスタムシャドウ */
.shadow-custom {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 統計サークル */
.circle-stat {
  border: 2px solid #1b365d;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-align: center;
}

/* タブレット以上でのサークルサイズ */
@media (min-width: 768px) {
  .circle-stat {
    width: 120px;
    height: 120px;
  }
}

/* 統計カード用フォールバックスタイル */
.stat-card {
  background-color: white;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stat-card {
    padding: 20px;
    height: 160px;
  }

  .stat-grid {
    gap: 24px;
    max-width: none;
    margin-left: auto;
  }
}
