@charset "UTF-8";
/* ==========================================================
   トップ：秘伝のタレセクション（partials/top-hidennotare.php）
   Figma「公式TOP」Section - HIDENNOTARE（1920px幅・本文1024px）の位置に合わせる
   ========================================================== */

.top-hnt {
  --top-hnt-green: #dce9df;
  --top-hnt-green-line: #cbd8ce;
  --top-hnt-green-dark: #193d32;
  --top-hnt-charcoal: #4e454a;
  --top-hnt-u: 1px;
  position: relative;
  height: 480px;
  margin-bottom: 80px;
  overflow: hidden;
  background: #f8f5ed;
}

.top-hnt *,
.top-hnt *::before,
.top-hnt *::after {
  box-sizing: border-box;
}

.top-hnt img {
  display: block;
  max-width: none;
}

/* 位置の基準は本文幅1024px。画面が狭いときは左右20pxの余白をとり、右側の要素は右端基準で置く */
.top-hnt__inner {
  position: relative;
  width: min(1024px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

/* ---------- 背景の丸 ---------- */
.top-hnt__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.top-hnt__circle {
  position: absolute;
}

.top-hnt__circle--1 { top: 149px; right: -164px; }
.top-hnt__circle--2 { top: 98px; left: -245px; }
.top-hnt__circle--3 { top: 76px; right: -53px; }
.top-hnt__circle--4 { top: 300px; left: -118px; }
.top-hnt__circle--5 { top: 23px; left: 256px; }
.top-hnt__circle--6 { top: 281px; right: -324px; }

/* ---------- タイトル（下層「秘伝のタレ」のMVと同じ文字画像を使う） ---------- */
.top-hnt__title {
  position: absolute;
  z-index: 3;
  top: 36px;
  left: calc(50% + 10.5px);
  width: 363px;
  height: 150px;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.top-hnt__title img {
  position: absolute;
  height: auto;
}

.top-hnt__title-en { top: 7px; left: 107px; width: 150px; }
.top-hnt__title-otsuma { top: 44px; left: 10px; width: 28px; }
.top-hnt__title-main { top: 43px; left: 53px; width: 300px; }
.top-hnt__title-sub { top: 118px; left: 68px; width: 227px; }

/* ---------- カルーセル ---------- */
/* 表示枠は左を画面の端まで広げ、右はデザインの位置（カード起点から980px）で切る */
.top-hnt__viewport {
  position: absolute;
  z-index: 1;
  top: 193px;
  right: 37px;
  left: calc((100% - 100vw) / 2);
  height: 162px;
  padding-top: 6px;
  overflow: hidden;
}

.top-hnt__track {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  /* JSが動かないときもデザインの起点（本文左+7px）から並べる */
  transform: translateX(calc((100vw - 100%) / 2 + 7px));
}

.top-hnt__item {
  flex-shrink: 0;
  width: calc(220 * var(--top-hnt-u));
  transition: opacity 0.4s;
}

/* 最初は起点より左にカードを出さない（JSが左側が埋まったら表示する） */
.top-hnt__track.is-fresh .is-before {
  opacity: 0;
}

.top-hnt__nav {
  position: absolute;
  z-index: 3;
  top: 374px;
  left: 7px;
  display: flex;
  gap: 16px;
}

.top-hnt__arrow {
  display: block;
  width: 31px;
  height: 31px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.top-hnt__arrow:hover {
  opacity: 0.7;
}

.top-hnt__arrow--next img {
  transform: scaleX(-1);
}

/* ---------- カード ---------- */
/* --top-hnt-u はカードの1px。PCは1px、SPはカード幅に合わせて拡大する */
.top-hnt-card {
  position: relative;
  display: block;
  width: calc(220 * var(--top-hnt-u));
  height: calc(150 * var(--top-hnt-u));
  overflow: hidden;
  border: calc(5 * var(--top-hnt-u)) solid var(--top-hnt-green-line);
  background: #fff;
  color: var(--top-hnt-charcoal);
  text-decoration: none;
  transition: background-color 0.2s;
}

.top-hnt-card:hover {
  background: #f8f5ed;
}

/* Figmaの線は内側描画のため、子要素の位置は枠線5px分を差し引く */
.top-hnt-card__watermark {
  position: absolute;
  top: calc(-21 * var(--top-hnt-u));
  left: calc(-58 * var(--top-hnt-u));
  width: calc(120 * var(--top-hnt-u));
  height: calc(153 * var(--top-hnt-u));
  object-fit: cover;
  opacity: 0.6;
  pointer-events: none;
}

.top-hnt-card__num {
  position: absolute;
  top: calc(23.96 * var(--top-hnt-u));
  left: calc(42.88 * var(--top-hnt-u));
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(48.8 * var(--top-hnt-u));
  color: var(--top-hnt-green);
  white-space: nowrap;
}

.top-hnt-card__num-label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: calc(12 * var(--top-hnt-u));
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: calc(12 * var(--top-hnt-u));
}

.top-hnt-card__num-value {
  font-family: "Roboto", sans-serif;
  font-size: calc(30 * var(--top-hnt-u));
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: calc(30 * var(--top-hnt-u));
}

.top-hnt-card__icon {
  position: absolute;
  top: calc(15 * var(--top-hnt-u));
  left: calc(107.12 * var(--top-hnt-u));
  width: calc(60 * var(--top-hnt-u));
  height: calc(60 * var(--top-hnt-u));
  overflow: hidden;
  border-radius: 50%;
}

.top-hnt-card__icon--bg {
  background: var(--top-hnt-green);
}

.top-hnt-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-hnt-card__title {
  position: absolute;
  top: calc(73 * var(--top-hnt-u));
  left: calc(12 * var(--top-hnt-u));
  display: -webkit-box;
  width: calc(186 * var(--top-hnt-u));
  overflow: hidden;
  font-family: "Noto Serif JP", serif;
  font-size: calc(16 * var(--top-hnt-u));
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: calc(26 * var(--top-hnt-u));
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ---------- 壺の画像・一覧ボタン ---------- */
.top-hnt__tare {
  position: absolute;
  z-index: 2;
  top: 128px;
  right: -38px;
  width: 220px;
  height: 262px;
  object-fit: contain;
  pointer-events: none;
}

.top-hnt__btn {
  position: absolute;
  z-index: 3;
  top: 366px;
  right: 178px;
  display: block;
  width: 231px;
  height: 50px;
  color: var(--top-hnt-green-dark);
  text-decoration: none;
}

.top-hnt__btn::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 12px;
  width: 219px;
  height: 31px;
  border-radius: 10px;
  background: var(--top-hnt-green);
  transition: opacity 0.2s;
}

.top-hnt__btn:hover::before {
  opacity: 0.7;
}

.top-hnt__btn-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
}

.top-hnt__btn-text {
  position: absolute;
  top: 12px;
  left: 55px;
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 26px;
  white-space: nowrap;
}

/* 上向きの三角を90度回して右向きにする（Figmaの13px四方の枠の中央） */
.top-hnt__btn-arrow {
  position: absolute;
  top: 21.6px;
  left: 213.33px;
  transform: rotate(90deg);
}

/* ---------- SP ---------- */
/* 新着だよりのスライダーと同じレイアウト：中央に1枚、左右に前後のカードを少し見せる */
@media (max-width: 767px) {
  .top-hnt {
    /* カード幅＝画面幅−左右30px−カード間24px（新着だよりと同じ） */
    --top-hnt-u: calc((100vw - 84px) / 220);
    height: auto;
    margin-bottom: calc(80 * (100vw / 780));
    padding: 30px 0 40px;
  }

  .top-hnt__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
  }

  .top-hnt__circle--1 { top: 40px; right: -150px; }
  .top-hnt__circle--2 { top: 60px; left: -60px; }
  .top-hnt__circle--3 { top: 140px; right: -180px; }
  .top-hnt__circle--4 { top: auto; bottom: -80px; left: -90px; }
  .top-hnt__circle--5 { top: 0; left: 10px; width: 110px; height: 110px; }
  .top-hnt__circle--6 { display: none; }

  .top-hnt__title {
    position: relative;
    top: auto;
    left: auto;
    width: 290px;
    height: 120px;
    transform: none;
  }

  .top-hnt__title-en { top: 6px; left: 85px; width: 120px; }
  .top-hnt__title-otsuma { top: 35px; left: 8px; width: 22px; }
  .top-hnt__title-main { top: 35px; left: 42px; width: 240px; }
  .top-hnt__title-sub { top: 95px; left: 54px; width: 182px; }

  .top-hnt__carousel {
    position: relative;
    width: 100%;
    margin-top: 24px;
  }

  .top-hnt__viewport {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    height: auto;
    padding: 0;
  }

  .top-hnt__track {
    gap: 24px;
    /* JSが動かないときも1枚目を中央に置く */
    transform: translateX(42px);
  }

  /* 矢印は左右の端（新着だよりと同じ位置） */
  .top-hnt__nav {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    height: 40px;
    margin-top: calc(40 * (100vw / 780));
  }

  .top-hnt__arrow {
    position: absolute;
    top: 4.5px;
  }

  .top-hnt__arrow--prev {
    left: 4.5px;
  }

  .top-hnt__arrow--next {
    right: 4.5px;
  }

  /* SPはタイトルの右下（文字に重ならない位置）に置く */
  .top-hnt__tare {
    top: 72px;
    right: 8px;
    width: 80px;
    height: 95px;
  }

  .top-hnt__btn {
    position: relative;
    top: auto;
    right: auto;
    margin-top: calc(40 * (100vw / 780));
  }
}
