/* 009 菓匠 つむぎ ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f4eee4;
  --c-paper: #fbf8f2;
  --c-dark: #2b211a;
  --c-main: #3a2c22;
  --c-accent: #b08a5a;
  --c-accent-text: #7c5a33;
  --c-azuki: #6b3a2e;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #e0d5c4;
  --font: "Noto Sans JP", sans-serif;
  --font-ja: "Zen Old Mincho", serif;
  --font-en: "Cormorant Garamond", serif;
  --item: min(54vw, 400px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 2; letter-spacing: .04em; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.vtitle { writing-mode: vertical-rl; font-family: var(--font-ja); font-weight: 700; font-size: clamp(28px, 3.8vw, 42px); line-height: 1.75; letter-spacing: .16em; color: var(--c-main); }
.en { font-family: var(--font-en); font-style: italic; font-weight: 500; font-size: 20px; letter-spacing: .12em; color: var(--c-accent-text); margin-bottom: 12px; }
.en--light { color: var(--c-accent); }
.note { margin-top: 24px; font-size: 15px; color: var(--c-sub); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; text-decoration: none; letter-spacing: .12em; white-space: nowrap; flex: none; transition: background-color .4s, color .4s; }
.btn--dark { background: var(--c-dark); color: #f4eee4; }
.btn--dark:hover { background: var(--c-azuki); }
.btn--line { border: 1px solid var(--c-main); color: var(--c-main); }
.btn--line:hover { background: var(--c-main); color: #fff; }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 16px; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color .5s, box-shadow .5s; }
.header.is-scrolled { background: rgba(244, 238, 228, .94); box-shadow: 0 1px 0 var(--c-line); }
.header__inner { display: flex; align-items: center; gap: 20px; height: 72px; padding: 0 20px; max-width: 1440px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--c-main); white-space: nowrap; flex: none; }
.logo__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-azuki); color: #f4eee4; font-family: var(--font-ja); font-weight: 700; font-size: 18px; letter-spacing: 0; }
.logo__ja { font-family: var(--font-ja); font-weight: 700; font-size: 20px; letter-spacing: .2em; }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; font-size: 15px; padding: 0 16px; }
@media (min-width: 1080px) {
  .header__inner { height: 88px; padding: 0 48px; }
  .gnav { display: flex; gap: 28px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; letter-spacing: .12em; color: var(--c-main); }
  .gnav a:hover { color: var(--c-accent-text); }
  .header__btn { margin-left: 0; padding: 0 24px; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--c-main); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-paper); padding: 8px 20px 24px; display: flex; flex-direction: column; box-shadow: 0 16px 32px rgba(43, 33, 26, .15); }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; color: var(--c-main); text-decoration: none; font-family: var(--font-ja); font-weight: 700; border-bottom: 1px solid var(--c-line); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== ちぎれ和紙の縁（F03） ===== */
.tear { position: absolute; left: 0; width: 100%; height: 40px; top: -39px; color: var(--sec-bg); fill: currentColor; pointer-events: none; }
.tear--paper { color: #fff; top: -46px; height: 46px; }
.tear use { fill: currentColor; }

/* 墨の縁で切り抜く（F03）：SVG のゆらぎで縁をにじませた形を、写真の型にする */
.ink {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.03' numOctaves='3' seed='5'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='34'/%3E%3C/filter%3E%3Crect x='26' y='26' width='348' height='548' rx='24' filter='url(%23f)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.03' numOctaves='3' seed='5'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='34'/%3E%3C/filter%3E%3Crect x='26' y='26' width='348' height='548' rx='24' filter='url(%23f)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ===== 演出①（A02）：メインビジュアル ===== */
.hero { background: var(--c-bg); }
.hero__stage { position: relative; height: 100vh; min-height: 620px; overflow: hidden; }
.hero__center { position: absolute; left: 50%; top: 47%; width: var(--item); aspect-ratio: 1; transform: translate(-50%, -50%); }
.hero__halo { position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--c-paper) 45%, rgba(251, 248, 242, 0) 70%); }
.hero__item { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(58, 44, 34, .22)); }
.hero__title { font-family: var(--font-ja); font-weight: 700; color: var(--c-main); }
.hero__w { position: absolute; top: 47%; transform: translateY(-50%); writing-mode: vertical-rl; font-size: clamp(28px, 4.4vw, 60px); line-height: 1; letter-spacing: .24em; white-space: nowrap; }
.hero__w--l { right: calc(50% + var(--item) / 2 + 2vw); }
.hero__w--r { left: calc(50% + var(--item) / 2 + 2vw); padding-top: 1.6em; }
.hero__lead { position: absolute; left: 0; right: 0; bottom: 6vh; text-align: center; font-family: var(--font-ja); font-weight: 700; font-size: 16px; letter-spacing: .3em; color: var(--c-main); }
.hero__lead .en { display: block; margin-bottom: 0; }
.hero__macro { display: none; }
@media (max-width: 767px) {
  :root { --item: 56vw; }
  .hero__w { font-size: 28px; letter-spacing: .16em; }
  .hero__w--l { right: calc(50% + var(--item) / 2 + 4px); }
  .hero__w--r { left: calc(50% + var(--item) / 2 + 4px); }
}
/* 動く版：最初は寄りの写真が画面を覆っている */
.is-motion .hero__macro { display: block; position: absolute; inset: 0; z-index: 3; overflow: hidden; }
.is-motion .hero__macro img { width: 100%; height: 100%; object-fit: cover; }

/* ===== つむぎについて ===== */
.about { --sec-bg: var(--c-paper); position: relative; background: var(--sec-bg); padding: 96px 20px 112px; }
.about__inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 24px 28px; }
.about__body p + p { margin-top: 16px; }
.about__photo { grid-column: 1 / -1; margin: 32px auto 0; width: min(100%, 420px); }
.about__photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .about { padding: 160px 48px; }
  .about__inner { grid-template-columns: auto minmax(0, 440px) 1fr; gap: 64px; align-items: start; }
  .about__body { padding-top: 64px; }
  .about__photo { grid-column: 3; margin: 0; justify-self: end; }
}

/* ===== 演出②（B04）：四季の上生菓子 ===== */
.season { background: var(--c-bg); padding: 112px 0 0; }
.season__head { max-width: 1120px; margin: 0 auto 48px; padding: 0 20px; }
.season__title { font-family: var(--font-ja); font-weight: 900; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.4; letter-spacing: .12em; color: var(--c-main); margin-bottom: 16px; }
.season__bg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.season__list { display: grid; gap: 40px; padding: 48px 20px 112px; max-width: 1120px; margin: 0 auto; }
.kashi__win { margin: 0; background: var(--c-paper); padding: 10px; box-shadow: 0 0 0 1px var(--c-line); }
.kashi__win img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.kashi__text { padding-top: 16px; }
.kashi__season { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-azuki); color: #f4eee4; font-family: var(--font-ja); font-weight: 700; }
.kashi__name { font-family: var(--font-ja); font-weight: 700; font-size: 24px; color: var(--c-main); margin: 8px 0 4px; letter-spacing: .1em; }
.season__meter { display: none; }
@media (min-width: 768px) { .season__list { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (min-width: 1080px) { .season__list { grid-template-columns: repeat(4, 1fr); } }

/* 動く版：お店の写真を止めて、壁の小窓の中だけを入れ替える */
.is-motion .season__stage { position: relative; height: 100vh; overflow: hidden; }
.is-motion .season__bg { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.is-motion .season__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43, 33, 26, .05) 50%, rgba(43, 33, 26, .45) 100%); pointer-events: none; }
.is-motion .season__list { position: absolute; inset: 0; z-index: 1; display: block; padding: 0; max-width: none; }
.is-motion .kashi { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.is-motion .kashi + .kashi { visibility: hidden; }
.is-motion .kashi__win { width: min(56vw, 42vh); padding: 12px; box-shadow: 0 0 0 1px rgba(58, 44, 34, .25), 0 30px 60px rgba(43, 33, 26, .35); }
.is-motion .kashi__text { background: rgba(251, 248, 242, .95); padding: 16px 20px; max-width: min(88vw, 360px); text-align: center; }
.is-motion .kashi__text p:last-child { font-size: 15px; }
.is-motion .season__meter { display: flex; gap: 28px; position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); font-family: var(--font-ja); font-weight: 700; font-size: 16px; color: #f4eee4; }
.is-motion .season__meter li { position: relative; padding-top: 10px; opacity: .6; transition: opacity .4s; }
.is-motion .season__meter li::before { content: ""; position: absolute; left: 50%; top: 0; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: currentColor; transition: transform .4s; }
.is-motion .season__meter li.is-on { opacity: 1; }
.is-motion .season__meter li.is-on::before { transform: scale(1.8); }
@media (min-width: 1080px) {
  .is-motion .kashi { flex-direction: row; gap: 48px; }
  .is-motion .kashi__win { width: min(30vw, 52vh); }
  .is-motion .kashi__text { display: grid; grid-template-columns: auto auto; gap: 0 20px; align-items: start; text-align: left; padding: 32px 28px; max-width: none; }
  .is-motion .kashi__season { grid-row: 1 / 3; }
  .is-motion .kashi__name { writing-mode: vertical-rl; font-size: 32px; margin: 0; grid-row: 1 / 3; }
  .is-motion .kashi__text p:last-child { writing-mode: vertical-rl; height: 13em; grid-row: 1 / 3; }
}

/* ===== お品書き ===== */
.menu { --sec-bg: var(--c-paper); position: relative; background: var(--sec-bg); padding: 104px 20px 112px; }
.menu__inner { max-width: 1120px; margin: 0 auto; }
.menu__head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
.items { display: grid; gap: 20px; }
.item { position: relative; background: var(--c-bg); padding: 28px 24px 24px; border-top: 3px solid var(--c-azuki); }
.item h3 { font-family: var(--font-ja); font-weight: 700; font-size: 21px; color: var(--c-main); letter-spacing: .08em; margin-bottom: 6px; }
.item__price { margin-top: 12px; font-family: var(--font-ja); font-weight: 700; color: var(--c-azuki); }
@media (min-width: 900px) {
  .menu { padding: 160px 48px; }
  .menu__inner { display: grid; grid-template-columns: auto 1fr; gap: 64px; }
  .menu__head { flex-direction: column; margin: 0; }
  .items { grid-template-columns: 1fr 1fr; gap: 28px; }
  .note { grid-column: 2; margin-top: 0; }
}

/* ===== 茶房（写真に暗いグラデと文字） ===== */
.sabo { position: relative; background: var(--c-dark); color: #f4eee4; padding: 120px 20px; overflow: hidden; }
.sabo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sabo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(43, 33, 26, .92) 0%, rgba(43, 33, 26, .78) 55%, rgba(43, 33, 26, .4) 100%); }
.sabo__inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; }
.sabo__inner > p { max-width: 26em; }
.sabo__title { font-family: var(--font-ja); font-weight: 700; font-size: clamp(28px, 4vw, 46px); line-height: 1.6; letter-spacing: .12em; color: #fff; margin-bottom: 20px; }
.sabo__price { margin-top: 20px; font-family: var(--font-ja); font-weight: 700; color: var(--c-accent); }
@media (min-width: 900px) { .sabo { padding: 180px 48px; } }

/* ===== お取り置き ===== */
.reserve { background: var(--c-bg); padding: 104px 20px; text-align: center; }
.reserve__inner { max-width: 720px; margin: 0 auto; }
.reserve__title { font-family: var(--font-ja); font-weight: 900; font-size: clamp(26px, 3.6vw, 40px); letter-spacing: .14em; color: var(--c-main); margin-bottom: 20px; }
.reserve__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }

/* ===== お店の案内 ===== */
.access { --sec-bg: var(--c-paper); position: relative; background: var(--sec-bg); padding: 104px 20px; }
.access__inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; }
.info { margin: 0; }
.info div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.info dt { font-family: var(--font-ja); font-weight: 700; color: var(--c-main); }
.info dd { margin: 0; }
@media (min-width: 768px) { .info div { grid-template-columns: 8em 1fr; gap: 24px; } .access__inner { gap: 80px; } }

/* ===== フッター ===== */
.footer { background: var(--c-dark); color: #e9dfcf; padding: 72px 20px 32px; text-align: center; font-size: 15px; }
.footer__logo { font-family: var(--font-ja); font-weight: 700; font-size: 26px; letter-spacing: .3em; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 24px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__fiction { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 狭い画面でヘッダーがはみ出さないように／ずれて動く和紙の縁を、横だけ切る */
@media (max-width: 420px) {
  .header__inner { gap: 10px; }
  .logo { gap: 8px; }
  .logo__mark { width: 36px; height: 36px; font-size: 16px; }
  .logo__ja { font-size: 18px; letter-spacing: .1em; }
  .header__btn { padding: 0 12px; letter-spacing: .06em; }
}
.about, .menu, .access { overflow-x: clip; }
.tear--paper { left: -40px; width: calc(100% + 80px); }
