/* パンくずリスト上書き */
.breadcrumb {
  padding: 0 15px;
  background-color: #fffbbf;
  background-clip: content-box;
}
.breadcrumb::after {
  margin-right: 0;
}
.breadcrumb li {
  padding-left: 0.5em;
}
@media (max-width: 929px) {
  .breadcrumb-body {
    margin-top: 0px;
  }
}

/* ページ全体 */
.page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px 15px 15px;
}

/* ==========================================================================
  カスタムブロック用設定
  ========================================================================== */

/* ==========================================================================
  マルチカラム
  ========================================================================== */
@media (max-width: 929px) {
  .mt-be-columns {
    flex-direction: column;
    gap: 7px;
  }
  .layout-3, .layout-4, .layout-5, .layout-6, .layout-7 {
    width: 100%;
  }
}

/* ==========================================================================
  テーブル
  ========================================================================== */
table {
  border: 1px solid #6666FF;
  background-color: #EEEEFF;
  border-collapse: collapse;
}
table td {
  border: 1px solid #6666FF;
}

/* ==========================================================================
  複数行テキストブロック
  ========================================================================== */
.multi-text-block {
  margin-bottom: 20px;
}

p.multi-text {
  font-size: 18px
}

@media (max-width: 929px) {
  p.multi-text {
    font-size: 14px
  }
}

/* ==========================================================================
  問題文・答え
  ========================================================================== */
/* カテゴリ色別指定 */
.cat-history, .cat-history .box-tag { background-color: #1F5ABF; border: 2px solid #1F5ABF; }
.cat-comfort, .cat-comfort .box-tag { background-color: #BC551C; border: 2px solid #BC551C; }
.cat-safety, .cat-safety .box-tag { background-color: #E5BE23; border: 2px solid #E5BE23; }
.cat-vehicles, .cat-vehicles .box-tag { background-color: #0B6666; border: 2px solid #0B6666; }
.cat-linear, .cat-linear .box-tag { background-color: #3383FC; border: 2px solid #3383FC; }
.cat-how-made, .cat-how-made .box-tag { background-color: #FC5219; border: 2px solid #FC5219; }
.cat-barrier-free, .cat-barrier-free .box-tag { background-color: #FC048A; border: 2px solid #FC048A; }
.cat-eco, .cat-eco .box-tag { background-color: #2eb82e; border: 2px solid #2eb82e; }
.cat-city, .cat-city .box-tag { background-color: #d161d1; border: 2px solid #d161d1; }

.qa-container {
  margin-bottom: 20px;
}

.question-container {
  background-color: #fffbbf;
  padding-top: 20px;
}
.answer-container {
  background-color: #444444;
  padding: 20px 0;
}

/* 上下の箱共通の基本スタイル */
.qa-box {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden; /* 角丸からはみ出た要素を隠す */
}

/* 箱の内部レイアウト */
.box-content {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 20px;
}

/* --- 【問題ボックス固有のスタイル】 --- */
.question-box {
  background-color: #ffffff !important; /* 上は白い背景 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.question-box .box-tag {
  color: #ffffff;
  text-align: right;
  padding: 4px 15px;
  font-weight: bold;
  font-size: 14px;
}
.box-text {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  font-size: 22px;
  font-weight: bold;
  color: #000000;
}
.box-image img {
  width: 150px;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* --- 【中央の矢印スタイル】 --- */
.qa-arrow {
  background: linear-gradient(to bottom, #fffbbf 0%, #fffbbf 50%, #444444 50%, #444444 100%);
  text-align: center;
  position: relative;
  z-index: 2; /* グラデーションの境目より前に出す */
}
.arrow-icon {
  color: #ff0000; /* 赤い矢印 */
  font-size: 24px;
  display: inline-block;
}

/* --- 【答えボックス固有のスタイル（黒背景に馴染む修正）】 --- */
.answer-box {
  display: flex;
  border: 3px solid #ffe600; /* 黄色の太い枠線 */
  background-color: #ffffff; /* 中身は白 */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* 暗い背景で見えやすいよう影を強めに */
}
/* 左側の黄色い「答え」ラベル */
.box-label {
  background-color: #ffe600;
  color: #000000;
  font-size: 28px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 20px;
  position: relative;
}
/* 「答え」の右側にある三角の突起 */
.box-label::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #ffe600;
  z-index: 1;
}
.answer-box .box-content {
  flex-grow: 1;
  padding-left: 30px;
}

/* --- 【スマートフォン対応】 --- */
@media (max-width: 929px) {
  .question-box .box-content {
    padding: 5px;
    gap: 10px;
  }
  .box-image {
    flex: 1;
  }

  .answer-box .box-content {
    padding: 10px;
    padding-left: 30px;
  }

  .box-image img {
    width: 100%;
  }
  .box-text {
    flex: 2;
    font-size: 16px;
  }
  .box-label {
    min-width: 80px;
    font-size: 20px;
    padding: 10px;
  }
  .question-container {
    padding-right: 5px;
    padding-left: 5px;
  }
  .answer-container {
    padding: 0px 5px 20px 5px;
  }
}
  
/* ==========================================================================
  解説コンテナ
  ========================================================================== */
.tips-commentary {
  margin: 20px 10px;
  scroll-margin-top: 60px;
}
/* --- 【ヘッダーの装飾】 --- */
.tips-commentary-header {
  background-color: #ffe600; /* 明るい黄色 */
  display: flex;
  align-items: center;
  padding: 12px 24px;
  /* 右上を大きく丸める */
  border-top-right-radius: 60px; /* ここで右上のカーブを作ります */
  border-bottom: 4px solid black;
  gap: 12px; 
}

/* アイコン（サイズや位置はお好みで調整してください） */
.tips-commentary-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
}

/* タイトル文字 */
.tips-commentary-title {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
  color: #000000;
  letter-spacing: 0.05em;
}

/* --- 【本文・コンテンツエリア】 --- */
.tips-commentary-content {
  padding: 24px 15px;
  border: 2px solid #e0e0e0; /* 下部の区切り線 */
  background-color: #f8f8f8;
  font-size: 18px;
}

@media (max-width: 929px) {
  .tips-commentary {
    margin: 10px;
    scroll-margin-top: 80px;
  }
  .tips-commentary-header {
    padding: 10px;
    gap: 10px;
    border-top-right-radius: 35px;
  }
  .tips-commentary-icon {
    max-width: 12%;
  }
  .tips-commentary-title {
    font-size: 16px;
    flex: 1;
  }
  .tips-commentary-content {
    padding: 10px;
    font-size: 14px;
  }
}

/* ==========================================================================
  画像コンテナ
  ========================================================================== */
.tips-image-container {
  display: flex;
  margin: 15px;
  font-size: 14px;
  justify-content: center;
}

.tips-image-content {
  display: flex;
  flex-direction: column;
}

@media (max-width: 929px) {
  .tips-image-container {
    margin: 5px;
    font-size: 12px;
  }
  .tips-image-foot {
    margin-bottom: 20px;
  }
}

/* ==========================================================================
  画像埋め込み解説
  ========================================================================== */
.tips-text-in-image .tips-image-container {
  float: right;
  max-width: 50%;
}

.tips-text-in-image .multi-text-block::after {
  content: "";
  display: block;
  clear: both;
}


/* ==========================================================================
  Youtube動画埋め込み
  ========================================================================== */
.tips-youtube-block {
  max-width: 1100px;
  margin: 10px auto;
}

p.tips-youtube-head-text {
  font-size: 20px;
  font-weight: bold;
  color: #F07000;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 5px !important;
}
p.tips-youtube-head-text::before {
    content: "▶";
    margin-right: 10px;
    padding: 2px;
    color: #E7141A;
    border: 3px solid;
}

.tips-youtube-block iframe {
  aspect-ratio: 16 / 9;
}
.tips-youtube-foot {
  font-size: 14px;
}

@media (max-width: 929px) {
  .tips-youtube-head-text {
    font-size: 15px !important;
  }
  .tips-youtube-head-text::before {
    margin-right: 5px;
  }
  .tips-youtube-foot {
    font-size: 12px;
    margin-bottom: 20px;
  }
}

/* ==========================================================================
  ロゴ・路線図リンク
  ========================================================================== */
.tips-logo-map-link {
  display: flex;
  margin: 10px;
}

a.logo-map-link {
  display: flex;
  flex-direction: column;
  background-color: white;
  border: 1px solid black;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  color: black;
  padding: 5px;
  transition: opacity 0.3s;
}

a.logo-map-link:hover {
  opacity: 0.6;
}

.logo-operator-container {
  display: flex;
  align-items: center;
}

.logo-operator-container .logo-image {
  flex-shrink: 1;
}

/* ==========================================================================
  関連おすすめブロック
  ========================================================================== */
.tips-recommend-block {
  position: relative;
  border: 8px solid #005bac;
  border-top: 30px solid #005bac;
  border-radius: 8px;
  padding: 20px 30px;
  margin-top: 40px;
  background-color: #ffffff;
}

.recommend-title-container {
  width: 100%;
  display: flex;
  justify-content: center;
  position: absolute;
  top: -73px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 5px 0;
}

.recommend-title-container img {
  width: 100%;
  max-width: 400px;
  min-width: 250px;
}

.recommend-link {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px !important;
  font-size: 18px;
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.recommend-link a {
  color: #003366;
  text-decoration: none;
}

.recommend-link:hover, .recommend-link a:hover {
  text-decoration: underline;
  opacity: 0.6;
}

.recommend-link::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 7px 0 7px 10px;
  border-color: transparent transparent transparent #005bac;
}

@media (max-width: 929px) {
  .tips-recommend-block {
    padding: 10px;
  }
  .recommend-link {
    font-size: 14px;
    margin-bottom: 10px !important;
  }
}