/*
Theme Name: 西麻布 清水
Description: 西麻布 清水 公式サイトの確認用テーマ
Version: 0.2.228
Requires PHP: 7.4
Text Domain: shimizu-top
*/
:root {
  --osechi-header-button-width: 218px;
  --osechi-header-button-height: 56px;
  --paper: #f4f1eb;
  --ink: #252522;
  --cream: #f2f0e9;
  --border: #c8c2b6;
  --link-hover-on-paper: #694f33;
  --link-hover-on-dark: #d8c2a4;
  --outer: 24px;
  --news-height: 113px;
  --desktop-hero-logo-width: 128;
  --indicator-gap: 10px;
  --indicator-line: 12px;
  --indicator-line-current: 24px;
  --intro-fade: 2s;
  --shadow-opacity: .70;
}
@media (min-width: 768px) {
  :root { --indicator-gap: 12px; --indicator-line: 24px; --indicator-line-current: 48px; }
}
@font-face {
  font-family: Shimizu Noto;
  src: url("assets/noto-serif-jp.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--ink); }
body { margin: 0; font-family: "Shimizu Noto", "Noto Serif JP", "Noto Serif CJK JP", "Yu Mincho", serif; background: var(--paper); }
h1, h2, p, figure { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
.hero { min-height: 480px; height: calc(100vh - var(--news-height)); height: calc(100dvh - var(--news-height)); position: relative; color: var(--cream); background: #574437; isolation: isolate; }
.hero__image, .hero__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__image { z-index: -1; }
.hero__header { position: absolute; inset: 24px var(--outer) auto; display: flex; align-items: flex-start; justify-content: space-between; }
.hero__logo { display: block; width: 64px; height: auto; }
.hero__nav { display: none; align-items: center; gap: 24px; font-size: 17px; white-space: nowrap; }
.hero__nav a { padding-block: 6px; }
.hero__languages { border-inline-start: 1px solid var(--border); padding-inline-start: 24px; }
.hero__menu { position: relative; z-index: 2; }
.hero__menu summary { min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: end; gap: 20px; cursor: pointer; list-style: none; font-size: 14px; }
.hero__menu summary::-webkit-details-marker { display: none; }
.hero__menu summary span { display: flex; align-items: center; gap: 12px; }
.hero__menu summary img { display: block; }
.hero__menu nav { position: absolute; top: 52px; right: 0; width: max-content; display: grid; padding: 8px 24px; background: var(--ink); border: 1px solid var(--border); }
.hero__menu nav a { min-height: 44px; display: flex; align-items: center; }
.hero__title { position: absolute; top: 22.5%; left: max(32px, 9.75vw); display: flex; flex-direction: row-reverse; gap: 13px; font-size: 32px; letter-spacing: .12em; }
.hero__title span, .story__title span { writing-mode: vertical-rl; text-orientation: upright; }
.hero__scroll { position: absolute; bottom: 36px; left: var(--outer); font-size: 11px; letter-spacing: .05em; display: flex; align-items: center; gap: 12px; }
.hero__scroll::before { content: ""; width: 1px; height: 34px; background: var(--border); }
.news { position: relative; padding: 24px var(--outer); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 24px; background: var(--paper); }
.news__date { padding-inline-start: 16px; border-inline-start: 1px solid var(--border); }
.news__link { display: flex; align-items: center; gap: 12px; flex-basis: 100%; }
.arrow { flex: none; display: block; }
/* Shared link and navigation hover motion. */
.menu-label { position: relative; }
.menu-label::after {
  content: "";
  position: absolute;
  inset: auto auto -2px 0;
  width: var(--menu-underline, 0);
  height: 1px;
  background: currentColor;
}
.osechi-header { --menu-hover-color: var(--link-hover-on-paper); }
.osechi-header .language-picker nav { --menu-hover-color: var(--link-hover-on-dark); }
.site-menu :is(.site-menu__pc, .site-menu__mobile nav) [aria-current="page"] > .menu-label { --menu-underline: 100%; }

a:focus-visible > .menu-label,
summary:focus-visible > .menu-label {
  --menu-underline: 100%;
  color: var(--menu-hover-color, var(--link-hover-on-dark));
}

@media (hover: hover) {
  a:hover > .menu-label,
  summary:hover > .menu-label {
    --menu-underline: 100%;
    color: var(--menu-hover-color, var(--link-hover-on-dark));
  }
}

@media (prefers-reduced-motion: no-preference) {
  a .arrow, .instagram-label, .hero__scroll::before {
    /* The moving band is transparent over both light and textured surfaces. */
    mask-image: linear-gradient(var(--sweep-direction, to right), #000 46%, transparent 46% 54%, #000 54%);
    mask-repeat: no-repeat;
    mask-size: var(--sweep-size, 218% 100%);
    mask-position: var(--sweep-position, right);
    transition: mask-position .4s ease;
  }

  .hero__scroll::before {
    --sweep-direction: to bottom;
    --sweep-size: 100% 218%;
    --sweep-position: var(--scroll-line-position, bottom);
  }

  :is(.hero__logo, .osechi-logo, .reservation__brand) { transition: opacity .3s ease; }
  .menu-label { transition: color .3s ease; }
  .menu-label::after { transition: width .3s ease; }

  a:focus-visible :is(.arrow, .instagram-label) { --sweep-position: left; }
  .hero__scroll:focus-visible { --scroll-line-position: top; }
  a:focus-visible > :is(.hero__logo, .osechi-logo), .reservation__brand:focus-visible { opacity: .5; }

  @media (hover: hover) {
    a:hover :is(.arrow, .instagram-label) { --sweep-position: left; }
    .hero__scroll:hover { --scroll-line-position: top; }
    a:hover > :is(.hero__logo, .osechi-logo), .reservation__brand:hover { opacity: .5; }
  }
}
.story__stage { position: relative; display: grid; place-items: center; isolation: isolate; overflow: clip; }
.story__paper { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--paper); }
.story__shade { position: absolute; inset: 0; }
.story__shadow {
  --story-shadow-position: 76% top;
  --story-shadow-size: auto clamp(470px, 55svh, 580px);
  position: absolute;
  inset: -4%;
  mix-blend-mode: multiply;
  opacity: var(--shadow-opacity);
}
.story__shadow, .story__shadow-branch, .story__shadow-leaves {
  background-image: url("assets/leaf-shadow.png");
  background-position: var(--story-shadow-position);
  background-size: var(--story-shadow-size);
  background-repeat: no-repeat;
}
.story__shadow-branch, .story__shadow-leaves { display: none; position: absolute; inset: 0; }
.story__shadow-branch--upper { mask-image: radial-gradient(ellipse 38% 46% at 84% 19%, #000 30%, transparent 100%); }
.story__shadow-branch--lower { mask-image: radial-gradient(ellipse 37% 40% at 89% 83%, #000 30%, transparent 100%); }
.story__shadow-leaves--tip { mask-image: radial-gradient(ellipse 13% 19% at 75% 29%, #000 26%, transparent 100%); }
.story__shadow-leaves--upper { mask-image: radial-gradient(ellipse 12% 19% at 91% 16%, #000 26%, transparent 100%); }
.story__shadow-leaves--lower { mask-image: radial-gradient(ellipse 14% 19% at 83% 70%, #000 26%, transparent 100%); }
@media (prefers-reduced-motion: no-preference) {
  .story__shadow {
    animation: story-shadow-sway 9.6s ease-in-out infinite;
  }
  .story__shadow-branch, .story__shadow-leaves {
    display: block;
    transform-origin: right center;
  }
  .story__shadow-branch {
    animation: story-branch-sway 5.8s ease-in-out infinite;
  }
  .story__shadow-branch--lower { animation-duration: 7.1s; animation-delay: -2.4s; }
  .story__shadow-leaves {
    animation: story-leaves-sway 2.4s ease-in-out infinite;
  }
  .story__shadow-leaves--upper { animation-duration: 2.9s; animation-delay: -.9s; }
  .story__shadow-leaves--lower { animation-duration: 2.15s; animation-delay: -1.3s; }
  .story__shadow:not(.is-swaying), .story__shadow:not(.is-swaying) :is(.story__shadow-branch, .story__shadow-leaves) {
    animation-play-state: paused;
  }
}
@keyframes story-shadow-sway {
  0%, 100% { transform: translate3d(0, 0, 0) scale(var(--shadow-overscan, 1.1)); }
  25% { transform: translate3d(clamp(12px, 2vw, 31px), clamp(6px, 1.1vw, 16px), 0) rotate(1.2deg) scale(var(--shadow-overscan, 1.1)); }
  49% { transform: translate3d(5px, 9px, 0) rotate(-.2deg) scale(var(--shadow-overscan, 1.1)); }
  77% { transform: translate3d(clamp(-30px, -2vw, -12px), clamp(-16px, -1vw, -6px), 0) rotate(-1.3deg) scale(var(--shadow-overscan, 1.1)); }
}
@keyframes story-branch-sway {
  0%, 100% { transform: translate3d(-8px, 2px, 0) rotate(-.7deg); }
  46% { transform: translate3d(clamp(7px, 1vw, 15px), -7px, 0) rotate(1.15deg); }
  72% { transform: translate3d(4px, 5px, 0) rotate(.35deg); }
}
@keyframes story-leaves-sway {
  0%, 100% { transform: translate3d(-4px, 2px, 0) rotate(-.4deg); }
  42% { transform: translate3d(5px, -3px, 0) rotate(.5deg); }
  74% { transform: translate3d(1px, 2px, 0) rotate(.12deg); }
}
.story__inner { width: 100%; max-width: 1440px; display: grid; gap: 24px; padding: 64px var(--outer); }
.story__brand { display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 24px; letter-spacing: .4px; }
.story__crest {
  display: block;
  flex: none;
  width: 24px;
  height: 23px;
  opacity: .55;
}
.story__title { font-size: 28px; line-height: 42px; letter-spacing: .5px; }
.story__title span { display: block; writing-mode: horizontal-tb; }
.story__copy { display: grid; gap: 24px; font-size: 16px; line-height: 32px; letter-spacing: .4px; }
.story__copy p { overflow-wrap: anywhere; }
html.has-story-sequence { overflow-anchor: none; }
.story.is-sequenced { height: var(--story-track); }
.story.is-sequenced .story__stage {
  position: sticky;
  top: 0;
  height: var(--story-screen);
  align-items: start;
}
.story.is-sequenced .story__inner { translate: 0 var(--story-center, 0px); }
.story.is-sequenced .story__shade { top: var(--story-release, 0px); }
.story.is-revealing .story__shade { opacity: var(--story-shadow-reveal, 0); }
.story.is-revealing [data-reveal] {
  opacity: var(--story-text-opacity, 0);
  filter: blur(calc(5px * (1 - var(--story-text-opacity, 0))));
}
.food, .reservation { background: var(--ink); color: var(--cream); }
.food { display: grid; gap: 32px; padding: 64px var(--outer); }
.food__photo { aspect-ratio: 3 / 2; position: relative; overflow: hidden; touch-action: pan-y pinch-zoom; }
.food__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.food__photo img.is-outgoing, .food__photo img.is-current { opacity: 1; }
.food__photo img.is-current { z-index: 1; }
.food__controls { display: flex; justify-content: space-between; margin-top: 8px; gap: 0; }
.food__controls div { display: flex; }
.food__controls > div:first-child { gap: var(--indicator-gap); }
.food__controls [data-slide], .food__controls [data-step] { height: 44px; display: grid; place-items: center; }
.food__controls [data-step] { width: 44px; background: transparent; border: 0; }
.food__indicator { position: relative; display: block; width: var(--indicator-line); height: 1px; background: currentColor; }
.food__controls [aria-current="true"] .food__indicator { width: var(--indicator-line-current); }
.food__indicator > span { position: absolute; inset: 0; background: currentColor; transform-origin: left; }
.food__controls.is-counting [aria-current="true"] .food__indicator { background: #f2f0e955; }
.food__controls [data-step] svg { display: block; width: 24px; height: 24px; }
.food__controls [data-step]:focus-visible { color: #d8c2a4; }
@media (hover: hover) {
  .food__controls [data-step]:hover { color: #d8c2a4; }
}
@media (prefers-reduced-motion: no-preference) {
  .food__controls [data-step] { transition: color .2s ease; }
}
.food__copy { display: grid; align-content: center; gap: 24px; }
.food__copy small, .reservation small, .osechi small { font-size: 14px; line-height: 24px; letter-spacing: .4px; }
.food__copy h2, .osechi h2 { font-size: 28px; line-height: 42px; letter-spacing: .5px; }
.inline-link { display: flex; align-items: center; gap: 12px; width: fit-content; }
.buttons { display: flex; gap: 16px; }
.button { flex: 1 1 0; min-height: 56px; display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--border); padding: 8px; font-size: 14px; }
.button--light { background: var(--cream); color: var(--ink); }
.button--dark { background: var(--ink); color: var(--cream); width: fit-content; padding: 12px 24px; }
.osechi { display: grid; align-items: center; gap: 32px; padding: 64px var(--outer); }
.osechi figure img { display: block; width: 100%; height: auto; }
.osechi figcaption { margin-top: 12px; color: #6c685f; font-size: 14px; }
.osechi__copy { display: grid; justify-items: start; gap: 16px; font-size: 16px; line-height: 32px; }
.osechi__price { font-size: 24px; }
.osechi__price small { font-size: 14px; }
.links { display: grid; padding: 32px var(--outer); }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding-block: 8px; border-bottom: 1px solid var(--border); }
.links a:last-child { border-bottom: 0; }
.reservation { position: relative; isolation: isolate; text-align: center; padding: 48px var(--outer) 24px; }
.reservation::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/footer.png") center / cover no-repeat; opacity: .65; }
.reservation h2 { margin: 12px 0 24px; font-size: 22px; line-height: 1.6; }
.reservation .buttons { max-width: 632px; margin-inline: auto; }
.reservation__meta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; }
.reservation__logo { width: 56px; height: auto; }
.reservation__instagram { display: inline-flex; align-items: center; gap: 8px; }
.intro { position: fixed; z-index: 20; inset: 0; background: #141311; opacity: 0; visibility: hidden; }
.intro.is-active, .intro.is-exiting { visibility: visible; }
.intro.is-active { opacity: 1; }
.intro.is-exiting { opacity: 0; transition: opacity var(--intro-fade) ease-in-out; pointer-events: none; }
.intro:focus { outline: none; }
.intro video { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro__skip { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); min-height: 44px; padding: 0 16px; font-size: 13px; background: #252522b8; color: var(--cream); border: 1px solid #f2f0e990; }
html.intro-arming, html.intro-arming body { background: #141311; }
html.intro-arming #shimizu-site { visibility: hidden; }
html.intro-open { overflow: hidden; }
@media (max-width: 359px) {
  .food__controls button { width: 44px; }
  .food__controls { flex-wrap: wrap; }
}
@media (min-width: 768px) {
  :root { --outer: 40px; --news-height: 89px; }
  .hero__header { top: 32px; }
  .hero__logo { width: 112px; }
  .hero__title { left: 15%; top: 29%; font-size: 44px; gap: 22px; }
  .hero__scroll { bottom: 40px; font-size: 14px; gap: 24px; }
  .hero__scroll::before { height: 56px; }
  .news { min-height: 89px; column-gap: 24px; }
  .news__date { padding-inline-start: 24px; }
  .news__link { flex-basis: auto; font-size: 18px; }
  .story__inner { padding-block: 80px; gap: 32px; }
  .story__title { font-size: 44px; line-height: 62px; }
  .story__title span { display: inline-block; }
  .story__copy { max-width: 592px; font-size: 18px; line-height: 36px; letter-spacing: .6px; }
  .food { padding-block: 80px; }
  .food__copy h2, .osechi h2 { font-size: 44px; line-height: 62px; }
  .buttons { gap: 24px; }
  .button { min-height: 76px; font-size: 18px; gap: 16px; }
  .osechi { padding-block: 80px; font-size: 18px; }
  .reservation { padding-block: 64px 24px; }
  .reservation h2 { font-size: 28px; }
  .reservation .buttons { max-width: 480px; }
  .reservation__logo { width: 80px; }
}
@media (min-width: 960px) {
  .food, .osechi { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .story__inner { padding-block: 92px; }
}
@media (min-width: 1200px) {
  :root { --outer: 64px; }
  .hero__logo { width: 141px; }
  .hero__title { left: 13.45%; top: 33.65%; gap: 26px; }
  .hero__nav { display: flex; }
  .hero__menu { display: none; }
  .story__inner { grid-template-columns: clamp(115px, 10.07vw, 145px) clamp(205px, 17vw, 245px) minmax(0, 560px); column-gap: 0; align-items: start; min-height: 480px; padding-block: 104px 96px; padding-inline: 9.75% 5%; }
  .story__brand { flex-direction: column; align-items: flex-start; gap: 16px; }
  .story__brand p { writing-mode: vertical-rl; white-space: pre; }
  .story__title { display: flex; flex-direction: row-reverse; justify-content: start; align-items: start; gap: 13px; width: max-content; line-height: 62px; letter-spacing: .13em; }
  .story__title span { writing-mode: vertical-rl; }
  .story__copy { margin-top: 42px; }
  .story__shadow { --story-shadow-size: cover; --story-shadow-position: right top; }
  .food { grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: clamp(48px, 5.4vw, 78px); padding-block: 36px 54px; }
  .food__photo { aspect-ratio: 778 / 492; }
  .food__copy { gap: 32px; }
  .links { grid-template-columns: 1fr .93fr 1.36fr 1.03fr 1.07fr; padding-block: 52px; }
  .links a { min-height: 116px; justify-content: center; text-align: center; border-bottom: 0; }
  .links a + a { border-inline-start: 1px solid var(--border); }
  .reservation .buttons { max-width: 632px; }
  .reservation__logo { width: 136px; }
}
@media (prefers-reduced-motion: reduce) {
  .story__shadow { animation: none !important; transition: none !important; }
  .intro.is-exiting { transition: none; }
}
