/* ============================================================
   神戸 牛かつ亭 公式サイト
   デザイントークン: ロゴ朱 #b5231c ／ 墨 #1c1713 ／ 生成り #faf7f1
   ============================================================ */
:root {
  --red: #b5231c;
  --red-dark: #8f1a15;
  --sumi: #1c1713;
  --ink: #33291f;
  --paper: #faf7f1;
  --paper-dark: #f1ebe0;
  --line: #ded5c6;
  --gold: #a98445;
  --serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --maxw: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
:lang(en) body, body:lang(en) { line-height: 1.7; }

/* ---------- header（U1: スマホ56px／ロゴ＋言語ドロップダウン＋ハンバーガー。日本語・多言語で同型） ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 8px 0 16px; height: 56px;
  display: flex; align-items: center; gap: 6px; position: relative;
}
.header-logo { margin-right: auto; display: block; }
.header-logo img { height: 32px; width: auto; }
.nav-desktop { display: none; }
.hd-drop > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.hd-drop > summary::-webkit-details-marker { display: none; }
.hd-lang > summary {
  font-size: 13px; color: #5d5245; border: 1px solid var(--line); border-radius: 18px;
  padding: 0 12px; height: 40px; white-space: nowrap;
}
.hd-lang[open] > summary, .hd-lang > summary:hover { border-color: var(--red); color: var(--red); }
.hd-menu > summary { width: 44px; height: 44px; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.burger, .burger::before, .burger::after {
  display: block; width: 22px; height: 2px; background: var(--sumi); border-radius: 1px; transition: transform .2s, background .2s;
}
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.hd-menu[open] .burger { background: transparent; }
.hd-menu[open] .burger::before { transform: translateY(7px) rotate(45deg); }
.hd-menu[open] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.hd-pop {
  position: absolute; top: calc(100% + 1px); right: 8px; min-width: 220px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 12px 28px rgba(28,23,19,.16); padding: 6px 0; list-style: none;
}
.hd-pop a { display: block; padding: 11px 18px; color: var(--sumi); text-decoration: none; font-size: 15px; line-height: 1.5; }
.hd-pop a:hover { color: var(--red); background: var(--paper); }
.hd-pop a[aria-current] { color: var(--red); font-weight: 700; }
@media (min-width: 900px) {
  .header-inner { height: 64px; padding: 0 20px; gap: 20px; }
  .header-logo img { height: 40px; }
  .nav-desktop { display: flex; gap: 20px; }
  .nav-desktop a {
    color: var(--sumi); text-decoration: none; font-size: 14px; font-weight: 500;
    padding: 4px 2px; border-bottom: 2px solid transparent;
  }
  .nav-desktop a:hover, .nav-desktop a[aria-current="page"] { border-bottom-color: var(--red); }
  .hd-menu { display: none; }
}
[id] { scroll-margin-top: 72px; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--sumi); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
/* D1 案A: 断面が主役。文字は下部グラデーション上（D2: 文字の上端でも黒68%前後を重ね、白背景相当でも4.5:1以上） */
.hero-a { height: clamp(380px, 112vw, 480px); }
.hero-a picture { position: absolute; inset: 0; }
.hero-a .hero-img { opacity: 1; object-position: 50% 42%; }
.hero-a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,14,10,0) 26%, rgba(20,14,10,.68) 54%, rgba(20,14,10,.92) 100%);
}
.hero-a .hero-inner {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px 22px;
}
.hero-catch {
  font-family: var(--serif); font-size: clamp(27px, 7.4vw, 46px);
  font-weight: 600; line-height: 1.45; letter-spacing: .04em; text-wrap: balance;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.hero-sub {
  margin-top: 8px; font-size: clamp(14px, 3.7vw, 17px); letter-spacing: .02em; line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,.5); max-width: 640px;
}
.hero-c { height: clamp(300px, 86vw, 440px); }
.hero-c::after { background: linear-gradient(180deg, rgba(20,14,10,0) 8%, rgba(20,14,10,.66) 38%, rgba(20,14,10,.92) 100%); }
@media (min-width: 761px) {
  .hero-a { height: 500px; }
  .hero-a .hero-img { object-position: 50% 50%; }
  .hero-a .hero-inner { padding-bottom: 36px; }
  .hero-c { height: 440px; }
}

/* 事実帯（U3・D1） */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-bottom: 1px solid var(--line);
  padding: 0 max(0px, calc((100% - var(--maxw)) / 2));
}
.facts > div { text-align: center; padding: 12px 4px 10px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts b {
  display: block; font-family: var(--serif); color: var(--red); font-weight: 700;
  font-size: clamp(17px, 5vw, 26px); line-height: 1.3; letter-spacing: .02em; white-space: nowrap;
}
.facts span { display: block; font-size: 11.5px; color: #5d5245; line-height: 1.5; }

/* 大CTA（D1・D5） */
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: var(--maxw); margin: 0 auto; padding: 16px 16px 14px; }
.btn-cta {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px;
  padding: 8px 10px; border-radius: 6px; font-weight: 700; font-size: 15px; line-height: 1.35;
  text-decoration: none; letter-spacing: .04em;
}
.btn-cta-p { background: var(--red); color: #fff; }
.btn-cta-p:hover { background: var(--red-dark); }
.btn-cta-s { background: #fff; color: var(--sumi); border: 1.5px solid var(--sumi); }
.btn-cta-s:hover { border-color: var(--red); color: var(--red); }
@media (min-width: 761px) {
  .hero-cta { grid-template-columns: repeat(2, minmax(0, 300px)); padding: 20px 20px 16px; }
}

/* D5 案C: 多言語1画面目（価格特大＋主CTA Google地図） */
.tf-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 16px 2px; }
.tf-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.tf-price b { font-family: var(--serif); color: var(--red); font-size: clamp(38px, 11vw, 54px); line-height: 1.1; font-weight: 700; letter-spacing: .01em; }
.tf-suf { font-family: var(--serif); color: var(--red); font-size: 20px; font-weight: 700; margin-left: -6px; }
.tf-sub { flex: 1 1 180px; font-size: 13px; color: #5d5245; line-height: 1.55; }
.tf .hero-cta { grid-template-columns: 1fr; padding: 12px 0 14px; }
@media (min-width: 761px) { .tf .hero-cta { grid-template-columns: repeat(2, minmax(0, 320px)); } }

/* U2: クイック帯（営業時間・決済・住所＝地図・電話） */
.quick { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-inner {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: 1fr auto; grid-template-areas: "hours tel" "pay pay" "addr addr";
}
.q { display: block; min-width: 0; padding: 9px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.q-hours { grid-area: hours; border-right: 1px solid var(--line); }
.q-tel { grid-area: tel; }
.q-pay { grid-area: pay; }
.q-addr { grid-area: addr; border-bottom: 0; }
.q-link:hover { background: var(--paper); }
.q-l { display: block; font-size: 11px; color: #6d6154; font-weight: 700; letter-spacing: .06em; line-height: 1.6; }
.q-v { display: block; font-size: 13px; line-height: 1.6; }
.q-v b { color: var(--red); white-space: nowrap; }
.q-telnum { font-size: 17px; font-weight: 700; color: var(--red); white-space: nowrap; font-feature-settings: "tnum"; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.chips span { font-size: 11.5px; line-height: 1.75; padding: 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); white-space: nowrap; }
@media (min-width: 900px) {
  .quick-inner { grid-template-columns: 1fr 1.5fr 1.3fr auto; grid-template-areas: "hours pay addr tel"; }
  .q { border-bottom: 0; border-right: 1px solid var(--line); padding: 12px 18px; }
  .q-tel { border-right: 0; }
}

/* ---------- sections ---------- */
main section { padding: 64px 20px; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-alt { background: var(--paper-dark); }
.section-white { background: #fff; }
h2.sec-title {
  font-family: var(--serif); font-size: clamp(22px, 3.4vw, 30px); color: var(--sumi);
  letter-spacing: .04em; margin-bottom: 8px; line-height: 1.5; text-wrap: balance;
}
.sec-title::before {
  content: ""; display: block; width: 44px; height: 3px; background: var(--red); margin-bottom: 14px;
}
.sec-lead { color: #5d5245; margin-bottom: 34px; max-width: 760px; }
h3 { font-family: var(--serif); font-size: 19px; letter-spacing: .04em; color: var(--sumi); margin: 28px 0 10px; text-wrap: balance; }

/* ---------- entry cards (top) ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.entry-card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.entry-card:hover { box-shadow: 0 10px 28px rgba(28,23,19,.14); transform: translateY(-2px); }
.entry-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.entry-card .ec-body { padding: 20px 22px 24px; }
.entry-card h3 { margin: 0 0 8px; font-size: 20px; }
.entry-card h3 span { color: var(--red); margin-right: 8px; font-size: 15px; }
.entry-card p { font-size: 14px; color: #5d5245; }
.entry-card .ec-more { margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--red); }

/* ---------- feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.feature-row.rev { direction: rtl; } .feature-row.rev > * { direction: ltr; }
.feature-row img { border-radius: 6px; }
@media (max-width: 760px) { .feature-row { grid-template-columns: 1fr; } }

.num-points { list-style: none; display: grid; gap: 14px; margin-top: 20px; }
.num-points li { display: flex; gap: 14px; align-items: baseline; }
.num-points .np-n { font-family: var(--serif); color: var(--red); font-size: 22px; font-weight: 700; min-width: 34px; }

/* ---------- menu tables ---------- */
.menu-block { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 26px 28px; margin-bottom: 24px; }
.menu-block h3 { margin-top: 0; }
table.menu { width: 100%; border-collapse: collapse; font-size: 15px; }
table.menu td { padding: 9px 4px; border-bottom: 1px dotted var(--line); vertical-align: top; }
table.menu td.price { text-align: right; white-space: nowrap; font-weight: 700; color: var(--sumi); font-feature-settings: "tnum"; }
table.menu td .note { display: block; font-size: 12.5px; color: #837563; }
.menu-note { font-size: 12.5px; color: #837563; margin-top: 12px; }
.price-tag { font-family: var(--serif); color: var(--red); font-weight: 700; }

/* ---------- info / access ---------- */
.info-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.info-table th, .info-table td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
.info-table th { background: var(--paper-dark); font-family: var(--serif); white-space: nowrap; width: 9em; font-weight: 600; }
.pay-list { list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.pay-list li::before { content: "◉"; color: var(--red); margin-right: 8px; font-size: 11px; }

/* ---------- notice (MR) ---------- */
.mr-notice { background: #fff; border: 2px solid var(--red); border-radius: 6px; padding: 22px 26px; }
.mr-notice h3 { margin-top: 0; color: var(--red-dark); font-size: 17px; }
.mr-notice p { font-size: 14px; margin-bottom: 10px; }
.mr-notice p b { color: var(--red-dark); }
.mr-notice p:last-child { margin-bottom: 0; }
.mr-notice .lang-label { display: inline-block; background: var(--paper-dark); color: #6d6154; border-radius: 3px; font-size: 11px; padding: 0 6px; margin-right: 8px; vertical-align: middle; }

/* ---------- rule box (bento) ---------- */
.rule-box { background: #fff; border: 2px solid var(--sumi); border-radius: 6px; padding: 26px 30px; }
.rule-box h3 { margin-top: 0; }
.rule-box ol { margin-left: 1.3em; display: grid; gap: 10px; font-size: 15.5px; }
.rule-box li::marker { color: var(--red); font-weight: 700; }
.rule-box .strong { font-weight: 700; color: var(--red-dark); }

/* ---------- form ---------- */
.order-form { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 30px 32px; max-width: 720px; }
.order-form .of-row { margin-bottom: 18px; }
.order-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.order-form label .req { color: var(--red); font-size: 11.5px; border: 1px solid var(--red); border-radius: 3px; padding: 0 5px; margin-left: 8px; vertical-align: middle; }
.order-form input, .order-form select, .order-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c9beac; border-radius: 4px;
  font: inherit; font-size: 15px; background: var(--paper);
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { outline: 2px solid var(--red); background: #fff; }
.of-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .of-grid2 { grid-template-columns: 1fr; } }
.btn-primary {
  display: inline-block; background: var(--red); color: #fff; border: none; cursor: pointer;
  text-decoration: none;
  font: inherit; font-weight: 700; font-size: 16.5px; letter-spacing: .1em;
  padding: 14px 46px; border-radius: 4px; transition: background .2s;
}
.btn-primary:hover { background: var(--red-dark); }
.btn-primary:disabled { background: #b0a493; cursor: wait; }
.form-msg { margin-top: 16px; font-size: 14.5px; display: none; padding: 14px 16px; border-radius: 4px; }
.form-msg.ok { display: block; background: #eef5ec; border: 1px solid #5b8c50; color: #2f5528; }
.form-msg.ng { display: block; background: #faeeed; border: 1px solid var(--red); color: var(--red-dark); }
.form-warn { margin-top: 6px; font-size: 13px; color: var(--red-dark); font-weight: 700; display: none; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 820px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0; }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; font-size: 15.5px;
  display: flex; gap: 12px; align-items: baseline;
}
.faq-list summary::before { content: "Q"; color: var(--red); font-family: var(--serif); font-size: 18px; }
.faq-list details p { padding: 0 20px 18px 46px; font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sumi); color: #fff; text-align: center; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(20px, 3vw, 27px); letter-spacing: .05em; text-wrap: balance; margin-bottom: 14px; }
.cta-band p { opacity: .85; font-size: 14.5px; }
.cta-band .tel {
  font-family: var(--serif); font-size: clamp(26px, 5vw, 38px); color: #fff;
  text-decoration: none; letter-spacing: .06em; display: inline-block; margin: 10px 0 4px;
}
.cta-band .tel small { font-size: 14px; margin-right: 10px; color: #cbbfae; }

/* ---------- footer ---------- */
.site-footer { background: #14100d; color: #cfc5b6; font-size: 13.5px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 48px 20px 26px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; }
.site-footer h4 { color: #fff; font-family: var(--serif); font-size: 15px; margin-bottom: 12px; letter-spacing: .08em; }
.site-footer a { color: #e3d9c9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-nav li { list-style: none; margin-bottom: 6px; }
.footer-legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid #3a322a; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #9a8f80; }
address { font-style: normal; }

/* ---------- breadcrumb ---------- */
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: 14px 20px 0; font-size: 12.5px; color: #837563; }
.breadcrumb a { color: #837563; }
.breadcrumb span { margin: 0 6px; }

/* ---------- page hero (sub pages) ---------- */
.page-hero { position: relative; color: #fff; background: var(--sumi); overflow: hidden; }
.page-hero picture { position: absolute; inset: 0; }
.page-hero .hero-img { opacity: .36; } /* D2: 白文字のコントラスト確保 */
.page-hero .ph-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 64px 20px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(24px, 4vw, 36px); letter-spacing: .05em; text-wrap: balance; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.page-hero p { margin-top: 10px; max-width: 640px; font-size: 14.5px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }

@media (max-width: 760px) {
  main section { padding: 48px 18px; }
}

/* ---------- U7 ご注文の流れ ---------- */
.flow3 { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.flow3 li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; font-size: 15px; line-height: 1.75; }
.of-n { flex: none; width: 30px; height: 30px; margin-top: 1px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; display: grid; place-items: center; line-height: 1; }
@media (min-width: 761px) { .flow3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- D4 電話ボタン（番号を折り返さない） ---------- */
.btn-tel { display: inline-flex; flex-direction: column; align-items: center; max-width: 100%; padding: 10px 30px 12px; letter-spacing: .04em; line-height: 1.4; }
.btn-tel small { font-size: 13px; font-weight: 500; }
.btn-tel .tel-num { font-size: clamp(20px, 6vw, 24px); white-space: nowrap; font-feature-settings: "tnum"; letter-spacing: .03em; }

/* ---------- 地図リンク ---------- */
.map-link { margin-top: 16px; }
.btn-outline { display: inline-block; border: 1.5px solid var(--red); color: var(--red); background: #fff; border-radius: 6px; padding: 10px 18px; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.btn-outline:hover { background: var(--red); color: #fff; }

/* ---------- D3 欧文見出しの字間／D6 韓国語見出しの書体 ---------- */
:lang(en) :is(h1, h2, h3, .hero-catch) { letter-spacing: .01em; }
:lang(ko) :is(h1, h2, h3, h4) { font-family: "Noto Serif KR", var(--serif); letter-spacing: 0; word-break: keep-all; }

/* 短い説明文の孤立文字を防ぐ（事実帯・クイック帯） */
.facts span, .q-v, .tf-sub, .hero-sub { text-wrap: balance; }
:lang(ja) :is(.facts span, .q-v, .hero-sub, h1, h2, h3) { word-break: auto-phrase; }
/* 中国語の見出しは <wbr> の位置でのみ改行（「牛／肉」のような語中改行を防ぐ）。韓国語は語単位で改行 */
:lang(zh-Hant) .hero-catch, :lang(zh-Hans) .hero-catch { word-break: keep-all; }
html:lang(ko) { word-break: keep-all; }

/* 画面外のセクションは見えるまでレイアウトしない（日本語の字形処理が重く、初回描画＝LCPを遅らせるため） */
/* 注: content-visibility は contain を伴うため、セクション外へはみ出す装飾・ツールチップは切り取られる */
main section, .site-footer { content-visibility: auto; contain-intrinsic-block-size: auto 640px; }
/* アンカー付きURL（/eatin/#menu 等）で開いた時は通常レイアウトにして着地位置を正確にする */
.cv-off main section, .cv-off .site-footer { content-visibility: visible; }

@media print { main section, .site-footer { content-visibility: visible; } }
