/* ==========================================================================
   TOPページ（PC: Figma 1:430 / SP: Figma 1:1324）
   ========================================================================== */

/* =========================
   MV メインビジュアル（PC: 1:736 / SP: 1:1325）
   ========================= */
.fp-mv {
  position: relative;
  overflow: hidden;
}

.fp-mv__img {
  display: block;
  width: 100%;
  height: auto;
}

/* PC: 写真のみの画像（1440×520）。文字はHTMLで載せる */
.fp-mv__img--pc {
  aspect-ratio: 1440 / 520;
  object-fit: cover;
}

.fp-mv__img--sp {
  display: none;
}

/* オーバーレイはSP専用（PCは背景がもともと暗いので不要） */
.fp-mv__overlay {
  display: none;
}

/* テキストブロック
   写真の中心（1440pxカンバスで x1038）に合わせ、サイズは vw で
   持たせて写真と一緒に拡大縮小させる。高さはロゴ追加で変わるため
   実測の top ではなく上下中央寄せにしている。 */
.fp-mv__content {
  display: block;
  position: absolute;
  top: 50%;
  left: 72.08%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-white);
  white-space: nowrap;
}

/* ロゴ（300px / 1440px）。MVの主役 */
.fp-mv__logo {
  line-height: 0;
}

.fp-mv__logo-img {
  width: 20.83vw;
  height: auto;
  margin: 0 auto;
}

/* 「限界突破！！」24px / 1440px。リード文より少し大きいだけに抑える */
.fp-mv__catch {
  margin-top: 1.6vw;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 1.667vw;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

/* リード文 16px / 1440px。読める範囲で小さく */
.fp-mv__lead {
  margin-top: 1.1vw;
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 1.111vw;
  line-height: 2;
}

/* =========================
   商品ショーケース（PC: 1:698 / SP: 1:1332）
   ========================= */
.fp-products {
  position: relative;
  height: 533px;
  overflow: hidden;
}

.fp-products__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* グラデーションオーバーレイ（1:701: #454545→#f0f0f0→#454545 / 40%） */
.fp-products__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #454545 0%, #f0f0f0 50%, #454545 100%);
  opacity: 0.4;
}

.fp-products__inner {
  position: relative;
  z-index: 1;
  max-width: var(--site-width);
  height: 100%;
  margin: 0 auto;
}

/* 商品スクロールリスト（1:703: x76 y45 300px高） */
.fp-products__scroll-wrap {
  position: absolute;
  top: 45px;
  left: 76px;
  right: 0;
  height: 300px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.fp-products__scroll-wrap::-webkit-scrollbar {
  display: none;
}

.fp-products__list {
  display: flex;
  gap: 30px;
  width: max-content;
}

.fp-products__item {
  flex: 0 0 300px;
  height: 300px;
}

.fp-products__card {
  display: block;
  width: 100%;
  height: 100%;
}

.fp-products__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CTAボタン（1:702: 329×78 y410 中央） */
.fp-products__cta {
  position: absolute;
  top: 410px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 329px;
  height: 78px;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.9px;
  transition: opacity 0.2s;
}

.fp-products__cta:hover {
  opacity: 0.8;
}

/* =========================
   お客様の声（PC: 1:508 / SP: 1:1431）
   ========================= */
.fp-voice {
  position: relative;
  height: 1294px;
  padding-top: 275px;
  overflow: hidden;
}

.fp-voice__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.fp-voice__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay-dark); /* rgba(21,21,21,0.8) */
}

/* 縦書き装飾（1:539） */
.fp-voice__side-label {
  z-index: 1;
}

/* 星アウトライン装飾（1:537: 69,183） */
.fp-voice__star-deco {
  position: absolute;
  left: 69px;
  top: 183px;
  z-index: 1;
}

/* ウォーターマーク VOICE（1:535: 100px Titillium #454545） */
.fp-voice__watermark {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 100px;
  line-height: 2;
  color: var(--color-text-gray);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* 見出し お客様の声（1:536: 30px Roboto #eaeaea） */
.fp-voice__heading {
  position: absolute;
  top: 109px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--font-en-bold);
  font-weight: 900;
  font-size: 30px;
  line-height: 2;
  color: var(--color-bg-gray);
  white-space: nowrap;
}

/* レビューカードグリッド（1:544: 1000px 3列×2行） */
.fp-voice__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 320px);
  gap: 46px 20px;
  width: 1000px;
  margin: 0 auto;
}

/* レビューカード（320×370 #f8f8f8 角丸10） */
.review-card {
  position: relative;
  width: 320px;
  height: 370px;
  padding: 30px;
  background: var(--color-bg-light);
  border-radius: 10px;
}

.review-card__date {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 12px;
  line-height: 24px;
  color: var(--color-text-sub);
}

.review-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.review-card__title {
  margin-top: 25px;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 15px;
  line-height: 30px;
  color: var(--color-dark);
}

.review-card__text {
  margin-top: 24px;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 15px;
  line-height: 32px;
  color: var(--color-dark);
}

/* 吹き出しの尻尾（カード下に16px突き出し） */
.review-card__tail {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 0;
}

.review-card__tail img {
  width: 88px;
  height: 43px;
  transform: rotate(180deg); /* 元SVGは上向き三角のため反転して下向きに */
}

/* もっと見るカード（1:685） */
.review-card--more {
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 208px;
  height: 55px;
  background: var(--color-white);
  border: 1px solid var(--color-dark);
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: 0.8px;
  color: var(--color-dark);
  transition: opacity 0.2s;
}

.review-more-btn:hover {
  opacity: 0.7;
}

.review-more-btn img {
  width: 20px;
  height: 20px;
}

/* カルーセルドット（SPのみ） */
.fp-voice__dots {
  display: none;
}

/* 注記（1:697: x1010 y1112 Inter 12px） */
.fp-voice__note {
  position: absolute;
  top: 1112px;
  left: 50%;
  transform: translateX(290px);
  z-index: 1;
  font-family: 'Inter', var(--font-jp);
  font-weight: 400;
  font-size: 12px;
  line-height: 36px;
  color: var(--color-white);
}

/* =========================
   公式インスタグラム（PC: 1:477 / SP: 1:1339）
   ========================= */
.fp-instagram {
  position: relative;
  background: var(--color-bg-light);
  padding-top: 256px;
  padding-bottom: 158px; /* 999 - (616+225) */
  overflow: hidden;
}

/* 背景装飾（1:480: 589×999 右端） */
.fp-instagram__decor {
  position: absolute;
  top: 0;
  right: 0;
  width: 589px;
  height: 100%;
  background-image: url('../images/instagram-decor.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* ウォーターマーク INSTAGRAM（1:481: 100px Titillium #eaeaea） */
.fp-instagram__watermark {
  position: absolute;
  top: 53px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 100px;
  line-height: 1.6;
  color: var(--color-bg-gray);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* 見出し 公式インスタグラム（1:482: 30px Roboto #454545） */
.fp-instagram__heading {
  position: absolute;
  top: 109px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--font-en-bold);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.6;
  color: var(--color-text-gray);
  white-space: nowrap;
}

/* 行（写真4枚 + アカウント情報） */
.fp-instagram__row {
  position: relative;
  z-index: 1;
  display: flex;
  width: 1000px;
  margin: 0 auto;
}

.fp-instagram__row + .fp-instagram__row {
  margin-top: 135px;
}

.fp-instagram__photos {
  display: flex;
  gap: 30px;
}

.fp-instagram__photo {
  display: block;
  width: 180px;
  height: 225px;
  overflow: hidden;
  transition: opacity 0.2s;
}

.fp-instagram__photo:hover {
  opacity: 0.8;
}

.fp-instagram__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* スクロール演出（初期状態は common.css の .reveal、付与は main.js）
   写真は枠（overflow:hidden）と同じ大きさなので、そのまま下へずらすと
   枠の中に隙間ができる。バナーと同じく少し拡大した状態から立ち上げる。

   ずらす量を px ではなく % にしているのは、写真がPC180×225／SP100×125と
   大きさが変わるため。拡大でできる余白は上下それぞれ高さの4%（1.08倍）
   なので、px指定だとSPで足りず枠内に隙間が出る。
   1.16倍＝上下8%の余白に対して6%だけ下げる形にすれば、
   どの大きさでも写真が枠を覆ったまま動く。

   演出は枠ではなく中の img に当てている。枠側（a）には :hover 用の
   transition があり、.reveal の指定を打ち消してしまうため。 */
.fp-instagram__photo img.reveal {
  transform: translateY(6%) scale(1.16);
}

.fp-instagram__photo img.reveal.is-revealed {
  transform: none;
}

/* アカウント情報（1:494〜: 幅168 右端） */
.fp-instagram__account-info {
  width: 168px;
  margin-left: 22px;
}

.fp-instagram__account-name {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 20px;
  line-height: 40px;
  color: var(--color-black);
}

.fp-instagram__big-icon {
  width: 100px;
  margin: 23px auto 0;
}

.fp-instagram__big-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.fp-instagram__view-more {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-dark);
  transition: opacity 0.2s;
}

.fp-instagram__view-more:hover {
  opacity: 0.7;
}

/* SVGの縦横比（65.06 : 11.7577）を保つため高さは auto にする。
   height を固定するとアイコンが潰れる。 */
.fp-instagram__view-more-arrow {
  width: 60px;
  height: auto;
}

.fp-instagram__view-more-line {
  margin-top: 15px;
  height: 1px;
  background: var(--color-dark);
}

/* =========================
   バナーセクション（PC: 1:435 / SP: 1:1363）
   写真=画像 / テキスト=HTML再現
   ========================= */
.fp-banner {
  position: relative;
  height: 550px;
  overflow: hidden;
  background: #f4f4f4;
}

/* 写真（1440×550のテキスト焼き込み画像の右側＝写真部分のみ表示） */
.fp-banner__photo {
  position: absolute;
  inset: 0;
}

.fp-banner__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

/* スクロール演出（初期状態は common.css の .reveal、付与は main.js）
   写真は inset:0 の絶対配置なので、そのまま下へずらすと上に
   セクション背景の帯が見えてしまう。少し拡大した状態から
   立ち上げることで隙間を作らずに動かす。 */
.fp-banner__photo.reveal {
  transform: translateY(20px) scale(1.08);
}

.fp-banner__photo.reveal.is-revealed {
  transform: none;
}

/* デザイン画像バナー（文字入りの画像を置く場合）
   写真のようにトリミングすると文字が切れ、左パネルのフェードにも
   かぶってしまうため、画像全体を右側の帯に収めて表示する。
   幅を % で持たせているので、ビューポート幅が変わっても
   パネル（左62%）にかからない。 */
.fp-banner--graphic .fp-banner__photo {
  background: #000;
}

.fp-banner--graphic .fp-banner__photo img {
  position: absolute;
  top: 50%;
  right: 0;
  left: auto;
  width: 40%;
  max-width: none;
  height: auto;
  max-height: 100%;
  transform: translateY(-50%);
  object-fit: contain;
}

/* 左側パネル（焼き込みテキスト部を覆い、写真へフェード） */
.fp-banner__panel {
  position: absolute;
  inset: 0;
  width: 62%;
  background: linear-gradient(112deg, #a8a8a8 -2%, #f1f1f1 26%, #f8f8f8 60%, #f0f0f0 100%);
  -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 100%);
  mask-image: linear-gradient(to right, #000 72%, transparent 100%);
}

/* テキストコンテンツ（1440カンバス基準 x195 y78） */
.fp-banner__content {
  position: absolute;
  top: 78px;
  left: max(24px, calc(50% - 525px));
  z-index: 1;
}

.fp-banner__en {
  font-family: var(--font-cairo);
  font-weight: 700;
  font-style: italic;
  font-size: 60px;
  line-height: 1.1;
  color: #000;
  white-space: nowrap;
}

.fp-banner__en-green {
  color: #2c893a;
}

.fp-banner__title {
  margin-top: 20px;
  font-family: var(--font-jp-hira);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.2;
  color: #000;
}

.fp-banner__desc {
  margin-top: 42px;
  max-width: 470px;
  font-family: var(--font-jp-hira);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.75;
  color: #000;
}

.fp-banner__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 225px;
  height: 67px;
  margin-top: 56px;
  background: var(--color-black);
  border: 1px solid var(--color-white);
  border-radius: 10px;
  font-family: var(--font-jp-hira);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-white);
  transition: opacity 0.2s;
}

.fp-banner__btn:hover {
  opacity: 0.8;
}

/* ==========================================================================
   SP（〜767px）
   ========================================================================== */
@media (max-width: 767px) {

  /* ---- MV（1:1325: 写真450px + HTMLテキスト） ---- */
  .fp-mv__img--pc {
    display: none;
  }

  .fp-mv__img--sp {
    display: block;
    width: 100%;
    height: 450px;
    object-fit: cover;
  }

  /* 黒30%オーバーレイ（1:1327） */
  .fp-mv__overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
  }

  /* ロゴ → 限界突破 → リード文の縦積み。
     要素ごとの絶対配置だと高さが変わるたびに top を直す必要があるため、
     写真（450px）の中に flex で上下中央寄せしている。 */
  .fp-mv__content {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    color: var(--color-white);
    /* PC用の配置指定を打ち消す */
    top: 0;
    left: 0;
    transform: none;
    text-align: center;
    white-space: normal;
  }

  .fp-mv__logo-img {
    width: 190px;
  }

  .fp-mv__catch {
    margin-top: 14px;
    font-size: 20px;
    line-height: 1.4;
  }

  .fp-mv__lead {
    margin-top: 10px;
    font-weight: 600;
    font-size: 13px;
    line-height: 2;
  }

  /* ---- 商品ショーケース（1:1332: 280px） ---- */
  .fp-products {
    height: 280px;
  }

  .fp-products__scroll-wrap {
    position: static;
    height: 180px;
    margin-top: 24px;
  }

  .fp-products__list {
    gap: 15px;
  }

  .fp-products__item {
    flex: 0 0 180px;
    height: 180px;
  }

  /* CTA（1:1336: 180×37 y219） */
  .fp-products__cta {
    position: static;
    transform: none;
    width: 180px;
    height: 37px;
    margin: 15px auto 0;
    font-weight: 500;
    font-size: 13px;
    line-height: 30px;
    letter-spacing: 0.65px;
  }

  /* ---- お客様の声（1:1431: 437px カルーセル） ---- */
  .fp-voice {
    height: 437px;
    padding-top: 96px;
  }

  .fp-voice__star-deco {
    display: none;
  }

  .fp-voice__watermark {
    top: 30px;
    font-size: 50px;
    line-height: 1;
    color: var(--color-text-gray);
  }

  .fp-voice__heading {
    top: 46px;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
  }

  /* カードカルーセル（横スクロール） */
  .fp-voice__cards {
    display: flex;
    gap: 19px;
    width: auto;
    margin: 0;
    padding: 0 28px 20px 48px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .fp-voice__cards::-webkit-scrollbar {
    display: none;
  }

  .review-card {
    flex: 0 0 280px;
    width: 280px;
    height: 257px;
    padding: 24px 21px;
    scroll-snap-align: start;
  }

  .review-card__date {
    font-size: 10px;
    line-height: 20px;
  }

  .review-card__meta {
    gap: 12px;
    margin-top: 2px;
  }

  .review-card__title {
    margin-top: 16px;
    font-weight: 600;
    font-size: 13px;
    line-height: 24px;
  }

  .review-card__text {
    margin-top: 15px;
    font-size: 13px;
    line-height: 26px;
  }

  /* 尻尾（1:1440: 幅78 右寄り 14px突き出し） */
  .review-card__tail {
    bottom: -14px;
    left: auto;
    right: 23px;
    transform: none;
  }

  .review-card__tail img {
    width: 78px;
    height: 38px;
  }

  /* カルーセルドット（1:1500: 10px×6 中央） */
  .fp-voice__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 29px;
  }

  /* ボタン要素なのでブラウザ既定の枠・余白を消す */
  .fp-voice__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s;
  }

  .fp-voice__dot:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 3px;
  }

  .fp-voice__dot.is-active {
    background: var(--color-bg-light);
  }

  /* 注記（1:1507: 8px 右寄せ） */
  .fp-voice__note {
    position: static;
    transform: none;
    margin: 12px 20px 0 0;
    font-size: 8px;
    line-height: 1;
    text-align: right;
    color: var(--color-bg-light);
  }

  /* ---- 公式インスタグラム（1:1339: 478px） ---- */
  .fp-instagram {
    padding-top: 138px;
    padding-bottom: 45px;
  }

  .fp-instagram__decor {
    width: 237px;
    background-image: url('../images/instagram-decor-sp.svg');
  }

  .fp-instagram__watermark {
    top: 30px;
    font-size: 50px;
    line-height: 1;
  }

  .fp-instagram__heading {
    top: 46px;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
  }

  .fp-instagram__row {
    width: auto;
    margin: 0;
    padding-left: 28px;
  }

  .fp-instagram__row + .fp-instagram__row {
    margin-top: 45px;
  }

  .fp-instagram__photos {
    gap: 10px;
  }

  .fp-instagram__photo {
    width: 100px;
    height: 125px;
  }

  /* PC専用写真（3・4枚目）は非表示 */
  .fp-instagram__photo--pc {
    display: none;
  }

  /* アカウント情報（1:1346: 幅100） */
  .fp-instagram__account-info {
    width: 100px;
    margin-left: 10px;
  }

  .fp-instagram__account-name {
    font-size: 14px;
    line-height: 26px;
  }

  .fp-instagram__big-icon {
    width: 55px;
    margin-top: 14px;
  }

  .fp-instagram__view-more {
    gap: 9px;
    margin-top: 9px;
    font-size: 13px;
  }

  .fp-instagram__view-more-arrow {
    width: 30px;
    height: auto;
  }

  .fp-instagram__view-more-line {
    margin-top: 5px;
  }

  /* ---- バナー（1:1363: 写真275px + 白地テキスト） ---- */
  .fp-banner {
    height: auto;
    background: var(--color-white);
  }

  /* 写真: 焼き込み画像の右側（写真部分）だけを表示する。
     切り出し量は画像ごとに違うため、front-page.php から
     --sp-photo-w（幅）と --sp-photo-x（左オフセット）で渡している。
     値が来なかった場合は従来どおり右52%。 */
  .fp-banner__photo {
    position: relative;
    height: 275px;
    overflow: hidden;
  }

  .fp-banner__photo img {
    position: absolute;
    top: 0;
    left: var(--sp-photo-x, -92.31%);
    width: var(--sp-photo-w, 192.31%);
    max-width: none; /* グローバルの max-width:100% を解除（クロップ再現に必須） */
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* デザイン画像はSPでは横幅いっぱいに収める（上下は黒の余白） */
  .fp-banner--graphic .fp-banner__photo img {
    top: 50%;
    right: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 100%;
    margin: 0 auto;
    transform: translateY(-50%);
  }

  .fp-banner__panel {
    display: none;
  }

  .fp-banner__content {
    position: static;
    padding: 15px 38px 40px;
  }

  .fp-banner__en {
    font-size: 30px;
    line-height: 1.6;
  }

  .fp-banner__title {
    margin-top: 0;
    font-size: 18px;
    line-height: 1.6;
  }

  .fp-banner__desc {
    margin-top: 15px;
    max-width: 300px;
    font-size: 14px;
    line-height: 1.6;
  }

  .fp-banner__btn {
    width: 150px;
    height: 50px;
    margin-top: 19px;
    border-radius: 14px;
    font-size: 14px;
  }
}

/* =========================
   商品ショーケースの左右ボタンの配置（PCのみ）
   .fp-products__scroll-wrap と同じ矩形に重ねる。
   ========================= */
@media (min-width: 768px) {
  .fp-products__inner > .slider-nav {
    left: 76px;
    right: 0;
    top: 45px;
    height: 300px;
  }
}
