@charset "UTF-8";

/* =========================================
   1. 基本設定 (Variables)
   ========================================= */
:root {
  /* --- Color Palette: Main --- */
  --bgl-color-primary: #008CFF;      /* ブランドカラー/アイコン */
  --bgl-color-dark-primary: #0077D9; /* Dark Primary/ボタン通常/リンク */
  --bgl-color-text-main: #1A3347;    /* 見出し/本文 */
  --bgl-color-link: #0062B2;         /* テキストリンク/ボタンホバー */
  --bgl-color-white: #FFFFFF;

  /* --- Color Palette: Background --- */
  --bgl-bg-base: #FFFFFF;
  --bgl-bg-gray: #F0F1F3;       /* ポイント背景/CTA背景 */
  --bgl-bg-light-blue: #EDF7FF; /* ポイント背景/CTA背景/ローカルナビ */
  --bgl-bg-dark-blue: #0077D9;  /* CTA背景/メガメニュー */

  /* --- Button Colors (New Guideline) --- */
  /* Blue Button */
  --bgl-btn-blue-bg: #0077D9;
  --bgl-btn-blue-hover-bg: #0062B2;
  --bgl-btn-blue-secondary-text: #0077D9;
  --bgl-btn-blue-secondary-hover-text: #0062B2;
  --bgl-btn-blue-secondary-hover-bg: #F2F9FF; /* セカンダリホバー用薄青 */

  /* Orange Button */
  --bgl-btn-orange-bg: #CC4E00;
  --bgl-btn-orange-hover-bg: #A74000;
  --bgl-btn-orange-secondary-text: #BB4800;   /* セカンダリ文字色 */
  --bgl-btn-orange-secondary-hover-bg: #FEEFE5; /* セカンダリホバー用薄橙 */

  /* --- Icon / Status Colors --- */
  --bgl-icon-black: #33495C;
  --bgl-icon-blue: #008CFF;
  --bgl-icon-red: #ED0000;
  --bgl-icon-green: #14AE5C;
  --bgl-icon-yellow: #E8A200;

  /* --- Border & Shadow --- */
  --bgl-border-color: #D9DDE0;
  --bgl-shadow-card: 0 0 10px rgba(0, 0, 0, 0.1);

  /* --- Typography --- */
  --bgl-font-family: "M Plus 1", sans-serif;
  --bgl-font-family-en: "Neo Sans W1G", sans-serif;

  /* --- Spacing (PC Default) --- */
  --bgl-section-margin: 70px;
  --bgl-component-margin: 50px;
  --bgl-component-margin-s: 30px;
  --bgl-component-gap: 30px; /* 複合モジュール内コンポーネント間 */
  --bgl-inner-padding: 25px; /* コンポーネント内パディング */
  --bgl-inner-padding-s: 20px;
}

/* --- Spacing (SP Override) --- */
@media screen and (max-width: 767px) {
  :root {
    --bgl-section-margin: 50px;
    --bgl-component-margin: 50px;
    --bgl-component-gap: 30px;
    --bgl-inner-padding: 20px;
  }
}

/* =========================================
   2. ベーススタイル & ユーティリティ
   ========================================= */
body {
  font-family: var(--bgl-font-family);
  color: var(--bgl-color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography (Guideline Definitions) --- */
/* Headlines */
.bgl-text-h1 { font-size: 32px; line-height: 1.3; font-weight: 400; }
.bgl-text-h2 { font-size: 22px; line-height: 1.3; font-weight: 400; }
.bgl-text-h3 { font-size: 20px; line-height: 1.3; font-weight: 500; }
.bgl-text-h4 { font-size: 18px; line-height: 1.5; font-weight: 500; }

/* Body Text */
.bgl-text-body-l { font-size: 18px; line-height: 1.5; font-weight: 400; }
.bgl-text-body-m { font-size: 16px; line-height: 1.5; font-weight: 400; } /* 基本サイズ */
.bgl-text-body-s { font-size: 14px; line-height: 1.5; font-weight: 400; }
.bgl-text-caption { font-size: 12px; line-height: 1.5; font-weight: 400; }

/* 価格用 特大テキスト */
.bgl-text-price {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
}
.bgl-text-price span {
  font-size: 20px;
  font-weight: 500;
  margin-left: 4px;
}
@media screen and (max-width: 767px) {
  .bgl-text-price { font-size: 40px; }
  .bgl-text-price span { font-size: 16px; }
}

/* 配置・色 */
.bgl-text-center { text-align: center; }
.bgl-text-left { text-align: left; }
.bgl-text-right { text-align: right; }
.bgl-color-white { color: var(--bgl-color-white); }

/* --- Spacing Utilities --- */
.bgl-mt-section { margin-top: var(--bgl-section-margin); }
.bgl-mb-section { margin-bottom: var(--bgl-section-margin); }
.bgl-mt-l { margin-top: var(--bgl-component-margin); }
.bgl-mt-s { margin-top: var(--bgl-component-margin-s); }
.bgl-mb-l { margin-bottom: var(--bgl-component-margin); }
.bgl-mb-s { margin-bottom: var(--bgl-component-margin-s); }
.bgl-mt-m { margin-top: var(--bgl-component-gap); } /* 30px */
.bgl-mb-m { margin-bottom: var(--bgl-component-gap); } /* 30px */
.bgl-mb-5 { margin-bottom: 5px; }
.bgl-p-0 { padding: 0; }
.bgl-p-inner { padding: var(--bgl-inner-padding); }

/* --- Layout --- */
.bgl-container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
  box-sizing: border-box;
}
@media screen and (min-width: 1025px) {
  .bgl-container { padding-right: 0; padding-left: 0; }
  .bgl-container--wide { max-width: 1200px; } /* コンテンツ幅(白)基準 */
  .bgl-container--narrow { max-width: 980px; } /* 詳細系コンテンツエリア */
}

/* 2カラムグリッド */
.bgl-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bgl-component-margin);
}
@media screen and (min-width: 1025px) {
  .bgl-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 35px; /* ガイドライン4カラム時等の狭いマージンに準拠 */
  }
}
@media screen and (max-width: 767px) {
  .bgl-grid-2 {
    gap: 70px;
  }
}

/* 3カラムグリッド */
.bgl-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bgl-component-margin);
}
@media screen and (min-width: 1025px) {
  .bgl-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }
}
@media screen and (max-width: 767px) {
  .bgl-grid-3 {
    gap: 50px;
  }
}

/* --- 汎用リンク（アローアイコン付き） --- */
/* 【修正】改行を許可し、アイコン位置を1行目に固定 */
.bgl-link-arrow {
  color: var(--bgl-color-link);
  text-decoration: underline;
  position: relative;
  padding-left: 15px; /* アイコン用の余白。改行時もこの位置から始まる */
  display: inline-block;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.bgl-link-arrow:hover { text-decoration: none; }
.bgl-link-arrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  /* 中央寄せして回転 */
  transform: translateY(-50%) rotate(45deg);
  position: absolute;
  /* 1行目の高さ(16px*1.5=24px)の中央位置(12px)に固定 */
  top: 12px;
  left: 0;
}

/* =========================================
   3. Form Elements (Common)
   ========================================= */

:root {
  /* 指定の枠線色 */
  --bgl-color-border-input: #808D99;
}

/* --- テキスト入力フォーム --- */
.bgl-input-text {
  appearance: none;
  -webkit-appearance: none;
  background-color: #FFFFFF;
  border: 1px solid var(--bgl-color-border-input); /* #808D99 */
  border-radius: 8px;
  height: 40px; /* PCでの標準高さ */
  padding: 0 16px;
  font-size: 16px;
  color: var(--bgl-color-text-main);
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

/* 選択時（フォーカス時） */
.bgl-input-text:focus {
  border: 2px solid var(--bgl-color-primary); /* #008CFF */
  padding: 0 15px; /* ボーダーが太くなる分の調整 */
}

/* プレースホルダー */
.bgl-input-text::placeholder {
  color: #B2BBC2;
}

/* --- ラジオボタン (XD準拠) --- */
.bgl-radio {
  display: inline-flex;
  align-items: center; /* 上下中央揃え */
  cursor: pointer;
  position: relative;
  line-height: 1; /* 高さズレ防止 */
}

/* デフォルトのラジオボタンを隠す */
.bgl-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* カスタムマーク（円） */
.bgl-radio__mark {
  position: relative;
  display: inline-block;
  width: 18px; /* XD仕様: 18px */
  height: 18px;
  border: 2px solid var(--bgl-color-border-input); /* XD仕様: #808D99 2px */
  border-radius: 50%;
  background-color: #FFFFFF;
  margin-right: 8px;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.2s;
}

/* ホバー時 */
.bgl-radio:hover .bgl-radio__mark {
  background-color: var(--bgl-bg-light-blue); /* XD仕様: #EDF7FF */
  border-color: var(--bgl-color-border-input);
}

/* 選択時 (Checked) */
.bgl-radio input[type="radio"]:checked + .bgl-radio__mark {
  background-color: var(--bgl-color-dark-primary); /* XD仕様: #0077D9 */
  border-color: var(--bgl-color-dark-primary);
}

/* 選択時の白い点 (Center Dot) */
.bgl-radio input[type="radio"]:checked + .bgl-radio__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #FFFFFF;
}

/* ラベルテキスト */
.bgl-radio__label {
  font-size: 16px; /* 文字サイズ統一 */
  color: var(--bgl-color-text-main);
  font-weight: 400; /* 太字なし */
  padding-top: 2px; /* 視覚的な微調整 */
}

/* =========================================
   Component: お知らせボックス (Notice Box)
   ========================================= */

.bgl-notice-box {
  background-color: var(--bgl-bg-light-blue);
  padding: 30px;
  box-sizing: border-box;
}

@media screen and (max-width: 767px) {
  .bgl-notice-box {
    padding: 20px;
  }
}

.bgl-notice-box__title {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--bgl-color-link);
  margin-bottom: 15px;
  line-height: 1.4;
}

.bgl-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--bgl-color-link);
  color: #FFF;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
  line-height: 1;
}

.bgl-notice-box__body {
  font-size: 16px;
  line-height: 1.6;
}

.bgl-notice-box__body .bgl-mt-s {
  margin-top: 15px;
}

/* =========================================
   Component: アンケート結果 (Survey Box)
   ========================================= */

.bgl-survey-box {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* --- 質問エリア (Q) --- */
.bgl-survey-question {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--bgl-color-primary);
}

.bgl-survey-icon {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
}

.bgl-survey-icon--q {
  color: var(--bgl-color-primary);
}

.bgl-survey-title {
  font-size: 16px;
  font-weight: normal;
  line-height: 1.6;
  margin: 0;
  color: var(--bgl-color-text-main);
}

/* 黄色マーカー */
.bgl-marker-yellow {
  background: linear-gradient(transparent 60%, #ff6 60%);
  font-weight: normal;
  padding: 0 2px;
}

/* --- グラフ画像 --- */
.bgl-survey-graph {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}

.bgl-survey-graph img {
  max-width: 100%;
  height: auto;
  width: 320px;
}

/* --- コメント --- */
.bgl-survey-comment {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  font-weight: normal;
  text-align: center;
}

/* マーカー部分の文字サイズ拡大 */
.bgl-survey-comment .bgl-marker-yellow {
  font-size: 24px;
  line-height: 1.6;
}

/* --- 凡例エリア --- */
.bgl-survey-legend-box {
  background-color: #F2F2F2;
  border-radius: 4px;
  max-width: 450px;
  width: fit-content;
  margin: 0 auto;
  padding: 15px 30px 15px 30px;
}

.bgl-survey-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px 20px;
}

.bgl-survey-legend__item {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--bgl-color-text-main);
  white-space: nowrap;
}

.bgl-force-break {
  width: 100%;
  height: 0;
  margin: 0;
}

.bgl-legend-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  flex-shrink: 0;
}

@media screen and (min-width: 1025px) {
  .bgl-survey-legend__item {
    font-size: 14px;
  }
}