﻿@charset "UTF-8";

/* ========================================
   サイト共通
======================================== */

:root {
  --typeHeaderPrimary: "Noto Serif";
  --typeHeaderFallback: serif;
  --color-primary: #075f8f;
}

.s-header-wrap {
  background-color: #fff;
}

.c-freeWordSearchBox {
  border-color: #222;
  background-color: #fff;
}

.s-header-categoryNav__head {
  color: #222;
  font-family: var(--typeHeaderPrimary), var(--typeHeaderFallback);
}

.s-header-navBlok__nav {
  color: #222;
}

.s-header-wrap__logo {
  display: block;
  width: 13.5rem;
}

.s-header-navBlok__openBtn::before,
.s-header-navBlok__openBtn::after,
.s-header-navBlok__openBtn > span {
  background-color: #222;
}

.p-guide-description-mt {
  margin-top: 30px;
}

@media screen and (min-width: 768px) {
  .s-footer {
    color: #222;
  }
}

@media screen and (min-width: 992px) {
  .s-header-navBlok__nav {
    color: #222;
    background-color: unset;
  }

  .s-header-contentsNav__navLink {
    display: block;
    color: #222;
    border-bottom: none;
  }

  .s-header-categoryNav:hover {
    border-bottom: 3px solid var(--color-primary);
  }

  .s-header-wrap__logo {
    flex-shrink: 0;
    width: 19.5rem;
  }

  .s-header-categoryNav__head {
    font-size: 1.4rem;
    font-weight: 400;
  }
}

/* ========================================
   レシピページ全体
======================================== */

.l-container.l-container-sm:has(#recipe) {
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

.s-featureContent-item h1.c-page-title,
#feature-parts-header-banner.s-featureContent-item {
  display: none !important;
}

#recipe {
  --ink: #443b34;
  --muted: #817366;
  --brand: #96703b;
  --line: #eee8df;
  --sand: #f4ecdf;
  --tip: #fff9d8;
  --recipe-columns: minmax(0, 56fr) minmax(0, 44fr);
  --recipe-gap: 48px;

  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 60px;
  color: var(--ink);
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  font-size: 18px;
  line-height: 1.85;
}

#recipe,
#recipe * {
  box-sizing: border-box;
}

#recipe > article {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

#recipe a {
  color: inherit;
  text-decoration: none;
}

#recipe .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: var(--muted);
  font-size: 14px;
}

#recipe .breadcrumb a:hover,
#recipe .breadcrumb a:focus-visible {
  text-decoration: underline;
}

/* ========================================
   メイン写真・紹介文
======================================== */

#recipe .recipe-hero {
  display: grid;
  grid-template-columns: var(--recipe-columns);
  align-items: stretch;
  gap: var(--recipe-gap);
  width: 100%;
}

#recipe .recipe-main-image {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

#recipe .recipe-summary {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 8px 0 0;
}

#recipe .recipe-category {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
}

#recipe .recipe-summary h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

#recipe .recipe-lead {
  flex: 1 0 auto;
  margin: 20px 0 24px;
  font-size: 18px;
  line-height: 1.85;
}

/* ========================================
   調理時間・難易度・分量
======================================== */

#recipe .recipe-facts {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 110px;
  margin: 0 0 16px;
  background: #faf6f0;
}

#recipe .recipe-facts > div {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 20px 8px;
  text-align: center;
}

#recipe .recipe-facts > div + div::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 1px;
  background: #e9e0d5;
  content: "";
}

#recipe .recipe-facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

#recipe .recipe-facts dd {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 700;
}

/* ========================================
   紹介文下の商品リンク
======================================== */

#recipe .used-product {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 100px;
  margin: 0;
  padding: 14px;
  background: #f8f0e5;
}

#recipe .used-product:hover .used-product__text > span,
#recipe .used-product:focus-visible .used-product__text > span {
  text-decoration: underline;
}

#recipe .product-image {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 76px;
  object-fit: contain;
}

#recipe .used-product__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-left: 14px;
  line-height: 1.6;
}

#recipe .used-product__text small {
  font-size: 14px;
}

#recipe .used-product__text strong {
  font-size: 18px;
}

#recipe .used-product__text > span {
  margin-top: 4px;
  color: var(--brand);
  font-size: 16px;
}

/* ========================================
   作り方・材料の配置
======================================== */

#recipe .instructions {
  padding-top: 64px;
}

#recipe #instructions-title {
  display: none;
}

#recipe .instructions__layout {
  display: grid;
  grid-template-columns: var(--recipe-columns);
  grid-template-areas: "method ingredients";
  align-items: start;
  gap: var(--recipe-gap);
}

#recipe .method-column {
  grid-area: method;
  min-width: 0;
}

#recipe .ingredients-column {
  grid-area: ingredients;
  min-width: 0;
}

#recipe .recipe-column-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
  margin-bottom: 20px;
}

#recipe .recipe-column-heading h3 {
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid var(--ink);
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

#recipe .recipe-column-heading > span {
  flex-shrink: 0;
  font-size: 15px;
}

/* ========================================
   材料
======================================== */

#recipe .ingredients {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: transparent;
  font-size: 16px;
  line-height: 1.7;
}

#recipe .ingredients th,
#recipe .ingredients td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  vertical-align: top;
}

#recipe .ingredients th {
  font-weight: 500;
  text-align: left;
}

#recipe .ingredients td {
  text-align: right;
}

#recipe .ingredients th[colspan="2"] {
  padding: 9px 14px;
  border-bottom: 0;
  background: var(--sand);
  font-weight: 700;
}

#recipe .ingredients-column > p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.8;
}

/* ========================================
   下準備
======================================== */

#recipe .preparation {
  margin: 0 0 26px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

#recipe .preparation h4 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

#recipe .preparation p {
  position: relative;
  margin: 0;
  padding-left: 1em;
  font-size: 17px;
  line-height: 1.85;
}

#recipe .preparation p::before {
  position: absolute;
  left: 0;
  content: "・";
}

#recipe .preparation p + p {
  margin-top: 8px;
}

/* ========================================
   手順
======================================== */

#recipe .steps {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: recipe-step;
}

#recipe .steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 20px;
  min-height: 105px;
  padding-left: 40px;
  counter-increment: recipe-step;
}

#recipe .steps > li + li {
  margin-top: 28px;
}

#recipe .steps > li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: #76522c;
  color: #fff;
  content: counter(recipe-step);
  font-size: 15px;
  line-height: 1;
}

#recipe .step-image {
  display: block;
  width: 142px;
  height: 105px;
  object-fit: cover;
}

#recipe .steps p {
  align-self: start;
  min-width: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1.85;
}

#recipe .steps p strong {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 19px;
  font-weight: 700;
}

/* 写真なしの手順 */

#recipe ol.steps.steps-text {
  display: block;
  width: 100%;
  max-width: none;
}

#recipe ol.steps.steps-text > li {
  display: block;
  float: none;
  width: 100%;
  max-width: none;
  min-height: 0;
}

#recipe ol.steps.steps-text > li > p {
  position: static;
  display: block;
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ========================================
   材料下の商品紹介・購入ボタン
======================================== */

#recipe .recipe-purchase {
  width: 100%;
  max-width: 380px;
  margin: 44px auto 0;
  padding: 0 20px 24px;
  border: 1px solid #e7ded2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

#recipe .recipe-purchase__label {
  margin: 0 -20px 24px;
  padding: 13px 12px;
  background: #f4ecdf;
  color: #513b27;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

#recipe .recipe-purchase__product {
  display: block;
}

#recipe .recipe-purchase__image {
  display: block;
  width: 100%;
  max-width: 240px;
  height: 260px;
  margin: 0 auto 22px;
  object-fit: contain;
}

#recipe .recipe-purchase__name {
  display: block;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

#recipe .recipe-purchase__size {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

#recipe .recipe-purchase__product:hover .recipe-purchase__name {
  text-decoration: underline;
}

#recipe .recipe-purchase__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  min-height: 50px;
  margin: 0 auto;
  padding: 12px 16px;
  border: 1px solid #075f8f;
  border-radius: 5px;
  background: #075f8f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

#recipe .recipe-purchase__button svg {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

#recipe .recipe-purchase__button:hover {
  background: #064b70;
  border-color: #064b70;
}

#recipe .recipe-purchase__button:focus-visible,
#recipe .recipe-purchase__product:focus-visible {
  outline: 2px solid #075f8f;
  outline-offset: 4px;
}

/* ========================================
   おいしく作るポイント
======================================== */

#recipe .recipe-tip {
  margin-top: 44px;
  padding: 24px;
  background: var(--tip);
}

#recipe .recipe-tip h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

#recipe .recipe-tip p {
  margin: 0;
  font-size: 18px;
  line-height: 1.85;
}

#recipe .recipe-tip p + p {
  margin-top: 8px;
}

/* ========================================
   おすすめレシピ
======================================== */

#recipe .recommendations {
  padding-top: 48px;
}

#recipe .recommendations > h2 {
  margin: 0 0 28px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: center;
}

#recipe .recommendation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

#recipe .recommendation {
  display: block;
  min-width: 0;
  font-size: 17px;
  line-height: 1.7;
}

#recipe .recommendation:hover > span:last-child,
#recipe .recommendation:focus-visible > span:last-child {
  text-decoration: underline;
}

#recipe .recommendation-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ========================================
   タブレット
======================================== */

@media screen and (min-width: 768px) and (max-width: 991px) {
  #recipe {
    --recipe-columns: minmax(0, 1fr) minmax(0, 1fr);
    --recipe-gap: 36px;
  }

  #recipe .recipe-summary h2 {
    font-size: 28px;
  }

  #recipe .steps:not(.steps-text) > li {
    grid-template-columns: minmax(0, 1fr);
  }

  #recipe .step-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 767px) {
  .l-container.l-container-sm:has(#recipe) {
    width: calc(100% - 30px);
  }

  #recipe {
    --recipe-columns: minmax(0, 1fr);
    padding-bottom: 42px;
    font-size: 17px;
  }

  #recipe .breadcrumb {
    font-size: 13px;
  }

  #recipe .recipe-hero {
    gap: 22px;
  }

  #recipe .recipe-main-image {
    height: auto;
  }

  #recipe .recipe-summary {
    padding-top: 0;
  }

  #recipe .recipe-category {
    margin-bottom: 10px;
    font-size: 14px;
  }

  #recipe .recipe-summary h2 {
    font-size: 27px;
  }

  #recipe .recipe-lead {
    flex: none;
    margin: 16px 0 20px;
    font-size: 17px;
  }

  #recipe .recipe-facts {
    min-height: 96px;
  }

  #recipe .recipe-facts > div {
    padding: 16px 6px;
  }

  #recipe .recipe-facts dt {
    font-size: 13px;
  }

  #recipe .recipe-facts dd {
    font-size: 16px;
  }

  #recipe .used-product {
    min-height: 94px;
    padding: 12px;
  }

  #recipe .product-image {
    flex-basis: 56px;
    width: 56px;
    height: 66px;
  }

  #recipe .used-product__text small {
    font-size: 13px;
  }

  #recipe .used-product__text strong {
    font-size: 17px;
  }

  #recipe .used-product__text > span {
    font-size: 15px;
  }

  #recipe .instructions {
    padding-top: 40px;
  }

  #recipe .instructions__layout {
    grid-template-areas:
      "ingredients"
      "method";
    gap: 32px;
  }

  #recipe .recipe-column-heading {
    margin-bottom: 16px;
  }

  #recipe .recipe-column-heading h3 {
    font-size: 20px;
  }

  #recipe .recipe-column-heading > span {
    font-size: 14px;
  }

  #recipe .ingredients {
    font-size: 15px;
  }

  #recipe .ingredients th,
  #recipe .ingredients td {
    padding: 11px 12px;
  }

  #recipe .ingredients th[colspan="2"] {
    padding: 9px 12px;
  }

  #recipe .preparation h4 {
    font-size: 19px;
  }

  #recipe .steps > li {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding-left: 38px;
  }

  #recipe .steps > li + li {
    margin-top: 26px;
  }

  #recipe .steps > li::before {
    width: 27px;
    height: 27px;
    font-size: 14px;
  }

  #recipe .step-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  #recipe .steps p {
    font-size: 17px;
  }

  #recipe .steps p strong {
    font-size: 18px;
  }

  #recipe .recipe-tip {
    margin-top: 36px;
    padding: 20px 16px;
  }

  #recipe .recipe-tip h2 {
    font-size: 20px;
  }

  #recipe .recipe-tip p {
    font-size: 17px;
  }

  #recipe .recommendations {
    padding-top: 38px;
  }

  #recipe .recommendations > h2 {
    margin-bottom: 24px;
    font-size: 26px;
  }

  #recipe .recommendation-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}