/* =============================================
   top.css — トップページ専用スタイル
   ============================================= */

/* ----- 多言語対応：日本語以外では縦書きを横書きに ----- */
html:not(:lang(ja)) .top-about__vertical-texts {
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

html:not(:lang(ja)) .top-about__vertical-col {
  writing-mode: horizontal-tb;
  text-align: center;
  width: auto;
}

html:not(:lang(ja)) .top-difference__slide-title {
  writing-mode: horizontal-tb;
  text-align: center;
  width: auto;
}

/* ----- パララックス背景コンテナ（FV + About共通） ----- */
.top-parallax {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ----- ファーストビュー ----- */
.top-fv {
  position: relative;
  height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.top-fv__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay);
}

.top-fv__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.top-fv__catch {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 475px;
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 48px;
  line-height: 68px;
  color: var(--color-text-light);
}

.top-fv__catch-line--right {
  text-align: right;
}

/* ----- TopAbout ----- */
.top-about {
  position: relative;
  height: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.top-about__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay);
}

.top-about__line {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.top-about__content {
  position: relative;
  z-index: 1;
}

.top-about__vertical-texts {
  display: flex;
  flex-direction: row-reverse;
  gap: 30px;
  align-items: flex-start;
}

.top-about__vertical-col {
  writing-mode: vertical-rl;
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 26px;
  line-height: 30px;
  color: var(--color-text-light);
  text-align: center;
}

.top-about__text {
  font-family: var(--font-mincho);
  font-size: 18px;
  line-height: 32px;
  color: var(--color-text-light);
  text-align: center;
  max-width: 600px;
}

.top-about__btn {
  position: relative;
  z-index: 1;
  margin-top: 60px;
}

/* ----- おすすめ料理セクション ----- */
.top-dishes {
  background-color: var(--color-white);
}

.top-dishes__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--section-padding-y) var(--section-padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 54px;
}

.top-dishes__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 66px 62px;
  justify-content: center;
}

.top-dishes__card {
  position: relative;
  width: 519px;
  height: 268px;
  background-color: var(--color-primary-dark);
  overflow: hidden;
}

.top-dishes__card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.top-dishes__card-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.top-dishes__card-title {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 26px;
  line-height: 30px;
  color: var(--color-white);
  letter-spacing: 2px;
}

.top-dishes__card-line {
  width: 275px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
}

.top-dishes__card-subtitle {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white);
  letter-spacing: 1px;
}

/* ----- おすすめカテゴリー＆商品（タブ） ----- */
.top-recommend {
  position: relative;
  background-color: var(--color-bg-cream);
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

.top-recommend__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--section-padding-y) var(--section-padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.top-recommend__desc {
  font-family: var(--font-mincho);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text);
  text-align: center;
}

.top-recommend__content {
  display: flex;
  gap: 58px;
  align-items: flex-start;
  width: 100%;
}

.top-recommend__tabs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 180px;
  flex-shrink: 0;
  border-top: 1px solid var(--color-gold);
  padding-top: 20px;
}

.top-recommend__tab {
  font-family: var(--font-mincho);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-gold);
  text-align: left;
  padding: 0;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 20px;
  transition: color 0.3s ease;
}

.top-recommend__tab.is-active {
  color: var(--color-text);
  font-weight: 600;
}

.top-recommend__panels {
  flex: 1;
}

.top-recommend__panel {
  display: none;
}

.top-recommend__panel.is-active {
  display: block;
}

.top-recommend__products {
  display: flex;
  gap: 26px;
}

/* ----- ランキング表示 ----- */
.product-card--ranked .product-card__image {
  position: relative;
}

.product-card__rank {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  min-width: 56px;
  padding: 8px 10px;
  background-color: var(--color-primary-dark);
  color: var(--color-text-light);
  font-family: var(--font-mincho);
}

.product-card__rank-num {
  font-size: 24px;
  line-height: 1;
}

.product-card__rank-unit {
  font-size: 13px;
  line-height: 1;
}

.product-card__rank--1 {
  background-color: #b3912f;
}

.product-card__rank--2 {
  background-color: #8c8c8c;
}

.product-card__rank--3 {
  background-color: #8a6239;
}

.product-card__placeholder {
  font-family: var(--font-mincho);
  font-size: 14px;
  color: #999;
}

/* ----- 他との違いセクション（スクロールスライド） ----- */
.top-difference {
  position: relative;
  background-color: var(--color-primary-dark);
}

.top-difference__header {
  padding: var(--section-padding-y) var(--section-padding-x) 80px;
  text-align: center;
  position: relative;
}

.top-difference__slide[data-slide="0"] {
  position: relative;
}

.top-difference__slide[data-slide="0"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26, 26, 46, 0) 0%, rgba(26, 26, 46, 1) 100%);
  z-index: 2;
}



.top-difference__slides {
  position: relative;
  height: 400vh;
}

.top-difference__slide {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.top-difference__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.top-difference__slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.top-difference__slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.top-difference__slide-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 414px;
  text-align: center;
}

.top-difference__slide-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.top-difference__slide-number {
  font-family: var(--font-playfair);
  font-weight: 400;
  font-size: 26px;
  line-height: 15px;
  color: var(--color-white);
}

.top-difference__slide-title {
  writing-mode: vertical-rl;
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 26px;
  line-height: 30px;
  color: var(--color-text-light);
}

.top-difference__slide-line {
  opacity: 0.6;
}

.top-difference__slide-text {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 16px;
  line-height: 34px;
  color: var(--color-white);
}

.top-difference__indicators {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.top-difference__indicators.is-visible {
  display: flex;
}

.top-difference__indicator {
  width: 12px;
  height: 12px;
  padding: 0;
}

.top-difference__indicator span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--color-white);
  transition: background-color 0.3s ease;
}

.top-difference__indicator.is-active span {
  background-color: var(--color-white);
}

/* ----- 商品カテゴリから探す ----- */
.top-categories {
  position: relative;
  background-color: var(--color-gold);
  overflow: hidden;
}

.top-categories__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/bg-washi.jpg');
  background-size: cover;
  opacity: 0.3;
  mix-blend-mode: multiply;
}

.top-categories__deco--left,
.top-categories__deco--right {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.top-categories__deco--left {
  width: 325px;
  height: 325px;
  left: -150px;
  bottom: 0;
}

.top-categories__deco--right {
  width: 440px;
  height: 440px;
  right: -180px;
  top: 244px;
}

.top-categories__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--section-padding-y) var(--section-padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 147px;
}

.top-categories__list {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.top-categories__item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc((100% - 40px) / 5);
  background-color: var(--color-white);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-categories__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.25);
}

.top-categories__item-bg {
  position: relative;
  width: 100%;
  height: 240px;
  background-color: rgba(40, 40, 40, 0.08);
  overflow: hidden;
}

.top-categories__item-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.top-categories__item:hover .top-categories__item-bg img {
  transform: scale(1.05);
}

/* 画像の外にラベル帯を置き、文字の視認性を確保する */
.top-categories__item-label {
  flex: 1; /* ラベル名の行数が違ってもカード下端まで帯を伸ばす */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  background-color: var(--color-primary-dark);
}

.top-categories__item-name {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-light);
  text-align: left;
}

.top-categories__item-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

.top-categories__item:hover .top-categories__item-arrow {
  transform: translateX(4px);
}

/* ----- お知らせセクション ----- */
.top-news {
  background-color: var(--color-white);
}

.top-news__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--section-padding-y) var(--section-padding-x);
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.top-news__left {
  display: flex;
  flex-direction: column;
  gap: 120px;
  width: 177px;
  flex-shrink: 0;
}

.section-title--left {
  align-items: flex-start;
  text-align: left;
}

.top-news__right {
  flex: 1;
}

.top-news__list {
  border-top: 1px solid var(--color-text);
}

.top-news__item {
  border-bottom: 1px solid var(--color-text);
}

.top-news__link {
  display: flex;
  align-items: center;
  gap: 45px;
  padding: 36px 26px;
}

.top-news__date {
  font-family: var(--font-playfair);
  font-weight: 400;
  font-size: 20px;
  line-height: 15px;
  color: var(--color-gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.top-news__title {
  flex: 1;
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text);
}

.top-news__arrow {
  flex-shrink: 0;
}

.top-news__empty {
  font-family: var(--font-mincho);
  font-size: 14px;
  color: #999;
  padding: 40px 0;
}

/* ----- 商品一覧へのリンクバナー ----- */
.top-banner {
  position: relative;
  height: 577px;
  background-size: cover;
  background-position: right center;
  overflow: hidden;
}

.top-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-primary-dark) 0%, rgba(26, 26, 46, 0.35) 44.9%, rgba(26, 26, 46, 0) 69.6%);
}

.top-banner__logo {
  position: absolute;
  left: -52px;
  bottom: 0;
  width: 349px;
  height: 259px;
  opacity: 0.05;
}

.top-banner__logo img {
  width: 100%;
  height: auto;
}

.top-banner__content {
  position: absolute;
  top: 50%;
  left: 90px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 63px;
  width: 396px;
}

.top-banner__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 23px;
  text-align: center;
  color: var(--color-white);
}

.top-banner__heading {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 36px;
  line-height: 55px;
}

.top-banner__desc {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}

/* ----- トップページ レスポンシブ ----- */
@media (max-width: 1024px) {
  .top-fv {
    height: 600px;
  }

  .top-fv__catch {
    font-size: 36px;
    line-height: 52px;
    width: auto;
    padding: 0 40px;
  }

  .top-about {
    height: 600px;
  }

  .top-about__vertical-texts {
    gap: 20px;
  }

  .top-about__vertical-col {
    font-size: 20px;
  }

  .top-dishes__grid {
    gap: 30px;
    width: 100%;
  }

  .top-dishes__card {
    width: calc(50% - 15px);
    height: 220px;
  }

  .top-recommend__content {
    flex-direction: column;
    gap: 30px;
  }

  .top-recommend__tabs {
    flex-direction: row;
    width: 100%;
    border-top: none;
    gap: 0;
  }

  .top-recommend__tab {
    flex: 1;
    text-align: center;
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 12px;
  }

  .top-recommend__tab.is-active {
    border-bottom-color: var(--color-primary-dark);
  }

  .top-categories__list {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .top-categories__item {
    width: calc(33.333% - 8px);
  }

  .top-categories__item-bg {
    height: 200px;
  }

  .top-categories__inner {
    gap: 60px;
  }

  .top-news__inner {
    flex-direction: column;
    gap: 40px;
  }

  .top-news__left {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
  }

  .top-banner__content {
    left: 40px;
    width: calc(100% - 80px);
    max-width: 396px;
  }
}

@media (max-width: 767px) {
  .top-fv {
    height: 100vh;
    height: 100svh;
  }

  .top-fv__catch {
    font-size: 28px;
    line-height: 44px;
    padding: 0 20px;
  }

  .top-about {
    height: auto;
    min-height: 100vh;
    padding: 80px 20px;
  }

  .top-about__vertical-texts {
    gap: 15px;
  }

  .top-about__vertical-col {
    font-size: 18px;
    line-height: 26px;
  }

  /* SP: パララックス無効化（iOS Safari対応） */
  .top-parallax {
    background-attachment: scroll;
  }

  .top-dishes__card {
    width: 100%;
    height: 200px;
  }

  .top-dishes__card-title {
    font-size: 20px;
  }

  .top-dishes__inner {
    gap: 36px;
  }

  .top-recommend__products {
    flex-direction: column;
    gap: 40px;
  }

  .product-card {
    width: 100%;
  }

  .product-card__image {
    height: 300px;
  }

  .top-categories__item {
    width: calc(50% - 5px);
  }

  .top-categories__item-bg {
    height: 150px;
  }

  .top-categories__item-label {
    padding: 14px 14px;
  }

  .top-categories__item-name {
    font-size: 16px;
    line-height: 22px;
  }

  .top-news__right {
    width: 100%;
  }

  .top-news__link {
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 20px 10px;
  }

  .top-news__date {
    font-size: 16px;
  }

  .top-banner {
    height: auto;
    min-height: 400px;
    background-position: center;
  }

  .top-banner__overlay {
    background: rgba(26, 26, 46, 0.7);
  }

  .top-banner__content {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    padding: 80px 20px;
    gap: 40px;
  }

  .top-banner__heading {
    font-size: 26px;
    line-height: 40px;
  }
}