/* ============================================================
   E｜写真重ね・旅館格式
   参考: https://www.sanpou-nishimuraya.com/

   採り入れた考え方
     - ファーストビューは画面いっぱい。ナビは線も背景も持たず写真に重ねる
     - 見出しは中央に明朝、その下に小さな英字のキャプション
     - 写真を画面の端まで流し、白いテキストカードを反対の角に食い込ませる
     - セクション名は縦書きのラベルとして端に立てる
     - リンクは「長い細線 → 矢印 → read more」の形にそろえる

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

body.theme-design5 {
  --d5-ink: #26282a;       /* 墨 */
  --d5-deep: #1c2b33;      /* 藍墨（見出し・ボタン） */
  --d5-sub: #8b8781;       /* 補助テキスト */
  --d5-paper: #f5f3ef;     /* 生成りの地色 */
  --d5-card: #ffffff;      /* 重ねる白いカード */
  --d5-line: #ddd9d2;

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

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

/* ============================================================
   ヘッダー（PC）— 罫も面も持たず、写真の上に文字だけを置く
   ============================================================ */
@media screen and (min-width: 769px) {
  body.theme-design5 .header {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0));
    background-color: transparent;
  }
  body.theme-design5 .header__main { margin: 18px 0; align-items: flex-start; }
  body.theme-design5 .header__logo { padding-left: 38px; }
  body.theme-design5 .header__right { margin-right: 34px; }
  body.theme-design5 .header__right-top { margin-bottom: 16px; }
  body.theme-design5 .header__right-top-text { font-size: 11px; letter-spacing: .2em; }
  body.theme-design5 .gnavi__list { margin-left: 34px; }
  body.theme-design5 .gnavi__list .gnavi__ja {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .18em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
  }
  body.theme-design5 .gnavi__list p { display: none; }
  /* 予約だけ薄い面で持ち上げる（西村屋の「ご予約はこちら」に相当） */
  body.theme-design5 .gnavi__list--reserve { margin-left: 30px; }
  body.theme-design5 .gnavi__list--reserve a {
    background: rgba(255, 255, 255, .92);
    padding: 11px 24px;
  }
  body.theme-design5 .gnavi__list--reserve .gnavi__ja {
    color: var(--d5-deep);
    text-shadow: none;
    letter-spacing: .16em;
  }
}

/* ============================================================
   ファーストビュー — 画面いっぱい。電話は下中央に細枠のプレートで
   ============================================================ */
body.theme-design5 .firstview {
  aspect-ratio: auto;
  height: min(94vh, 940px);
  min-height: 460px;
}
body.theme-design5 .firstview__text {
  /* 写真の明るさに関係なく読めるよう、墨を敷いてから枠線を回す */
  background-color: rgba(20, 30, 36, .62) !important;
  border: 1px solid rgba(255, 255, 255, .55);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  bottom: 46px;
  margin: 0;
  padding: 18px 48px 15px;
  letter-spacing: .18em;
  backdrop-filter: blur(3px);
}
body.theme-design5 .firstview__text p { font-size: 12px; }
body.theme-design5 .firstview__tel { font-size: 25px; letter-spacing: .08em; }
body.theme-design5 .firstview__tel span { font-size: 14px; }
body.theme-design5 .copyright { left: auto; right: 24px; top: 38%; letter-spacing: .24em; }

@media screen and (max-width: 768px) {
  body.theme-design5 .firstview { height: 76vh; min-height: 400px; }
  body.theme-design5 .firstview__text { bottom: 24px; padding: 11px 22px 9px; }
  body.theme-design5 .firstview__tel { font-size: 18px; }
}

/* ============================================================
   セクション見出し — 中央に明朝、下に小さな英字
   ============================================================ */
body.theme-design5 .menu__title { background-image: none; padding: clamp(70px, 9vw, 130px) 0 clamp(34px, 4vw, 56px); }
body.theme-design5 .about__wrapper .menu__title { padding: clamp(70px, 9vw, 130px) 0 clamp(34px, 4vw, 56px); }
body.theme-design5 .menu__title h2,
body.theme-design5 .news__top-left h2 {
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: .34em;
  margin-bottom: 14px;
  text-indent: .34em; /* 字間の分だけ右にずれるので中央に戻す */
}
body.theme-design5 .menu__title h2::before,
body.theme-design5 .menu__title h2::after { display: none; }
body.theme-design5 .menu__title p,
body.theme-design5 .news__top-left p {
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--d5-sub);
  font-style: italic;
}

/* ============================================================
   お知らせ — 中央見出し。一覧は罫線のみ、カードは枠なし
   ============================================================ */
body.theme-design5 .news__wrapper { max-width: 1120px; margin: clamp(70px, 8vw, 110px) auto clamp(50px, 6vw, 90px); }
body.theme-design5 .news__top { justify-content: center; margin-bottom: 34px; }
body.theme-design5 .news__top-left { align-items: center; text-align: center; }
body.theme-design5 .news__top-left p { margin: 12px 0 0; }
body.theme-design5 .news__item,
body.theme-design5 .news__item:first-child { border-color: var(--d5-line); }
body.theme-design5 .news__item-title { font-weight: 400; letter-spacing: .06em; }
body.theme-design5 .news__card .news__box { background: transparent; border: 0; border-top: 1px solid var(--d5-line); }
body.theme-design5 .news__card-title { font-weight: 400; letter-spacing: .06em; }
body.theme-design5 .news__arrow { border-color: var(--d5-line); background: transparent; }
body.theme-design5 .news__dot.is-current::before { background: var(--d5-deep); border-color: var(--d5-deep); }

/* ============================================================
   リンクの形 — 長い細線 → 矢印 → 文字
   ============================================================ */
body.theme-design5 .news__more { text-align: center; margin-top: 34px; }
body.theme-design5 .news__more a,
body.theme-design5 .menu__button a p,
body.theme-design5 .page__back a p {
  position: relative;
  display: inline-block;
  padding-left: 116px;
  font-size: 12px;
  letter-spacing: .22em;
  text-decoration: none;
  border: 0;
  margin: 0;
}
body.theme-design5 .news__more a::before,
body.theme-design5 .menu__button a p::before,
body.theme-design5 .page__back a p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 96px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
body.theme-design5 .news__more a::after,
body.theme-design5 .menu__button a p::after,
body.theme-design5 .page__back a p::after {
  content: "";
  position: absolute;
  left: 88px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  opacity: .55;
}
body.theme-design5 .menu__button a,
body.theme-design5 .page__back a {
  background-color: transparent !important;
  color: var(--d5-ink) !important;
  max-width: none;
  width: 100%;
  min-width: 0;
  border-radius: 0;
  padding: 0;
  margin: clamp(44px, 5vw, 76px) 0 0;
  justify-content: center;
}
body.theme-design5 .page__back a { margin-top: 56px; }

/* ============================================================
   こだわり — 縦書きのセクションラベル ＋ 端まで流す写真に白いカードを重ねる
   ============================================================ */
body.theme-design5 .feature__wrapper {
  background-color: var(--d5-paper) !important;
  background-image: none !important;
  position: relative;
  padding-bottom: 10px;
}
/* リードは下に続く「写真＋テキスト」と同じ横書きにそろえ、中央に置く */
body.theme-design5 .feature__message {
  writing-mode: horizontal-tb;
  height: auto;
  max-width: 1240px;
  width: 90%;
  margin: 0 auto;
  padding: clamp(58px, 7vw, 104px) 0 clamp(24px, 3vw, 44px);
  text-align: center;
  color: var(--d5-ink);
}
/* 画面幅があるときは1行に収める。字間を詰め、枠も広げてある */
body.theme-design5 .feature__message h2 {
  font-size: clamp(19px, 2vw, 28px);
  letter-spacing: .16em;
  text-indent: .16em;
  line-height: 1.6;
  color: var(--d5-ink);
}
body.theme-design5 .feature__message p {
  writing-mode: horizontal-tb;
  max-width: 860px;
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: .08em;
  margin: 26px auto 0;
  color: var(--d5-sub) !important;
}

@media screen and (min-width: 769px) {
  body.theme-design5 .feature__box {
    position: relative;
    display: block;
    max-width: none;
    width: 100%;
    padding-bottom: clamp(70px, 9vw, 140px);
    color: var(--d5-ink);
  }
  body.theme-design5 .feature__box-img { width: 84%; margin-left: auto; }
  body.theme-design5 .feature__box-img img {
    width: 100%;
    height: clamp(300px, 42vw, 620px);
    object-fit: cover;
  }
  body.theme-design5 .feature__box-text {
    position: absolute;
    left: 3%;
    bottom: clamp(28px, 5vw, 92px);
    width: min(440px, 44%);
    margin: 0;
    padding: clamp(28px, 3.2vw, 46px);
    background: var(--d5-card);
    z-index: 2;
  }
  /* 偶数番は写真を左端へ、カードを右へ */
  body.theme-design5 .feature__content .feature__box:nth-child(2n) .feature__box-img {
    margin-left: 0;
    margin-right: auto;
  }
  body.theme-design5 .feature__content .feature__box:nth-child(2n) .feature__box-text {
    left: auto;
    right: 3%;
    margin: 0;
  }
}

body.theme-design5 .feature__box-text h3 {
  font-family: inherit;
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 400;
  letter-spacing: .18em;
  line-height: 1.7;
  margin: 0 0 18px;
  color: var(--d5-ink) !important;
}
body.theme-design5 .feature__box-text p {
  font-size: 14px;
  line-height: 2.25;
  letter-spacing: .05em;
  color: var(--d5-ink) !important;
}

@media screen and (max-width: 768px) {
  body.theme-design5 .feature__message { width: 88%; padding: 70px 0 0; }
  body.theme-design5 .feature__message p { margin-top: 20px; font-size: 14px; line-height: 2.1; }
  body.theme-design5 .feature__box,
  body.theme-design5 .feature__content .feature__box:nth-child(2n) {
    display: block;
    padding-bottom: 54px;
    margin: 46px 0 0;
  }
  body.theme-design5 .feature__box-img,
  body.theme-design5 .feature__content .feature__box:nth-child(2n) .feature__box-img {
    width: 92%;
    max-width: none;
    margin-left: auto;
    margin-right: 0;
  }
  body.theme-design5 .feature__box-img img { height: 62vw; }
  /* 白カードは写真の下端に少しだけ食い込ませる */
  body.theme-design5 .feature__box-text {
    display: block;
    position: relative;
    width: 88%;
    margin: -34px auto 0;
    padding: 26px 22px 30px;
    background: var(--d5-card);
    z-index: 2;
  }
  body.theme-design5 .feature__box-text p { width: auto; margin: 0; }
}

/* ============================================================
   お品書き — 中央そろえの静かなカード
   ============================================================ */
body.theme-design5 .menu__wrapper {
  background-color: var(--d5-paper) !important;
  background-image: none !important;
  padding-bottom: clamp(60px, 8vw, 110px);
}
body.theme-design5 .menu__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(34px, 4vw, 58px) clamp(20px, 2.6vw, 38px);
  max-width: 1120px;
  width: 90%;
  margin: 0 auto;
}
body.theme-design5 .menu__box {
  position: static;
  max-width: none;
  width: auto;
  margin: 0 !important;
}
body.theme-design5 .menu__inbox { display: block; }
body.theme-design5 .menu__inbox-left { width: 100%; overflow: hidden; }
body.theme-design5 .menu__inbox-left img {
  width: 100%;
  height: clamp(180px, 19vw, 250px);
  object-fit: cover;
  transition: transform .9s ease;
}
body.theme-design5 .menu__box:hover .menu__inbox-left img { transform: scale(1.04); }
/* page01.css は :nth-child(2n) / :nth-child(3) でお品書きの位置を個別に指定している。
   カードのグリッドへ組み替えるため、幅・余白・高さは !important で明示的に打ち消す。 */
body.theme-design5 .menu__inbox-right {
  writing-mode: horizontal-tb;
  position: static;
  width: auto !important;
  margin: 0 !important;
  padding-top: 20px;
  text-align: center;
}
body.theme-design5 .menu__inbox-right-color {
  writing-mode: horizontal-tb;
  background-color: transparent !important;
  color: var(--d5-ink) !important;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .18em;
  display: block;
  width: auto !important;
  padding: 0 0 14px;
  margin: 0 auto !important;
  position: relative;
}
body.theme-design5 .menu__inbox-right-color::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 34px;
  height: 1px;
  background: var(--d5-line);
  transform: translateX(-50%);
}
body.theme-design5 .menu__inbox-right-white {
  background-color: transparent !important;
  height: auto !important;
  margin: 0 !important;
  padding: 14px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: .04em;
  color: var(--d5-sub);
}
body.theme-design5 .menu__price {
  color: var(--d5-ink) !important;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
body.theme-design5 .menu__text { display: none; }

@media screen and (max-width: 900px) {
  body.theme-design5 .menu__content { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 560px) {
  body.theme-design5 .menu__content { grid-template-columns: 1fr; }
  body.theme-design5 .menu__inbox-left img { height: 54vw; }
}

/* ============================================================
   店舗のご案内
   ============================================================ */
body.theme-design5 .about__content {
  background: transparent;
  max-width: 1120px;
  width: 90%;
  margin: 0 auto clamp(56px, 7vw, 96px);
}
body.theme-design5 .about__icons { margin: 44px 0 0; }
body.theme-design5 .about__icons-box { align-items: flex-start; margin-bottom: 32px; }
body.theme-design5 .about__icons-box-img {
  background: transparent;
  border: 1px solid var(--d5-line);
  border-radius: 0;
  max-width: 46px;
  min-width: 46px;
  height: 46px;
}
body.theme-design5 .about__icons-box-img svg { color: var(--d5-deep); width: 19px; height: 19px; }
body.theme-design5 .about__icons-box-text h3 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--d5-sub);
}
body.theme-design5 .about__icons-box-text p { font-weight: 400; font-size: 14px; }
/* --- 店舗写真：1枚を大きく出す形をやめ、同じ大きさのスライドを自動で流す。
       指でもマウスでも送れる（挙動は site.js が担当。--gallery がそのスイッチ）--- */
body.theme-design5 .about__slider {
  --gallery: carousel;
  overflow-x: auto;
  overflow-y: hidden;
  /* 自動送りのループ処理と競合するため、ここだけスムーススクロールを切る */
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
body.theme-design5 .about__slider::-webkit-scrollbar { display: none; }
body.theme-design5 .about__slider.is-dragging { cursor: grabbing; user-select: none; }
body.theme-design5 .about__slider .slide {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  overflow: visible;
}
body.theme-design5 .slide .item {
  display: block !important;
  flex: 0 0 auto;
  /* いちばん大きく出していたときの半分ほど。全点を同じ大きさにそろえる */
  width: clamp(230px, 40vw, 500px);
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0 16px 0 0;
  overflow: hidden;
}
body.theme-design5 .slide .item::before { display: none; }
body.theme-design5 .slide .item img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* 全点を流すので、切り替え用のサムネイル列は不要 */
body.theme-design5 .slide-navigation { display: none; }

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

/* ============================================================
   フッター — 生成りのまま。細い罫で区切るだけ
   ============================================================ */
body.theme-design5 .footer__slider { background-color: #ecE9e3; }
body.theme-design5 .footer__content {
  background-color: var(--d5-paper) !important;
  color: var(--d5-ink);
  border-top: 1px solid var(--d5-line);
  padding: clamp(56px, 7vw, 92px) 0 40px;
}
body.theme-design5 .footer__content-nav a,
body.theme-design5 .footer__content-sns a,
body.theme-design5 .footer__actions__item { color: var(--d5-ink); }
body.theme-design5 .footer__content-nav a { font-size: 13px; letter-spacing: .16em; }
body.theme-design5 .footer__content-text { font-size: 11px; letter-spacing: .2em; color: var(--d5-sub); }
body.theme-design5 .footer__content-sns svg { color: var(--d5-ink); }
body.theme-design5 .footer__text { color: var(--d5-ink); }
/* 電話・店舗概要・地図・最上位のピクトグラムはSP下部の固定バーが担う。PCには出さない */
body.theme-design5 .footer__actions { display: none; }
body.theme-design5 .footer__bottom { color: var(--d5-sub); font-size: 10px; letter-spacing: .18em; margin-top: 60px; }
/* フッターが明るいので、下端の固定バーとの境目に罫を足す */
body.theme-design5 #sp_bottom { border-top: 1px solid var(--d5-line); }

/* ============================================================
   下層ページ
   ============================================================ */
body.theme-design5 .page__wrapper .menu__title { text-align: center; }
body.theme-design5 .page__wrapper .menu__title h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: .28em;
  text-indent: .28em;
}
body.theme-design5 .page__wrapper .menu__title h1::before,
body.theme-design5 .page__wrapper .menu__title h1::after { display: none; }
body.theme-design5 .page__content table { background: rgba(255, 255, 255, .7); }
body.theme-design5 .page__content td,
body.theme-design5 .page__content th { border-color: var(--d5-line); }
body.theme-design5 .news__top-right a {
  background-color: var(--d5-deep) !important;
  color: #fff !important;
  border-radius: 0;
  letter-spacing: .18em;
}
body.theme-design5 .news__top-right a::after { border-top-color: #fff; border-right-color: #fff; }
