@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap");

/* --- 基本設定 & リセット --- */
:root {
  --font-serif: "Noto Serif JP", serif;
  --color-text: #333;
  --color-gold: #b59a4d;
  --color-red: #c50000;
  --bg-color: #ffffff;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

main {
  font-family: var(--font-serif);
  color: var(--color-text);
  background-color: #f3f0eb;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  max-width: 1040px;
  margin: 60px auto;
  background-color: var(--bg-color);
  padding: 40px 60px 80px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}
h1 {
  margin-top: 10px;
}
/* --- ヒーロー（テキスト→画像80%→バッジ：重なり無し） --- */
.hero {
  position: relative;
  padding: clamp(20px, 3vw, 40px) 0;
  margin-bottom: clamp(28px, 3vw, 48px);
  /* background: radial-gradient(
      80% 80% at 10% 0%,
      rgba(181, 154, 77, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(
      90% 90% at 100% 20%,
      rgba(197, 0, 0, 0.06) 0%,
      transparent 70%
    ); */
}
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
}
/* テキストカード */
.hero-text {
  width: 100%;
  max-width: 900px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  border: 1px solid #e9e0d1;
  border-radius: 14px;
  padding: clamp(12px, 1.8vw, 20px) clamp(14px, 2vw, 28px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
/* タイトル（大きすぎない/折返さない） */
.product-name {
  white-space: nowrap;
  font-size: clamp(22px, 2.4vw + 0.8rem, 38px);
  line-height: 1.25;
  margin-bottom: 0.3em;
  color: #2a2a2a;
  letter-spacing: 0.02em;
}
.product-name-sub {
  display: inline-block;
  font-size: clamp(14px, 1vw + 0.6rem, 20px);
  color: var(--color-gold);
  margin-left: 0.4em;
  letter-spacing: 0.06em;
}
/* キャッチ（小さすぎない） */
.catch-copy {
  border-top: none;
  padding-top: 0;
  margin-top: 0.2em;
  font-size: clamp(15px, 0.8vw + 0.8rem, 18px);
  line-height: 1.9;
  color: #444;
}
/* 画像は常に親幅80% */
.hero-image {
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-image img {
  width: 80%;
  max-width: 1000px;
  display: block;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.1));
}
/* バッジは画像の下に横並び */
.icons {
  display: flex;
  gap: clamp(8px, 1.2vw, 14px);
  margin-top: clamp(6px, 0.8vw, 10px);
  justify-content: center;
}
.icon-item {
  width: clamp(60px, 6.4vw, 84px);
  height: clamp(60px, 6.4vw, 84px);
  font-size: clamp(11px, 0.3vw + 0.65rem, 14px);
  font-weight: bold;
  border: 2px solid;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.icon-item:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.icon-item span {
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1;
}
.icon-person {
  border-color: var(--color-red);
  color: var(--color-red);
}
.icon-count {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* --- 共通セクション --- */
.content-section {
  padding: clamp(44px, 6vw, 72px) 0;
  border-top: 1px solid #e9e0d1;
}
.section-title {
  text-align: center;
  font-size: clamp(22px, 1.2vw + 1rem, 28px);
  font-weight: 700;
  margin: 0 auto;
  padding: 14px 28px;
  position: relative;
  color: #fff;
  background-color: var(--color-red);
  max-width: 640px;
  border-radius: 999px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}
.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-gold),
    transparent
  );
}
.section-title::before {
  top: -15px;
}
.section-title::after {
  bottom: -15px;
}
.section-title.with-image-bg {
  background-image: url("/img/usr/goods/26osechi/common/bg_red1.jpg");
  background-size: cover;
  background-position: center;
}
.section-catch {
  text-align: center;
  font-size: clamp(15px, 0.8vw + 0.7rem, 18px);
  color: #555;
  margin: 22px 0 40px;
  line-height: 1.9;
}

/* --- 注目のお料理 --- */
.dishes-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 44px);
  max-width: 880px;
  margin: 0 auto;
}
.dish-item {
  display: grid;
  grid-template-columns: clamp(160px, 22vw, 220px) 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}
.dish-item.reverse {
  direction: rtl;
}
.dish-item.reverse > * {
  direction: ltr;
}
.dish-image {
  text-align: center;
}
.dish-image img {
  transition: transform 0.35s ease;
}
.dish-image img:hover {
  transform: scale(1.04);
}
.dish-description h3 {
  font-size: clamp(18px, 0.9vw + 0.8rem, 22px);
  border-left: 4px solid var(--color-red);
  padding-left: 12px;
  margin-bottom: 10px;
}
.dish-item.reverse .dish-description h3 {
  border-left: 4px solid var(--color-red);
  border-right: none;
  padding-right: 0;
}
.dish-description p {
  font-size: clamp(14px, 0.3vw + 0.8rem, 16px);
  line-height: 1.9;
}

/* --- お品書き --- */
/* --- お品書きセクション レイアウト調整 --- */
.menu-overview {
  display: flex;
  flex-direction: column; /* 縦並び */
  align-items: center;
  gap: clamp(20px, 3vw, 28px);
  max-width: 880px;
  margin: 0 auto clamp(28px, 4vw, 50px);
}

/* お品数をキャッチコピー下に */
.content-section:nth-of-type(3) .total-items {
  order: -1; /* 最初に表示（画像より前） */
  font-size: clamp(16px, 0.6vw + 0.8rem, 18px);
  font-weight: 700;
  margin-bottom: clamp(8px, 1.2vw, 14px);
}
.content-section:nth-of-type(3) .total-items span {
  font-size: clamp(28px, 2vw + 1rem, 40px);
  color: var(--color-red);
  vertical-align: -2px;
  margin: 0 4px;
}

/* 画像はセンター＆幅80％ */
.menu-image {
  width: 100%;
  display: flex;
  justify-content: center;
}
.menu-image img {
  width: 80%;
  max-width: 800px; /* 上限 */
  height: auto;
  border: 1px solid #eee;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
.menu-summary {
  text-align: center;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid #e9e0d1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.summary-text {
  border: 1px solid var(--color-gold);
  padding: 15px;
  font-size: clamp(14px, 0.6vw + 0.6rem, 16px);
  margin-bottom: 12px;
}
.total-items {
  font-size: clamp(16px, 0.6vw + 0.8rem, 18px);
  font-weight: 700;
}
.total-items span {
  font-size: clamp(28px, 2vw + 1rem, 40px);
  color: var(--color-red);
  vertical-align: -2px;
  margin: 0 4px;
}

.menu-details {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 24px);
}
.tier-item {
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid #e9e0d1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}
.tier-item h3 {
  font-size: clamp(18px, 0.9vw + 0.8rem, 22px);
  border-left: 4px solid var(--color-gold);
  padding-left: 12px;
  margin-bottom: 10px;
}
.tier-item p {
  font-size: clamp(14px, 0.3vw + 0.8rem, 16px);
  line-height: 2;
  padding-left: 16px;
}

/* --- こだわり：4要素レイアウト（HTML無改変で順序変更） ---
   配置： [こだわりテキスト] [外観画像]
         [ロゴ画像]           [ブランド紹介テキスト]
   ※ .commitment-text-area / .commitment-image-area を display: contents で
      親グリッド直下のアイテム化し、各要素に grid-area を割当て。
-------------------------------------------------------------------- */
/* --- こだわり：縦並び配置（画像80%表示） --- */
/* --- こだわり：縦並び＆中央寄せテキスト --- */
/* --- こだわり：縦並び＆中央寄せ、幅80％統一 --- */
.commitment-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* 中央寄せ */
  gap: clamp(20px, 3vw, 32px);
  max-width: 880px;
  margin: 0 auto;
  padding: 25px 0;
}

/* テキストエリア：画像と同じ80％幅に */
.commitment-text-area {
  width: 100%;
  max-width: 700px;
  text-align: left;
}
.commitment-text-area h3 {
  font-size: clamp(18px, 0.9vw + 0.8rem, 22px);
  display: inline-block; /* 中央寄せでも装飾維持 */
  border-left: 4px solid var(--color-gold);
  padding-left: 12px;
  margin-bottom: 10px;
}
.commitment-text-area p {
  font-size: clamp(14px, 0.3vw + 0.8rem, 16px);
  line-height: 1.95;
  margin-bottom: 1em;
}
.commitment-text-area p:last-child {
  margin-bottom: 0;
}

/* 画像エリア：外観→ロゴ、幅80％ */
/* こだわりセクションの画像を“確実に中央寄せ” */
.commitment-image-area {
  display: flex;
  flex-direction: column;
  align-items: center; /* セクション全体のセンタリング */
  gap: clamp(16px, 2vw, 24px);
}

.commitment-logo,
.commitment-photo {
  width: 100%;
  display: flex;
  justify-content: center; /* 親で中央寄せ */
}

.commitment-logo img,
.commitment-photo img {
  width: 80%;
  max-width: 600px;
  height: auto;
  display: block;
  margin-left: auto; /* 子でも念押しで中央に */
  margin-right: auto;
}

/* 念のため他セクションも揃える（既に実装済みでも副作用なし） */
.hero-image {
  display: flex;
  justify-content: center;
}
.hero-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.menu-image {
  display: flex;
  justify-content: center;
}
.menu-image img {
  width: 80%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- スマホ（768px以下）：縦並びに降ろす --- */
@media (max-width: 768px) {
  main {
    margin: 0;
    padding: 20px 18px 36px;
    box-shadow: none;
  }

  .hero {
    padding-bottom: clamp(24px, 6vw, 36px);
  }
  .hero-text {
    padding: 10px 12px;
  }
  .product-name {
    font-size: clamp(18px, 5.8vw, 30px);
  }
  .product-name-sub {
    font-size: clamp(12px, 3.6vw, 16px);
  }
  .catch-copy {
    font-size: clamp(12px, 3.4vw, 14px);
  }
  .hero-image img {
    width: 80%;
  }

  .icons {
    gap: 12px;
  }
  .icon-item {
    width: clamp(54px, 13vw, 64px);
    height: clamp(54px, 13vw, 64px);
  }
  .icon-item span {
    font-size: clamp(18px, 4.8vw, 22px);
  }

  .dishes-list {
    gap: clamp(24px, 6vw, 36px);
  }
  .dish-item {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .dish-image {
    justify-self: start;
    width: clamp(160px, 52vw, 200px);
  }

  .menu-overview {
    grid-template-columns: 1fr;
  }

  /* こだわり：縦並び（順序は 指定順：kodawari → photo → logo → brand） */
  .commitment-container {
    grid-template-areas:
      "kodawari"
      "photo"
      "logo"
      "brand";
    grid-template-columns: 1fr;
  }
}

/* セクション見出し：紅白×金の“水引”風ラインを上下に */

.section-title::after {
  bottom: -22px;
}

/* こだわりセクション：中央寄せ＆80%幅は維持 */
.commitment-container {
  border: 1px solid #eadfca;
}
.hero-image img {
  box-shadow: none !important;
  border: none !important;
}

/* お品書き画像 */
.menu-image img {
  box-shadow: none !important;
  border: none !important;
}

/* こだわり画像（外観・ロゴ） */
.commitment-logo img,
.commitment-photo img {
  box-shadow: none !important;
  border: none !important;
}
/* === 【スマホ表示修正】「注目のお料理」の画像を中央揃え === */

@media (max-width: 768px) {
  .dish-item {
    /* 親要素のテキスト揃えを中央にすると、中の要素も揃えやすくなります */
    text-align: center;
  }
  .dish-image {
    /* ★★★ ここが修正点です ★★★ */
    /* 左揃えの原因となっていた justify-self: start; を上書きします */
    justify-self: center; /* Gridアイテムとしての中央揃え */
    margin-left: auto; /* 念のためマージンでも中央揃えを指定 */
    margin-right: auto;
  }
}

/* --- 【スマホ向け】テキストのはみ出しを防止 --- */
@media (max-width: 768px) {
  .product-name {
    /* タイトルが長すぎる場合に折り返すようにする */
    white-space: normal;
  }
  .hero-text {
    text-align: left;
  }
}

/* --- 【PC/タブレット向け】レイアウト調整 (769px以上) --- */
@media (min-width: 769px) {
  .hero-container {
    align-items: stretch;
  }

  .hero-text {
    text-align: center;
  }

  .icons {
    /* アイコンを中央揃えに戻す */
    justify-content: center;
  }

  .product-name {
    white-space: normal;
  }
}
