/* 2026-10-30: 店のこと、甘味のこと、来店前のことを読みやすく。 */
@font-face {
  font-family: "Nagon Ink";
  src: url("/assets/fonts/YujiBoku-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

html body.theme-washi-scroll {
  --story-ink: #422d23;
  --story-paper: #f1e5cb;
  --story-line: rgba(99, 61, 39, 0.27);
  /* 明朝を持つ端末（Mac・iOS・Windows）では端末の明朝を使い、同梱フォントを読み込まない。 */
  --story-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "BIZ UDMincho", "Nagon Serif", serif;
}

/* 筆文字は日本語の見出しとロゴへ。英語版は従来の書体のまま。 */
html[lang="ja"] body.theme-washi-scroll :is(.site-logo, h1, h2, .section-title, .menu-name, .menu-category-title, .film-caption h2),
html[lang="ja"] body.theme-washi-scroll :is(.story-card h3, .taste-grid h3, .press-body h3) {
  font-family: "Nagon Ink", var(--font-calligraphy) !important;
  font-weight: 400;
  text-shadow: none;
}

/* 長文・出典・店舗情報は明朝体で組む。全体を筆文字にする style.css の指定より優先する。 */
html body.theme-washi-scroll :is(.menu-desc, .menu-detail, .menu-detail *, .menu-note, .menu-jumps a, .photo-source, .photo-source *, .story-card p, .taste-grid p, .press-meta, .press-meta *, .press-body p, .press-link-label, .faq-grid p, .source-note, .source-note *, .film-credit, .film-credit *, .info-table, .info-table *, .info-caution) {
  font-family: var(--story-serif) !important;
}

html body.theme-washi-scroll :is(.menu-detail, .photo-source, .story-card p, .taste-grid p, .press-body p, .faq-grid, .source-note) {
  letter-spacing: 0.035em;
  line-height: 1.9;
}

html body.theme-washi-scroll :is(.section-title, .press-proof-head h3) {
  font-size: clamp(2.2rem, 3.7vw, 3.3rem);
  line-height: 1.4;
}

html body.theme-washi-scroll :is(.shop-story, .taste-guide, .visit-faq) {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem) max(1rem, calc((100vw - 1180px) / 2));
  color: var(--story-ink);
  background: #eee0c4 url("../assets/images/washi-kozo-texture.jpg") repeat;
  background-size: 700px;
  background-blend-mode: multiply;
  border-top: 1px solid var(--story-line);
}

html body.theme-washi-scroll .taste-guide {
  background-color: #dfc9a7;
}

html body.theme-washi-scroll :is(.shop-story, .taste-guide, .visit-faq) > .section-inner {
  width: 100%;
  max-width: 1180px;
  padding-inline: 0;
}

html body.theme-washi-scroll :is(.story-grid, .taste-grid) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  width: min(1180px, 100%);
  margin: 1.7rem auto 0;
}

html body.theme-washi-scroll .taste-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html body.theme-washi-scroll :is(.story-card, .taste-grid > article) {
  min-width: 0;
  padding: clamp(1.1rem, 2.2vw, 1.65rem);
  color: var(--story-ink);
  background: rgba(255, 249, 232, 0.5);
  border: 1px solid var(--story-line);
  border-top: 3px solid #784d3b;
  border-radius: 0;
  box-shadow: none;
}

html body.theme-washi-scroll :is(.story-card h3, .taste-grid h3) {
  margin: 0 0 0.7rem;
  color: #683a2e;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.07em;
}

html body.theme-washi-scroll :is(.story-card p, .taste-grid p) {
  margin: 0.7rem 0 0;
  font-size: 1rem;
}

html body.theme-washi-scroll :is(.story-card, .taste-grid > article) img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
  filter: none;
}

/* 料理を探せる目次。札のような輪郭だけにし、説明を写真へ重ねない。 */
html body.theme-washi-scroll .menu-jumps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.7rem;
  margin: 1.25rem auto 0;
  padding: 0;
  list-style: none;
}

html body.theme-washi-scroll .menu-jumps a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  color: #5e382b;
  background: #f1e5cb;
  border: 1px solid #9b7c5d;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-decoration: none;
}

html body.theme-washi-scroll .menu-jumps a:hover {
  color: #fff8e6;
  background: #6b3a2d;
}

html body.theme-washi-scroll .menu-grid,
html body.theme-washi-scroll .menu-track.menu-grid {
  gap: 1.55rem 1.3rem;
}

html body.theme-washi-scroll .menu-grid .menu-card {
  scroll-margin-top: 5.5rem;
}

html body.theme-washi-scroll .menu-grid :is(.menu-photo, .menu-img-wrap, .menu-photo-button) {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
  padding: 0;
  background: #e5d6bb;
}

html body.theme-washi-scroll .menu-grid :is(.menu-photo, .menu-img-wrap, .menu-photo-button) img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  filter: none;
  transform: none;
}

html body.theme-washi-scroll .menu-grid .menu-body {
  padding: 0.85rem 0.5rem 0.6rem;
}

html body.theme-washi-scroll .menu-grid .menu-name {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.45;
}

html body.theme-washi-scroll .menu-grid .menu-desc {
  font-size: 1rem;
  line-height: 1.8;
}

html body.theme-washi-scroll .menu-dialog {
  width: min(1180px, calc(100vw - 2.5rem));
  max-height: calc(100dvh - 2.5rem);
  overflow: auto;
  overscroll-behavior: contain;
}

html body.theme-washi-scroll .menu-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  align-items: start;
}

html body.theme-washi-scroll .menu-dialog > img,
html body.theme-washi-scroll .menu-dialog .menu-dialog-image {
  position: sticky;
  top: 0;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 5rem);
  aspect-ratio: auto;
  object-fit: contain;
}

html body.theme-washi-scroll .menu-dialog-content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 4.5rem 1.65rem 1.75rem;
}

html body.theme-washi-scroll .menu-dialog-close {
  position: sticky;
  top: 0.65rem;
  right: auto;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  min-height: 44px;
  margin: 0.65rem 0.65rem 0;
}

html body.theme-washi-scroll .menu-detail {
  margin-top: 1rem;
  font-size: 1rem;
}

/* 英語版の詳細表示では、カードと同じく品名の下に日本語名を小さく添える。 */
html body.theme-washi-scroll .menu-dialog h2 small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.62em;
  letter-spacing: 0.06em;
}

html body.theme-washi-scroll .menu-detail p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.9;
}

html body.theme-washi-scroll .photo-source,
html body.theme-washi-scroll .source-note {
  margin: 1rem 0 0;
  color: #675244;
  font-size: 0.8125rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

html body.theme-washi-scroll :is(.photo-source, .source-note) a {
  color: #73392b;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

html body.theme-washi-scroll .photo-source span {
  white-space: nowrap;
}

/* 日本語の見出しは語句の途中で折らず、行の長さをそろえる。 */
html[lang="ja"] body.theme-washi-scroll :is(.section-title, .menu-name, .menu-category-title, .story-card h3, .taste-grid h3, .press-body h3, .faq-grid summary) {
  word-break: auto-phrase;
  text-wrap: balance;
}

/* 旧掲載面の固定高・絶対配置・マスクを解除し、大きな実写真と文章を積む。 */
html body.theme-washi-scroll .press-proof {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

html body.theme-washi-scroll .press-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  height: auto;
  margin-top: 1.7rem;
  padding: 0;
  overflow: visible;
}

html body.theme-washi-scroll .press-grid .press-card,
html body.theme-washi-scroll .press-grid .press-card:nth-child(even),
html body.theme-washi-scroll .press-grid .press-card:hover {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: var(--story-ink);
  background: #f4e8d0;
  border: 1px solid var(--story-line);
  border-radius: 0;
  box-shadow: 3px 4px 0 rgba(90, 57, 36, 0.08);
  clip-path: none;
  mask: none;
  -webkit-mask: none;
  filter: none;
  transform: none;
  text-decoration: none;
}

html body.theme-washi-scroll .press-grid .press-card::before,
html body.theme-washi-scroll .press-grid .press-card::after {
  content: none;
}

html body.theme-washi-scroll .press-grid .press-card > .press-card-photo,
html body.theme-washi-scroll .press-grid .press-card:hover > .press-card-photo {
  position: relative;
  inset: auto;
  z-index: 0;
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 4 / 3;
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: #e3d1b1;
  opacity: 1;
  filter: none;
  transform: none;
}

html body.theme-washi-scroll .press-grid .press-body {
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  padding: 1.25rem 1.4rem 1.4rem;
  color: var(--story-ink);
  background: transparent;
  text-shadow: none;
}

html body.theme-washi-scroll .press-body :is(small, time, .press-meta) {
  display: inline;
  color: #735c49;
  font-size: 0.875rem;
  line-height: 1.6;
}

html body.theme-washi-scroll .press-body h3 {
  margin: 0.5rem 0 0.75rem;
  color: #65392d;
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  line-height: 1.5;
}

html body.theme-washi-scroll .press-body p {
  display: block;
  height: auto;
  max-height: none;
  margin: 0.6rem 0 0;
  overflow: visible;
  color: #4e3b30;
  font-size: 1rem;
  line-height: 1.85;
  -webkit-line-clamp: unset;
}

html body.theme-washi-scroll .press-body a,
html body.theme-washi-scroll .press-body .press-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.65rem;
  color: #79402e;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* 店舗情報は染め和紙の上へ白い文字。状態遷移で見出しを隠さない。 */
html body.theme-washi-scroll .info .section-title,
html body.theme-washi-scroll .info .section-title.reveal,
html body.theme-washi-scroll.motion-ready .info .section-title.reveal:not(.is-visible) {
  color: #fff4d9 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  text-shadow: none !important;
}

html body.theme-washi-scroll .info .section-title::after {
  background: #e8cc99;
  opacity: 0.8;
  filter: none;
}

html body.theme-washi-scroll .info-table-wrap {
  color: #38271f;
  background: #f3e7cd url("../assets/images/washi-kozo-texture.jpg") repeat;
  background-size: 640px;
  background-blend-mode: multiply;
  border: 1px solid rgba(255, 245, 220, 0.48);
  mask: none;
  -webkit-mask: none;
  filter: none;
}

html body.theme-washi-scroll .info-table,
html body.theme-washi-scroll .info-table th,
html body.theme-washi-scroll .info-table td,
html body.theme-washi-scroll.theme-en .info-table th,
html body.theme-washi-scroll.theme-en .info-table td {
  color: #38271f !important;
  font-size: 1rem !important;
  line-height: 1.9 !important;
  text-shadow: none !important;
  letter-spacing: 0.035em;
}

html body.theme-washi-scroll .info-table th,
html body.theme-washi-scroll .info-table td {
  padding: 0.9rem 1rem;
  border-color: rgba(99, 61, 39, 0.23);
}

/* 項目と内容を一組ずつ並べる。旧来の二組並びは狭い画面で項目名が縦に折れるため使わない。 */
html body.theme-washi-scroll .info-table {
  max-width: 760px;
  margin-inline: auto;
}

html body.theme-washi-scroll .info-table tbody {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 0;
}

html body.theme-washi-scroll .info-table tr {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  align-items: baseline;
  border-bottom: 1px solid rgba(99, 61, 39, 0.23);
}

html body.theme-washi-scroll .info-table th {
  width: auto;
  white-space: nowrap;
}

html body.theme-washi-scroll .info-table .info-note {
  display: block;
  color: #584436 !important;
  font-size: 1rem !important;
}

@media (min-width: 768px) {
  html body.theme-washi-scroll.theme-en .info-table tr { grid-template-columns: 10em minmax(0, 1fr); }
}

html body.theme-washi-scroll .info > .section-inner > :is(.info-caution, .info-note) {
  color: #f8e8c8;
  font-size: 1rem;
  line-height: 1.9;
}

/* ご来店前の疑問を、その場で開いて確認できる。 */
html body.theme-washi-scroll .faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 1.75rem;
  width: min(1180px, 100%);
  margin: 1.5rem auto 0;
}

html body.theme-washi-scroll .faq-grid details {
  min-width: 0;
  padding: 0;
  border-bottom: 1px solid #a48b6a;
}

html body.theme-washi-scroll .faq-grid summary {
  position: relative;
  display: list-item;
  min-height: 60px;
  padding: 1rem 0.4rem;
  color: #57382b;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
  cursor: pointer;
}

html body.theme-washi-scroll .faq-grid summary::marker {
  color: #824b35;
  font-size: 0.8em;
}

html body.theme-washi-scroll .faq-grid details p {
  margin: 0;
  padding: 0 0.4rem 1.25rem;
  color: #4c392c;
  font-size: 1rem;
  line-height: 1.9;
}

html body.theme-washi-scroll :is(.menu-jumps a, .faq-grid summary, .press-body a):focus-visible {
  outline: 3px solid #784032;
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  html body.theme-washi-scroll .story-grid { grid-template-columns: 1fr; gap: 1rem; }
  html body.theme-washi-scroll .story-card { padding: 1.2rem 1.5rem; }
  html body.theme-washi-scroll .menu-dialog[open] { grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr); }
}

@media (max-width: 767px) {
  html body.theme-washi-scroll :is(.shop-story, .taste-guide, .visit-faq) { padding: 2rem 1.1rem; }
  html body.theme-washi-scroll :is(.taste-grid, .faq-grid, .press-grid) { grid-template-columns: minmax(0, 1fr); }
  html body.theme-washi-scroll :is(.story-grid, .taste-grid, .press-grid) { gap: 1.1rem; margin-top: 1.3rem; }
  html body.theme-washi-scroll .press-proof > .section-inner { padding-inline: 1rem; }
  html body.theme-washi-scroll .press-proof-head { padding-inline: 0; }
  html body.theme-washi-scroll .press-grid .press-body { padding: 1.1rem; }
  html body.theme-washi-scroll .press-body h3 { font-size: 1.65rem; }
  html body.theme-washi-scroll .menu-jumps { justify-content: flex-start; gap: 0.45rem; }
  html body.theme-washi-scroll .menu-jumps a { padding: 0.5rem 0.75rem; font-size: 0.875rem; }
  html body.theme-washi-scroll .menu-grid .menu-card { scroll-margin-top: 4.75rem; }
  html body.theme-washi-scroll .menu-grid .menu-name { font-size: 1.75rem; }
  html body.theme-washi-scroll .menu-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
  html body.theme-washi-scroll .menu-dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr); }
  html body.theme-washi-scroll .menu-dialog > img,
  html body.theme-washi-scroll .menu-dialog .menu-dialog-image { position: relative; top: auto; grid-column: 1; grid-row: 1; max-height: 54dvh; }
  html body.theme-washi-scroll .menu-dialog-content { grid-column: 1; grid-row: 2; padding: 1.25rem 1rem 1.5rem; }
  html body.theme-washi-scroll .menu-dialog-close { grid-column: 1; grid-row: 1 / 3; }
  html body.theme-washi-scroll .menu-dialog-content h2 { padding: 0; }
  html body.theme-washi-scroll .info-table th,
  html body.theme-washi-scroll .info-table td { padding: 0.8rem 0.5rem; }
  html body.theme-washi-scroll .info-table tr { grid-template-columns: 5.5em minmax(0, 1fr); }
  html body.theme-washi-scroll .info-table td { overflow-wrap: break-word; }
  html body.theme-washi-scroll.theme-en .info-table th,
  html body.theme-washi-scroll.theme-en .info-table td { width: auto; padding: 0; }
  html body.theme-washi-scroll .faq-grid { gap: 0; }
}

html body.theme-washi-scroll.theme-en :is(.story-card, .taste-grid > article, .press-body, .faq-grid details) {
  overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
  html body.theme-washi-scroll :is(.menu-jumps a, .press-card, .faq-grid details) { transition: none; }
}

html body.theme-washi-scroll .menu-category { width: min(1200px, calc(100% - 3rem)); margin: 2rem auto 2.5rem; scroll-margin-top: 5rem; }
html body.theme-washi-scroll .menu-category-title { font-weight: 400; font-size: clamp(1.55rem, 2.5vw, 2.2rem); line-height: 1.5; color: #57362a; padding-bottom: .7rem; border-bottom: 1px solid #997759; }
html body.theme-washi-scroll .menu-category .menu-scroller { width: 100%; margin: 1rem 0 0; padding: 0; overflow: visible !important; cursor: auto; }
html body.theme-washi-scroll .menu-category .menu-grid { width: 100% !important; min-width: 0; margin: 0; }
html body.theme-washi-scroll .menu-card { cursor: pointer; }
html body.theme-washi-scroll .menu-kind { color: #714e3b; font-size: .8rem; margin: 0 0 .35rem; letter-spacing: .06em; }
html body.theme-washi-scroll .film-caption .film-credit { font-size: .72rem; line-height: 1.7; margin-top: 1rem; }
html body.theme-washi-scroll .film-credit a { color: inherit; text-underline-offset: .2em; }
html body.theme-washi-scroll .film-access-link { display: inline-block; min-height: 44px; line-height: 44px; text-underline-offset: .3em; }
html body.theme-washi-scroll .menu-jumps { display: flex; justify-content: center; gap: .6rem 1.2rem; flex-wrap: wrap; margin: 1rem 0; }
html body.theme-washi-scroll .menu-jumps a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .7rem; border-bottom: 1px solid #8a6348; font-size: .9rem; }
html body.theme-washi-scroll .menu-detail[hidden] { display: none !important; }
html body.theme-washi-scroll .menu-detail p + p { margin-top: 1rem; }
@media (min-width: 768px) { html body.theme-washi-scroll #menu-shiruko .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { html body.theme-washi-scroll .menu-category { width: calc(100% - 2rem); } }

/* 閉じる前の詳細表示中は背面のページを動かさない（:has() 非対応の環境向け）。 */
html body.theme-washi-scroll.dialog-open { overflow: hidden; }

/* 印刷時は、まだ表示演出が済んでいない内容も出す。 */
@media print {
  html body.theme-washi-scroll.motion-ready .reveal:not(.is-visible) { opacity: 1 !important; transform: none !important; }
}
