/* =========================================================
   PALLO — 10 SCALLOP（波のふち）
   フレーバーのポスターの「波形のふち」と「果物 × 牛乳」の組み方をサイト全体に通す
   ========================================================= */

:root {
  --heading-leading: 1.4;
  --berry: #E8436E;
  --pistachio: #7FA83A;
  --lemon: #F7C948;
  --blush: #F1C9C3;
  --cream: #FFF9F0;
  --ink: #1A1A1A;
  --line: rgba(26, 26, 26, .18);
}

h1, h2, h3, h4, h5, h6 { line-height: var(--heading-leading) !important; }

html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
.hero-lead, .sec-lead, .stat__cap, .work__text, .step__text, .value__text, .news__text, .note { word-break: auto-phrase; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }

.wrap { max-width: 1360px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 40px; } }

.quote-label {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.5;
}

/* ---------- × （ポスターの細い2本線） ---------- */
.x {
  display: inline-block;
  position: relative;
  width: .86em;
  height: .6em;
  margin: 0 .26em;
  vertical-align: .02em;
  transition: transform .8s cubic-bezier(.34, 1.4, .64, 1);
}
.x::before, .x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 122%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.x::before { transform: translate(-50%, -50%) rotate(35deg); }
.x::after  { transform: translate(-50%, -50%) rotate(-35deg); }
.x-host:hover .x, .stats:hover .x--stat { transform: rotate(180deg); }

/* ---------- ボタン（1ページで1種類だけ） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  line-height: 1.4;
  border-radius: 6px;
  transition: background-color .3s ease, color .3s ease;
}
.btn:hover, .btn:focus-visible { background: var(--berry); color: var(--cream); }
.btn:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  padding-bottom: 10px;
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.header-logo img { height: 30px; width: auto; }
.header-nav { display: none; }
.btn--header { margin-left: auto; min-height: 44px; padding: 0 18px; font-size: 14px; }
.menu-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; width: 48px; height: 48px; margin-right: -6px;
}
.menu-btn__lines, .menu-btn__lines::before, .menu-btn__lines::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease; content: "";
}
.menu-btn__lines { position: relative; }
.menu-btn__lines::before { position: absolute; top: -7px; left: 0; }
.menu-btn__lines::after  { position: absolute; top: 7px; left: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before { transform: translateY(7px) rotate(35deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::after  { transform: translateY(-7px) rotate(-35deg); }
.menu-btn__label { font-size: 10px; line-height: 1; margin-top: 9px; letter-spacing: .04em; }

.mobile-menu {
  position: fixed; top: 76px; left: 0; right: 0; z-index: 45;
  background: var(--cream);
  padding: 8px 20px 44px;
  box-shadow: 0 18px 30px -24px rgba(26, 26, 26, .35);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a { padding: 12px 0; font-size: 20px; font-weight: 700; letter-spacing: .04em; }

@media (min-width: 1024px) {
  .site-header { padding-bottom: 12px; }
  .header-inner { height: 80px; gap: 40px; }
  .header-logo img { height: 34px; }
  .header-nav { display: flex; gap: 30px; margin-left: auto; font-size: 14px; letter-spacing: .06em; }
  .header-nav a:hover, .header-nav a:focus-visible {
    text-decoration: underline wavy var(--berry);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 7px;
  }
  .btn--header { margin-left: 0; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ---------- セクションの共通 ---------- */
.sec { padding-block: 88px; position: relative; }
.sec--panel { overflow: hidden; padding-block: 112px; }
.panel { position: absolute; inset: 0; z-index: 0; }
.sec-inner { position: relative; z-index: 1; }
.sec-head { margin-bottom: 40px; }
.sec-title {
  margin-top: 12px;
  font-size: clamp(27px, 3.5vw, 46px);
  font-weight: 700;
  letter-spacing: .05em;
}
.sec-lead { margin-top: 20px; max-width: 34em; font-size: 16px; }
.note { margin-top: 10px; font-size: 13px; color: rgba(26, 26, 26, .72); }
@media (min-width: 1024px) {
  .sec { padding-block: 124px; }
  .sec--panel { padding-block: 150px 132px; }
  .sec-head { margin-bottom: 64px; }
  .sec-lead { font-size: 17px; }
  .sec-head--split { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
}

/* ---------- 1. ヒーロー ---------- */
.hero { padding: 20px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.hero-stamp {
  background: var(--blush);
  padding: 44px 20px 34px;
  text-align: center;
  rotate: -1deg;
  border-radius: 10px;
  transition: rotate .8s cubic-bezier(.34, 1.4, .64, 1);
}
.hero-stamp:hover { rotate: 0deg; }
.hero-catch { font-weight: 700; font-size: clamp(48px, 14.6vw, 92px); }
.hero-catch__w1 { display: block; letter-spacing: .14em; margin-right: -.14em; }
.hero-catch__w2 { display: block; letter-spacing: .9em; margin-right: -.9em; }
.x--big { display: block; width: 1.25em; height: .82em; margin: .06em auto .1em; vertical-align: 0; }
.x--big::before, .x--big::after { width: 120%; height: 2px; }
.hero-catch__w3 { display: block; font-size: .34em; letter-spacing: .1em; margin-top: .55em; }
.hero-stamp__label { margin-top: 22px; }

.hero-photo-wrap { position: relative; }
.hero-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  rotate: 1.4deg;
  border-radius: 10px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-swirl {
  position: absolute;
  top: -22px; right: -4px;
  width: clamp(104px, 15vw, 210px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  rotate: -10deg;
}
.hero-swirl img { width: 100%; height: 100%; object-fit: cover; }
.hero-lead { font-size: 16px; max-width: 30em; }

@media (min-width: 1024px) {
  .hero { padding: 28px 0 88px; }
  .hero-grid { grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 36px; }
  .hero-stamp { grid-column: 1 / span 5; grid-row: 1; padding: 56px 32px 40px; rotate: -1.5deg; align-self: start; }
  .hero-catch { font-size: clamp(56px, 6.2vw, 92px); }
  .hero-photo-wrap { grid-column: 6 / span 7; grid-row: 1 / span 2; min-height: 600px; }
  .hero-photo { position: absolute; inset: 0 0 0 8px; aspect-ratio: auto; rotate: 1.6deg; }
  .hero-swirl { top: -30px; right: -18px; }
  .hero-body { grid-column: 1 / span 5; grid-row: 2; padding: 0 8px; }
  .hero-lead { font-size: 17px; }
}

/* ---------- 流れる帯（フレーバー名） ---------- */
.ticker {
  background: var(--berry);
  color: var(--cream);
  overflow: hidden;
  padding: 26px 0;
}
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker__list { display: flex; gap: 56px; padding-right: 56px; }
.ticker__list li { white-space: nowrap; font-size: 20px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; }
.ticker__list li span { font-family: "DM Mono", monospace; font-weight: 500; font-size: 13px; letter-spacing: .12em; margin-left: 14px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (min-width: 1024px) { .ticker { padding: 30px 0; } .ticker__list li { font-size: 24px; } }

/* ---------- 2. 数字 ---------- */
.stats { --n-size: clamp(64px, 8.4vw, 124px); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.stat__num { display: flex; align-items: baseline; justify-content: center; line-height: 1.15; }
.stat__n { font-size: var(--n-size); font-weight: 700; letter-spacing: .02em; }
.stat__u { font-size: clamp(18px, 1.9vw, 26px); font-weight: 700; margin-left: .25em; letter-spacing: .06em; }
.stat__cap { margin: 8px auto 0; max-width: 20em; font-size: 14px; line-height: 1.75; }
.x--stat { display: block; width: 54px; height: 38px; margin: 0; flex: none; }
.x--stat::before, .x--stat::after { height: 1.5px; }
.md-br { display: none; }

.industries {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.industries__title { font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tag { background: var(--blush); padding: 9px 20px; font-size: 14px; line-height: 1.6; border-radius: 6px; }

@media (min-width: 768px) {
  .stats { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 20px; }
  .x--stat { margin-top: calc(var(--n-size) * .575 - 19px); }
  .stat { flex: 1 1 0; }
  .md-br { display: inline; }
}
@media (min-width: 1024px) {
  .industries { display: flex; align-items: center; gap: 40px; margin-top: 96px; }
  .tag-list { margin-top: 0; }
}

/* ---------- 3. 楽しみ方 ---------- */
.cases { display: grid; grid-template-columns: 1fr; gap: 18px; }
.case {
  background: var(--cream);
  padding: 0 24px 30px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
}
.case__photo { aspect-ratio: 3 / 2; margin: 0 -24px 22px; overflow: hidden; }
.case__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.case:hover .case__photo img { transform: scale(1.04); }
.case__title { font-size: 21px; font-weight: 700; letter-spacing: .04em; }
.case__text { margin-top: 12px; font-size: 15px; line-height: 1.85; }
.case__foot { margin-top: auto; padding-top: 28px; }
.case__foot-inner { border-top: 1px solid var(--line); padding-top: 16px; }
.case__foot-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: rgba(26, 26, 26, .7); line-height: 1.5; }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.case__tags li { background: var(--blush); padding: 3px 12px; border-radius: 999px; font-size: 13px; line-height: 1.7; }

@media (min-width: 768px) {
  .cases { grid-template-columns: 1fr 1fr; gap: 22px; }
  .case:nth-child(5) { grid-column: span 2; }
  .case:nth-child(5) .case__photo { aspect-ratio: 21 / 9; }
}
@media (min-width: 1024px) {
  .cases { grid-template-columns: repeat(6, 1fr); gap: 26px; }
  .case { grid-column: span 2; padding: 0 30px 34px; }
  .case__photo { margin: 0 -30px 26px; }
  .case--wide, .case:nth-child(5) { grid-column: span 3; }
  .case--wide .case__photo, .case:nth-child(5) .case__photo { aspect-ratio: 2 / 1; }
  .case__title { font-size: 23px; }
}

/* ---------- 4. 季節のメニュー ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 14px;
  row-gap: 0;
  padding-bottom: 28px;
}
.work { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
.work:nth-child(even) { translate: 0 28px; }
.work__photo { aspect-ratio: 1; overflow: hidden; border-radius: 8px; }
.work__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.work__photo--top img { object-position: 50% 0; }
.work:hover .work__photo img { transform: scale(1.05); }
.work__year { margin-top: 14px; font-family: "DM Mono", monospace; font-size: 12px; letter-spacing: .12em; line-height: 1.5; }
.work__title { margin-top: 4px; font-size: 15px; font-weight: 700; letter-spacing: .03em; }
.work__text { margin-top: 6px; padding-bottom: 40px; font-size: 13px; line-height: 1.75; }

@media (min-width: 1024px) {
  .works { grid-template-columns: repeat(4, 1fr); column-gap: 28px; row-gap: 0; padding-bottom: 0; }
  .work:nth-child(even) { translate: none; }
  .work:nth-child(4n+2), .work:nth-child(4n+4) { translate: 0 56px; }
  .work__year { margin-top: 20px; }
  .work__title { font-size: 18px; }
  .work__text { font-size: 14px; padding-bottom: 104px; }
}

/* ---------- 5. フレーバー ---------- */
.sec--flavors { padding-top: 40px; }
.flavors__hint { margin-top: 18px; font-size: 13px; color: rgba(26, 26, 26, .7); }
.flavors {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 32px -20px 0;
  padding: 4px 20px 12px;
  scrollbar-width: thin;
}
.flavor { flex: 0 0 80%; scroll-snap-align: start; }
.flavor__kv { isolation: isolate; background: var(--cream); transition: rotate .8s cubic-bezier(.34, 1.4, .64, 1), scale .8s cubic-bezier(.34, 1.4, .64, 1); }
.flavor__kv img { width: 100%; height: auto; mix-blend-mode: multiply; }
.flavor:hover .flavor__kv, .flavor:hover .flavor__tile { rotate: -1.4deg; scale: 1.015; }
.flavor__tile {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  transition: rotate .8s cubic-bezier(.34, 1.4, .64, 1), scale .8s cubic-bezier(.34, 1.4, .64, 1);
}
.flavor__tile--ink { background: var(--ink); color: var(--cream); }
.flavor__tile--white { background: #fff; color: var(--ink); }
.flavor__tile-photo { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.flavor__tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.flavor__tile-text { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 20px 28px; text-align: center; }
.flavor__tile-name { font-size: clamp(22px, 2.3vw, 32px); font-weight: 700; letter-spacing: .1em; line-height: 1.4; }

@media (min-width: 768px) {
  .flavors__hint { display: none; }
  .flavors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; overflow: visible; margin: 40px 0 0; padding: 0; }
}
@media (min-width: 1024px) {
  .sec--flavors { padding-top: 60px; }
  .flavors-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .flavors__head { grid-column: span 2; align-self: center; padding-right: 8%; }
  .flavors { display: contents; }
}

/* ---------- 6. 大切にしていること ---------- */
.mv { display: grid; gap: 36px; }
.mv__label { font-family: "DM Mono", "Zen Kaku Gothic New", monospace; font-size: 13px; font-weight: 500; letter-spacing: .14em; }
.mv__text { margin-top: 10px; font-size: clamp(22px, 2.3vw, 32px); font-weight: 700; line-height: 1.6; letter-spacing: .04em; }
.mv__photo { width: clamp(150px, 40vw, 250px); aspect-ratio: 1; overflow: hidden; border-radius: 50%; justify-self: center; }
.mv__photo img { width: 100%; height: 100%; object-fit: cover; }
.mv__label--values { margin-top: 64px; }
.values { display: grid; gap: 16px; margin-top: 18px; }
.value { background: var(--cream); padding: 30px 26px 34px; border-radius: 10px; display: flex; flex-direction: column; }
.value__title { font-size: 20px; font-weight: 700; letter-spacing: .04em; }
.value__text { margin-top: 10px; font-size: 15px; line-height: 1.8; }
@media (min-width: 1024px) {
  .mv { grid-template-columns: 1fr auto 1fr; gap: 56px; align-items: center; }
  .mv__label--values { margin-top: 96px; }
  .values { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .value { padding: 38px 34px 42px; }
}

/* ---------- 7. 作り方 ---------- */
.process { position: relative; }
.process__line { display: none; }
.steps { display: flex; flex-direction: column; gap: 28px; }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: start; }
.step__num {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  background: var(--lemon);
  border-radius: 50%;
  font-family: "DM Mono", monospace; font-size: 20px; font-weight: 500;
  position: relative; z-index: 1;
}
.step__title { font-size: 19px; font-weight: 700; letter-spacing: .04em; }
.step__text { margin-top: 6px; font-size: 14.5px; line-height: 1.8; }
@media (min-width: 1024px) {
  .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .step { display: block; }
  .step__num { width: 76px; height: 76px; font-size: 22px; margin-bottom: 24px; }
  .step__text { margin-top: 8px; padding-right: 8px; }
  .process__line {
    display: block; position: absolute;
    left: 38px; top: 18px; height: 40px; width: calc(80% + 19.2px);
    overflow: visible;
  }
  .process__line path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  html.js .process__line path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.45, 0, .2, 1) .3s; }
  html.js .process.is-in .process__line path { stroke-dashoffset: 0; }
}

/* ---------- 8. お知らせ ---------- */
.sec--news { padding-top: 24px; }
.news { border-bottom: 1px solid var(--line); }
.news__item { padding: 24px 0; border-top: 1px solid var(--line); }
.news__date { display: block; font-family: "DM Mono", monospace; font-size: 13px; letter-spacing: .1em; line-height: 1.6; }
.news__text { margin-top: 4px; font-size: 15.5px; line-height: 1.8; }
@media (min-width: 768px) {
  .news__item { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: baseline; padding: 28px 0; }
  .news__text { margin-top: 0; }
}
@media (min-width: 1024px) {
  .sec--news { padding-top: 40px; }
  .news-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: start; }
}

/* ---------- 9. お店の情報 ---------- */
.sec--contact { padding-bottom: 96px; }
.contact { display: grid; gap: 48px; }
.sec-title--contact { font-size: clamp(32px, 4.2vw, 56px); }
.contact__fans { margin-top: 32px; font-size: 14.5px; }
.contact__fans a { text-decoration: underline wavy; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.contact__photo { aspect-ratio: 1; overflow: hidden; border-radius: 10px; rotate: 2deg; max-width: 560px; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .sec--contact { padding-bottom: 140px; }
  .contact { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
  .contact__photo { justify-self: end; width: 100%; }
}

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 56px 0 88px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer-logo { height: 34px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.footer-links a:hover { text-decoration: underline wavy var(--berry); text-underline-offset: 6px; }
.footer-copy { margin-left: auto; font-family: "DM Mono", monospace; font-size: 12px; letter-spacing: .1em; }

/* ---------- 10案の一覧へ ---------- */
.back-link {
  position: fixed; left: 12px; bottom: 12px; z-index: 60;
  padding: 6px 12px;
  font-size: 12px; line-height: 1.5;
  background: rgba(255, 249, 240, .94);
  color: var(--ink);
  border: 1px solid rgba(26, 26, 26, .2);
  border-radius: 999px;
}
.back-link:hover { border-color: var(--ink); }

/* ---------- 動き ---------- */
/* JS が動くときだけ初期状態を隠す（動かない環境では最初から見える） */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
html.js .reveal.is-in { opacity: 1; transform: none; }
/* 色の面が、波の形で下からせり上がる */
html.js [data-rise] > .panel { transform: translateY(180px); transition: transform 1.5s cubic-bezier(.16, .84, .24, 1); }
html.js [data-rise].is-in > .panel { transform: none; }

html.is-static *, html.is-static *::before, html.is-static *::after { transition: none !important; }
html.is-static .ticker__track { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal, html.js [data-rise] > .panel { opacity: 1 !important; transform: none !important; }
  html.js .process__line path { stroke-dashoffset: 0 !important; }
}
