/* セクション帯で視覚的に浮かせる */
#point {
width: 100%;
  padding: 20px 0px;
  background: #1d2088;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.tour-points {
  max-width:900px;
  margin:0 auto;
}

/* タイトルを太くシャープに強調 */
.tp-title {
  font-size:1.9rem;
text-align: center;
  font-weight:900;
  margin-bottom:16px;
  color:#fff;
  letter-spacing:1px;
}

/* グリッド - 1列に変更 */
.tp-grid {
  display:grid;
  grid-template-columns: 1fr;
  gap:32px;
  max-width:900px;
  margin: 0 auto;
}

/* カード： */
.tp-card {
  background:#fff;
  border-radius:14px;
  padding:26px 28px;
  border:1px solid #dcdcdc;
  position:relative;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(0,0,0,0.08);
  transition: transform .25s, box-shadow .25s;
}

/* ホバーでさらに浮く */
.tp-card:hover {
  transform:translateY(-8px);
  box-shadow:0 20px 40px rgba(0,0,0,0.12);
}

/* カードタイトル：カラーバック白抜き文字に変更 */
.tp-card-title {
  margin:0 0 20px 0;
  padding:16px 20px;
  font-size:2.0rem;
  font-weight:900;
  color:#fff;
  background: linear-gradient(135deg, #1d2088 0%, #2d3a9f 50%, #3d4ab6 100%);
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(29, 32, 136, 0.3);
  letter-spacing: 1px;
}

/* 本文 - センター揃え、行間は広いまま維持 */
.tp-card-body {
  margin:0;
  font-size:1.4rem;
  line-height:2.5; /* 行間は広いまま維持 */
  color:#333;
  font-weight: 600;
  text-align: center !important;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

/* 小さいフォント用クラス */
#point .fs-90 {
  font-size: 0.9em;
  margin-top: 8px;
  text-align: center;
  color: #666;
}

/* fs-80クラス */
#point .fs-80 {
  font-size: 0.8em;
  color: #666;
  margin: 0 2px;
}

/* "見どころ"強調用： */
.tp-strong {
  display:block;
  margin-top:14px;
  font-weight:900;
  color:#fff;
  background-color: crimson;
  text-align: center;
  padding: 6px;
  font-size: 1.2rem;
}

/* ==========================================
   ラインマーカーアニメーション
========================================== */

/* 共通のラインマーカースタイル - 高さを固定して行間に影響させない */
.red-bar, .yg-bar, .green-bar, .pink-bar, .blue-bar {
  position: relative;
  display: inline-block;
  font-weight: bolder;
  font-size: 1.2em;
  padding: 0px 2px;
  margin: 0 1px;
  white-space: nowrap !important;
  z-index: 1;
  word-break: keep-all !important;
  /* 高さを固定して行間に影響させない */
  height: 1.2em; /* フォントサイズと同じ高さに固定 */
  vertical-align: baseline; /* ベースラインに揃える */
  line-height: 1; /* 内部の行間をリセット */
}

/* 下線のアニメーション用疑似要素 - 文字に密着させる */
.red-bar::after, .yg-bar::after, .green-bar::after, .pink-bar::after, .blue-bar::after {
  content: '';
  position: absolute;
  bottom: 0px; /* 要素の底に配置 */
  left: 0;
  width: 0;
  height: 8px; /* マーカーの高さ */
  z-index: -1;
  transition: width 0.8s ease-in-out;
  border-radius: 2px;
}

/* 赤いラインマーカー */
.red-bar::after {
  background: linear-gradient(90deg, #ff4757, #ff3742);
  box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

/* 黄緑のラインマーカー（より黄色寄り） */
.yg-bar::after {
  background: linear-gradient(90deg, #ffeb3b, #cddc39);
  box-shadow: 0 2px 4px rgba(255, 235, 59, 0.3);
}

/* 緑のラインマーカー（より明るい緑系） */
.green-bar::after {
  background: linear-gradient(90deg, #4caf50, #2e7d32);
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

/* ピンクのラインマーカー */
.pink-bar::after {
  background: linear-gradient(90deg, #ff6b9d, #ff4081);
  box-shadow: 0 2px 4px rgba(255, 107, 157, 0.3);
}

/* 青系のラインマーカー */
.blue-bar::after {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* カードが表示されたときにアニメーション開始 */
.tp-card {
  animation: fadeInUp 0.6s ease-out;
}

/* 1つ目のカードのマーカーアニメーション */
.tp-card:nth-child(1) .red-bar::after {
  animation: drawLine 0.8s ease-in-out 0.5s forwards;
}

.tp-card:nth-child(1) .yg-bar::after {
  animation: drawLine 0.8s ease-in-out 1.0s forwards;
}

.tp-card:nth-child(1) .green-bar::after {
  animation: drawLine 0.8s ease-in-out 1.5s forwards;
}

.tp-card:nth-child(1) .pink-bar::after {
  animation: drawLine 0.8s ease-in-out 2.0s forwards;
}

.tp-card:nth-child(1) .blue-bar::after {
  animation: drawLine 0.8s ease-in-out 2.5s forwards;
}

/* 2つ目のカードのマーカーアニメーション（少し遅延） */
.tp-card:nth-child(2) .red-bar::after {
  animation: drawLine 0.8s ease-in-out 3.0s forwards;
}

.tp-card:nth-child(2) .yg-bar::after {
  animation: drawLine 0.8s ease-in-out 3.5s forwards;
}

.tp-card:nth-child(2) .green-bar::after {
  animation: drawLine 0.8s ease-in-out 4.0s forwards;
}

.tp-card:nth-child(2) .pink-bar::after {
  animation: drawLine 0.8s ease-in-out 4.5s forwards;
}

.tp-card:nth-child(2) .blue-bar::after {
  animation: drawLine 0.8s ease-in-out 5.0s forwards;
}

/* ラインを引くアニメーション */
@keyframes drawLine {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* カードのフェードインアニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2つ目のカードは少し遅れて表示 */
.tp-card:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ホバー時にラインが光る効果 */
.red-bar:hover::after {
  box-shadow: 0 0 12px rgba(255, 71, 87, 0.8), 0 2px 4px rgba(255, 71, 87, 0.3);
}

.yg-bar:hover::after {
  box-shadow: 0 0 12px rgba(255, 235, 59, 0.8), 0 2px 4px rgba(255, 235, 59, 0.3);
}

.green-bar:hover::after {
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.8), 0 2px 4px rgba(76, 175, 80, 0.3);
}

.pink-bar:hover::after {
  box-shadow: 0 0 12px rgba(255, 107, 157, 0.8), 0 2px 4px rgba(255, 107, 157, 0.3);
}

.blue-bar:hover::after {
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.8), 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* 全体的な改行防止の強化 */
* {
  text-justify: none !important;
}

/* スマホ対応 - 改行問題を解決 */
@media (max-width:780px){
  .tp-grid { 
    grid-template-columns:1fr;
    max-width: 100%;
    gap: 24px;
  }
  .tp-title { font-size:1.4rem; }
  
  /* スマホでのタイトル調整 */
  .tp-card-title {
    font-size: 1.6rem;
    padding: 12px 16px;
  }
  
  .red-bar::after, .yg-bar::after, .green-bar::after, .pink-bar::after, .blue-bar::after {
    height: 6px;
  }
  
  .tp-card-body {
    font-size: 1.2rem;
    line-height: 2.2;
  }
  
  .red-bar, .yg-bar, .green-bar, .pink-bar, .blue-bar {
    font-size: 1.1em;
    height: 1.1em;
    /* スマホでもnowrapを維持して意図しない改行を防ぐ */
    white-space: nowrap !important;
    display: inline-block;
  }
  
  /* スマホでのfs-80調整 */
  #point .fs-80 {
    font-size: 0.9em;
  }
}