/* ====== Top Page Layout (local preview, images later) ====== */
.top-main{
  background:#fff;
  color:#1a1a1a;
  font-weight: 400;
}
    .top-container{
      max-width: var(--page-w);
      margin: 0 auto;
      /* Desktop: design content width is the max-width itself (no side padding). */
      padding: 0;
      box-sizing: border-box;
    }
.top-section{
  padding: 96px 0;
}

.top-head{
  text-align: center;
  margin-bottom: 39px;
}
.top-head__jp{
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.2em; /* VA200 */
  color: #1a1a1a;
}
.top-head__en{
  margin-top: 13px;
  font-size: 16px;
  letter-spacing: 0.2em; /* VA200 */
  color: #1a1a1a;
  font-weight: 400;
}

    /* SP: title sizing can be tighter */
    @media (max-width: 768px){
      .top-head__jp{
        font-size: 26px;
        letter-spacing: 0.14em;
      }
      .top-head__en{
        font-size: 12px;
        letter-spacing: 0.18em;
        margin-top: 8px;
      }
      .top-pickup__title{
        font-size: 32px;
      }
    }

    .ph{
      background: linear-gradient(135deg, #eef3f8, #f7fafc);
      border: 1px solid #e3ebf2;
      color: #8aa0b5;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      letter-spacing: 0.08em;
      user-select: none;
    }

    /* Hero */
    .top-hero{
      position: relative;
      /* Match the actual KV images (top_kv01/02.webp: 2880x1372) */
      aspect-ratio: 2880 / 1372;
      overflow: hidden;
    }
    .top-hero__slides{
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      transform: translate3d(calc(var(--hero-index, 0) * -100%), 0, 0);
      transition: transform var(--hero-slide-duration, 1500ms) ease;
      will-change: transform;
    }
    .top-hero__slides.is-no-transition{
      transition: none !important;
    }
    .top-hero__slide{
      position: relative;
      flex: 0 0 100%;
      width: 100%;
      height: 100%;
    }
    .top-hero__slide picture{
      display: block;
      width: 100%;
      height: 100%;
    }
.top-hero__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.top-hero__dots{
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}
.top-hero__dot{
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.36);
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}
.top-hero__dot.is-active{
  background: #ffffff;
  transform: scale(1.12);
}
.top-hero__dot:focus-visible{
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
    @media (prefers-reduced-motion: reduce){
      .top-hero__slides{ transition: none; }
    }
    .top-hero__grid{
      height: 100%;
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
    .top-hero__left{
      background: var(--hero-left-bg, var(--brown));
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
    }
    .top-hero__left-inner{
      width: 100%;
      padding: 0 0 0 8vw;
      box-sizing: border-box;
      color: #fff;
    }
    .top-hero__kakko{
      margin: 0 0 18px;
      font-size: 20px;
      font-weight: 400;
      letter-spacing: 0.08em;
    }
    .top-hero__lead{
      margin: 0 0 16px;
      font-size: 24px;
      font-weight: 400;
      letter-spacing: 0.08em;
    }
    .top-hero__title{
      margin: 0;
      font-size: 58px;
      font-weight: 400;
      letter-spacing: 0.04em;
    }
    .top-hero__right{
      position: relative;
      background: var(--hero-right-bg, #9b6b5a);
      background-size: cover;
      background-position: center;
    }
    .top-hero__right::before{
      content:"";
      position:absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(0,0,0,0.04), rgba(0,0,0,0.18));
    }
    .top-hero__right-inner{
      position: relative;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0 64px 0 72px;
      box-sizing: border-box;
      color: #fff;
    }
    .top-hero__right-title{
      margin: 0 0 10px;
      font-size: 28px;
      font-weight: 400;
      letter-spacing: 0.06em;
    }
    .top-hero__right-note{
      margin: 0 0 18px;
      font-size: 12px;
      line-height: 1.7;
      opacity: 0.9;
    }
    .top-hero__right-sub{
      margin: 0;
      font-size: 20px;
      font-weight: 400;
      line-height: 1.65;
      letter-spacing: 0.06em;
    }
    .top-hero__pack{
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -52%);
      width: 360px;
      height: 460px;
      border-radius: 6px;
      z-index: 2;
    }

    /* Pickup */
.top-pickup{
  padding-top: 200px;
  padding-bottom: 185px;
}
.top-pickup__title{
  margin: 0 0 73px;
  text-align: center;
  color: var(--navy);
  font-size: 42px;
  letter-spacing: 0; /* VA00 */
  font-weight: 400;
}
    .top-pickup__grid{
      display: grid;
      grid-template-columns: repeat(3, 320px);
      gap: 40px;
      justify-content: space-between;
    }
    .pickup-card{
      display: block;
      color: inherit;
      text-decoration: none;
      width: 320px;
      background: transparent;
    }
    .pickup-card__img{
      height: 240px;
      border: 0;
      overflow: hidden;
    }
    .pickup-card__img img{
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }
.pickup-card__cta{
  position: relative;
  width: 320px;
  height: 80px;
  background: #2428a6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400; /* regular */
  letter-spacing: 0.2em; /* VA200 */
}
.pickup-card__cta::after{
  content: "";
  position: absolute;
  right: 29px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 12px;
  background: url("../img/top/arrow_w.svg") center / contain no-repeat;
}

/* Products */
.top-products{
  padding-top: 0;
  padding-bottom: 193px;
}
.top-products__tabs{
  display: flex;
  width: 100%;
  justify-content: flex-start;
  gap: 16px;
  margin: 0 0 62px;
  flex-wrap: nowrap;
}
    .product-tab{
      appearance: none;
      width: 248px;
      height: 44px;
      flex: 0 0 248px;
      padding: 0 18px;
      border-radius: 999px;
      border: 2px solid var(--pill-border);
      background: #fff;
      color: var(--pill-text);
      font-size: 15px;
      font-weight: 400; /* regular */
      letter-spacing: 0.06em;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      cursor: pointer;
      font-family: inherit;
    }
    .product-tab:focus-visible{
      outline: 3px solid rgba(35, 42, 168, 0.25);
      outline-offset: 3px;
    }
    .product-tab.is-active{
      background: var(--navy);
      border-color: var(--navy);
      color: #fff;
    }

    /* Below design width, switch to 2x2 */
    @media (max-width: 1040px){
      .top-products__tabs{
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }
      .product-tab{
        width: 100%;
        flex: initial;
      }
      .top-products__grid{
        grid-template-columns: repeat(2, 248px);
        justify-content: center;
      }
    }

    /* SP: 2 columns if possible */
    @media (max-width: 768px){
      .top-products__tabs{
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }
      .product-tab{
        width: 100%;
        flex: initial;
      }
    }
    .top-products__panel{
      display: none;
    }
    .top-products__panel.is-active{
      display: block;
    }
.top-products__grid{
  display: grid;
  grid-template-columns: repeat(4, 248px);
  gap: 16px;
}
    .product-card{
      position: relative;
      width: 248px;
      text-decoration: none;
      color: inherit;
    }
    .product-card__img{
      width: 248px;
      height: 248px;
      border-radius: 0;
      overflow: hidden;
      background: transparent;
      padding: 0;
      box-sizing: border-box;
    }
    .product-card__img img{
      width: 100%;
      height: 100%;
      display: block;
      object-fit: contain;
    }
.product-card__name{
      position: absolute;
      left: 0;
      right: 0;
      bottom: 24px;
      margin: 0;
      text-align: center;
      font-size: 15px;
      font-weight: 400;
      letter-spacing: 0.05em; /* AV50 */
  color: #1a1a1a;
}

/* Product Popup (Lightbox) */
body.modal-open{
  overflow: hidden;
}
.bs-modal{
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.bs-modal.is-open{
  display: flex;
}
.bs-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.bs-modal__dialog{
  position: relative;
  z-index: 1;
  width: min(1040px, 92vw);
  height: 480px;
  background: #fff;
  padding: 56px 60px;
  box-sizing: border-box;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  border-radius: 0;
  display: flex;
  align-items: center; /* center group vertically */
}
.bs-modal__close{
  position: absolute;
  top: 18px;
  right: 20px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #555;
  cursor: pointer;
}
.bs-modal__content{
  display: flex;
  gap: 70px;
  width: 870px; /* 320 + 70 + 480 */
  margin: 0 auto;
  height: 320px;
  align-items: flex-start;
  justify-content: center;
}
.bs-modal__media{
  width: 320px;
  height: 320px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bs-modal__media img{
  width: 320px;
  height: 320px;
  object-fit: contain;
  display: block;
}
.bs-modal__title{
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.2em; /* VA200 */
  color: #1a1a1a;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.bs-modal__ruby{
  font-size: 12px;
  letter-spacing: 0.08em; /* VA80 */
  color: #1a1a1a;
}
.bs-modal__en{
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 0.2em; /* VA200 */
  color: #1a1a1a;
}
.bs-modal__desc{
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: #1a1a1a;
  font-weight: 500;
}
.bs-modal__note{
  margin-top: 16px;
  font-size: 12px;
  color: #1a1a1a;
}
 .bs-modal__body{
  width: 480px;
 }

@media (max-width: 768px){
  .bs-modal__dialog{
    width: min(92vw, 720px);
    height: auto;
    padding: 28px 24px;
    display: block;
  }
  .bs-modal__content{
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: left;
    width: 100%;
    height: auto;
  }
  .bs-modal__media{
    width: 240px;
    height: 240px;
  }
  .bs-modal__media img{
    width: 240px;
    height: 240px;
  }
  .bs-modal__body{
    width: 100%;
  }
}
.top-store-cta{
  position: relative;
  width: 320px;
  height: 80px;
  background: #cddbe7;
  margin: 60px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.2em; /* VA200 */
}
.top-store-cta::after{
  content: "";
  position: absolute;
  right: 29px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 12px;
  background: url("../img/top/arrow_b.svg") center / contain no-repeat;
}

    /* Products grid responsive */
    @media (max-width: 768px){
      .top-products__grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
      }
      .product-card{
        width: 100%;
      }
      .product-card__img{
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
      }
      .product-card__name{
        bottom: 16px;
      }
    }
    @media (max-width: 480px){
      .top-products__grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    /* About */
.top-about{
  padding-top: 0;
  padding-bottom: 40px;
}
.top-about__links{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
}
.top-about__links a{
  flex: 1;
  text-align: center;
  padding: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 400;
  letter-spacing: 0.2em; /* VA200 */
  position: relative;
}
.top-about__links a + a{
  border-left: 0;
}
.top-about__links a + a::before{
  content:"";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 44px;
  background: #cedce8;
  transform: translateY(-50%);
}

    /* Dealer Banner */
.top-dealer{
  position: relative;
  height: 520px;
  background: url("../img/top/top_08.webp") center / cover no-repeat;
  overflow: hidden;
}
.top-dealer__inner{
  position: relative;
  height: 100%;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 118px var(--page-pad) 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  color: #fff;
  box-sizing: border-box;
}
.top-dealer__title{
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.4em; /* VA400 */
  font-weight: 600;
}
.top-dealer__sub{
  margin: 56px 0 0;
  font-size: 20px;
  letter-spacing: 0.05em; /* VA50 */
  font-weight: 500;
}
.top-dealer__nav{
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 16px;
  letter-spacing: 0.05em; /* VA50 */
  opacity: 0.95;
  margin-top: 28px;
}
.top-dealer__nav span{
  position: relative;
  padding-left: 20px;
}
.top-dealer__nav span::before{
  content:"";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  position:absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.top-dealer__cta{
  margin-top: 62px;
  width: 320px;
  height: 80px;
  background: var(--cta-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  letter-spacing: 0.2em; /* VA200 */
  font-weight: 400;
  position: relative;
  font-size: 16px;
}
.top-dealer__cta::after{
  content: "";
  position: absolute;
  right: 29px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 12px;
  background: url("../img/top/arrow_w.svg") center / contain no-repeat;
}

/* Information */
.top-info{
  padding-top: 190px;
}
.top-info__tabs{
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 39px 0 62px;
}
.info-tab{
  appearance: none;
  width: 136px;
  height: 32px;
  border-radius: 2px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-family: inherit;
  opacity: 0.5;
}
.info-tab.is-active{
  opacity: 1;
  box-shadow: none;
}
.info-tab:focus-visible{
  outline: 3px solid rgba(13, 143, 179, 0.25);
  outline-offset: 3px;
}
.info-tab.is-all{ background: #666666; }
.info-tab.is-news{ background: #3fa6f2; }
.info-tab.is-event{ background: #f4901e; }
.info-tab.is-research{ background: #66bf9c; }

.info-list{
  max-width: 938px;
  margin: 0 auto 200px;
  border-top: 2px solid #cedce8;
}
.info-row{
  display: grid;
  grid-template-columns: 95px 130px 1fr;
  gap: 18px;
  align-items: center;
  height: 78px;
  border-bottom: 2px solid #cedce8;
  box-sizing: border-box;
  padding: 23px 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 180ms ease;
}
    .info-row:hover{
      background: rgba(205, 219, 231, 0.18);
    }
.info-date{
  color: #1a1a1a;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.info-cat{
  height: 32px;
  width: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.05em;
  border-radius: 2px;
}
.info-cat.is-news{ background: #3fa6f2; }
.info-cat.is-event{ background: #f4901e; }
.info-cat.is-research{ background: #66bf9c; }
.info-cat.is-other{ background: #999; }
.info-title{
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

@media (max-width: 1100px){
  .top-container{ padding: 0 var(--page-pad); }
  .top-pickup__grid{
    grid-template-columns: repeat(2, 320px);
    justify-content: flex-start;
  }
}

    @media (max-width: 600px){
      .top-info__tabs{ flex-wrap: wrap; }
      .top-store-cta{ width: 100%; }
      .top-dealer__cta{ width: 100%; }
    }

/* SP: 1 column, full-width-friendly cards */
@media (max-width: 768px){
  .top-hero__dots{
    bottom: 12px;
    gap: 8px;
  }

  .top-hero__dot{
    width: 8px;
    height: 8px;
  }

  .top-hero{
    aspect-ratio: 3000 / 4320;
  }

  .top-hero__img{
    object-fit: cover;
  }

  .top-container{ max-width: none; }
  .top-section{
    padding: 56px 0;
  }
  .top-head{
    margin-bottom: 26px;
  }
  .top-head__jp{
    line-height: 1.3;
  }
  .top-pickup{
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .top-pickup__title{
    margin-bottom: 32px;
    font-size: 28px;
  }
  .top-pickup__grid{
    grid-template-columns: 1fr;
    gap: 16px;
    justify-content: stretch;
  }
  .pickup-card{ width: 100%; }
  .pickup-card__img{
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .pickup-card__cta{
    width: 100%;
    height: 64px;
    font-size: 14px;
  }

  .top-products{
    padding-top: 8px;
    padding-bottom: 45px;
  }
  .top-products__tabs{
    margin-bottom: 28px;
    gap: 10px;
  }
  .product-tab{
    font-size: 13px;
    height: 40px;
    padding: 0 10px;
  }
  .product-card__name{
    font-size: 13px;
    bottom: 12px;
  }
  .top-store-cta{
    width: 100%;
    max-width: 320px;
    height: 64px;
    margin-top: 44px;
    font-size: 14px;
  }

  .top-about{
    padding-bottom: 40px;
  }
  .top-about .top-head{
    margin-bottom: 0;
  }
  .top-about__links{
    margin-top: 26px;
    flex-wrap: nowrap;
    row-gap: 0;
  }
  .top-about__links a{
    flex: 1;
    justify-content: center;
    height: 40px;
    padding: 0;
    font-size: 13px;
    letter-spacing: 0.06em;
  }
  .top-about__links a + a::before{
    display: block;
    height: 24px;
  }

  .top-dealer{
    height: auto;
    min-height: 0;
  }
  .top-dealer__inner{
    height: auto;
    padding: 72px 20px 72px;
  }
  .top-dealer__title{
    font-size: 22px;
    letter-spacing: 0.2em;
  }
  .top-dealer__sub{
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.7;
  }
  .top-dealer__nav{
    margin-top: 30px;
    gap: 14px;
    font-size: 14px;
  }
  .top-dealer__cta{
    width: 100%;
    max-width: 320px;
    height: 64px;
    margin-top: 28px;
    font-size: 14px;
  }

  .top-info{
    padding-top: 28px;
  }
  .top-info .top-head{
    margin-top: 58px;
  }
  .top-info__tabs{
    margin: 22px 0 28px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .info-tab{
    width: calc(50% - 5px);
    height: 36px;
    font-size: 13px;
  }
  .info-list{
    margin-bottom: 96px;
  }
  .info-row{
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    row-gap: 10px;
    height: auto;
    padding: 14px 0;
    align-items: center;
  }
  .info-date{
    grid-column: 1;
  }
  .info-cat{
    grid-column: 2;
    justify-self: start;
  }
  .info-title{
    grid-column: 1 / -1;
  }
  .info-date,
  .info-title{
    font-size: 14px;
  }
  .info-cat{
    width: 120px;
    height: 28px;
    font-size: 13px;
  }
}
