/* ==========================================================
   LP共通設定
   ========================================================== */
:root {
  --lp-red: #E4002B;      /* Kewpie Corporate Website Design Guidelines 準拠 */
  --lp-black: #333333;    /* 同上 */
  --lp-gray: #AAAAAA;
  --lp-border: #DDDDDD;   /* ガイドラインのLine Color。ヘッダー枠線はFigma指定の#E6E6E6を使用 */
  --lp-header-border: #E6E6E6;
  --lp-font: 'Roboto', sans-serif;
}

.lp-body,
.lp-body * {
  box-sizing: border-box;
}

.lp-body {
  margin: 0;
  padding: 0;
  font-family: var(--lp-font);
  color: var(--lp-black);
  -webkit-font-smoothing: antialiased;
}

.lp-body img {
  max-width: 100%;
  display: block;
}

.lp-body a {
  text-decoration: none;
  color: inherit;
}

.lp-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-body button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.lp-wrap {
  width: 100%;
  overflow-x: hidden;
}


/* ==========================================================
   ヘッダー（PC：768px以上）
   ========================================================== */
.lp-header {
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid var(--lp-header-border);
  height: 80px;
}

.lp-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
}

.lp-header__logo img {
  height: 40px;
  width: auto;
}

.lp-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.lp-header__navlist {
  display: flex;
  align-items: center;
  gap: 40px;
}

.lp-header__navlist a {
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-black);
}

.lp-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lp-header__search {
  color: var(--lp-black);
  display: flex;
  align-items: center;
}

.lp-header__actions .lp-header__hamburger {
  width: 40px;
  height: 40px;
  background: var(--lp-red);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.lp-header__hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #FFFFFF;
}

/* PCではドロワーは常に非表示 */
.lp-drawer,
.lp-drawer-bg {
  display: none;
}


/* ==========================================================
   ヘッダー（Mobile：767px以下）
   ========================================================== */
@media screen and (max-width: 767px) {

  .lp-header {
    height: 64px;
  }

  .lp-header__inner {
    padding: 0 16px;
  }

  .lp-header__logo img {
    height: 28px;
  }

  /* PCナビはモバイルで非表示（ドロワーに集約） */
  .lp-header__nav {
    display: none;
  }

  .lp-header__actions {
    gap: 12px;
  }

  .lp-header__hamburger {
    width: 32px;
    height: 32px;
    border-radius: 6px;
  }

  /* ドロワーメニュー */
  .lp-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #FFFFFF;
    z-index: 1001;
    padding: 24px;
    transition: right 0.3s ease;
  }

  .lp-drawer.is-open {
    right: 0;
  }

  .lp-drawer__close {
    color: var(--lp-black);
    margin-bottom: 24px;
  }

  .lp-drawer__list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--lp-header-border);
  }

  .lp-drawer__list a {
    font-size: 16px;
    font-weight: 700;
  }

  .lp-drawer-bg {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .lp-drawer-bg.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}


/* ==========================================================
   フッター（PC：768px以上）
   ========================================================== */
.lp-footer {
  background: #F0F0F0;
  color: #666666;
}

.lp-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
  padding: 80px;
}

.lp-footer__brand {
  order: 1;
  max-width: 280px;
}

.lp-footer__brand img {
  height: 32px;
  margin-bottom: 16px;
}

.lp-footer__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}

.lp-footer__navgrid {
  display: contents;
}

.lp-footer__col {
  order: 2;
}

.lp-footer__col h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #333333;
  margin: 0 0 16px;
}

.lp-footer__col ul li {
  margin-bottom: 12px;
}

.lp-footer__col a {
  font-size: 14px;
  color: #666666;
}

.lp-footer__col a:hover {
  color: var(--lp-red);
  text-decoration: underline;
}

.lp-footer__follow {
  order: 3;
}

.lp-footer__follow h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #333333;
  margin: 0 0 16px;
}

.lp-footer__sns {
  display: flex;
  gap: 12px;
}

.lp-footer__bottom {
  border-top: 1px solid var(--lp-border);
  padding: 24px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.lp-footer__copyright {
  font-size: 13px;
  color: #666666;
  margin: 0;
}

.lp-footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lp-footer__bottom-links a {
  font-size: 13px;
  color: #666666;
}

.lp-footer__bottom-links a:hover {
  color: var(--lp-red);
  text-decoration: underline;
}

.lp-footer__scrolltop {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #333333;
}


/* ==========================================================
   フッター（Mobile：767px以下）
   ========================================================== */
@media screen and (max-width: 767px) {

  .lp-footer__inner {
    flex-direction: column;
    padding: 20px 32px;
    gap: 40px;
  }

  .lp-footer__brand {
    order: 1;
    max-width: none;
  }

  .lp-footer__follow {
    order: 2;
  }

  .lp-footer__col h3,
  .lp-footer__follow h3 {
    text-transform: none;
  }

  .lp-footer__navgrid {
    order: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .lp-footer__col {
    order: initial;
  }

  .lp-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px;
  }

  .lp-footer__bottom-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}


/* ==========================================================
   Trending Recipes カルーセル
   ========================================================== */
.lp-trending {
  background: #FFFFFF;
  padding: 64px 80px;
}

.lp-trending__head {
  text-align: center;
  margin-bottom: 32px;
}

.lp-trending__title {
  font-size: 32px;
  font-weight: 900;
  color: var(--lp-red);
  margin: 0 0 8px;
}

.lp-trending__subtitle {
  font-size: 14px;
  color: #666666;
  margin: 0;
}

.lp-trending__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.lp-trending__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lp-trending__tabs .lp-trending__tab {
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--lp-header-border);
  background: #FFFFFF;
  color: var(--lp-black);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.lp-trending__tab.is-active {
  background: var(--lp-red);
  border-color: var(--lp-red);
  color: #FFFFFF;
}

.lp-trending__viewall {
  font-size: 13px;
  font-weight: 700;
  color: var(--lp-red);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Swiperラッパー（PC表示専用） */
.lp-trending__swiper {
  overflow: hidden;
}

.lp-trending__swiper .swiper-wrapper {
  align-items: stretch;
}

/* slidesPerView:'auto'モード対応。
   Swiperライブラリのデフォルトでは.swiper-slideがwidth:100%になり、
   auto指定が効かず1枚ずつしか表示されなくなるため明示的に上書きする */
.lp-trending__swiper .swiper-slide {
  width: auto;
}

/* モバイル専用グリッド（PCでは非表示） */
.lp-trending__mobile-grid {
  display: none;
}

.lp-recipe-card {
  display: block;
  width: 240px;
}

.lp-recipe-card__thumb {
  position: relative;
  width: 240px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: #F2F2F2;
}

.lp-recipe-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-recipe-card__duration {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.lp-recipe-card__play {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-recipe-card__play svg {
  color: var(--lp-red);
}

.lp-recipe-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-black);
  margin: 12px 0 8px;
  line-height: 1.3;
}

.lp-recipe-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-recipe-card__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.lp-recipe-card__badge--time {
  background: #F2F2F2;
  color: #666666;
}

.lp-recipe-card__badge--easy {
  background: #FFF0F1;
  color: var(--lp-red);
}

.lp-recipe-card__badge--medium {
  background: #FFF0F1;
  color: var(--lp-red);
}

.lp-recipe-card__badge--hard {
  background: #FFF0F1;
  color: var(--lp-red);
}

.lp-recipe-card__bookmark {
  margin-left: auto;
  color: #AAAAAA;
}

.lp-recipe-card.is-hidden {
  display: none;
}


/* ==========================================================
   Trending Recipes（Mobile：767px以下）
   ========================================================== */
@media screen and (max-width: 767px) {

  .lp-trending {
    padding: 40px 16px;
  }

  .lp-trending__title {
    font-size: 24px;
  }

  .lp-trending__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .lp-trending__tabs {
    flex-wrap: wrap;
    width: 100%;
  }

  /* PCのSwiperカルーセルは非表示、モバイル専用グリッドを表示 */
  .lp-trending__swiper {
    display: none;
  }

  .lp-trending__mobile-grid {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: 57%;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .lp-trending__mobile-grid .lp-recipe-card {
    width: 100%;
    scroll-snap-align: start;
  }

  .lp-trending__mobile-grid .lp-recipe-card__thumb {
    width: 100%;
  }
}

/* ==========================================================
   Made by Creators
   ========================================================== */
.lp-creators {
  background: #FAF8F5;
  padding: 64px 80px;
}

.lp-creators__head {
  text-align: center;
  margin-bottom: 32px;
}

.lp-creators__title {
  font-size: 32px;
  font-weight: 900;
  color: var(--lp-red);
  margin: 0 0 8px;
}

.lp-creators__subtitle {
  font-size: 14px;
  color: #666666;
  margin: 0;
}

.lp-creators__swiper {
  overflow: hidden;
  margin-bottom: 32px;
}

.lp-creators__swiper .swiper-wrapper {
  align-items: stretch;
}

/* slidesPerView:'auto'モード対応。理由はTrending Recipesと同じ */
.lp-creators__swiper .swiper-slide {
  width: auto;
}

.lp-creator-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 240px;
}

.lp-creator-card__thumb {
  position: relative;
  width: 240px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #DDDDDD;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-creator-card__thumb-icon {
  color: #AAAAAA;
}

.lp-creator-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-creator-card__duration {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.lp-creator-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-creator-card__play svg {
  color: var(--lp-red);
}

.lp-creator-card__user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-creator-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #DDDDDD;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
}

.lp-creator-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-creator-card__username {
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-black);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-creator-card__igbadge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--lp-red);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lp-creator-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-black);
  margin: 0;
  line-height: 1.3;
}

.lp-creator-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lp-creator-card__products {
  font-size: 12px;
  color: #999999;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-creator-card__products-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #DDDDDD;
  display: inline-block;
}

.lp-creator-card__bookmark {
  color: #AAAAAA;
  flex-shrink: 0;
}

.lp-creators__cta {
  display: flex;
  justify-content: center;
}

.lp-creators__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid var(--lp-red);
  border-radius: 24px;
  color: var(--lp-red);
  font-size: 14px;
  font-weight: 700;
  background: #FFFFFF;
}


/* ==========================================================
   Made by Creators（Mobile：767px以下）
   ========================================================== */
@media screen and (max-width: 767px) {

  .lp-creators {
    padding: 40px 16px;
  }

  .lp-creators__title {
    font-size: 24px;
  }

  .lp-creator-card,
  .lp-creator-card__thumb {
    width: 100%;
  }
}

/* ============================================================
   Mayo Section「The mayo that colors your world with rich, bold flavor.」
   lp.css の末尾に追記してください
   ============================================================ */

.lp-mayo {
  background: #FFFFFF;
  padding: clamp(32px, 6vw, 80px); /* 画面幅に応じて外枠の余白も縮む */
}

.lp-mayo__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 80px); /* 画面幅に応じて余白も縮む */
  max-width: 1296px; /* 480(text) + 80(gap) + 736(visual)。これより広い画面ではこのサイズで頭打ちにする */
  margin: 0 auto;
}

/* ---------- 左側テキスト ---------- */

.lp-mayo__text {
  /* 480pxを基準にしつつ、幅が足りない時は260pxまで縮む（フォント側はclampで追従） */
  flex: 1 1 480px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 32px; /* Figma: BrandTextフレームの間隔と一致 */
}

.lp-mayo__label {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 100%;
  letter-spacing: 0.2em; /* Figma: 文字間隔200%相当 */
  text-transform: uppercase;
  color: #E4002B;
}

.lp-mayo__heading {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 44px); /* テキスト列の縮小に合わせて文字も縮む */
  line-height: 115%; /* Figma: 114.999...% */
  letter-spacing: 0;
  color: #E4002B;
}

.lp-mayo__subtext {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 115%;
  color: #E4002B;
}

/* ---------- 右側画像エリア ---------- */

.lp-mayo__visual {
  position: relative;
  /* 736pxを基準にしつつ、幅が足りない時は280pxまで縮む。高さは比率維持（固定339pxをやめる） */
  flex: 1.6 1 480px;
  min-width: 280px;
  max-width: 736px;
  aspect-ratio: 736 / 339;
  background: #FFFFFF;
  overflow: hidden;
}

.lp-mayo__swiper,
.lp-mayo__swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.lp-mayo__swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 前面固定レイヤー（スライドと独立、position: absoluteで重ねる） */
.lp-mayo__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* 網目模様（実画像 redmesh.png を使用）
   Figmaインスペクター実測値: 幅147px/高さ271px/上10px/左30px（736×339フレーム内）
   → % に変換して使用（コンテナ拡大縮小時も常に同じ比率を維持）
   幅147/736≈20%, 高さ271/339≈80%, 上10/339≈3%, 左30/736≈4%
   Figma上の「拡大縮小: 塗り」を再現するため object-fit: cover */
.lp-mayo__diamond {
  position: absolute;
  top: 3%;
  left: 4%;
  width: 20%;
  height: 80%;
  object-fit: cover;
}

/* ロゴ「KEWPIE IT.」（実画像 kewpieit_logo.png を使用）
   Figmaインスペクター実測値: 幅132px/高さ99px/上10px/左584px（736×339フレーム内）
   幅132/736≈18%, 高さ99/339≈29%, 上10/339≈3%, 左584/736≈79%
   Figma上の「拡大縮小: 自動調整」を再現するため object-fit: contain */
.lp-mayo__logo {
  position: absolute;
  top: 3%;
  left: 79%;
  width: 18%;
  height: 29%;
  object-fit: contain;
}

/* ドットインジケーター（シンプルな白系ドット） */
.lp-mayo__pagination {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-mayo__pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  margin: 0 !important;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0.6;
}

.lp-mayo__pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* ============================================================
   スマホ（680px以下）
   テキスト・画像とも、これ以上横に縮めると窮屈になる幅で縦積みに切り替える。
   ※Figmaのモバイルフレームが未確認のため、暫定レイアウトです
   ============================================================ */
@media (max-width: 680px) {
  .lp-mayo {
    padding: 40px 16px;
  }

  .lp-mayo__inner {
    flex-direction: column;
    gap: 32px;
  }

  .lp-mayo__text {
    width: 100%;
    min-width: 0;
    flex: none; /* 横並び用の基準サイズ(480px)を引き継がせない。
                   flex-direction: column では flex-basis が「高さ」に
                   なってしまい、テキストが数行でも480px分の高さを
                   確保して下に大きな空白ができてしまうため。 */
  }

  .lp-mayo__heading {
    font-size: 28px;
  }

  .lp-mayo__subtext {
    font-size: 16px;
  }

  .lp-mayo__visual {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none; /* 同上。基準サイズを引き継がせない */
    aspect-ratio: 736 / 339;
  }

  /* 網目・ロゴはデスクトップと同じ%指定を継承（ブランドレギュレーション上、縮尺を統一するため個別上書きしない） */
}
