@charset "UTF-8";
/* CSS Document */

.ebisu-howto {
  --ebisu-navy: #172a58;
  --ebisu-navy-light: #275274;
  --ebisu-text: #66717a;
  --ebisu-text-dark: #333b42;
  --ebisu-border: #dfe3e6;
  --ebisu-bg-light: #f5f6f7;
  --ebisu-bg-warm: #f5f2eb;
  --ebisu-gold: #a88b4a;
  --ebisu-red: #b43a32;

  width: 100%;
  margin: 0 0 100px 0;
  padding: 0px;
  box-sizing: border-box;
  overflow: hidden;
  color: var(--ebisu-text);
  background: #fff;

  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
}

.ebisu-howto *,
.ebisu-howto *::before,
.ebisu-howto *::after {
  box-sizing: border-box;
}

/* ========================================
   セクション見出し
======================================== */

.ebisu-howto__heading {
  width: min(100%, 1100px);
  margin: 0 auto 20px;
  text-align: left;
}

.ebisu-howto__eyebrow {
  margin: 0 0 16px;
  color: var(--ebisu-gold);
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.18em;
}

.ebisu-howto .heading08 {
  margin: 0;
  padding: 0;
  color: var(--ebisu-navy);

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Noto Serif JP",
    serif;

  font-size: 40px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.ebisu-howto .heading08::before,
.ebisu-howto .heading08::after {
  display: none;
}

.ebisu-howto .heading08 span {
  display: block;
  margin-bottom: 7px;
  color: var(--ebisu-navy-light);
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.ebisu-howto__lead {
  margin: 0;
  color: var(--ebisu-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.02em;
}

/* ========================================
   ビューア全体
======================================== */

.ebisu-howto__viewer {
  width: min(100%, 1100px);
  margin: 0 auto;
}

.ebisu-howto__stage {
  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(320px, 1.1fr);
  align-items: stretch;
  min-height: 400px;
  overflow: hidden;

  border: 1px solid var(--ebisu-border);
  border-radius: 24px;
  background: #fff;

  box-shadow:
    0 4px 12px rgba(23, 42, 88, 0.04),
    0 20px 50px rgba(23, 42, 88, 0.08);
}

/* ========================================
   写真
======================================== */

.ebisu-howto__image {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  background: var(--ebisu-bg-warm);
}

.ebisu-howto__image::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(
      180deg,
      transparent 60%,
      rgba(0, 0, 0, 0.16) 100%
    );
}

.ebisu-howto__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
  margin: 0;
  border-radius: 0;
  object-fit: cover;

  transition:
    opacity 0.32s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ebisu-howto__image img.is-changing {
  opacity: 0;
  transform: scale(1.025);
}

/* 写真上の番号 */

.ebisu-howto__number {
  position: absolute;
  right: 24px;
  bottom: 21px;
  z-index: 2;

  display: flex;
  align-items: baseline;
  gap: 6px;

  color: #fff;
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: 52px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;

  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.ebisu-howto__number small {
  display: inline-block;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-2px);
}

/* ========================================
   説明文
======================================== */

.ebisu-howto__content {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: clamp(40px, 5vw, 40px);
  background: #fff;

  transition:
    opacity 0.25s ease,
    transform 0.4s ease;
}

.ebisu-howto__content::before {
  position: absolute;
  top: 70px;
  left: 0;
  width: 3px;
  height: 56px;
  content: "";
  background: var(--ebisu-gold);
}

.ebisu-howto__content.is-changing {
  opacity: 0;
  transform: translateY(10px);
}

.ebisu-howto__step-label {
  margin: 0 0 16px;
  color: var(--ebisu-gold);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  letter-spacing: 0.18em;
}

.ebisu-howto__title {
  margin: 0 0 25px;
  padding: 0;
  color: var(--ebisu-navy);

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Noto Serif JP",
    serif;

  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.ebisu-howto__title::before,
.ebisu-howto__title::after {
  display: none;
}

.ebisu-howto__text {
  margin: 0;
  color: var(--ebisu-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.015em;
}

.ebisu-howto__notice {
  margin: 24px 0 0;
  padding: 18px 20px;

  border: 0;
  border-left: 3px solid #d8a09b;
  border-radius: 0 6px 6px 0;

  color: #8d4540;
  background: #fff7f6;

  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
}

/* ========================================
   ステップ切り替え
======================================== */

.ebisu-howto__controls {
  display: flex;
  justify-content: center;
  gap: 8px;

  width: max-content;
  max-width: 100%;
  margin: 28px auto 0;
  padding: 7px;

  overflow-x: auto;
  border: 1px solid var(--ebisu-border);
  border-radius: 100px;
  background: var(--ebisu-bg-light);

  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ebisu-howto__controls::-webkit-scrollbar {
  display: none;
}

.ebisu-howto__tab {
  flex: 0 0 auto;
  appearance: none;

  min-width: 142px;
  margin: 0;
  padding: 13px 20px;

  border: 1px solid transparent;
  border-radius: 100px;

  color: var(--ebisu-text);
  background: transparent;

  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;

  cursor: pointer;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.ebisu-howto__tab span {
  display: inline-block;
  margin-right: 7px;
  color: var(--ebisu-gold);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.08em;
  transform: translateY(-1px);
}

.ebisu-howto__tab:hover {
  color: var(--ebisu-navy);
  border-color: #ccd2d6;
  background: #fff;
}

.ebisu-howto__tab.is-active {
  color: #fff;
  border-color: var(--ebisu-navy);
  background: var(--ebisu-navy);
  box-shadow: 0 6px 16px rgba(23, 42, 88, 0.18);
}

.ebisu-howto__tab.is-active span {
  color: #d9c38d;
}

.ebisu-howto__tab:focus-visible {
  outline: 3px solid rgba(39, 82, 116, 0.25);
  outline-offset: 3px;
}

/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 767px) {
  .ebisu-howto {
    margin: 0px auto 50px;
    padding: 0px 10px;
  }

  .ebisu-howto__heading {
    margin-bottom: 32px;
  }

  .ebisu-howto__eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .ebisu-howto .heading08 {
    font-size: 25px;
    line-height: 1.55;
    letter-spacing: 0.04em;
  }

  .ebisu-howto .heading08 span {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .ebisu-howto__lead {
    margin-top: 19px;
    font-size: 14px;
    line-height: 2;
  }

  .ebisu-howto__stage {
    display: block;
    min-height: 0;
    border-radius: 18px;
  }

  .ebisu-howto__image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .ebisu-howto__image img {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .ebisu-howto__number {
    right: 16px;
    bottom: 15px;
    gap: 5px;
    font-size: 40px;
  }

  .ebisu-howto__number small {
    font-size: 12px;
  }

  .ebisu-howto__content {
    min-height: 330px;
    padding: 33px 18px 38px;
  }

  .ebisu-howto__content::before {
    top: 36px;
    width: 3px;
    height: 42px;
  }

  .ebisu-howto__step-label {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .ebisu-howto__title {
    margin-bottom: 19px;
    font-size: clamp(17px, 5.2vw, 22px);
    line-height: 1.55;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .ebisu-howto__text {
    font-size: 14px;
    line-height: 2;
  }

  .ebisu-howto__notice {
    margin-top: 20px;
    padding: 14px 15px;
    font-size: 12px;
    line-height: 1.8;
  }

  .ebisu-howto__controls {
    justify-content: flex-start;

    width: calc(100% + 16px);
    max-width: none;
    margin: 20px 0 0;
    padding: 6px 16px 6px 6px;

    border-right: 0;
    border-radius: 100px 0 0 100px;
  }

  .ebisu-howto__tab {
    min-width: 126px;
    padding: 12px 16px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebisu-howto__image img,
  .ebisu-howto__content,
  .ebisu-howto__tab {
    transition: none;
  }
}

/* ========================================
湯せん・電子レンジ版（.ebisu-cook）追加分
======================================== */
.ebisu-cook .ebisu-howto__stage[hidden] {
  display: none;
}

.ebisu-cook .ebisu-howto__stage .ebisu-howto__image > *,
.ebisu-cook .ebisu-howto__stage .ebisu-howto__content {
  transition:
    opacity 0.25s ease,
    transform 0.4s ease;
}

.ebisu-cook .ebisu-howto__stage.is-changing .ebisu-howto__image > * {
  opacity: 0;
  transform: scale(1.025);
}

.ebisu-cook .ebisu-howto__stage.is-changing .ebisu-howto__content {
  opacity: 0;
  transform: translateY(10px);
}

/* おすすめバッジ */
.ebisu-cook__badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  color: #fff;
  background: var(--ebisu-red);
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}

/* 手順リスト */
.ebisu-cook__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ebisu-cook__steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--ebisu-border);
  color: var(--ebisu-text);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.015em;
}

.ebisu-cook__steps li:first-child {
  padding-top: 0;
  border-top: 0;
}

.ebisu-cook__steps li::before {
  display: none;
}

.ebisu-cook__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: -1px;
  border: 1px solid var(--ebisu-gold);
  border-radius: 50%;
  color: var(--ebisu-gold);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* 共通の注意書き */
.ebisu-cook__notice {
  width: min(100%, 1100px);
  margin: 20px auto 0;
}

@media screen and (max-width: 767px) {
  .ebisu-cook__steps li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    font-size: 14px;
  }

  .ebisu-cook__step-num {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .ebisu-cook__badge {
    margin-left: 8px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebisu-cook .ebisu-howto__stage .ebisu-howto__image > *,
  .ebisu-cook .ebisu-howto__stage .ebisu-howto__content {
    transition: none;
  }
}


/* ========================================
重ね表示版（.ebisu-cook--stack）追加分
調理法ごとに文章量が違っても、カードの高さを
いちばん長いパネルに揃えて切り替え時のガタつきを防ぐ
======================================== */

.ebisu-cook--stack .ebisu-cook__panels {
  display: grid;
}

.ebisu-cook--stack .ebisu-cook__panels > .ebisu-howto__stage {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

.ebisu-cook--stack .ebisu-cook__panels > .ebisu-howto__stage.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.ebisu-cook--stack .ebisu-howto__stage:not(.is-active) .ebisu-howto__content {
  transform: translateY(10px);
}

/* バッジ（金色） */
.ebisu-cook__badge--accent {
  background: var(--ebisu-gold);
}

/* 手順の補足 */
.ebisu-cook__sub {
  margin: 8px 0 0;
  color: var(--ebisu-text);
  font-size: 13px;
  line-height: 1.8;
}

/* 小さい手順リスト（ポップアップ内など） */
.ebisu-cook__steps--small li {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.8;
}

.ebisu-cook__steps--small .ebisu-cook__step-num {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

/* ========================================
ポップアップを開くボタン（カード右上）
======================================== */

.ebisu-cook__more {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin: 0;
  padding: 8px 14px 8px 16px;

  border: 1px solid #e3c3bf;
  border-radius: 100px;

  color: var(--ebisu-red);
  background: #fff7f6;

  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;

  cursor: pointer;
  appearance: none;

  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.ebisu-cook__more::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  content: "";
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.ebisu-cook__more:hover {
  color: #fff;
  border-color: var(--ebisu-red);
  background: var(--ebisu-red);
}

.ebisu-cook__more:focus-visible {
  outline: 3px solid rgba(180, 58, 50, 0.25);
  outline-offset: 3px;
}

/* ========================================
ポップアップ本体
======================================== */

.ebisu-cook__dialog {
  width: min(92vw, 480px);
  max-height: 88vh;
  margin: auto;
  padding: 0;

  overflow: auto;
  border: 0;
  border-radius: 18px;

  color: var(--ebisu-text);
  background: #fff;

  box-shadow: 0 24px 60px rgba(23, 42, 88, 0.25);
}

.ebisu-cook__dialog::backdrop {
  background: rgba(23, 42, 88, 0.45);
}

.ebisu-cook__dialog[open] {
  animation: ebisu-cook-dialog-in 0.3s ease;
}

@keyframes ebisu-cook-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ebisu-cook__dialog-inner {
  position: relative;
  padding: 36px 32px 32px;
}

.ebisu-cook__dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;

  border: 1px solid var(--ebisu-border);
  border-radius: 50%;

  color: var(--ebisu-navy);
  background: #fff;

  font-size: 20px;
  line-height: 1;

  cursor: pointer;
  appearance: none;
}

.ebisu-cook__dialog-close:hover {
  background: var(--ebisu-bg-light);
}

.ebisu-cook__dialog-title {
  margin: 0 0 18px;
  padding: 0;
  color: var(--ebisu-navy);

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Noto Serif JP",
    serif;

  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.ebisu-cook__dialog-title::before,
.ebisu-cook__dialog-title::after {
  display: none;
}

.ebisu-cook__dialog-note {
  margin: 14px 0 0;
  color: var(--ebisu-text);
  font-size: 13px;
  line-height: 1.8;
}

.ebisu-cook__dialog-note + .ebisu-cook__dialog-note {
  margin-top: 4px;
}

.ebisu-cook__dialog-note--em {
  color: var(--ebisu-red);
  font-weight: 600;
}

/* ポップアップ表示中は背面のスクロールを止める */
html.ebisu-dialog-open {
  overflow: hidden;
}

/* ========================================
スマートフォン
======================================== */

@media screen and (max-width: 767px) {
  .ebisu-cook__sub {
    font-size: 12px;
  }

  .ebisu-cook__more {
    top: 28px;
    right: 16px;
    padding: 6px 11px 6px 13px;
    font-size: 11px;
  }

  .ebisu-cook__dialog-inner {
    padding: 30px 20px 24px;
  }

  .ebisu-cook__dialog-title {
    font-size: 19px;
  }

  .ebisu-cook__steps--small li {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebisu-cook--stack .ebisu-cook__panels > .ebisu-howto__stage,
  .ebisu-cook__more {
    transition: none;
  }

  .ebisu-cook__dialog[open] {
    animation: none;
  }
}