@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #333;
  --soft: #68615c;
  --muted: #9c958f;
  --line: #e9e5e1;
  --mist: #f8f7f5;
  --accent: #ff6b35;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.wrap {
  width: min(1160px, calc(100% - 64px));
  margin: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-inner {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 35px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 700 18px Jost;
}

.brand i {
  margin-left: -20px;
  margin-right: 0;
  margin-top: 26px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 8.5px;
  font-style: normal;
}

.brand strong {
  font-size: 18px;
  letter-spacing: .06em;
}

.header-inner nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
  font-size: 12px;
  color: var(--soft);
}

.header-inner nav a,
.header-cta,
.sns a,
.card,
.pills button,
.search button {
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.header-inner nav a:hover,
.sns a:hover { opacity: .65; }

.header-cta {
  padding: 12px 17px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
}

.header-cta:hover,
.search button:hover { transform: translateY(-2px); }

.hero {
  min-height: 570px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: center;
  padding-block: 55px;
}

.kicker {
  color: var(--accent);
  font: 600 11px Jost;
  letter-spacing: .14em;
}

.hero h1 {
  margin: 18px 0;
  font-size: clamp(44px, 5.4vw, 74px);
  line-height: 1.2;
  letter-spacing: -.09em;
}

.hero em,
.about em { color: var(--accent); font-style: normal; }

.lead {
  color: var(--soft);
  font-size: 13px;
  line-height: 2;
}

.search {
  width: min(100%, 430px);
  display: flex;
  gap: 6px;
  margin-top: 30px;
  padding: 6px 6px 6px 15px;
  border: 1px solid #ddd8d2;
  border-radius: 6px;
  box-shadow: 0 10px 30px #3b2d2310;
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 13px;
  background: transparent;
}

.search button {
  padding: 12px 17px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* メインビジュアル：app.jsの.hero-slideshowと連動 */
.hero-img {
  position: relative;
  aspect-ratio: 1.35;
  overflow: visible;
  background: #eee;
  box-shadow: 15px 22px 45px #3b2d2320;
}


.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.hero-slideshow img.is-active { opacity: 1; }

.hero-slideshow__empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--mist);
  font-size: 12px;
}

.hero-img > span {
  position: absolute;
  top: -30px;
  right: -5px;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #ff6b35aa;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  transform: rotate(10deg);
}

.hero-img > span strong {
  font: 700 46px/.8 Jost;
  letter-spacing: 0;
}

.hero-img > span small {
  font: 600 10px/1.05 Jost;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.categories {
  border-block: 1px solid var(--line);
  background: var(--mist);
}

.category-inner {
  display: flex;
  align-items: center;
  gap: 45px;
  padding-block: 28px;
}

.category-inner h2,
.section-head h2 {
  margin: 6px 0 0;
  font-size: 23px;
  letter-spacing: -.06em;
}

.category-inner small,
.section-head small,
.about small {
  color: var(--muted);
  font: 600 10px Jost;
  letter-spacing: .16em;
}

.pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.pills button {
  flex: 0 0 auto;
  padding: 11px 15px;
  border: 1px solid #ded9d4;
  border-radius: 999px;
  background: #fff;
  color: var(--soft);
  font-size: 12px;
}

.pills button:hover { border-color: var(--ink); }
.pills button.active { border-color: var(--ink); background: var(--ink); color: #fff; }

.section { padding-block: 90px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-head > span { color: var(--muted); font: 11px Jost; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  display: block;
  background: #fff;
  box-shadow: 0 0 0 transparent;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px #3b2d2315;
}

.card-img {
  position: relative;
  aspect-ratio: 4 / 6;
  overflow: hidden;
  background: #eee;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.card:hover .card-img img { transform: scale(1.05); }

.card-img b,
.card-img em {
  position: absolute;
  top: 10px;
  padding: 6px 8px;
  border-radius: 99px;
  font-size: 9px;
  font-style: normal;
}

.card-img b { left: 10px; background: #ffffffe8; }
.card-img em { right: 10px; background: var(--accent); color: #fff; font-family: Jost; }

.card-body { padding: 16px; }
.card-body small { color: var(--accent); font: 600 10px Jost; letter-spacing: .1em; }
.card h3 { margin: 8px 0 0; font-size: 15px; }
.card p { margin: 14px 0 0; color: var(--muted); font-size: 10px; }

.empty {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  background: var(--mist);
  color: var(--muted);
}

.empty button {
  display: block;
  margin: 18px auto 0;
  padding: 10px 15px;
  border: 0;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
}

.about {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  align-items: center;
  padding-block: 20px 110px;
}

.about > strong { color: var(--accent); font: 700 86px Jost; }
.about > strong span { color: var(--ink); font: 800 20px 'Noto Sans JP'; }
.about h2 { font-size: 45px; line-height: 1.35; }
.about p { color: var(--soft); font-size: 13px; line-height: 2; }

.site-footer { border-top: 1px solid var(--line); background: var(--mist); }
.site-footer .wrap { height: 100px; display: flex; align-items: center; }
.site-footer small { margin-left: auto; color: var(--muted); font: 10px Jost; }

.detail { padding-block: 30px 100px; }
.crumb { margin-bottom: 38px; color: var(--muted); font-size: 10px; }
.detail-layout { display: grid; grid-template-columns: minmax(300px, 430px) 1fr; gap: 100px; }
.video { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #ddd; }
.youtube, .poster { width: 100%; height: 100%; display: block; border: 0; object-fit: cover; }
.video-note { position: absolute; right: 20px; bottom: 20px; left: 20px; padding: 12px; background: #0009; color: #fff; font-size: 10px; text-align: center; }
.detail h1 { font-size: clamp(34px, 4.5vw, 56px); letter-spacing: -.1em; }

.stats { display: flex; margin-block: 25px; padding: 20px 0; border-block: 1px solid var(--line); }
.stats span { flex: 1; padding: 0 15px; border-right: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.stats span:first-child { padding-left: 0; }
.stats span:last-child { border: 0; }
.stats strong { display: block; margin-top: 5px; color: var(--ink); font-size: 12px; }

.sub { margin-top: 40px; font-size: 18px; }
.ingredients { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding: 0; list-style: none; }
.ingredients li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.steps { padding: 0; list-style: none; }
.steps li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.7; }
.steps b { color: var(--accent); font: 11px Jost; }
.caption { white-space: pre-line; color: var(--soft); font-size: 12px; line-height: 2; }
.tip { margin-top: 35px; padding: 18px; background: #fff0ea; color: var(--soft); font-size: 11px; }
.tip b { margin-right: 15px; color: var(--accent); font: 10px Jost; }

.sns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 35px; }
.sns a { display: inline-block; padding: 12px 15px; border: 1px solid var(--line); font-size: 11px; }
.sns a:hover { border-color: var(--accent); color: var(--accent); }

.related { margin-top: 110px; padding-top: 50px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slideshow img, .card, .card-img img, .header-cta, .search button { transition: none; }
}

@media (max-width: 800px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { height: 68px; }
  .header-inner nav { display: none; }
  .header-cta { margin-left: auto; padding: 10px 12px; }
  .hero { display: flex; flex-direction: column; gap: 45px; padding-block: 55px 70px; }
  .hero h1 { font-size: 50px; }
  .hero-img { width: 100%; }
  .category-inner { display: block; }
  .pills { margin-top: 20px; }
  .section { padding-block: 65px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px; }
  .card h3 { font-size: 12px; }
  .card p { font-size: 9px; }
  .about { display: block; padding-block: 75px; }
  .about > strong { font-size: 65px; }
  .about h2 { font-size: 35px; }
  .detail { padding-top: 20px; }
  .detail-layout { display: flex; flex-direction: column; gap: 42px; }
  .detail h1 { font-size: 36px; }
  .video { width: min(100%, 360px); margin: auto; }
  .site-footer .wrap { height: 88px; }
}
