@charset "UTF-8";

/* ============================================================
   囲-KAKOMI- 梅とかつおの旨味だし｜お召し上がり方
   スマートフォン優先・1ページ完結型
   ============================================================ */

:root {
  --color-bg: #fdfbf7;          /* 生成りの背景 */
  --color-bg-tint: #f7f2e9;     /* ごく薄い和紙トーン */
  --color-card: #ffffff;
  --color-ink: #23201e;         /* 墨色（本文） */
  --color-ink-soft: #5b5450;
  --color-ume: #8c2437;         /* 落ち着いた梅色 */
  --color-ume-soft: #b8586b;
  --color-ume-pale: #fdeef1;    /* アイコンの淡い梅色（面） */
  --color-line: #e2d9c9;
  --radius: 6px;
  --inner-max: 640px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  /* ごく薄い和紙の質感（軽量なSVGノイズ） */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(140, 36, 55, 0.025) 0, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(160, 130, 90, 0.03) 0, transparent 50%);
  background-attachment: fixed;
  color: var(--color-ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt";
}

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

a { color: var(--color-ume); }

/* ------------------------------------------------------------
   共通レイアウト
   ------------------------------------------------------------ */
.inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 56px 0 60px;
}

.section-tint {
  background-color: var(--color-bg-tint);
}

.section-eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--color-ume);
  font-weight: 500;
}

.section-heading {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin: 0 0 26px;
}

.section-heading-lg {
  font-size: 1.75rem;
  color: var(--color-ink);
}

.section-heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 18px;
  background-color: var(--color-ume-soft);
}

.lead {
  margin: 0 0 1.2em;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-ink);
}

.note {
  margin: 24px 0 0;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.8;
  color: var(--color-ink-soft);
}

.note-tight {
  margin-top: 12px;
}

/* 写真 */
.photo {
  margin: 0 0 28px;
}

.photo-wide img {
  width: 100%;
}

.photo-caption {
  max-width: var(--inner-max);
  margin: 14px auto 0;
  padding: 0 22px;
  font-size: 0.9375rem; /* 15px：スマートフォンでも無理なく読める大きさ */
  line-height: 1.8;
  color: var(--color-ink-soft);
}

/* 注意書き */
.caution {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 26px 0 0;
  padding: 14px 16px;
  background-color: #fff;
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-ume);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.caution-mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border-radius: 50%;
  background-color: var(--color-ume);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* ------------------------------------------------------------
   セクション1：ファーストビュー
   ------------------------------------------------------------ */
.hero {
  padding-bottom: 8px;
}

/* 画像内の上下の余白（無地の部分）だけを控えめに詰めて、
   商品名がスマートフォンで少し大きく見えるようにする。
   左右は切り抜かず、文字・装飾が見切れない範囲にとどめる。 */
.hero-visual {
  overflow: hidden;
  line-height: 0;
}

.hero-visual img {
  width: 100%;
  /* 画像高さの約15%（上部の無地）／約3%（下部の無地）に相当 */
  margin-top: -8.5%;
  margin-bottom: -1.7%;
}

.hero-body {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 8px 22px 0;
}

.hero-label {
  margin: 0 0 12px;
  text-align: center;
  font-family: "Noto Serif JP", serif;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--color-ume);
}

/* 最重要カード：希釈の割合 */
.ratio-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-ume);
  border-radius: var(--radius);
  padding: 26px 18px 22px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(90, 70, 50, 0.05);
}

.ratio-main {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 0 16px;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--color-ink);
}

.ratio-item em {
  font-style: normal;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--color-ume);
  letter-spacing: 0;
}

.ratio-colon {
  font-size: 1.6rem;
  color: var(--color-ume-soft);
}

.ratio-detail {
  margin: 0 0 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-line);
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--color-ink);
}

.ratio-detail .unit {
  font-size: 0.85em;
}

.ratio-note {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-ink-soft);
}

/* 本文中の再掲分量 */
.ratio-inline {
  margin: 24px 0 0;
  padding: 16px 12px;
  background-color: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  text-align: center;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-ume);
}

/* ------------------------------------------------------------
   セクション3：用意するもの
   ------------------------------------------------------------ */
/* 材料一覧：横長・低めのタグ（チップ）表示。
   ボタンには見えないよう、控えめな枠線と影のみで仕上げる。 */
.item-tags {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.item-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  /* 全タグの高さを64pxで統一 */
  height: 64px;
  padding: 9px 12px;
  background-color: #fffdf9;
  border: 1px solid var(--color-line);
  border-radius: 11px;
  box-shadow: 0 1px 2px rgba(90, 70, 50, 0.045);
  overflow: hidden;
}

.item-tag-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ume);
}

.item-tag-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* 線画アイコンの面：参考画像と同じ、ごく淡い梅色でフラットに塗る */
.item-tag-icon .icon-fill {
  fill: var(--color-ume-pale);
}

.item-tag-name {
  min-width: 0;
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-ink);
}

/* 商品名タグ：幅だけ2列分に広げ、高さは他のタグと同じのまま。
   大きなカードに見えないよう、タグ風デザインの延長として揃える。 */
.item-tag-product {
  grid-column: 1 / -1;
}

/* 正式名称を2行表示（3行にならないよう調整） */
.item-tag-product .item-tag-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.35;
}

.item-tag-line1 {
  font-size: 0.8125rem; /* 13px */
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.item-tag-line2 {
  font-size: 0.8125rem; /* 13px */
  white-space: nowrap;
  letter-spacing: 0;
}

/* ------------------------------------------------------------
   セクション4：3ステップ
   ------------------------------------------------------------ */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-card {
  position: relative;
  padding: 20px 20px 22px;
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.step-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  font-family: "Noto Serif JP", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-ume);
}

.step-num-label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-ume-soft);
}

.step-title {
  margin: 0 0 10px;
  font-family: "Noto Serif JP", serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.step-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
}

.step-text strong {
  color: var(--color-ume);
  font-weight: 700;
}

/* ------------------------------------------------------------
   セクション5：ポイント
   ------------------------------------------------------------ */
.point-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.point-card {
  padding: 18px 18px 20px;
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.point-title {
  margin: 0 0 8px;
  font-family: "Noto Serif JP", serif;
  font-size: 1.075rem;
  font-weight: 600;
  color: var(--color-ume);
  letter-spacing: 0.03em;
}

.point-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}

/* ------------------------------------------------------------
   セクション7：ほかの楽しみ方
   ------------------------------------------------------------ */
.use-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 文言の長さによらず、全カードの高さをそろえる */
  grid-auto-rows: 1fr;
  gap: 10px;
}

.use-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 8px;
  background-color: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  text-align: center;
  /* 長めの文言でも横幅に収まるよう少しだけ調整 */
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   セクション8：お使いになる前に
   ------------------------------------------------------------ */
.notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-list li {
  position: relative;
  padding: 14px 0 14px 22px;
  border-bottom: 1px solid var(--color-line);
  font-size: 1rem;
  line-height: 1.8;
}

.notice-list li:first-child {
  border-top: 1px solid var(--color-line);
}

.notice-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 24px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-ume-soft);
}

/* ------------------------------------------------------------
   セクション9：商品情報
   ------------------------------------------------------------ */
.spec-list {
  margin: 0;
  padding: 0;
}

.spec-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
}

.spec-row:first-child {
  border-top: 1px solid var(--color-line);
}

.spec-list dt {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--color-ume);
  font-weight: 500;
}

.spec-list dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   フッター
   ------------------------------------------------------------ */
.footer {
  padding: 44px 22px 52px;
  text-align: center;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-line);
}

.footer-product {
  margin: 0 0 8px;
  font-family: "Noto Serif JP", serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.footer-shop {
  margin: 0 0 28px;
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
}

.footer-back a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--color-ume-soft);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--color-ume);
}

.footer-back { margin: 0; }

/* ------------------------------------------------------------
   小さい端末の調整
   ------------------------------------------------------------ */
@media (max-width: 359px) {
  .ratio-item em { font-size: 2.15rem; }
  .ratio-detail { font-size: 1.125rem; }

  /* 横幅が非常に狭い端末でも、文字が切れないよう余白を詰める */
  .item-tags { gap: 10px; }

  .item-tag {
    gap: 8px;
    padding: 9px 10px;
  }

  .use-card { font-size: 0.875rem; }
}

/* ------------------------------------------------------------
   タブレット・PC（スマートフォン優先のうえでの調整）
   ------------------------------------------------------------ */
@media (min-width: 768px) {
  body { font-size: 17px; }

  .photo-caption { font-size: 0.9375rem; }

  .section { padding: 76px 0 80px; }

  .section-heading { font-size: 1.75rem; }
  .section-heading-lg { font-size: 2.1rem; }

  .hero-visual img {
    max-width: 1024px;
    margin: -2.5% auto -1%;
  }

  .hero-body { padding-top: 22px; }

  .ratio-card { padding: 34px 28px 28px; }
  .ratio-main { font-size: 1.5rem; }
  .ratio-item em { font-size: 3.4rem; }
  .ratio-detail { font-size: 1.7rem; }

  .photo-wide img {
    max-width: 720px;
    margin: 0 auto;
    border-radius: var(--radius);
  }

  .point-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* PCでもタグが不自然に大きくならないよう、一覧全体の幅を制限 */
  .item-tags {
    max-width: 460px;
    margin-inline: auto;
  }

  /* PCでも文言が1行で収まるよう、2列を維持して中央寄せ */
  .use-list {
    max-width: 520px;
    margin-inline: auto;
    gap: 12px;
  }
  .use-card {
    min-height: 64px;
    font-size: 0.9375rem;
    letter-spacing: 0;
  }

  .item-card { padding: 22px 14px; }
  .item-card-product .item-name { font-size: 0.9375rem; }

  .spec-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: baseline;
  }

  .spec-list dt { margin: 0; }
}

/* ------------------------------------------------------------
   控えめなフェードイン（動きを抑える設定を尊重）
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .section-heading,
  .step-card,
  .point-card {
    animation: fade-up 0.6s ease-out both;
  }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
