@charset "UTF-8";

/* common.css — 全ページ共通スタイル（ページ本体側） */

/* Base */
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  font-feature-settings: "palt";
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* c-fixedContact（お問い合わせ追従ボタン｜スクロール追従） */
.c-fixedContact {
  position: fixed;
  right: 0;
  bottom: 40px;
  z-index: 40;
  display: block;
  width: 120px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.c-fixedContact:hover {
  opacity: 0.9;
}

/* フッターが見えたら非表示 */
.c-fixedContact.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.c-fixedContact img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .c-fixedContact {
    width: 78px;
  }
}

/* Utilities */

/* u-washiBg（和紙テクスチャ背景｜複数セクションで再利用） */
.u-washiBg {
  background-color: var(--color-cream);
  background-image: url(../img/common/bg_washi.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* u-creamBg（クリーム背景｜複数セクションで再利用） */
.u-creamBg {
  background-color: var(--color-cream);
}

/* u-notch（四隅を円形にくり抜くマスク｜cream ボックス等で再利用） */
.u-notch {
  --notch: 22px;
  -webkit-mask:
    radial-gradient(circle var(--notch) at top left, transparent 98%, #000 100%),
    radial-gradient(circle var(--notch) at top right, transparent 98%, #000 100%),
    radial-gradient(circle var(--notch) at bottom left, transparent 98%, #000 100%),
    radial-gradient(circle var(--notch) at bottom right, transparent 98%, #000 100%);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle var(--notch) at top left, transparent 98%, #000 100%),
    radial-gradient(circle var(--notch) at top right, transparent 98%, #000 100%),
    radial-gradient(circle var(--notch) at bottom left, transparent 98%, #000 100%),
    radial-gradient(circle var(--notch) at bottom right, transparent 98%, #000 100%);
  mask-composite: intersect;
}

/* テキスト揃え*/
.u-center {
  text-align: center;
}

.u-right {
  text-align: right;
}

/* カラーユーティリティ */
.u-red {
  color: var(--color-red);
}

/* ブレークポイント別の改行ユーティリティ */
.u-br-sp { display: none; }
.u-br-pc { display: inline; }

@media (max-width: 767px) {
  .u-br-sp { display: inline; }
  .u-br-pc { display: none; }
}

/* 下層ページ共通パーツ（商品詳細ほか複数ページで再利用） */

/* c-pageHero（下層ページ共通ヒーロー画像） */
.c-pageHero img {
  display: block;
  width: 100%;
  height: auto;
}

/* c-barHead（えんじ帯の見出し｜レシピ紹介・製造工程などで再利用） */
.c-barHead {
  padding: 17px 24px;
  background-color: var(--color-red-deep);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: clamp(var(--fs-18), 2.2vw, var(--fs-32));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
}

/* 左寄せ・スリム（製造工程のサブ見出しなど） */
.c-barHead--left {
  padding: 4px 24px;
  font-size: clamp(var(--fs-18), 1.7vw, var(--fs-24));
  line-height: 1.3;
  text-align: left;
}

/* 左寄せ（帯の高さはそのまま｜レシピカテゴリー見出しなど） */
.c-barHead--start {
  text-align: left;
}

/* 緑帯（ヴィーガン関連ページ｜--color-green は page.css で定義） */
.c-barHead--green {
  background-color: var(--color-green, #004f08);
}

.c-barHead__sub {
  font-size: 0.83em;
}

/* 角丸帯（レシピ見出しなど） */
.c-barHead--round {
  border-radius: 999px;
}

/* ローズ帯（OEM ページの事例・対応内容見出しなど） */
.c-barHead--rose {
  padding: 14px 24px;
  border: 1px solid var(--color-red-deep);
  background-color: var(--color-rose);
  color: var(--color-red-deep);
  font-size: clamp(var(--fs-20), 2.2vw, var(--fs-30));
  text-align: left;
}

@media (max-width: 767px) {
  .c-barHead {
    padding: 12px 16px;
  }

  .c-barHead--left {
    padding: 10px 20px;
  }
}

/* c-itemInfo（商品情報｜商品詳細ページ共通パーツ） */
.c-itemInfo {
  margin-top: var(--space-section-md);
  display: grid;
  grid-template-columns: minmax(0, 330px) 1fr;
  gap: 32px 56px;
  align-items: start;
}

.c-itemInfo__media img {
  display: block;
  width: 100%;
  height: auto;
}

.c-itemInfo__name {
  font-size: clamp(var(--fs-18), 1.9vw, var(--fs-22));
  font-weight: 700;
  color: var(--color-red-deep);
}

.c-itemInfo__code {
  margin-top: 6px;
  font-size: var(--fs-14);
}

.c-itemInfo__desc {
  margin-top: 10px;
  font-size: var(--fs-14);
  line-height: 1.7;
}

.c-itemInfo__descTitle {
  font-weight: 700;
}

.c-itemInfo__spec {
  margin-top: 21px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-14);
}

.c-itemInfo__specRow {
  display: flex;
  align-items: center;
  gap: 16px;
}

.c-itemInfo__specRow dt {
  flex-shrink: 0;
  min-width: 92px;
  padding: 2px 10px;
  background-color: var(--color-cream);
  text-align: center;
}

.c-itemInfo__nutrition {
  margin-top: 16px;
}

.c-itemInfo__nutritionTitle {
  font-size: var(--fs-14);
  font-weight: 400;
}

.c-itemInfo__table {
  width: 100%;
  margin-top: 2px;
  border-collapse: collapse;
  font-size: var(--fs-14);
}

.c-itemInfo__table th,
.c-itemInfo__table td {
  padding: 3px 12px;
  border: 1px solid #9b9b9b;
  line-height: 1.6;
}

.c-itemInfo__table th {
  width: 25%;
  background-color: var(--color-cream);
  font-weight: 400;
  text-align: justify;
  text-align-last: justify;
}

.c-itemInfo__table td {
  width: 25%;
}

.c-itemInfo__buy {
  display: block;
  margin-top: 49px;
  padding: 9px 10px;
  border-radius: 10px;
  background-color: var(--color-red-deep);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: clamp(var(--fs-18), 2.03vw, var(--fs-30));
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.c-itemInfo__buy:hover {
  background-color: var(--color-yellow, #f3b139);
  color: var(--color-red-deep);
}

@media (max-width: 1024px) {
  .c-itemInfo {
    grid-template-columns: minmax(0, 280px) 1fr;
    gap: 24px 28px;
  }
}

@media (max-width: 767px) {
  .c-itemInfo {
    grid-template-columns: 1fr;
    padding-inline: 20px;
  }

  .c-itemInfo__media {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .c-itemInfo__table {
    font-size: var(--fs-13);
  }

  .c-itemInfo__table th {
    width: auto;
    padding-inline: 8px;
  }

  .c-itemInfo__buy {
    margin-top: 32px;
  }
}

/* c-ctaBtn（えんじ地の大型 CTA ボタン｜特集・サンプル申し込み等で再利用） */
.c-ctaBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 24px;
  border-radius: 10px;
  background-color: var(--color-red-deep);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  color: var(--color-white);
  font-size: clamp(var(--fs-16), 2vw, var(--fs-25));
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.c-ctaBtn::after {
  content: "＞";
  line-height: 1;
}

.c-ctaBtn__label {
  min-width: 0;
}

.c-ctaBtn:hover {
  background-color: var(--color-yellow, #f3b139);
  color: var(--color-red-deep);
}

/* 中サイズ（本文中の「商品はこちら」など、2 つ並べて置く用） */
.c-ctaBtn--small {
  padding: 18px 20px;
  font-size: clamp(var(--fs-14), 1.5vw, var(--fs-19));
  letter-spacing: 0.08em;
}

@media (max-width: 767px) {
  .c-ctaBtn {
    padding: 24px 16px;
  }

  .c-ctaBtn--small {
    padding: 14px 12px;
  }
}

/* c-pageIndex（下層の入口ページ｜子ページへのリンクボタン並び） */
.c-pageIndex {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: var(--space-section-sm);
}

@media (max-width: 767px) {
  .c-pageIndex {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* c-moreBtn（「詳しく見る」小ボタン｜えんじ地・右に三角） */
.c-moreBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 138px;
  min-height: 26px;
  padding: 2px 26px 2px 12px;
  border-radius: 999px;
  background-color: var(--color-red-deep);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.c-moreBtn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 7px solid currentColor;
  border-block: 5px solid transparent;
  transform: translateY(-50%);
}

.c-moreBtn:hover,
a:hover > .c-moreBtn {
  background-color: var(--color-yellow, #f3b139);
  color: var(--color-red-deep);
}

/* c-backBtn（「一覧へ」白地・細枠のボタン｜詳細ページの戻り導線） */
.c-backBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  min-height: 46px;
  padding: 6px 24px;
  border: 1px solid var(--color-rose-dark, #ad8586);
  border-radius: 999px;
  background-color: var(--color-white);
  color: var(--color-red-deep);
  font-family: var(--font-serif);
  font-size: var(--fs-20);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.c-backBtn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 12px solid currentColor;
  border-block: 9px solid transparent;
  transform: translateY(-50%);
}

.c-backBtn:hover {
  border-color: var(--color-yellow, #f3b139);
  background-color: var(--color-yellow, #f3b139);
}

/* 幅をテキストなりにする（文字数が多くて固定幅に収まらないラベル用） */
.c-backBtn--auto {
  width: auto;
  padding-inline: 24px 44px;
  text-indent: 0;
}

@media (max-width: 767px) {
  .c-backBtn {
    width: 180px;
    min-height: 42px;
    font-size: var(--fs-18);
  }

  .c-backBtn::after {
    right: 16px;
    border-left-width: 10px;
    border-block-width: 7px;
  }

  .c-backBtn--auto {
    width: auto;
    padding-inline: 20px 36px;
  }
}

/* c-pageTitle（下層ページの見出し｜日本語 ＋ 英語） */
.c-pageTitle {
  display: flex;
  align-items: baseline;
  gap: 24px;
  font-family: var(--font-serif);
  font-size: clamp(var(--fs-26), 3.3vw, var(--fs-48));
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
  color: var(--color-red-deep);
}

@media (max-width: 767px) {
  .c-pageTitle {
    gap: 14px;
  }
}

/* c-recipeGrid / c-recipeCard */
.c-recipeGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 27px 15px;
}

.c-recipeCard__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.c-recipeCard__link:hover {
  opacity: 0.75;
}

.c-recipeCard__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background-color: #dcdcdc;
}

.c-recipeCard__title {
  font-size: var(--fs-15);
  line-height: 1.5;
  text-align: center;
}

/* 画像が無い記事のプレースホルダー（グレー地でカードの高さを揃える） */
.c-recipeCard__img--empty {
  display: block;
}

/* 商品サムネイル（正方形・白地・細枠） */
.c-recipeCard--product .c-recipeCard__img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--color-line);
  background-color: var(--color-white);
}

@media (max-width: 1024px) {
  .c-recipeGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .c-recipeCard__link {
    gap: 12px;
  }

  .c-recipeCard__title {
    font-size: var(--fs-14);
  }
}

@media (max-width: 767px) {
  .c-recipeGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .c-recipeCard__link {
    gap: 8px;
  }

  .c-recipeCard__title {
    font-size: var(--fs-13);
  }
}

/* c-pager（ページ送り｜ブログ一覧・お客様の声など一覧ページで共通） */
.c-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 42px;
  font-family: var(--font-serif);
  font-size: var(--fs-22);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-red-deep);
}

.c-pager .page-numbers {
  transition: color 0.2s ease;
}

.c-pager a.page-numbers:hover {
  color: var(--color-rose-dark, #ad8586);
}

.c-pager .current {
  color: var(--color-rose-dark, #ad8586);
}

.c-pager .dots {
  letter-spacing: 0;
}

/* 1 ページずつ進む／戻るボタン（三角のみ） */
.c-pager .prev,
.c-pager .next {
  position: relative;
  width: 14px;
  height: 18px;
}

.c-pager .prev::before,
.c-pager .next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-block: 8px solid transparent;
  transform: translate(-50%, -50%);
}

.c-pager .next::before {
  border-left: 12px solid currentColor;
}

.c-pager .prev::before {
  border-right: 12px solid currentColor;
}

@media (max-width: 767px) {
  .c-pager {
    gap: 8px 18px;
    font-size: var(--fs-18);
  }
}

/* c-emptyText（該当記事なし・検索結果なしのテキスト｜一覧ページ共通） */
.c-emptyText:not(:first-child) {
  margin-top: 1em;
}

/* heroNav — グローバル主要メニュー（4 ボタン｜全ページ共通） */
.heroNav {
  margin-top: 40px;
}

.heroNav__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 21px;
}

.heroNav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 4px 16px;
  background-color: var(--color-red-deep);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

.heroNav__link:hover {
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .heroNav__list {
    gap: 16px;
  }
}

@media (max-width: 767px) {
  /* SP は 4 ボタンを表示せず、ドロワーへ集約する */
  .heroNav {
    display: none;
  }
}

/* contentWithSidebar（サイドバー + メインコンテンツのレイアウト） */
.contentWithSidebar {
  /* l-inner 相当の幅制御を内包（SP は全幅にしてバナー類を画面いっぱいに） */
    width: 100%;
    max-width: 1210px;
    margin-inline: auto;
    padding-inline: 24px;
    margin-top: 72px;
    display: grid;
    grid-template-columns: 300px 1fr;
    column-gap: 92px;
    align-items: start;
}

/* サイドバー（左）とメインコンテンツ（右）は高さ独立 */
.contentWithSidebar__main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

/* TAB */
@media (max-width: 1024px) {
  .contentWithSidebar {
    grid-template-columns: 220px 1fr;
    column-gap: 28px;
  }
}

/* SP：1カラム化。サイドバーはコンテンツの下へ */
@media (max-width: 767px) {
  .contentWithSidebar {
    grid-template-columns: 1fr;
    row-gap: 40px;
    margin-top: 44px;
    padding-inline: 0;
  }

  .contentWithSidebar__main {
    grid-column: 1;
    grid-row: auto;
  }
}

/* categoryNav — カテゴリーから探す（トップ／海外出店サポートで共用） */
.categoryNav{
  margin-top: 80px;

}

.categoryNav__list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}

.categoryNav__item {
  position: relative;
}

.categoryNav__item--wide {
  grid-column: span 6;
}

.categoryNav__item--half {
  grid-column: span 3;
}

.categoryNav__item picture {
  display: block;
}

.categoryNav__item--wide img {
  display: block;
  width: 100%;
  height: auto;
}

.categoryNav__link {
  display: block;
  height: 100%;
  transition: opacity 0.2s ease;
}

.categoryNav__link:hover {
  opacity: 0.88;
}

.categoryNav__item--two-third{
  grid-column: span 4;
}

.categoryNav__item--one-third{
  grid-column: span 2;
}

.categoryNav__item:not(.categoryNav__item--wide) .categoryNav__link picture,
.categoryNav__img {
  height: 100%;
}

.categoryNav__item:not(.categoryNav__item--wide) .categoryNav__link img,
.categoryNav__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

/* だしパック：画像の上に茶色いボタンを2つ重ねる */
.categoryNav__btn {
  position: absolute;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  width: calc(172 / 509 * 100%); /* ボタン幅 172px ÷ カード幅 509px */
  aspect-ratio: 172 / 77;
  background-color: var(--color-red-deep);
  transition: opacity 0.2s ease;
}

.categoryNav__btn img {
  display: block;
  width: calc(119.18 / 172 * 100%); /* ロゴ幅 119.18px ÷ ボタン幅 172px */
  height: auto;
  margin-left: calc(19 / 172 * 100%); /* 左余白 19px ÷ ボタン幅 172px */
}

.categoryNav__btn:hover {
  opacity: 0.85;
}

/* 下からの位置 ÷ カード高さ 301px */
.categoryNav__btn:nth-of-type(1) { bottom: calc(112 / 301 * 100%); }
.categoryNav__btn:nth-of-type(2) { bottom: calc(25 / 301 * 100%); }

@media (max-width: 767px) {
  .categoryNav__item--two-third{
    grid-column: span 6;
  }

  .categoryNav__item--one-third{
    grid-column: span 6;
  }

  .categoryNav__item--feature .categoryNav__link,
  .categoryNav__item--feature .categoryNav__link picture,
  .categoryNav__item--feature .categoryNav__img {
    height: auto;
  }

  .categoryNav__item--feature .categoryNav__link img,
  .categoryNav__item--feature .categoryNav__img img {
    height: auto;
  }

  .categoryNav__btn {
    width: 37%;
    aspect-ratio: 174 / 84;
  }

  .categoryNav__btn:nth-of-type(1) { bottom: 41%; }
  .categoryNav__btn:nth-of-type(2) { bottom: 5%; }

  .categoryNav__btn img{
    margin-left: calc(42 / 172 * 100%);
  }
}

@media (max-width: 1024px) {
  .categoryNav { margin-top: 56px; }
}

@media (max-width: 767px) {
  .categoryNav { margin-top: 82px; }
  .categoryNav__list {
     margin-top: 20px; 
     gap: 7px;
  }
}
