/* =========================
   Base / Reset
========================= */
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body{ font-family: Arial, sans-serif; }
p, ul{ margin-bottom: 10px; }
ul{ list-style-type: disc; padding-left: 20px; }

/* =========================
   Slider
========================= */
.slider-container{
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
}
.slider{
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slide{
  min-width: 100%;
  flex: 0 0 100%;
  cursor: pointer;
}
.slide img{
  width: 100%;
  display: block;
}
.indicators{
  position: relative;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.indicator{
  width: 10px;
  height: 10px;
  background-color: gray;
  border-radius: 50%;
  cursor: pointer;
}
.indicator.active{ background-color: black; }
.nav-button{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}
.nav-button.prev{ left: 10px; }
.nav-button.next{ right: 10px; }

/* =========================
   Top sections
========================= */
.container_top{
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
}
.section_top{
  flex: 1;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

/* Buttons */
.btn_top,
.btn_top2{
  background-color: #04c3b3;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.btn_top{ width: 200px; padding: 10px 20px; }
.btn_top2{ width: 150px; padding: 10px; }
.btn_top:hover,
.btn_top2:hover{ background-color: #0056b3; }
.button-group_top{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.circle-btn_top{
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}
.circle-btn_top:hover{ background-color: #0056b3; }

/* =========================
   Cards (horizontal scroll)
========================= */
.card-scroll-wrapper{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.card-scroll-inner{
  display: flex;
  justify-content: center;
  gap: 16px;
  min-width: max-content;
  padding: 20px 0;
}
.card{
  flex: 0 0 auto;
  width: 240px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.main-image img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.card-body{ padding: 10px; }
.card-header{
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.thumb img{
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
}
.card-title{ font-weight: bold; font-size: 14px; }
.card-text{ font-size: 13px; color: #333; }

/* =========================
   Modal
========================= */
.modal{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999 !important;
}
.modal-content{
  position: relative;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal iframe{
  border: none;
  width: 100%;
  aspect-ratio: 9 / 16;
}
.close-btn{
  position: absolute;
  top: 8px;
  right: 12px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10000;
}

/* =========================
   Utilities
========================= */
.gradient-text{
  background: linear-gradient(90deg, #3a8dde, #60c5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.gradient-border{
  position: relative;
  height: 1px;
  background: linear-gradient(to right, #3a8dde, #60c5ff);
}

/* =========================
   Responsive (common)
========================= */
@media screen and (min-width: 768px){
  .modal-content{ width: 360px; height: 640px; }
}
@media (max-width: 768px){
  .container_top{ flex-direction: column; gap: 20px; }
  .section_top{ width: 100%; }
  .modal-content{ width: 90vw; height: auto; max-height: 90vh; }
}

/* =========================================================
  BIKE EDITOR TOP UI (prefix: be-top)
  既存Bootstrap/commonと衝突しにくいようにスコープ化
========================================================= */

/* 変数（最終的に効いている値だけを定義） */
.be-top{
  --wrap-max: 1200px;
  --radius: 12px;
  --shadow: 0 8px 20px rgba(0,0,0,.10);

  --hero-pc: url("https://bikeeditor.com/images/top/hero_pc.jpg");
  --hero-sp: url("https://bikeeditor.com/images/top/hero_sp.jpg");

  /* Feature BG（PC） */
  --rmg-bg: url("https://bikeeditor.com/images/top/ridemapgo_L.jpg");
  --vr-bg:  url("https://bikeeditor.com/images/top/vrride_L.jpg");

  /* Banners（PC） */
  --bn1: url("https://bikeeditor.com/images/top/guide_top_banner.jpg");
  --bn2: url("https://bikeeditor.com/images/top/officalX_top_banner_L.jpg");
  --bn3: url("https://bikeeditor.com/images/top/ambassador_top_banner_L.jpg");
}

/* =========================
  HERO内リンクバナー
========================= */
.be-top__heroLinks{
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.be-top__heroLink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  backdrop-filter: blur(2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.be-top__heroLink:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
  opacity: .95;
}
.be-top__heroLink--beginner{
  background: linear-gradient(135deg,#1f7bd6,#3a9cff);
}
@media (max-width: 768px){
  .be-top__heroLinks{ gap: 10px; }
  .be-top__heroLink{
    height: 42px;
    font-size: 13px;
    padding: 0 16px;
  }
}

/* =========================
  HERO
========================= */
.be-top__hero{
  width: 100%;
  background-image: var(--hero-pc);
  background-size: cover;
  background-position: center;
  min-height: 260px;
  display:flex;
  align-items:flex-end;
}
.be-top__heroInner{
  width: min(var(--wrap-max), 100%);
  margin: 0 auto;
  padding: 18px 16px 22px;
  color:#fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.be-top__catch{
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px 0;
}
.be-top__title{
  font-size: 56px;
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 15px 0;
  line-height: 1;
}
.be-top__wrap{
  width: min(var(--wrap-max), 100%);
  margin: 0 auto;
  padding: 18px 16px 0;
}

/* =========================
   CTA（投稿/MAP：2列）
========================= */
.be-top__ctaRow{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* CTA（共通・元の挙動維持） */
.be-top__cta{
  position: relative;
  display:flex;
  align-items:center;
  gap: 16px;

  border-radius: 10px;
  padding: 18px 20px;
  min-height: 92px;

  color:#fff;
  text-decoration:none;

  box-shadow: 0 10px 18px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;

  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.be-top__cta::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.20), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(0,0,0,.14), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 2px, rgba(0,0,0,.04) 2px 4px);
  opacity: .45;
  mix-blend-mode: overlay;
}
.be-top__cta::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,.20), transparent);
  pointer-events:none;
  opacity: .55;
}
.be-top__cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,.28);
  filter: saturate(1.05);
}
.be-top__ctaIcon{
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.be-top__ctaIcon svg{
  display:block;
  color:#fff;
}
.be-top__ctaText{ position:relative; z-index:1; }
.be-top__ctaTitle{
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .02em;
  text-shadow: 0 3px 10px rgba(0,0,0,.25);
}
.be-top__ctaSub{
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
  opacity: .95;
  letter-spacing: .01em;
  text-shadow: 0 3px 10px rgba(0,0,0,.22);
}
.be-top__cta--post{ background: linear-gradient(135deg,#2aa7c7,#0b7ea7); }
.be-top__cta--map { background: linear-gradient(135deg,#78b84e,#3f8d2f); }

/* Mobile only: CTAを必ず2行 + アイコン小さく（元の仕様維持） */
@media (max-width: 768px){
  .be-top__cta{
    flex-wrap: nowrap;
    gap: 2px;
    padding: 14px 4px;
    min-height: 78px;
  }
  .be-top__ctaIcon{
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .be-top__ctaIcon svg{
    width: 22px !important;
    height: 22px !important;
  }
  .be-top__ctaText{
    flex: 1 1 auto;
    min-width: 0;
  }
  .be-top__ctaTitle{
    font-size: clamp(16px, 4.6vw, 20px);
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .be-top__ctaSub{
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* =========================
   Search
========================= */
.be-top__search{
  background: #f3f5f8;
  border: 1px solid #e5e9ef;
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 16px;
}
.be-top__searchRow{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.be-top__select,
.be-top__keyword{
  width:100%;
  border-radius: 10px;
  border: 1px solid #d7dde7;
  background:#fff;
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
}
.be-top__keywordWrap{
  position: relative;
  margin-top: 10px;
}
.be-top__keywordWrap .be-top__keyword{
  margin-top: 0;
  padding-right: 70px;
}
.be-top__keywordBtn{
  position: absolute;
  top: 0;
  right: 0;
  height: 44px;
  width: 72px;
  border: none;
  border-radius: 0 10px 10px 0;
  background: #1f7bd6;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  border-left: 1px solid rgba(255,255,255,.35);
}
@media (max-width: 768px){
  .be-top__searchRow{
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }
  .be-top__searchRow > *{ min-width: 0; }
  .be-top__searchRow .be-top__select{
    width: 100% !important;
    display: block;
  }
}

/* =========================
   Feature cards
========================= */
.be-top__features{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
  margin-bottom: 30px;
}
.be-top__feature{
  position: relative;
  overflow:hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 170px;
  text-decoration:none;
  color:#0f172a;
  background:#fff;
}
.be-top__featureBg{
  position:absolute;
  inset:0;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: auto !important; /* ←現状の最終仕様 */
  filter: saturate(1.05);
}

/* PC（デフォルト） */
.be-top__featureBg--rmg{
  background-image: url("https://bikeeditor.com/images/top/ridemapgo_L.jpg");
}
.be-top__featureBg--vr{
  background-image: url("https://bikeeditor.com/images/top/vrride_L.jpg");
}

/* スマホだけ差し替え */
@media (max-width: 768px){
  .be-top__featureBg--rmg{
    background-image: url("https://bikeeditor.com/images/top/ridemapgo_M.jpg");
  }
  .be-top__featureBg--vr{
    background-image: url("https://bikeeditor.com/images/top/vrride_M.jpg");
  }
}

/* feature body（最終的に透明になっている仕様を固定） */
.be-top__featureBody{
  position: relative;
  height: 100%;
  padding: 11px;
  display:flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  background: transparent !important;
}
.be-top__featureTitle{
  font-size: 30px;
  font-weight: 900;
  margin-bottom: -15px;
}
.be-top__featureSub{
  font-size: 14px;
  font-weight: 700;
  opacity: .9;
  margin-top: 0;
}
.be-top__featureBtn{
  margin-top: 8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 140px;
  height: 28px;
  border-radius: 10px;
  background: #0aa7c8;
  color:#fff;
  font-weight: 900;
}

/* =========================
   Gray band（全幅帯）
========================= */
.be-top__grayBand{
  background: #f3f5f8;
  margin-top: 18px;
  padding: 1px 0 22px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.be-top__grayBandInner{
  width: min(var(--wrap-max), 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================
   Banners（PCは3枚均等 / SPは横スクロール）
========================= */
.be-top__banners{
  display:flex;
  gap: 16px;
  margin-top: 18px;
}
.be-top__banner{
  flex: 1 1 0;
  height: 78px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
  display:block;
}
.be-top__banner--c1{ background-image: var(--bn1); }
.be-top__banner--c2{ background-image: var(--bn2); }
.be-top__banner--c3{ background-image: var(--bn3); }

/* Mobile banners : 横スクロール完全復旧（最終仕様） */
@media (max-width: 768px){
  .be-top{
    --bn1: url("https://bikeeditor.com/images/top/guide_top_banner_m.jpg");
    --bn2: url("https://bikeeditor.com/images/top/officalX_top_banner_M.jpg");
    --bn3: url("https://bikeeditor.com/images/top/ambassador_top_banner_M.jpg");
  }

  .be-top__banners{
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 100%;
    padding-bottom: 6px;
  }
  .be-top__banner{
    flex: 0 0 260px;
    height: 78px;
  }
}

/* =========================
  PCだけ「投稿 / MAP / 検索」を横3列にする
========================= */
@media (min-width: 769px){
  .be-top__topRow{
    display: grid;
    grid-template-columns: 1fr 1fr 1.6fr;
    gap: 16px;
    align-items: stretch;
    margin-top: 14px;
  }
  .be-top__ctaRow{ display: contents; }
  .be-top__cta{ width: 100%; margin: 0; }
  .be-top__search{ margin-top: 0; height: 100%; }
}

/* =========================
  Responsive (hero + feature + bottom)
========================= */
@media (max-width: 768px){
  .be-top__hero{
    background-image: var(--hero-sp);
    min-height: 220px;
  }
  .be-top__catch{ font-size: 14px; }
  .be-top__title{ font-size: 46px; }

  .be-top__features{
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .be-top__feature{ min-height: 160px; }
  .be-top__featureTitle{ font-size: 23px; }
  .be-top__featureBtn{ width: 100%; }
}

/* =========================
  投稿CTA：サブテキストを「アイコン下」から開始（全幅2行目）
  （現状の最終仕様をそのまま維持）
========================= */
.be-top__cta--post,
.be-top__cta--map{
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 6px;
  align-items: center;
}
.be-top__cta--post .be-top__ctaIcon,
.be-top__cta--map  .be-top__ctaIcon{
  grid-column: 1;
  grid-row: 1;
}
.be-top__cta--post .be-top__ctaText,
.be-top__cta--map  .be-top__ctaText{
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.be-top__cta--post .be-top__ctaSub--underIcon,
.be-top__cta--map  .be-top__ctaSub--underIcon{
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-badge{
  display: inline-block;
  margin-right: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #e53935;
  border-radius: 10px;
  line-height: 1;
  vertical-align: middle;
}

@media (max-width: 768px){
  .be-top__cta--post,
  .be-top__cta--map{
    grid-template-columns: 35px 1fr;
    padding: 14px 4px;
    min-height: 78px;
  }
  .be-top__cta--post .be-top__ctaIcon,
  .be-top__cta--map  .be-top__ctaIcon{
    width: 40px;
    height: 40px;
  }
  .be-top__cta--post .be-top__ctaIcon svg,
  .be-top__cta--map  .be-top__ctaIcon svg{
    width: 22px !important;
    height: 22px !important;
  }
  .be-top__cta--post .be-top__ctaTitle,
  .be-top__cta--map  .be-top__ctaTitle{
    font-size: clamp(16px, 4.6vw, 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .be-top__cta--post .be-top__ctaSub--underIcon,
  .be-top__cta--map  .be-top__ctaSub--underIcon{
    font-size: 11px;
    line-height: 1.15;
  }

  .be-top__cta--post .be-top__ctaSub--underIcon{
    padding-top: 2px;
    padding-left: 5px;
  }
  .be-top__cta--map .be-top__ctaSub--underIcon{
    padding-left: 5px;
    padding-top: 2px;
  }
}

/* CTAタイトル：モバイルだけ 24px（現状の最終仕様） */
@media (max-width: 768px){
  .be-top__cta .be-top__ctaTitle{
    font-size: 24px !important;
    line-height: 1.05;
  }
}

/* be-top内リンク（Bootstrap対策） */
.be-top a,
.be-top a:visited,
.be-top a:hover,
.be-top a:active,
.be-top a:focus{
  text-decoration: none !important;
  outline: none;
}
.be-top a *{
  color: inherit;
  text-decoration: none;
}

/* =========================
   Notice area (be-news)
========================= */
.be-news{ background: transparent !important; }
.be-news__card{
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  padding: 14px 16px;
}
.be-news__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 10px;
}
.be-news__title{
  margin: 0;
  font-size: 22px;
  color: #0f172a;
}
.be-news__more{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d7dde7;
  background: #f3f5f8;
  color: #0f172a;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.be-news__more:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,.12);
  opacity: .95;
}
.be-news__body{
  padding-left: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.6;
}
.be-news__body a{ text-decoration: none; }
.be-news__body a:hover{ text-decoration: underline; }

@media (max-width: 768px){
  .be-news__card{ padding: 12px 12px; }
  .be-news__title{ font-size: 20px; }
  .be-news__more{ height: 32px; }

  .be-news__body .item{ white-space: normal !important; }
  .be-news__body .be-news__date{
    display: block;
    opacity: .75;
  }
  .be-news__body .item a{
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  
}
.news-badge{
  display: inline-block;
  margin-right: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #e53935;
  border-radius: 10px;
  line-height: 1;
  vertical-align: middle;
}

/* =========================
   Feature title / sub
   PC & Mobile 切り替え
========================= */

/* --- PC（デフォルト）：今のHTMLをそのまま表示 --- */
@media (min-width: 769px){
  .be-top__featureTitle,
  .be-top__featureSub{
    position: relative;
    margin-left: 30px;
  }

  .be-top__featureTitle{
    margin-bottom: -15px;
  }

  .be-top__featureSub{
    margin-bottom: 20px;
  }
}

/* --- Mobile：元テキストを隠して差し替え --- */
@media (max-width: 768px){

  /* 元の文字を見えなくする（DOM上は残る） */
  .be-top__featureTitle,
  .be-top__featureSub{
    color: transparent;
  }

  /* RideMap Go */
  .be-top__featureTitle:nth-of-type(1)::after{
    position: absolute;
    inset: 0;
    color: #000;
  }
  .be-top__featureSub:nth-of-type(1)::after{
    position: absolute;
    inset: 0;
    color: #000;
  }

  /* VR Ride */
  .be-top__featureTitle:nth-of-type(2)::after{
    position: absolute;
    inset: 0;
    color: #000;
  }
  .be-top__featureSub:nth-of-type(2)::after{
    position: absolute;
    inset: 0;
    color: #000;
  }
}