/* サイト全体の本文の幅と左右の余白（2026-10-08 鮎澤さん決定）。値はここだけで決める。
   --content-max：本文の最大の幅。--gutter：画面の大きさごとの左右の最小の余白。
   --edge：セクションの左右に取る余白（画面が広いときは、本文の幅を中央に置く分だけ広がる）。
   --edge の % は、使う場所の幅（padding・left・right なら包むものの幅）で決まる。 */
:root {
  --content-max: 1120px;
  --gutter: 24px;
  --edge: max(var(--gutter), calc((100% - var(--content-max)) / 2));
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1024px) { :root { --gutter: 64px; } }

/* 固定ページで使う形：セクションの左右に --edge を取る。 */
.l-edge { padding-left: var(--edge); padding-right: var(--edge); }

/* 確かめるための見え方：本文の左端と右端に縦の線（?edges=1 のとき、ページの script が付ける）。 */
.edge-guide { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; padding-left: var(--edge); padding-right: var(--edge); }
.edge-guide::before { content: ""; display: block; height: 100%; border-left: 1px solid #ff3b30; border-right: 1px solid #ff3b30; }
.edge-guide-label { position: fixed; left: 8px; bottom: 8px; z-index: 2147483001; padding: 4px 8px; background: #ff3b30; color: #fff; font: 12px/1.4 sans-serif; pointer-events: none; }

/* トップ：各セクションの中身の端を --edge にそろえる。写真を画面の端まで使う部分（店の案内の写真、
   店舗情報の地図）は例外で、その中の文字だけをそろえる。 */
body.home #news .news__inner { max-width: none; padding-left: var(--edge); padding-right: var(--edge); }
body.home .kodomo-entry { padding-left: var(--edge); padding-right: var(--edge); }
body.home .kodomo-entry > a { max-width: none; }
body.home .yx__inner { max-width: none; padding-left: var(--edge); padding-right: var(--edge); }
body.home #access .box-text { padding-right: var(--edge); }
@media (min-width: 768px) {
  /* 店の案内の写真の幅は、テーマの最大（画面の幅の 80%）にはっきり決める。決めないと中身の幅から決まり、
     Chrome と Safari（WebKit）で大きさが違い、欄の高さを中身に合わせると WebKit では幅が 0 になる。 */
  body.home .feature__visual { flex: 0 0 auto; width: 80vw; }
  body.home .feature { padding-right: var(--edge); }
  body.home .feature .menu-list { padding-right: 0; }
  body.home .yx__text { left: var(--edge); }
}
@media (max-width: 1024px) {
  body.home #access .box-text { padding-left: var(--edge); }
}
@media (max-width: 767px) {
  body.home .feature .menu-list { padding-left: var(--edge); padding-right: var(--edge); }
}

/* 店舗情報（2026-10-08 案）：PC では地図を左半分に置き、表の枠は「画面の半分 − 間のあき（--gutter）− 右の余白」の幅に
   して、地図と重ならないようにする。 */
@media (min-width: 1025px) {
  body.home #access .box-text-inner { width: calc(50vw - var(--gutter) - max(var(--gutter), (100vw - var(--content-max)) / 2)); }
}

/* 海外ゲスト向け体験握り（2026-10-08 案）。案 A（初め）：文字と写真を重ねずに左右に並べる。
   案 B（?yx=b）：写真を本文の幅いっぱいに大きく見せ、文字は写真の下に小さくまとめる。 */
body.home .yx__text { position: static; left: auto; top: auto; width: auto; min-width: 0; margin: 0; padding: 0; background: none; }
body.home .yx__text h2 { margin-bottom: 1rem; }
body.home .yx__media { width: 100%; margin: 0; }
@media (min-width: 768px) {
  html:not(.yx-b) body.home .yx__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
  html:not(.yx-b) body.home .yx__media { grid-column: 2; grid-row: 1; aspect-ratio: 3 / 2; }
  html:not(.yx-b) body.home .yx__text { grid-column: 1; grid-row: 1; }
  html.yx-b body.home .yx__inner { display: flex; flex-direction: column; }
  html.yx-b body.home .yx__media { order: 1; }
  html.yx-b body.home .yx__text { order: 2; }
  html.yx-b body.home .yx__media { aspect-ratio: 16 / 9; }
  html.yx-b body.home .yx__text { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 clamp(32px, 4vw, 64px); margin-top: 28px; }
  html.yx-b body.home .yx__text > * { grid-column: 2; }
  html.yx-b body.home .yx__text > h2 { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
}
@media (max-width: 767px) {
  body.home .yx__inner { display: flex; flex-direction: column; gap: 20px; }
  body.home .yx__media { aspect-ratio: 3 / 2; }
  html.yx-b body.home .yx__inner { padding-left: 0; padding-right: 0; }
  html.yx-b body.home .yx__media { order: 1; }
  html.yx-b body.home .yx__text { order: 2; }
  html.yx-b body.home .yx__media { aspect-ratio: 4 / 3; }
  html.yx-b body.home .yx__text { padding: 0 var(--edge); }
  html.yx-b body.home .yx__text p { font-size: .875rem; }
}

/* The theme's line before every h2 (scripts.js inserts a .line-container, style.css moves its line 30px down).
   It belongs to the look of the standard pages and stays there. Blocks designed without it hide it, as the theme
   already does on the top page (.home .line-container) and as /yoshi/ does with .noline: there the line fell on the
   heading text (measured 2026-10-11 on every page at 1440 and 375: /yoshi/lecture/'s news block and Yoshi banner,
   and the one-page /experience/). */
.news__inner .line-container, .yx__text .line-container, main.xp .line-container, main.lp .line-container { display: none !important; }

/* In-page links scroll smoothly on every page (指示 1011-03, /anchor-scroll.js: only for clicks on those links, so the
   enlarged images, the form and the browser's own scrolling are not animated). The target stops below the header:
   pages with the low black header (body.article-layout: posts, /experience/, /yoshi/) keep its 64px band on screen,
   so 64px + 16px; the theme's header on the other pages slides away while scrolling down, so a small margin is
   enough there. Visitors who ask their device for less motion jump directly. */
html { scroll-padding-top: 24px; }
html:has(body.article-layout) { scroll-padding-top: 80px; }

/* Captions of single images (指示 1011-07). The theme makes every figcaption a black gradient band with position:
   absolute; on a figure that is not positioned, the band left its photo, ran across the screen and lay on other
   captions (/1894/, /1935/, /room/2f-zashiki/, also on the live site). The caption is shown under its photo, like
   the other posts. The galleries' own captions (.mz-gallery__caption, /gallery.css) are not changed. */
:where(figure) > figcaption:where(:not(.mz-gallery__caption)) {
  position: static; width: auto; margin: 0; padding: .6em 0 0; background: none; z-index: auto;
  color: inherit; font-size: .8em; line-height: 1.6; text-align: left;
}

/* ==== 矢印・パンくず・フッターを全ページで 1 つにそろえる（指示 1013-08、2026-11-18 指示 1118-01） ====
   ページ用の CSS（ja-type.css・xp.css・yoshi.css・en-type.css）は本文の範囲だけに効かせ、ここで決めた形がどのページでも同じに出る。 */
:root {
  --mz-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
  --mz-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --mz-en: "Newsreader", Georgia, "Times New Roman", serif;
}

/* 矢印（src/lib/arrows.ts）：細い線の小さな山形。大きさは文字の高さの 6 割、色は周りの文字を少し薄く、文字の高さの中央に置く。 */
.mz-arrow {
  display: inline-block; flex: none; width: .36em; height: .6em; vertical-align: .06em; vertical-align: calc(.5cap - .3em); overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1px; stroke-linecap: round; stroke-linejoin: round; opacity: .6;
}
.mz-arrow path { vector-effect: non-scaling-stroke; }
.mz-arrow--right { margin-left: .45em; }
.mz-arrow--left { margin-right: .45em; }

/* パンくず：左揃え、小さめのゴシック 400、区切りは矢印。左右の端はそのページの本文の幅（arrows.ts の frame）。押せる高さ 44px。 */
.mz-crumbs-frame .page-content, .mz-crumbs-frame .container, .mz-crumbs-frame .main-content, .mz-crumbs-frame .xp-wrap {
  padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; min-height: 0; border: 0; background: none;
}
.mz-crumbs-frame .menu-side { visibility: hidden; }
/* 本文と同じ幅にそろえるための空の目次の欄は、場所（高さ）を取らない（2026-11-22 指示 1122-03。PC：一覧の上の余白 90px、スマートフォン：縦の並びの間 20px が、パンくずの下に空きを作っていた） */
.mz-crumbs-frame .menu-side .nav-list { margin: 0 !important; }
.mz-crumbs-frame .container { row-gap: 0 !important; }
/* The contents list beside the text (指示 1122-04): one heading only → not shown, the text keeps the same left
   and right edges as on pages with a list (PC: the list's column stays, empty; up to 1024px the list is a row
   above the text and goes away). Long headings wrap instead of being cut (.nav-list a is nowrap for the menus). */
.menu-side.toc-single { visibility: hidden; }
@media (max-width: 1024px) { .menu-side.toc-single { display: none; } }
.menu-side .toc a { white-space: normal; }
html body #breadcrumbs.mz-crumbs {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; max-width: none;
  margin: 0; padding: 6px 0; text-align: left;
  font-family: var(--mz-sans); font-weight: 400; font-size: 13px; line-height: 1.5; letter-spacing: .04em;
}
html body #breadcrumbs.mz-crumbs li {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; position: static; list-style: none; border: 0;
  font: inherit; letter-spacing: inherit; line-height: inherit;
}
html body #breadcrumbs.mz-crumbs li::before, html body #breadcrumbs.mz-crumbs li::after { content: none; display: none; }
html body #breadcrumbs.mz-crumbs a, html body #breadcrumbs.mz-crumbs span { display: inline-flex; align-items: center; min-height: 44px; font: inherit; letter-spacing: inherit; }
html body #breadcrumbs.mz-crumbs .mz-arrow { margin: 0 .75em; }
/* 記事のページのパンくずも、ほかのページと同じ書体の並び（article.css は Noto Sans JP が先）。 */
body.article-layout #breadcrumbs.article-breadcrumbs.mz-crumbs { font-family: var(--mz-sans); }

/* フッター（指示 1123-01、2026-11-23）：現行（WordPress）のテーマのままの見た目に戻す。正は確認用の写し kodomo-sushi の /access/。
   文字の種類・太さ・大きさ・字間・行の高さはテーマ（style.css）の指定に任せ、ここでは書体だけを、どのページでも
   /access/ と同じ明朝系にそろえる。アイコン（i、Font Awesome）は除く（現行では /experience/・/yoshi/ と英語の同じページだけ Helvetica Neue だった。報告 1123-01）。
   1013-08 で足した「明朝 400／ゴシック 400、電話番号を小さく、著作権表示を大きく」は、鮎澤さんの指示ではなかったため外した。 */
html body #footer, html body #footer *:not(i), html body .language, html body .language *:not(i) {
  font-family: "garamond", "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", "MS PMincho", serif;
}
/* 一覧の矢印（トップのお知らせ・活動。テーマの .activity__arrow svg が縦の位置を middle にするのを、部品の位置に戻す。指示 1118-02 の 3）。 */
.activity__arrow svg.mz-arrow, .news__arrow svg.mz-arrow { vertical-align: .06em; vertical-align: calc(.5cap - .3em); margin-left: .45em; }
.activity__arrow svg.mz-arrow { opacity: .6; }
