/* ======================
   custom.css - 追加スタイル
   既存のstyle.cssを上書きする修正用
   ====================== */

/* -----------------------
   FVニュースティッカー
   ----------------------- */
#index01 {
  position: relative !important;
}

.fv-news-ticker {
  position: absolute !important;
  bottom: 40px !important;
  right: 40px !important;
  z-index: 100 !important;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  overflow: hidden !important;
  width: 350px;
  height: 96px;
}

.fv-news-item {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  text-decoration: none;
  color: #333;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateY(100%);
  opacity: 0;
  box-sizing: border-box;
}

.fv-news-item.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.fv-news-item.next {
  display: block;
  transform: translateY(100%);
  opacity: 0;
}

.fv-news-item.out {
  display: block;
  transform: translateY(-100%);
  opacity: 0;
}

.fv-news-item:hover {
  background-color: rgba(180, 149, 49, 0.1);
}

.fv-news-date {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.fv-news-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

/* タブレット以下: 下部に配置、1行表示 */
@media (max-width: 980px) {
  .fv-news-ticker {
    bottom: 20px !important;
    right: 15px !important;
    left: 15px !important;
    width: auto !important;
    height: 60px;
  }

  .fv-news-item {
    padding: 12px 16px;
  }

  .fv-news-date {
    font-size: 11px;
  }

  .fv-news-title {
    -webkit-line-clamp: 1;
    font-size: 13px;
  }
}

/* -----------------------
   #index08 リンクボタンセクション修正
   問題: SP版でボタン幅が狭く1文字ずつ改行される
   対応: タブレット以下で縦並び、vwでフォントサイズ調整
   ----------------------- */

#index08 div {
  justify-content: space-evenly !important;
  padding: 55px 0 !important;
}

#index08 div p {
  width: 30% !important;
}

#index08 div p a {
  writing-mode: horizontal-tb !important;
  font-size: clamp(14px, 2vw, 24px) !important;
  white-space: nowrap !important;
  padding: 16px 10px !important;
}

#index08::after {
  width: 100% !important;
  left: 0 !important;
}

/* タブレット・スマホ: 縦並び（元のCSSは980pxで切り替え） */
@media (max-width: 980px) {
  #index08 div {
    min-height: auto !important;           /* 300px固定を解除 */
    justify-content: center !important;
    flex-direction: column !important;
    width: 90% !important;
    padding: 40px 0 !important;
    gap: 20px !important;
  }

  #index08 div p {
    width: 80% !important;
    max-width: 300px !important;
    margin: 0 !important;
  }

  #index08 div p a {
    font-size: clamp(14px, 4vw, 18px) !important;
    padding: 14px 10px !important;
  }
}
