/* ============================================================
   C｜ナンバリング・余白
   参考: https://www.soujyu.megaminomori.com/

   採り入れた考え方
     - 見出しを「01 ——————— お品書き」の番号付き1行にする
     - 写真は画面の端まで流し、反対側にクリーム色のテキスト面を置く
     - リード文は明朝の縦書き。装飾は髪の毛のような細い罫線だけ
     - 余白を大きく取り、色は生成り・薄墨・炭の3色に絞る

   HTML構造は design1 と共通。ここはCSSだけで組み替えている。
   管理画面で保存した配色（<style>の動的CSS）より後に効かせる必要があるため、
   テーマが主導権を持つべき箇所は body.theme-design3 で詳細度を上げ、
   インラインstyleが付く箇所（feature/menu の色設定）だけ !important を使う。
   ============================================================ */

body.theme-design3 {
  --c3-ink: #33302a;      /* 本文 */
  --c3-sub: #8b8578;      /* 補助テキスト・英字キャプション */
  --c3-line: #d9d4c8;     /* 髪の毛罫 */
  --c3-paper: #faf8f3;    /* 地色（温かみのある生成り） */
  --c3-cream: #fffdf6;    /* テキスト面 */
  --c3-band: #f1efea;     /* 帯・グレー面 */
  --c3-dark: #3a3833;     /* フッター・反転面 */

  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  color: var(--c3-ink);
  background: var(--c3-paper);
  letter-spacing: .04em;
}

body.theme-design3 .front__page {
  background: var(--c3-paper) !important;
}

/* 番号の起点。トップページだけ採番する（下層ページは通し番号を出さない） */
body.theme-design3.home .front__page { counter-reset: c3sec; }

/* ============================================================
   ヘッダー（PC）— 写真に溶ける薄いグラデーションだけ
   ============================================================ */
@media screen and (min-width: 769px) {
  body.theme-design3 .header {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
    background-color: transparent;
  }
  body.theme-design3 .header__main { margin: 20px 0; }
  body.theme-design3 .header__logo { padding-left: 42px; }
  body.theme-design3 .header__right { margin-right: 46px; }
  body.theme-design3 .header__right-top { margin-bottom: 18px; }
  body.theme-design3 .header__right-top-text { font-size: 11px; letter-spacing: .18em; }
  body.theme-design3 .gnavi__list { margin-left: 40px; }
  body.theme-design3 .gnavi__list .gnavi__ja {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .22em;
  }
  body.theme-design3 .gnavi__list p {
    font-size: 9px;
    letter-spacing: .26em;
    margin-top: 5px;
    color: rgba(255, 255, 255, .6);
  }
  /* 予約だけ細い枠で少し立てる */
  body.theme-design3 .gnavi__list--reserve a {
    border: 1px solid rgba(255, 255, 255, .55);
    padding: 8px 20px 6px;
  }
  body.theme-design3 .gnavi__list--reserve p { display: none; }
}

/* ============================================================
   ファーストビュー — 電話プレートは箱をやめ、左下のグラデーションに乗せる
   ============================================================ */
body.theme-design3 .firstview__text {
  background-color: transparent !important;
  background-image: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
  right: auto;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 90px 56px 28px;
  text-align: left;
  letter-spacing: .16em;
}
body.theme-design3 .firstview__text p { font-size: 12px; opacity: .85; }
body.theme-design3 .firstview__tel { font-size: 27px; letter-spacing: .06em; }
body.theme-design3 .firstview__tel span { font-size: 15px; }
/* 左下を電話に使うので、縦書きのコピーライトは右端へ逃がす */
body.theme-design3 .copyright { left: auto; right: 26px; top: 34%; opacity: .8; }

@media screen and (max-width: 768px) {
  body.theme-design3 .firstview__text { padding: 60px 22px 18px; }
  body.theme-design3 .firstview__tel { font-size: 19px; }
}

/* ============================================================
   セクション見出し — 「01 ——————— お品書き」
   .menu__title / .news__top-left / .feature__message h2 の3種を同じ形にそろえる
   ============================================================ */
body.theme-design3 .menu__title,
body.theme-design3 .news__top-left,
body.theme-design3 .feature__message {
  max-width: 1180px;
  width: 88%;
  margin: 0 auto;
  text-align: left;
  background-image: none;
}
body.theme-design3 .menu__title { padding: 128px 0 56px; }
body.theme-design3 .about__wrapper .menu__title { padding: 128px 0 56px; }
body.theme-design3 .faq__wrapper .menu__title { padding: 40px 0 40px; }
body.theme-design3 .news__wrapper { max-width: none; width: 100%; margin: 0; padding: 118px 0 40px; }
body.theme-design3 .news__top { display: block; margin-bottom: 0; }

body.theme-design3.home .menu__title h2,
body.theme-design3.home .news__top-left h2,
body.theme-design3.home .feature__message h2 {
  display: flex;
  align-items: center;
  gap: 30px;
  position: static;
  font-size: clamp(27px, 3.1vw, 44px);
  font-weight: 400;
  letter-spacing: .18em;
  line-height: 1.4;
  margin: 0;
  color: var(--c3-ink);
}
/* ::before = 通し番号、::after = 見出しへ伸びる細罫。どちらも order:-1 で本文の前に置く */
body.theme-design3.home .menu__title h2::before,
body.theme-design3.home .news__top-left h2::before,
body.theme-design3.home .feature__message h2::before {
  counter-increment: c3sec;
  content: counter(c3sec, decimal-leading-zero);
  order: -1;
  position: static;
  transform: none;
  width: auto;
  height: auto;
  background: none;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: .06em;
  color: var(--c3-sub);
}
body.theme-design3.home .menu__title h2::after,
body.theme-design3.home .news__top-left h2::after,
body.theme-design3.home .feature__message h2::after {
  content: "";
  order: -1;
  position: static;
  transform: none;
  flex: 0 1 clamp(70px, 20vw, 330px);
  width: auto;
  height: 1px;
  background-color: var(--c3-line);
}
/* 英字キャプションは番号の分だけ字下げして見出しの下に置く */
body.theme-design3 .menu__title p,
body.theme-design3 .news__top-left p {
  font-size: 12px;
  letter-spacing: .36em;
  color: var(--c3-sub);
  margin: 16px 0 0;
  padding-left: 2px;
}

@media screen and (max-width: 768px) {
  body.theme-design3 .menu__title,
  body.theme-design3 .about__wrapper .menu__title { padding: 74px 0 34px; width: 88%; }
  body.theme-design3 .news__wrapper { padding: 70px 0 24px; }
  body.theme-design3.home .menu__title h2,
  body.theme-design3.home .news__top-left h2,
  body.theme-design3.home .feature__message h2 { font-size: 25px; gap: 16px; }
  body.theme-design3.home .menu__title h2::before,
  body.theme-design3.home .news__top-left h2::before,
  body.theme-design3.home .feature__message h2::before { font-size: 18px; }
  body.theme-design3.home .menu__title h2::after,
  body.theme-design3.home .news__top-left h2::after,
  body.theme-design3.home .feature__message h2::after { flex-basis: 34px; }
}

/* ============================================================
   お知らせ — 罫線だけの一覧。カードは枠を外して余白で仕切る
   ============================================================ */
body.theme-design3 .news__list,
body.theme-design3 .news__more,
body.theme-design3 .news__sub,
body.theme-design3 .news__carousel {
  max-width: 1180px;
  width: 88%;
  margin-left: auto;
  margin-right: auto;
}
body.theme-design3 .news__list { margin-top: 34px; }
body.theme-design3 .news__item,
body.theme-design3 .news__item:first-child { border-color: var(--c3-line); }
body.theme-design3 .news__item-title { letter-spacing: .06em; }
body.theme-design3 .news__more a {
  text-decoration: none;
  border-bottom: 1px solid var(--c3-line);
  padding-bottom: 6px;
  letter-spacing: .2em;
  font-size: 12px;
}
body.theme-design3 .news__card .news__box {
  background: var(--c3-cream);
  border: 0;
  border-top: 1px solid var(--c3-line);
  padding-bottom: 26px;
}
body.theme-design3 .news__card-title { font-weight: 400; letter-spacing: .08em; }
body.theme-design3 .news__arrow { border-color: var(--c3-line); background: transparent; }
body.theme-design3 .news__dot.is-current::before { background: var(--c3-ink); border-color: var(--c3-ink); }

/* ============================================================
   こだわり — 画面の端まで流す写真 ＋ クリーム色のテキスト面
   リード文（.feature__message p）は明朝の縦書きにする
   ============================================================ */
body.theme-design3 .feature__wrapper {
  background-color: var(--c3-paper) !important;
  background-image: none !important;
  padding-bottom: 10px;
}
body.theme-design3 .feature__message {
  writing-mode: horizontal-tb;
  height: auto;
  padding: 128px 0 0;
  color: var(--c3-ink);
  /* 見出しは左端から、縦書きのリード文は中央に置く */
  display: flex;
  flex-direction: column;
}
body.theme-design3 .feature__message p {
  writing-mode: vertical-rl;
  align-self: center;
  font-size: 18px;
  line-height: 2.4;
  letter-spacing: .2em;
  margin: 52px 0 0;
  max-height: min(26em, 62vh);
  color: var(--c3-ink) !important;
}

/* 画像とテキストは全幅ではなく、見出しと同じ内枠（1180px / 88%）に収める。
   PCで横に間延びして見えるのを防ぐため */
body.theme-design3 .feature__content { margin-top: 64px; }
body.theme-design3 .feature__box {
  display: grid;
  grid-template-columns: 52fr 48fr;
  align-items: stretch;
  gap: 0;
  max-width: 1180px;
  width: 88%;
  margin: 0 auto 34px;
  padding-bottom: 0;
  color: var(--c3-ink);
}
body.theme-design3 .feature__content .feature__box:last-child { margin-bottom: 0; }
body.theme-design3 .feature__box-img { width: auto; }
body.theme-design3 .feature__box-img img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 430px;
  object-fit: cover;
  border-radius: 0;
}
body.theme-design3 .feature__box-text {
  width: auto;
  margin: 0;
  background: var(--c3-cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 4vw, 56px) clamp(28px, 3.6vw, 54px);
}
body.theme-design3 .feature__content .feature__box:nth-child(2n) .feature__box-text { margin: 0; }
/* 偶数番は写真を右端へ */
body.theme-design3 .feature__content .feature__box:nth-child(2n) .feature__box-img { order: 2; }
body.theme-design3 .feature__content .feature__box:nth-child(2n) .feature__box-text { order: 1; }
body.theme-design3 .feature__box-text h3 {
  font-family: inherit;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: .16em;
  line-height: 1.7;
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c3-line);
  color: var(--c3-ink) !important;
}
body.theme-design3 .feature__box-text p {
  font-size: 14.5px;
  line-height: 2.35;
  letter-spacing: .06em;
  color: var(--c3-ink) !important;
}

@media screen and (max-width: 768px) {
  body.theme-design3 .feature__message { padding-top: 74px; width: 88%; }
  body.theme-design3 .feature__message p {
    writing-mode: horizontal-tb;
    align-self: stretch;
    max-height: none;
    font-size: 15px;
    line-height: 2.1;
    letter-spacing: .06em;
    margin-top: 24px;
  }
  body.theme-design3 .feature__content { margin-top: 34px; }
  body.theme-design3 .feature__box,
  body.theme-design3 .feature__content .feature__box:nth-child(2n) {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 26px;
    padding-bottom: 0;
  }
  body.theme-design3 .feature__box-img,
  body.theme-design3 .feature__content .feature__box:nth-child(2n) .feature__box-img {
    order: 0;
    max-width: none;
    width: 100%;
  }
  body.theme-design3 .feature__box-img img { min-height: 0; height: 58vw; max-height: none; }
  /* 基本CSSの display:contents を戻して、クリーム面を1枚のカードとして残す */
  body.theme-design3 .feature__box-text {
    display: block;
    width: auto;
    padding: 34px 22px 46px;
  }
  body.theme-design3 .feature__box-text h3 { font-size: 19px; margin-bottom: 18px; padding-bottom: 16px; }
  body.theme-design3 .feature__box-text p { width: auto; margin: 0; font-size: 14px; }
}

/* ============================================================
   お品書き — 段差をつけた3列のギャラリー
   ============================================================ */
body.theme-design3 .menu__wrapper {
  background-color: var(--c3-band) !important;
  background-image: none !important;
  padding-bottom: 110px;
}
body.theme-design3 .menu__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  max-width: 1180px;
  width: 88%;
  margin: 0 auto;
}
body.theme-design3 .menu__box {
  position: static;
  max-width: none;
  width: auto;
  margin: 0 !important;
}
body.theme-design3 .menu__inbox { display: block; }
body.theme-design3 .menu__inbox-left { width: 100%; overflow: hidden; }
body.theme-design3 .menu__inbox-left img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .8s ease;
}
body.theme-design3 .menu__box:hover .menu__inbox-left img { transform: scale(1.05); }
/* page01.css は :nth-child(2n) / :nth-child(3) でお品書きの位置を個別に指定している。
   カードのグリッドへ組み替えるため、幅・余白・高さは !important で明示的に打ち消す。 */
body.theme-design3 .menu__inbox-right {
  writing-mode: horizontal-tb;
  position: static;
  width: auto !important;
  margin: 0 !important;
  padding-top: 20px;
}
body.theme-design3 .menu__inbox-right-color {
  writing-mode: horizontal-tb;
  background-color: transparent !important;
  color: var(--c3-ink) !important;
  font-family: inherit;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: .12em;
  display: block;
  width: auto !important;
  padding: 0 0 14px;
  margin: 0 !important;
  border-bottom: 1px solid var(--c3-line);
  /* 品名が1行でも2行でも、価格と説明の開始位置が横一線に並ぶようにする */
  min-height: calc(1.55em * 2);
}
body.theme-design3 .menu__inbox-right-white {
  background-color: transparent !important;
  height: auto !important;
  margin: 0 !important;
  padding: 14px 0 0;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .04em;
}
body.theme-design3 .menu__price {
  color: var(--c3-ink) !important;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
body.theme-design3 .menu__text { display: none; }

body.theme-design3 .menu__button a {
  background-color: transparent !important;
  color: var(--c3-ink) !important;
  max-width: none;
  width: 88%;
  border-radius: 0;
  border: 0;
  padding: 0;
  margin: 76px auto 0;
  justify-content: flex-end;
  gap: 18px;
}
body.theme-design3 .menu__button a p {
  font-size: 12px;
  letter-spacing: .26em;
  margin: 0;
  border-bottom: 1px solid var(--c3-line);
  padding-bottom: 8px;
  min-width: 190px;
  text-align: center;
}

@media screen and (max-width: 900px) {
  body.theme-design3 .menu__content { grid-template-columns: repeat(2, 1fr); gap: 44px 26px; }
}
@media screen and (max-width: 560px) {
  body.theme-design3 .menu__content { grid-template-columns: 1fr; gap: 40px; }
  body.theme-design3 .menu__inbox-left img { height: 56vw; }
  body.theme-design3 .menu__wrapper { padding-bottom: 70px; }
  body.theme-design3 .menu__button a { margin-top: 46px; justify-content: center; }
}

/* ============================================================
   店舗のご案内 — 罫線で仕切った情報表と、彩度を落とした地図
   ============================================================ */
body.theme-design3 .about__content {
  background: var(--c3-paper);
  max-width: 1180px;
  width: 88%;
  margin: 0 auto 96px;
}
body.theme-design3 .about__icons { margin: 54px 0 0; }
body.theme-design3 .about__icons-box {
  align-items: flex-start;
  padding: 26px 0;
  margin-bottom: 0;
  border-top: 1px solid var(--c3-line);
}
body.theme-design3 .about__icons-box-img {
  background: transparent;
  border-radius: 0;
  max-width: 34px;
  min-width: 34px;
  height: auto;
  justify-content: flex-start;
  padding-top: 2px;
}
body.theme-design3 .about__icons-box-img svg { width: 20px; height: 20px; color: var(--c3-sub); }
body.theme-design3 .about__icons-box-text h3 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--c3-sub);
  margin-bottom: 8px;
}
body.theme-design3 .about__icons-box-text p { font-size: 14px; font-weight: 400; line-height: 1.9; }
body.theme-design3 .about__map { width: 100%; padding-top: 46px; }
body.theme-design3 .about__map iframe { filter: grayscale(.35) contrast(.95); }

/* --- 店舗写真：1枚を大きく出す「スライダー」ではなく、
       大小を混ぜて段違いに並べる非対称のギャラリーにする（A案との差別化）--- */
body.theme-design3 .about__slider .slide {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  gap: 16px;
  overflow: visible;
}
body.theme-design3 .slide .item { display: block !important; overflow: hidden; }
body.theme-design3 .slide .item::before { display: none; }
body.theme-design3 .slide .item img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
body.theme-design3 .slide .item:hover img { transform: scale(1.04); }
/* 6枚ひとまわりで、幅・高さ・開始列を変えて律動をつくる */
body.theme-design3 .slide .item:nth-child(6n + 1) { grid-column: 1 / span 4;  height: clamp(170px, 19vw, 250px); }
body.theme-design3 .slide .item:nth-child(6n + 2) { grid-column: 6 / span 7;  height: clamp(215px, 25vw, 330px); }
body.theme-design3 .slide .item:nth-child(6n + 3) { grid-column: 1 / span 7;  height: clamp(215px, 25vw, 330px); }
body.theme-design3 .slide .item:nth-child(6n + 4) { grid-column: 9 / span 4;  height: clamp(170px, 19vw, 250px); }
body.theme-design3 .slide .item:nth-child(6n + 5) { grid-column: 2 / span 4;  height: clamp(170px, 19vw, 250px); }
body.theme-design3 .slide .item:nth-child(6n + 6) { grid-column: 7 / span 6;  height: clamp(195px, 23vw, 300px); }
/* 全点を並べるので、切り替え用のサムネイル列は不要 */
body.theme-design3 .slide-navigation { display: none; }

@media screen and (max-width: 768px) {
  body.theme-design3 .about__slider .slide { grid-template-columns: repeat(6, 1fr); gap: 10px; }
  body.theme-design3 .slide .item:nth-child(6n + 1) { grid-column: 1 / span 3; height: 34vw; }
  body.theme-design3 .slide .item:nth-child(6n + 2) { grid-column: 4 / span 3; height: 42vw; }
  body.theme-design3 .slide .item:nth-child(6n + 3) { grid-column: 1 / span 6; height: 48vw; }
  body.theme-design3 .slide .item:nth-child(6n + 4) { grid-column: 1 / span 3; height: 34vw; }
  body.theme-design3 .slide .item:nth-child(6n + 5) { grid-column: 4 / span 3; height: 34vw; }
  body.theme-design3 .slide .item:nth-child(6n + 6) { grid-column: 1 / span 6; height: 42vw; }
}

/* ============================================================
   よくあるご質問
   ============================================================ */
body.theme-design3 .faq__item { border-bottom-color: var(--c3-line); }
body.theme-design3 .faq__q { font-weight: 400; letter-spacing: .08em; }
body.theme-design3 .faq__q::before,
body.theme-design3 .faq__q::after { color: var(--c3-sub); }
body.theme-design3 .faq__item[open] .faq__q { color: var(--c3-ink); }

/* ============================================================
   フッター — 炭色。左にロゴとNAP、右にナビを寄せる
   ============================================================ */
body.theme-design3 .footer__slider { background-color: var(--c3-band); }
body.theme-design3 .footer__content {
  background-color: var(--c3-dark) !important;
  color: #efece4;
  text-align: left;
  padding: 86px 0 44px;
}
body.theme-design3 .footer__content-logo { margin: 0; max-width: 170px; }
body.theme-design3 .footer__content-text { margin: 18px 0 0; font-size: 11px; letter-spacing: .16em; opacity: .75; }
body.theme-design3 .footer__content-nav { justify-content: flex-start; margin: 0; }
body.theme-design3 .footer__content-nav a,
body.theme-design3 .footer__content-sns a,
body.theme-design3 .footer__actions__item { color: #efece4; }
body.theme-design3 .footer__content-nav a { font-size: 12px; letter-spacing: .18em; margin: 0 26px 12px 0; }
body.theme-design3 .footer__content-sns { justify-content: flex-start; margin-top: 8px; }
body.theme-design3 .footer__content-sns a { margin: 0 14px 0 0; }
body.theme-design3 .footer__text { padding: 34px 0 0; font-size: 12.5px; line-height: 2.1; opacity: .82; }
/* 電話・店舗概要・地図・最上位のピクトグラムはSP下部の固定バーが担うため、
   PCのフッターには出さない（余白で見せるC案では要素過多になる） */
body.theme-design3 .footer__actions { display: none; }
body.theme-design3 .footer__bottom { margin-top: 54px; font-size: 10px; letter-spacing: .18em; opacity: .6; }

/* PCは1180pxの内枠に収め、ロゴ／NAP／ナビを段組みにする */
@media screen and (min-width: 769px) {
  body.theme-design3 .footer__content {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    column-gap: 60px;
    max-width: 1180px;
    width: 88%;
    margin: 0 auto;
    padding: 86px 0 44px;
  }
  body.theme-design3 .footer__content > * { max-width: none; width: auto; }
  body.theme-design3 .footer__content-logo { grid-column: 1; grid-row: 1; }
  body.theme-design3 .footer__content-text { grid-column: 1; grid-row: 2; }
  body.theme-design3 .footer__text { grid-column: 2; grid-row: 1 / 3; margin: 0; padding: 0; }
  body.theme-design3 .footer__content-nav { grid-column: 3; grid-row: 1 / 3; flex-direction: column; }
  body.theme-design3 .footer__content-sns { grid-column: 3; grid-row: 3; margin-top: 26px; }
  body.theme-design3 .footer__bottom { grid-column: 1 / 4; grid-row: 4; }
  /* フッター全体を炭色で塗るため、内枠の外側も同色にする */
  body.theme-design3 #footer { background-color: var(--c3-dark); }
}
@media screen and (max-width: 768px) {
  body.theme-design3 .footer__content { padding: 60px 22px 34px; }
  body.theme-design3 .footer__text { width: auto; padding: 26px 0 0; }
}

/* ============================================================
   下層ページ（お品書き・求人など）
   ============================================================ */
body.theme-design3 .page__wrapper .menu__title { padding: 0 0 44px; text-align: left; width: 100%; }
body.theme-design3 .page__wrapper .menu__title h1 { font-size: 34px; font-weight: 400; letter-spacing: .18em; }
body.theme-design3 .page__wrapper .menu__title h1::before,
body.theme-design3 .page__wrapper .menu__title h1::after { display: none; }
body.theme-design3 .page__content table { background: var(--c3-cream); }
body.theme-design3 .page__content td,
body.theme-design3 .page__content th { border-color: var(--c3-line); }
body.theme-design3 .page__back a,
body.theme-design3 .news__top-right a {
  background-color: var(--c3-ink) !important;
  color: var(--c3-paper) !important;
  border-radius: 0;
  letter-spacing: .2em;
}
body.theme-design3 .news__top-right a::after {
  border-top-color: var(--c3-paper);
  border-right-color: var(--c3-paper);
}
