@charset "UTF-8";
/* アクセシビリティ設定ページのスタイル - サイトデザインとの整合性重視 */

/* 設定オプション全体のコンテナ */
.font-size-options,
.bg-color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 30px 0;
}

/* 各設定ボタン */
.setting-btn {
  flex: 1;
  min-width: 200px;
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.setting-btn:hover {
  border-color: #016935;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* マルク付きリストの上部スペース調整 */
.setting-btn ul.marui {
  margin-top: 0;
}

/* プレビュー画像のコンテナ */
.setting-preview {
  text-align: center;
  margin: 15px 0;
  background-color: #f8f8f8;
  padding: 10px;
  border-radius: 5px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.setting-preview img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

/* 設定の説明テキスト */
.setting-description {
  text-align: center;
  color: #666;
  font-size: 0.9em;
  margin-top: 10px;
}

/* アクティブな設定ボタン */
.setting-btn.active {
  border-color: #016935;
  border-width: 3px;
  background-color: #f0f7f3;
}

/* 選択マーク（チェックマーク）*/
.setting-btn.active::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background-color: #016935;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

/* 配色設定のプレビュー調整 */
.bg-color-options .black-btn .setting-preview {
  background-color: #000;
}

.bg-color-options .blue-btn .setting-preview {
  background-color: #0f3a9b;
}

.bg-color-options .yellow-btn .setting-preview {
  background-color: #fcde00;
}

/* フォントサイズのプレビュー調整 */
.font-size-options .small-btn .setting-preview {
  font-size: 0.8em;
}

.font-size-options .big-btn .setting-preview {
  font-size: 1.2em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .font-size-options,
  .bg-color-options {
    flex-direction: column;
  }
  
  .setting-btn {
    width: 100%;
    max-width: 100%;
  }
}

/* 既存のボタン（オリジナルの機能を維持するため）を視覚的に隠す */
.font-size-change,
.bg-color-change {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ボタンは隠しつつも、クリックイベントを維持するため */
.font-size-change .btn,
.bg-color-change .btn {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}