@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD - KISSA SO-SU
    Description: 喫茶ソース用の SWELL 子テーマ（デモ版のベージュ×黒・書体）
    Version: 1.1.0
*/

/* ── 色と書体（デモ版と同じ） ── */
:root {
  --sosu-paper: #DCD4C7;
  --sosu-paper-2: #F4EFE7;
  --sosu-ink: #1C1A17;
  --sosu-soft: #5A5248;
  --sosu-display: 'Rubik Mono One', sans-serif;   /* ロゴ・大見出し（MENU / DRINK の雰囲気） */
  --sosu-head: 'Bowlby One SC', sans-serif;       /* 見出し（SANDWICHES の雰囲気） */
  --sosu-body: 'Noto Serif JP', serif;            /* 本文（メニュー表の明朝） */
}
:root { --article_size: 1120px; }
body { font-family: var(--sosu-body); color: var(--sosu-ink); }

/* ── ヘッダー ── */
.l-header, .l-fixHeader { border-bottom: 2px solid var(--sosu-ink); box-shadow: none; }
.c-headLogo__link, .l-header__logo .c-headLogo { font-family: var(--sosu-display); letter-spacing: 0.18em; font-size: 15px; }
.c-gnav > .menu-item > a { font-family: var(--sosu-body); letter-spacing: 0.06em; }
.c-gnav > .menu-item > a .ttl { font-size: 15px; }
.c-gnav > .menu-item > a::after { background: var(--sosu-ink); }
.l-header__bar { background: var(--sosu-ink); }

/* ── ページの見出し ── */
.c-pageTitle, .c-postTitle__ttl { font-family: var(--sosu-head); font-weight: 400; letter-spacing: 0.02em; }
.c-pageTitle__inner { border: none; }
.post_content h2 { font-family: var(--sosu-head); font-weight: 400; background: none; color: var(--sosu-ink); padding: 0 0 .4em; border-bottom: 2px solid var(--sosu-ink); }
.post_content h2::before, .post_content h2::after { display: none; }
.post_content h3 { font-family: var(--sosu-body); }
.post_content h3::before { background: var(--sosu-ink); }

/* ── ボタン ── */
.swell-block-button__link, .c-btn { border-radius: 999px; }

/* ── SO-SU Menu（[sosu_menu] / [sosu_exploded]）をデモ版の色に ── */
.sosu-menu, .sosu-exploded {
  --sosu-bg: var(--sosu-paper);
  --sosu-ink: #1C1A17;
  --sosu-soft: #5A5248;
  --sosu-line: rgba(28, 26, 23, 0.2);
}
.post_content .sosu-menu__heading {
  font-family: var(--sosu-head); font-weight: 400; text-transform: none; letter-spacing: 0.02em;
  background: none; color: var(--sosu-ink); padding: 0 0 10px; border-bottom: 2px solid var(--sosu-ink);
}
.post_content .sosu-menu__heading::before, .post_content .sosu-menu__heading::after { display: none; }
.post_content .sosu-menu__name, .post_content .sosu-exploded__name { font-family: var(--sosu-body); font-weight: 600; border: none; padding: 0; background: none; }
.post_content .sosu-menu__name::before, .post_content .sosu-menu__name::after,
.post_content .sosu-exploded__name::before, .post_content .sosu-exploded__name::after { display: none; }
.sosu-menu__prices { font-family: var(--sosu-body); }

/* ── フッター ── */
.l-footer { border-top: 2px solid var(--sosu-ink); }

/* ── 黒いセクションの中の枠線ボタンは、明るい色に ── */
.wp-block-group.has-background .wp-block-button__link[style*="background-color:transparent"] { color: var(--sosu-paper-2) !important; border-color: var(--sosu-paper-2) !important; }
.wp-block-group.has-background .wp-block-group.has-border-color { border-color: var(--sosu-paper-2) !important; }

/* ── 1カラムのページは横幅を広めに（デモ版と同じくらい） ── */
.l-content.l-container { max-width: 1240px; }
.l-mainContent__inner > .post_content, .post_content { max-width: 1120px; margin-left: auto; margin-right: auto; }
.post_content .wp-block-columns { gap: 2.5em; }
.post_content h1.wp-block-heading { font-family: var(--sosu-display); font-weight: 400; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.15; }

/* ── 黒いセクションの中の見出しは、明るい色に ── */
.post_content .has-background h2, .post_content .has-background h3 { color: inherit; border-color: currentColor; }
.post_content .has-background h3::before { background: currentColor; }

/* 季節限定が0件のときはカードごと隠す（商品を登録すると自動で出る） */
.post_content .wp-block-group.has-border-color:has(.sosu-menu__empty) { display: none; }

/* メニューのタグ（Contains nuts など）：SWELL のリストの丸を消して、1行で出す */
.post_content ul.sosu-menu__tags { list-style: none; padding-left: 0; margin-left: 0; }
.post_content ul.sosu-menu__tags > li { list-style: none; margin: 0; white-space: nowrap; line-height: 1.6; }
.post_content ul.sosu-menu__tags > li::before, .post_content ul.sosu-menu__tags > li::marker { content: none; display: none; }

/* Coffee by imm のカード（S200 の 3D 入り）だけ、PC で横幅 1720px まで広げる */
@media (min-width: 1200px) {
  .post_content > .wp-block-group:has(.sosu-s200) {
    width: min(1720px, calc(100vw - 64px));
    max-width: none;
    margin-left: calc(50% - min(860px, 50vw - 32px));
    margin-right: 0;
    padding-left: 56px !important;
    padding-right: 56px !important;
  }
  .post_content > .wp-block-group:has(.sosu-s200) .wp-block-columns { gap: 4em; }
  .post_content > .wp-block-group:has(.sosu-s200) .wp-block-column:has(.sosu-s200) { flex-basis: 56% !important; }
}
/* 文章のカラムも 3D と同じく画面の高さで止める（終わりに文章だけ流れないように）。プラグインを更新したら消してよい */
@media (min-width: 782px) {
  .post_content .wp-block-columns:has(.sosu-s200) > .wp-block-column:not(:has(.sosu-s200)) { position: sticky; top: 0 !important; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
}

/* ホームの一番上（.sosu-hero）：PC では横幅 1720px まで広げ、文章・分解図・材料を横一列に */
@media (min-width: 1200px) {
  .post_content > .sosu-hero {
    width: min(1720px, calc(100vw - 64px));
    max-width: none;
    margin-left: calc(50% - min(860px, 50vw - 32px));
    margin-right: 0;
  }
}
@media (min-width: 782px) {
  /* 文章・分解図・材料をひとかたまりにして真ん中へ（2026-11-15 MASA 注釈「間隔が不自然なのでサンドに寄せる」） */
  .sosu-hero .wp-block-columns { align-items: center !important; justify-content: center; gap: 4em; margin-bottom: 0; }
  .sosu-hero .wp-block-column:not(:has(.sosu-exploded)) { flex: 0 1 540px !important; }
  .sosu-hero .wp-block-column:has(.sosu-exploded) { flex: 0 1 auto !important; display: flex; align-items: center; justify-content: flex-start; gap: 3.5em; }
  .post_content > .sosu-hero > * { padding-left: 24px; padding-right: 24px; }
  .sosu-hero .wp-block-column:has(.sosu-exploded) > .sosu-exploded { flex: 0 0 auto; width: min(560px, 62vh, 34vw); min-width: 0; }
  .sosu-hero .wp-block-column:has(.sosu-exploded) > .sosu-layers { flex: 0 0 220px; }
  .sosu-hero .sosu-exploded__stage { max-width: min(560px, 62vh); }
}

/* 日本語のページ：太めのゴシック（Noto Sans JP）にそろえる。ロゴだけはそのまま（2026-11-15 MASA） */
html[lang="ja"] {
  --sosu-body: 'Noto Sans JP', sans-serif;
  --sosu-head: 'Noto Sans JP', sans-serif;
}
html[lang="ja"] body { font-family: 'Noto Sans JP', sans-serif; font-weight: 500; }
html[lang="ja"] .post_content h1, html[lang="ja"] .post_content h1.wp-block-heading { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; letter-spacing: 0.02em; }
html[lang="ja"] .post_content h2, html[lang="ja"] .c-pageTitle, html[lang="ja"] .c-postTitle__ttl { font-family: 'Noto Sans JP', sans-serif; font-weight: 900; letter-spacing: 0.04em; }
html[lang="ja"] .post_content h3, html[lang="ja"] .post_content h4 { font-family: 'Noto Sans JP', sans-serif; font-weight: 700; }
html[lang="ja"] .post_content strong, html[lang="ja"] .post_content b { font-weight: 700; }
html[lang="ja"] .c-gnav > .menu-item > a, html[lang="ja"] .l-footer, html[lang="ja"] .wp-block-button__link { font-family: 'Noto Sans JP', sans-serif; font-weight: 500; }

/* 4列の見出し（What's inside など）：見出しが2行になっても、下線と説明の行がそろうように（2026-11-15 MASA 注釈「行を揃える」） */
@media (min-width: 782px) {
  .post_content .wp-block-columns:has(> .wp-block-column:nth-child(4)) > .wp-block-column > h3.wp-block-heading:first-child { min-height: 2.9em; display: flex; align-items: flex-end; }
}

/* 日本語の改行：文節（意味のまとまり）で折り返す。見出しは行の長さをそろえる（2026-11-15 MASA）。Safari は functions.php の BudouX で同じにする */
html[lang="ja"] .post_content :is(h1, h2, h3, h4, p, li, figcaption), html[lang="ja"] .post_content .wp-block-button__link { word-break: auto-phrase; text-wrap: pretty; }
html[lang="ja"] .post_content :is(h1, h2, h3) { text-wrap: balance; }

/* 日本語のページの一番上（FV）：見出しと文を大きく（2026-11-15 MASA「日本語ページの FV が小さい」） */
html[lang="ja"] .sosu-hero h1.wp-block-heading { font-size: clamp(38px, 4.8vw, 72px); line-height: 1.22; letter-spacing: 0.01em; }
html[lang="ja"] .sosu-hero .wp-block-column:not(:has(.sosu-exploded)) p { font-size: 17px; line-height: 1.85; }
html[lang="ja"] .sosu-hero .wp-block-column:not(:has(.sosu-exploded)) p:first-child { font-size: 13px; }
@media (max-width: 781px) {
  html[lang="ja"] .sosu-hero h1.wp-block-heading { font-size: clamp(34px, 9.6vw, 44px); }
  html[lang="ja"] .sosu-hero .wp-block-column:not(:has(.sosu-exploded)) p { font-size: 16px; }
}

/* 固定ページのページ名（Open days など）は見た目では出さない（2026-11-15 MASA）。
   検索エンジンと読み上げには h1 として残す（消すとページの一番大きな見出しが無くなるため） */
#body_wrap.page .c-pageTitle {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 英語の改行（とくにスマホ）：見出しは行の長さをそろえ、本文は最後の行に1語だけ残らないように（2026-11-15 MASA「SP の英語の改行が微妙」） */
.post_content :is(h1, h2, h3, h4) { text-wrap: balance; }
.post_content :is(p, li, figcaption) { text-wrap: pretty; }

/* パンくず（Home > Access）：白い帯が浮いていたので、ベージュの地にそろえる（2026-11-16） */
.p-breadcrumb, .p-breadcrumb.-bg-on { background: transparent !important; box-shadow: none !important; border-top: 1px solid rgba(28, 26, 23, .15); }
