/* ==========================================================================
  TEA STAND MARC:MARSH — marc.css
  --------------------------------------------------------------------------
  /marcmarsh/（4言語）のページだけで使います。シモーネのトップページは theme.css です。
  書き方のルール：クラス名は m- で始める小文字のケバブケース（BEM の -- 可）、色は 1. の変数を使う。
  確認：npx stylelint "assets/css/*.css"（設定は .stylelintrc.json）

  目次
  1. 変数（色・文字・角丸）
  2. 基本
  3. ヘッダー
  4. 最初の画面
  5. 分類のショートカット
  6. メニュー（分類ごとの色は --c で切り替え）
  7. お店の場所・フッター
  8. スクロールで浮かび上がる（対応ブラウザのみ。非対応ではそのまま表示）
  9. スマホ・タブレット
  10. 動きを減らす設定の利用者向け（必ず最後に置く。ここだけ !important で全ての動きを止める）
   ========================================================================== */

/* 1. 変数（色・文字・角丸） ----------------------------------------------- */
:root {
  --cream: #fff7ec;
  --paper: #fffdf8;
  --ink: #2b1a12;
  --muted: #6e5a4e;
  --mango: #ffb02e;
  --tea: #e2672b;
  --berry: #ef476f;
  --leaf: #1f9d55;
  --sea: #18a4c9;
  --grape: #7b3fa0;
  --line: rgb(43 26 18 / 12%);
  --disp: "Fredoka", system-ui, sans-serif;
  --jp:
    "M PLUS Rounded 1c", "Zen Maru Gothic", "Nunito", "Noto Sans TC", "Noto Sans KR", system-ui,
    -apple-system, "Hiragino Sans", sans-serif;
  --r: 26px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* 2. 基本 ----------------------------------------------------------------- */
@view-transition {
  navigation: auto;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body.marc {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.lang-en {
  font-family: Nunito, var(--jp);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2,
.m-lead,
.m-cat-intro {
  word-break: auto-phrase;
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
}

/* 3. ヘッダー ------------------------------------------------------------- */
.m-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px max(16px, calc((100% - 1180px) / 2));
  background: rgb(255 247 236 / 85%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.m-logo {
  display: flex;
  flex-direction: column;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}

.m-logo small {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--tea);
  margin-bottom: 3px;
}

.m-logo i {
  font-style: normal;
  color: var(--tea);
}

.m-lang {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.m-lang a {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.m-lang a[aria-current] {
  background: var(--ink);
  color: #fff;
}

/* シモーネのトップへ戻るリンク（パソコン・タブレットのみ） */
.m-back {
  margin-left: auto;
  margin-right: 12px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--muted);
}

.m-back:hover {
  color: var(--tea);
}

/* 4. 最初の画面 ----------------------------------------------------------- */
.m-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  width: min(1180px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
  isolation: isolate;
}

.m-kicker {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--tea);
}

.m-hero h1 {
  margin-top: 16px;
  font-weight: 900;
  font-size: clamp(32px, 5.2vw, 64px);
  line-height: 1.25;
}

.lang-en .m-hero h1 {
  font-family: var(--disp);
  font-weight: 700;
  line-height: 1.08;
}

.m-lead {
  margin-top: 20px;
  max-width: 34em;
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--muted);
}

.m-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.m-chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.m-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  background: #fff;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}

.m-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 var(--ink);
}

.m-btn--main {
  background: var(--mango);
}

.m-hero-photo {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
}

.m-hero-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 48% 52% 46% 54% / 40% 42% 58% 60%;
  box-shadow: 0 30px 60px -30px rgb(226 103 43 / 60%);
  animation: morph 14s ease-in-out infinite alternate;
}

@keyframes morph {
  to {
    border-radius: 56% 44% 52% 48% / 52% 40% 60% 48%;
  }
}

.m-sticker {
  position: absolute;
  left: -6%;
  bottom: 12%;
  padding: 14px 18px;
  border-radius: 50%;
  background: var(--berry);
  color: #fff;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 20px;
  transform: rotate(-12deg);
  box-shadow: 0 8px 0 rgb(0 0 0 / 12%);
  animation: bob 3.4s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: rotate(-6deg) translateY(-8px);
  }
}

.m-blobs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.m-blobs i {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.m-blobs i:nth-child(1) {
  width: 340px;
  height: 340px;
  right: 4%;
  top: 6%;
  background: var(--mango);
}

.m-blobs i:nth-child(2) {
  width: 220px;
  height: 220px;
  right: 28%;
  bottom: 4%;
  background: #ff9fb6;
}

.m-blobs i:nth-child(3) {
  width: 180px;
  height: 180px;
  left: -4%;
  top: 10%;
  background: #9be7c4;
}

/* 5. 分類のショートカット ------------------------------------------------- */
.m-cats {
  position: sticky;
  top: 61px;
  z-index: 40;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px max(16px, calc((100% - 1180px) / 2));
  background: rgb(255 247 236 / 92%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.m-cats::-webkit-scrollbar {
  display: none;
}

.m-cats a {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.m-cats a:hover {
  background: var(--mango);
}

/* 6. メニュー（分類ごとの色は --c で切り替え） ----------------------- */
.m-menu {
  width: min(1180px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) 0;
}

.m-cat {
  --c: var(--tea);

  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 24px;
  border-radius: calc(var(--r) + 6px);
  background: var(--paper);
  border: 1px solid var(--line);
}

.m-cat--milk {
  --c: var(--sea);
}

.m-cat--passion {
  --c: #d99a00;
}

.m-cat--yogurt {
  --c: var(--berry);
}

.m-cat--bowl {
  --c: var(--grape);
}

.m-cat--matcha {
  --c: var(--leaf);
}

.m-cat--ichigo {
  --c: var(--berry);
}

.m-cat-photo {
  position: sticky;
  top: 130px;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #fff;
}

.m-cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.m-cat:hover .m-cat-photo img {
  transform: scale(1.05);
}

.m-cat h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: var(--c);
  line-height: 1.3;
}

.lang-en .m-cat h2 {
  font-family: var(--disp);
  font-weight: 700;
}

.m-cat-intro {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.m-items {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.m-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.m-item-img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  background: #f3ece2;
}

.m-item:has(.m-item-img) {
  grid-template-columns: 68px 1fr auto;
}

.m-item-name {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.5;
}

.m-item-en {
  font-family: var(--disp);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.m-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--berry);
  color: #fff;
  font-size: 11px;
  vertical-align: 2px;
}

.m-price {
  border-collapse: collapse;
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 600;
}

.m-price th {
  font-family: var(--jp);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
  padding: 0 8px 0 0;
  white-space: nowrap;
}

.m-price tr:first-child th {
  text-align: center;
}

.m-price td {
  padding: 1px 0 1px 12px;
  text-align: right;
  white-space: nowrap;
}

.m-price td small {
  font-size: 10px;
  color: var(--c);
  margin-right: 3px;
  font-weight: 700;
}

.m-price-one {
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 700;
  color: var(--c);
}

.m-price-ask {
  font-family: var(--jp);
  font-size: 12px;
  color: var(--muted);
}

.m-note {
  margin-top: 14px;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  color: var(--c);
  font-weight: 800;
  font-size: 13px;
}

.m-tax {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}

/* 7. お店の場所・フッター ------------------------------------------------- */
.m-access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  width: min(1180px, 100% - 32px);
  margin: 0 auto clamp(48px, 7vw, 96px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: calc(var(--r) + 6px);
  background: var(--ink);
  color: #fff;
}

.m-access h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: var(--mango);
}

.m-access dl {
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.m-access dl div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 12px;
}

.m-access dt {
  color: var(--mango);
  font-weight: 800;
  font-size: 14px;
}

.m-access dd {
  margin: 0;
  font-size: 15px;
}

.m-access dd a {
  text-decoration: none;
}

.m-neighbor {
  margin: 20px 0 24px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgb(255 255 255 / 8%);
  font-size: 14px;
  line-height: 1.8;
}

.m-neighbor a {
  color: var(--mango);
}

.m-access .m-btn {
  border-color: var(--mango);
  color: var(--ink);
}

.m-map {
  border-radius: var(--r);
  overflow: hidden;
  min-height: 320px;
  background: #ddd;
}

.m-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.m-footer {
  padding: 40px 16px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.m-logo--foot {
  align-items: center;
  margin-bottom: 10px;
}

/* 8. スクロールで浮かび上がる（対応ブラウザのみ。非対応ではそのまま表示） ---- */
@supports (animation-timeline: view()) {
  [data-reveal] {
    animation: mreveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

@keyframes mreveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* 9. スマホ・タブレット --------------------------------------------------- */
@media (max-width: 860px) {
  .m-hero {
    grid-template-columns: 1fr;
  }

  .m-hero-photo {
    grid-row: 1;
    width: min(78%, 360px);
  }

  .m-cat {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .m-cat-photo {
    position: relative;
    top: auto;
    aspect-ratio: 16/10;
  }

  .m-access {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  .m-back {
    display: none;
  }
}

@media (max-width: 520px) {
  .m-header {
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .m-cats {
    top: 96px;
  }

  .m-lang {
    width: 100%;
    justify-content: space-between;
  }

  .m-item {
    grid-template-columns: 1fr;
  }

  .m-item:has(.m-item-img) {
    grid-template-columns: 60px 1fr;
  }

  .m-item:has(.m-item-img) .m-item-img {
    width: 60px;
    height: 60px;
    grid-row: span 2;
  }

  .m-price {
    justify-self: start;
  }

  .m-access dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* 10. 動きを減らす設定の利用者向け（必ず最後に置く。ここだけ !important で全ての動きを止める） ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
