*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: clip;
  font-family:
    "游ゴシック体", "Yu Gothic Medium", YuGothic, "ヒラギノ角ゴ Pro W3",
    "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "MS Ｐゴシック",
    "MS PGothic", Arial, Helvetica, sans-serif;
}

:root {
  --color-red: #e82228;
  --color-beige: #faf1d4;
  --color-orange: #f9bb1c;
  --color-white: #fff;
  --color-black: #351c01;

  --header-hight: 52px;
  --inner-padding: 20px;
  --max-width: 1210px;

  @media (width > 768px) {
    --header-hight: 80px;
    --inner-padding: 100px;
  }
}

h2,
p,
a,
span,
small {
  color: var(--color-black);
  line-height: 1;
  letter-spacing: 0.075em;
}

@media (width > 768px) {
  .md-hidden {
    display: none;
  }
}

@media (width > 390px) {
  .min-sm-hidden {
    display: none;
  }
}
@media (width > 350px) {
  .min-xsm-hidden {
    display: none;
  }
}

/* レイアウト */
.page-inner {
  padding-top: var(--header-hight);
  @media (width > 768px) {
    max-width: var(--max-width);
    margin-inline: auto;
  }
}

.recipe-head-inner {
  padding-inline: var(--inner-padding);
  @media (width > 768px) {
    margin-inline: auto;
  }
}

.site-bg {
  overflow: hidden;
  .bg {
    position: absolute;
    top: 10%;
    right: 0;
    z-index: -1;
    width: 23.5vw;
    min-width: 154px;
    height: auto;
  }
  @media (width > 1350px) {
    display: none;
  }
}

@media (399px < width < 768px) {
  .site-bg .bg {
    top: 8%;
  }
}

.site-bg-md {
  display: none;
  @media (width > 1350px) {
    display: block;
    .bg-right {
      position: absolute;
      top: 0;
      right: 0;
      z-index: -1;
      width: 28.5vw;
      height: auto;
    }
    .bg-left {
      position: absolute;
      top: 0;
      left: 0;
      z-index: -1;
      width: 11.5vw;
      height: auto;
    }
  }
}

.content-bg {
  background: var(--color-beige);
  padding-inline: var(--inner-padding);
  margin-inline: calc(50% - 50vw);
  padding-top: 185px;
  margin-top: -145px;
  border-radius: 12px;
  padding-bottom: 80px;
  @media (width > 768px) {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-bottom: 120px;
  }
  @media (width > 1201px) {
    margin-top: -60px;
    padding-top: 60px;
  }
}

.is-xl {
  display: none;
  @media (width > 1200px) {
    display: block;
  }
}

/* 共通パーツ */
.section-title-wrap {
  display: flex;
  align-items: center;
  column-gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-black);
}

.section-title {
  font-weight: 400;
  font-size: 23px;
  line-height: 1.8;
  > span {
    font-size: 19px;
    @media (width > 768px) {
      font-size: 18px;
    }
  }
  @media (width > 768px) {
    font-size: 22px;
  }
}

.link-button {
  display: block;
  padding: 11px 20px;
  border-radius: 40px;
  background: var(--color-black);
  color: #fff;
  text-decoration: none;
  width: 240px;
  text-align: center;
  position: relative;
  margin: 0 auto;
  font-size: 18px;
  transition: all 0.3s;
  @media (hover: hover) {
    &:hover {
      background: #845421;
    }
  }

  &.return-recipe-button {
    width: 280px;
  }

  &.back-top-button {
    width: 280px;
    background: var(--color-white);
    color: var(--color-black);
    border: solid 1px var(--color-black);
    margin-block: 80px;
    transition: all 0.3s;
    @media (width > 768px) {
      margin-top: 120px;
      margin-bottom: 100px;
    }
    @media (hover: hover) {
      &:hover {
        background: var(--color-black);
        color: #fff;
      }
    }
  }

  &.header-link-button {
    display: none;
    @media (width > 768px) {
      display: block;
      margin: 0;
      width: 200px;
    }
  }

  @media (width > 1050px) {
    &.cta-block-button {
      margin-right: 0;
    }
  }
}

.right-arrow,
.close-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
}

.right-arrow,
.left-arrow {
  padding-top: 2px;
}

.left-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 20px;
}

/* ヘッダー */
.header {
  padding-inline: 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  padding-block: 8px;
  background: #fff;
  z-index: 9;
  @media (width > 768px) {
    padding-inline: 100px;
    padding-block: 18px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-logo {
  width: fit-content;
  transition: opacity 0.3s;
  > a {
    display: block;
    width: 100%;
  }
  @media (width > 768px) {
    img {
      width: 87px;
      height: 40px;
    }
  }
  @media (hover: hover) {
    &:hover {
      opacity: 0.6;
    }
  }
}

.return-recipe {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: var(--color-black);
  @media (width > 768px) {
    display: none;
  }
}

.header-link-button {
  padding-right: 27px;
}

/* パンくず */
.bread-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 20px;
  flex-wrap: wrap;
  @media (width > 768px) {
    padding-block: 0px;
    margin-top: 26px;
  }
}

.bread-top {
  color: var(--color-black);
  opacity: 0.5;
  font-size: 16px;
  transition: all 0.3s;
  @media (hover: hover) {
    &:hover {
      text-decoration: none;
    }
  }
}

.bread-current {
  font-size: 16px;
  text-decoration: none;
}

/* レシピヘッド */
.arrange-recipe-head {
  margin-top: 60px;
  @media (width > 1200px) {
    display: flex;
    gap: 56px;
    margin-top: 96px;
  }
}

.arrange-copy {
  font-size: 19px;
  font-weight: bold;
  @media (width > 768px) {
    font-size: 18px;
  }
}

.arrange-region {
  position: relative;
  margin-top: 12px;
  @media (width > 768px) {
    margin-top: 16px;
  }
}

.region-ja {
  font-size: 23px;
  font-weight: bold;
  @media (width > 768px) {
    font-size: 28px;
  }
}

.region-en {
  font-size: 16px;
  font-family: "Homemade Apple", cursive;
  color: var(--color-orange);
  position: absolute;
  top: 20px;
  left: 10px;
  transform: rotate(-7.78deg);
  @media (width > 768px) {
    top: 30px;
    left: 26px;
  }
}

.arrange-recipe-title {
  font-size: 30px;
  font-weight: bold;
  margin-top: 65px;
  border-left: 4px solid var(--color-orange);
  padding-left: 14px;
  line-height: 1.5;
  font-feature-settings: "palt";
  letter-spacing: 0em;
  @media (width > 768px) {
    font-size: 37px;
  }
}

.arrange-recipe-image {
  width: 100%;
  margin-top: 28px;
  > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  @media (width > 1200px) {
    margin-top: 0;
  }
}

@media (width > 1200px) {
  .arrange-text-wrap {
    width: 448px;
    flex-shrink: 0;
  }
}

/* ここがおすすめ */
.recommend-title-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  @media (width > 768px) {
    justify-content: start;
  }
}

.left-slash,
.right-slash {
  width: 18px;
  height: 33px;
}

.right-slash {
  transform: rotateY(180deg);
}

.recommend-title {
  padding-top: 5px;
  font-size: 18px;
  font-feature-settings: "palt";
}

.recommend-text {
  background: #fff;
  padding: 20px;
  font-size: 19px;
  line-height: 1.7;
  margin-top: 20px;
  @media (width > 768px) {
    padding-inline: 40px;
    margin-top: 12px;
  }
  @media (width < 390px) {
    padding: 10px;
  }
}

/* 材料 */
.material-section {
  margin-top: 40px;
  @media (width > 768px) {
    margin-top: 80px;
  }
}

.material-table {
  width: 100%;
  margin-top: 28px;
  @media (width > 990px) {
    display: flex;
    align-items: start;
  }
}

.material-table.main-only .left-table {
  @media (width > 990px) {
    display: block;
    columns: 2;
    column-gap: 40px;
  }
}

.material-table.main-only .left-table > .material-table-list {
  @media (width > 768px) {
    margin-bottom: 12px;
    break-inside: avoid;
  }
}

.left-table,
.right-table {
  width: 100%;
  display: grid;
  padding-inline: 20px;
  @media (width < 390px) {
    padding-inline: 10px;
  }
}

.left-table {
  row-gap: 16px;
  margin-bottom: 20px;
  list-style-type: none;
  @media (width > 768px) {
    margin-bottom: 0;
    row-gap: 12px;
  }
}

.right-table {
  row-gap: 12px;
}

.material-group {
  display: grid;
  row-gap: 8px;
  list-style-type: none;
  &._bottom {
    row-gap: 16px;
  }
  @media (width > 768px) {
    &._top {
      row-gap: 12px;
    }
    &._bottom {
      row-gap: 12px;
    }
  }
}

.material-table-list {
  display: flex;
  align-items: center;
  > span {
    line-height: 1.8;
  }
}

.material-group-label {
  transform: translateX(-10px);
}

.material-table-list:has(.material-name)::after {
  content: "";
  flex: 1;
  order: 1;
  background-image: url("/brand/special/powderroux/recipe/svgs/material-dot.svg");
  background-repeat: round no-repeat;
  display: block;
  min-width: 16px;
  height: 6px;
}

.material-name,
.material-amount {
  font-size: 18px;
  font-feature-settings: "palt";
}

.material-name {
  padding-right: 8px;
  max-width: 240px;
  @media (width < 330px) {
    min-width: 80px;
  }
}

.labeling-item {
  list-style-type: disc;
  margin-left: 1.5em;
}

.material-amount {
  order: 2;
  padding-left: 8px;
  text-align: right;
}

.red-text {
  color: var(--color-red);
  width: 60.5vw;
  padding-right: 4px;
  @media (width > 990px) {
    min-width: 300px;
  }
}

.right-table .red-text {
  width: 56.5vw;
  padding-right: 4px;
}

/* 作り方 */
.method-section {
  margin-top: 40px;
  @media (width > 768px) {
    margin-top: 80px;
  }
}

.step-content {
  margin-top: 20px;
  padding-inline: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d3c6aa;
  &.last-contents {
    border-bottom: none;
    padding-bottom: 28px;
  }
  @media (width > 768px) {
    display: flex;
    column-gap: 40px;
    margin-top: 40px;
    padding-bottom: 40px;
  }
  @media (width < 390px) {
    padding-inline: 10px;
  }
}

@media (width > 768px) {
  .step-content:first-of-type {
    margin-top: 28px;
  }
}

.step-text {
  font-weight: bold;
  font-size: 19px;
  line-height: 1.8;
  color: var(--color-orange);
  text-transform: uppercase;
  @media (width > 768px) {
    font-size: 18px;
    width: 64px;
    flex-shrink: 0;
  }
}

.step-description {
  font-size: 19px;
  line-height: 1.8;
  margin-top: 12px;
  @media (width > 768px) {
    margin-top: 0;
    font-size: 18px;
  }
}

/* CTA */
.cta-section {
  background: #fff;
  padding: 40px 20px;
  margin-top: 40px;
  @media (width > 1050px) {
    display: flex;
    align-items: center;
    margin-top: 80px;
    column-gap: 40px;
    padding: 40px;
  }
  @media (width < 390px) {
    padding: 20px;
  }
}

.package-image {
  width: 152px;
  height: 103px;
  margin: 0 auto;
  display: block;
  @media (width > 1050px) {
    width: 118px;
    height: 80px;
    margin-inline: 0;
  }
}

.package-text {
  font-size: 23px;
  line-height: 1.7;
  font-weight: bold;
  text-align: center;
  margin-block: 28px;
  @media (width > 1050px) {
    font-size: 22px;
    margin: 0;
  }
}

.cta-block-button {
  padding-right: 30px;
}

/* レシピをシェア */
.share-section {
  margin-top: 40px;
  padding-bottom: 40px;
  margin-bottom: 60px;
  border-bottom: solid 1px #d3c6aa;
  @media (width > 768px) {
    margin-top: 80px;
    padding-bottom: 60px;
    margin-bottom: 80px;
  }
}

.share-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 8px;
  width: 182px;
  margin: 0 auto;
  > img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

.share-text {
  font-size: 18px;
  text-align: center;
  width: fit-content;
  letter-spacing: 0em;
}

.share-icon-wrap {
  display: flex;
  justify-content: center;
  column-gap: 32px;
  margin-top: 20px;
  @media (width > 768px) {
    margin-top: 28px;
  }
}

.share-item {
  transition: opacity 0.3s;
  @media (hover: hover) {
    &:hover {
      opacity: 0.6;
    }
  }
}

.return-recipe-button {
  padding-left: 36px;
}

/* フッター */
.footer {
  padding-inline: 20px;
}

.copy-right {
  display: block;
  padding-block: 20px;
  background: var(--color-beige);
  text-align: center;
  margin-inline: calc(50% - 50vw);
  color: #97866b;
  font-size: 18px;
  letter-spacing: 0em;
  line-height: 1.5;
  @media (width > 768px) {
    font-size: 18px;
  }
}
