/* hitotoki（デモ） */
:root {
  --bg: #f3ece2;
  --paper: #faf6f0;
  --ink: #3a2c25;
  --sub: #7d6e64;
  --line: #ddd1c3;
  --cocoa: #5a4034;
  --sage: #8a9a7b;
  --terra: #c06b4a;
  --serif: 'Shippori Mincho', 'Yu Mincho', serif;
  --en: 'EB Garamond', 'Shippori Mincho', serif;
  --ja: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --side: 200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ja); font-size: 15px; line-height: 2; letter-spacing: .06em; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font-family: inherit; color: inherit; }
.wrap { width: min(1040px, 100% - 80px); margin-inline: auto; }

.demo-bar { position: relative; z-index: 60; background: var(--cocoa); color: #e8dccd; font-size: 12px; line-height: 1.6; padding: 8px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; letter-spacing: .03em; }
.demo-bar a { color: #f4d9b8; }

/* 左の固定バー */
.side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; width: var(--side); padding: 70px 30px 30px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg); }
.side__logo { font-family: var(--en); font-style: italic; font-size: 34px; letter-spacing: .02em; text-decoration: none; line-height: 1; }
.side__nav { display: flex; flex-direction: column; gap: 4px; margin-top: 60px; }
.side__nav a { position: relative; display: flex; gap: 12px; align-items: baseline; padding: 6px 0; font-family: var(--en); font-size: 17px; text-decoration: none; letter-spacing: .04em; transition: color .3s, padding .4s var(--ease); }
.side__nav span { font-size: 12px; color: var(--sub); }
.side__nav a::before { content: ""; position: absolute; left: -30px; top: 50%; width: 18px; height: 1px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.side__nav a:hover, .side__nav a.is-current { color: var(--terra); padding-left: 6px; }
.side__nav a.is-current::before { transform: scaleX(1); }
.side__status { margin-top: auto; font-size: 12px; line-height: 1.7; color: var(--sub); }
.side__status b, .shop__status b { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.side__status b::before, .shop__status b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.is-closed b::before { background: #c6b6a8 !important; }
.sp-head, .sp-bar { display: none; }
.drawer[hidden] { display: none; }
.main { margin-left: var(--side); }
.footer { margin-left: var(--side); }

/* 見出し */
.num { font-family: var(--en); font-style: italic; font-size: 17px; color: var(--terra); letter-spacing: .04em; }
.title { margin-top: 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 38px); line-height: 1.6; letter-spacing: .12em; }
.head { margin-bottom: 50px; }
.head--center { text-align: center; }
.head--center .title { font-family: var(--en); font-weight: 400; font-style: italic; font-size: clamp(40px, 5vw, 64px); letter-spacing: .02em; line-height: 1.2; }
.head__note { margin-top: 12px; color: var(--sub); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 32px; border-radius: 999px; background: var(--cocoa); color: #fff; text-decoration: none; font-size: 14px; letter-spacing: .12em; transition: background .3s, transform .3s var(--ease); }
.btn:hover { background: var(--terra); transform: translateY(-2px); }
.btn--line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

/* ファーストビュー */
.hero { position: relative; display: grid; grid-template-columns: 1fr minmax(320px, 520px) 1fr; align-items: center; gap: 30px; min-height: max(640px, calc(100svh - 40px)); padding: 60px 50px; }
.hero__arch { grid-column: 2; position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden; }
.hero__arch.ph { background: url(images/hero-poster.jpg) 38% center / cover no-repeat, linear-gradient(170deg, #d9c4ae, #a98a72); }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 38% center; }
.motion .hero__arch { clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px); animation: archUp 1.6s var(--ease) .2s forwards; }
@keyframes archUp { to { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); } }
.motion .hero__video { transform: scale(1.15); animation: zoomOut 2.4s var(--ease) .2s forwards; }
@keyframes zoomOut { to { transform: none; } }
.hero__title { grid-column: 1; grid-row: 1; justify-self: end; writing-mode: vertical-rl; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: .3em; line-height: 1.5; }
.hero__title > span { display: block; }
.hero__title > span:last-child { margin-top: 3.5em; margin-right: .6em; }
.hero__title .c { display: inline-block; }
.motion .hero__title .c { opacity: 0; filter: blur(6px); transform: translateY(-10px); animation: chIn 1s var(--ease) forwards; animation-delay: calc(1s + var(--i) * .08s); }
@keyframes chIn { to { opacity: 1; filter: none; transform: none; } }
.hero__side { grid-column: 3; align-self: end; padding-bottom: 40px; }
.hero__en { font-family: var(--en); font-style: italic; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; }
.hero__since { margin-top: 16px; font-size: 12px; color: var(--sub); }
.motion .hero__side { opacity: 0; animation: fadeUp 1s var(--ease) 2.2s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero__badge { position: absolute; left: calc(50% - min(260px, 18vw) - 70px); bottom: 60px; width: 140px; height: 140px; color: var(--cocoa); font-family: var(--en); font-size: 12.5px; letter-spacing: 3px; fill: var(--cocoa); }
.hero__badge text { fill: var(--cocoa); }
.motion .hero__badge { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 流れる英字 */
.loop { overflow: hidden; padding: 30px 0; border-block: 1px solid var(--line); }
.loop p { display: flex; width: max-content; font-family: var(--en); font-style: italic; font-size: clamp(36px, 5vw, 64px); line-height: 1.1; color: var(--cocoa); white-space: nowrap; }
.loop span { padding-right: .5em; }
.motion .loop p { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* コンセプト */
.concept { padding: 140px 0; }
.concept__inner { text-align: center; }
.concept__body { display: grid; grid-template-columns: 160px 1fr 120px; align-items: center; gap: 40px; margin-top: 50px; }
.concept__text p { font-family: var(--serif); font-size: 16px; line-height: 2.4; letter-spacing: .14em; }
.concept__text p + p { margin-top: 28px; }
.draw { width: 100%; height: auto; fill: none; stroke: var(--cocoa); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.draw--wheat { stroke: var(--sage); }
.motion .draw path { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.4s var(--ease); }
.motion .draw.is-in path { stroke-dashoffset: 0; }
.motion .draw.is-in path:nth-child(2) { transition-delay: .3s; } .motion .draw.is-in path:nth-child(3) { transition-delay: .6s; } .motion .draw.is-in path:nth-child(4) { transition-delay: .9s; } .motion .draw.is-in path:nth-child(5) { transition-delay: 1.1s; } .motion .draw.is-in path:nth-child(n+6) { transition-delay: 1.3s; }

/* 今週の焼き菓子 */
.week { padding: 120px 0; background: var(--paper); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.days li { position: relative; padding: 26px 14px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; transition: background .4s; }
.days__w { font-family: var(--en); font-style: italic; font-size: 22px; line-height: 1.2; }
.days__w span { display: block; font-family: var(--ja); font-style: normal; font-size: 11px; color: var(--sub); }
.days__item { margin-top: 18px; font-family: var(--serif); font-size: 14px; line-height: 1.8; letter-spacing: .06em; }
.days li.is-off { color: #b3a598; }
.days li.is-off .days__item { font-family: var(--ja); font-size: 12px; }
.days li.is-today { background: var(--cocoa); color: #fff; }
.days li.is-today .days__w span { color: #d9c9b9; }
.days li.is-today::before { content: "TODAY"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 99px; background: var(--terra); color: #fff; font-family: var(--en); font-size: 11px; letter-spacing: .14em; }
.motion .days li { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease), background .4s; transition-delay: calc(var(--k) * .08s); }
.motion .days.is-in li { opacity: 1; transform: none; }

/* メニュー */
.menu { padding: 140px 0; }
.menu__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.menu__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; }
.menu__img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
.menu__img.ph { background: linear-gradient(170deg, #d9c4ae, #a98a72); }
.menu__img.is-on { opacity: 1; transform: none; }
.menu__img img { width: 100%; height: 100%; object-fit: cover; }
.tabs { display: flex; gap: 26px; margin: 26px 0 10px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; padding: 8px 0 12px; border: 0; background: none; font-family: var(--en); font-size: 21px; font-style: italic; color: var(--sub); cursor: pointer; transition: color .3s; }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .5s var(--ease); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.items > div { display: flex; align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.items dt { font-family: var(--serif); font-size: 16px; letter-spacing: .08em; line-height: 1.6; }
.items dt small { display: block; font-family: var(--ja); font-size: 11px; color: var(--sub); letter-spacing: .04em; }
.items > div::after { content: none; }
.items dd { margin-left: auto; font-family: var(--en); font-size: 20px; white-space: nowrap; }
.motion .items.is-swap > div { animation: fadeUp .7s var(--ease) both; animation-delay: calc(var(--k) * .07s); }
.menu__note { margin-top: 18px; font-size: 12px; color: var(--sub); }

/* 看板のバターケーキ */
.sig { padding: 130px 0; background: var(--cocoa); color: #f3e9de; }
.sig .num { color: #e2a685; }
.sig .head__note { color: #d6c6b7; }
.sig__body { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.sig__visual { position: sticky; top: 15vh; height: 70vh; max-height: 640px; border-radius: 999px 999px 18px 18px; overflow: hidden; }
.sig__img { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease), transform 1.6s var(--ease); transform: scale(1.06); }
.sig__img.ph { background: linear-gradient(170deg, #9c7a62, #4a342a); }
.sig__img.is-on { opacity: 1; transform: none; }
.sig__img img { width: 100%; height: 100%; object-fit: cover; }
.sig__count { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 4px 16px; border-radius: 99px; background: rgba(58, 44, 37, .7); font-family: var(--en); font-size: 15px; color: #fff; }
.sig__steps { padding: 10vh 0; }
.sig__step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .6s var(--ease); }
.sig__step.is-on { opacity: 1; }
.sig__no { font-family: var(--en); font-style: italic; font-size: 64px; line-height: 1; color: #e2a685; }
.sig__step h3 { margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: .2em; }
.sig__step p:not(.sig__no) { margin-top: 16px; font-size: 15px; line-height: 2.1; color: #e1d4c6; }
.gift { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; margin-top: 80px; padding: 40px; border-radius: 24px; background: #6a4d3f; }
.gift__img { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; }
.gift__img.ph { background: linear-gradient(170deg, #b99a80, #6a4d3f); }
.gift__img img { width: 100%; height: 100%; object-fit: cover; }
.gift h3 { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: .12em; }
.gift__text > p:not(.num):not(.gift__price) { margin-top: 12px; font-size: 14px; color: #e1d4c6; }
.gift__price { margin: 14px 0 20px; font-family: var(--en); font-size: 34px; }
.gift__price small { margin-left: 8px; font-family: var(--ja); font-size: 11px; color: #d6c6b7; }
.gift .btn { background: #f3e9de; color: var(--cocoa); }
.gift .btn:hover { background: var(--terra); color: #fff; }

/* ギャラリー */
.gallery { position: relative; padding: 0; }
.gallery__list { display: grid; grid-template-columns: repeat(6, 1fr); }
.gallery__list li { aspect-ratio: 1; overflow: hidden; }
.gallery__list li.ph { background: linear-gradient(170deg, #d9c4ae, #a98a72); }
.gallery__list li:nth-child(even).ph { background: linear-gradient(170deg, #c9d0bd, #8a9a7b); }
.gallery__list img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); transition: transform 1.2s var(--ease), filter .6s; }
.gallery__list li:hover img { transform: scale(1.08); filter: none; }
.gallery__ig { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; height: 150px; border-radius: 50%; background: var(--bg); text-decoration: none; font-family: var(--en); font-style: italic; font-size: 22px; line-height: 1.2; transition: transform .5s var(--ease); }
.gallery__ig span { font-family: var(--ja); font-style: normal; font-size: 11px; color: var(--sub); }
.gallery__ig:hover { transform: translate(-50%, -50%) scale(1.08); }

/* 店舗情報 */
.shop { padding: 140px 0; }
.shop__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.shop__photo { aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; }
.shop__photo.ph { background: linear-gradient(170deg, #d9c4ae, #a98a72); }
.shop__photo img { width: 100%; height: 100%; object-fit: cover; }
.shop .title { font-family: var(--en); font-style: italic; font-weight: 400; font-size: 46px; letter-spacing: .02em; line-height: 1.2; }
.info { margin-top: 20px; }
.info > div { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.9; }
.info dt { color: var(--sub); }
.info small { color: var(--sub); }
.shop__status { margin-top: 18px; font-size: 13px; color: var(--sub); }
.shop__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.footer { padding: 80px 20px 50px; text-align: center; border-top: 1px solid var(--line); }
.footer__logo { font-family: var(--en); font-style: italic; font-size: 54px; line-height: 1; }
.footer__copy { margin-top: 8px; font-family: var(--en); font-size: 15px; color: var(--sub); }
.footer small { display: block; margin-top: 30px; font-size: 11px; color: var(--sub); }

/* 写真がまだないときの仮の背景 */
:where(.ph) { position: relative; }
.ph.is-missing > img, .ph.is-missing > video { display: none; }
.ph.is-missing:not(.hero__arch)::after { content: "写真準備中"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: rgba(255, 255, 255, .85); }

/* スクロールで現れる */
.motion [data-r] { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.motion [data-r].is-in { opacity: 1; transform: none; }

/* タブレット・スマホ */
@media (max-width: 1023px) {
  :root { --side: 0px; }
  .side { display: none; }
  .sp-head { display: flex; position: sticky; top: 0; z-index: 50; align-items: center; justify-content: space-between; padding: 12px 20px; background: rgba(243, 236, 226, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .sp-head__logo { font-family: var(--en); font-style: italic; font-size: 28px; line-height: 1; text-decoration: none; }
  .menu-btn { display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; }
  .menu-btn span { display: block; width: 26px; height: 1px; background: var(--ink); transition: transform .35s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(25deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-25deg); }
  .drawer { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: 150px 30px 40px; overflow-y: auto; }
  .drawer a { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--en); font-size: 28px; }
  .drawer span { font-size: 13px; color: var(--terra); }
  .drawer small { margin-left: auto; font-family: var(--ja); font-size: 12px; color: var(--sub); }
  .hero { grid-template-columns: 1fr; padding: 30px 20px 60px; gap: 24px; min-height: 0; }
  .hero__arch { grid-column: 1; width: min(100%, 440px); justify-self: center; }
  .hero__title { grid-column: 1; grid-row: auto; justify-self: center; writing-mode: horizontal-tb; text-align: center; letter-spacing: .14em; font-size: 24px; }
  .hero__title > span:last-child { margin: 0; }
  .hero__side { grid-column: 1; text-align: center; padding: 0; }
  .hero__badge { left: auto; right: 6%; top: 40%; bottom: auto; width: 110px; height: 110px; }
  .concept__body { grid-template-columns: 1fr; }
  .draw--cup { width: 130px; margin: 0 auto; }
  .draw--wheat { display: none; }
  .days { grid-template-columns: repeat(4, 1fr); }
  .menu__inner, .shop__inner { grid-template-columns: 1fr; gap: 40px; }
  .menu__photo { max-width: 460px; }
  .sig__body { grid-template-columns: 1fr; gap: 0; }
  .sig__visual { top: 70px; height: 36vh; max-width: 300px; width: 100%; margin: 0 auto; z-index: 1; }
  .sig__steps { padding: 4vh 0 10vh; }
  .sig__step { min-height: 58vh; justify-content: flex-start; padding-top: 30vh; text-align: center; }
  .gift { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .gallery__list { grid-template-columns: repeat(3, 1fr); }
  .main, .footer { margin-left: 0; }
  .sp-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: var(--cocoa); }
  .sp-bar a { display: grid; place-items: center; height: 54px; color: #fff; font-size: 12px; letter-spacing: .06em; text-decoration: none; border-left: 1px solid rgba(255, 255, 255, .15); }
  .sp-bar a:first-child { border-left: 0; }
  .footer { padding-bottom: 100px; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .wrap { width: calc(100% - 40px); }
  .demo-bar { padding: 8px 16px; }
  .concept, .menu, .shop { padding: 90px 0; }
  .week, .sig { padding: 90px 0; }
  .concept__text p { font-size: 14px; letter-spacing: .08em; }
  .days { grid-template-columns: repeat(2, 1fr); }
  .days li { padding: 20px 10px 22px; }
  .days__item { margin-top: 10px; font-size: 13px; }
  .tabs { gap: 18px; }
  .items dt { font-size: 14px; }
  .items dd { font-size: 17px; }
  .sig__no { font-size: 48px; }
  .sig__step h3 { font-size: 22px; }
  .gallery__ig { width: 110px; height: 110px; font-size: 18px; }
  .info > div { grid-template-columns: 1fr; gap: 0; }
}
