/* ブロックで組み立てるページ用のスタイル（common.css の後に読み込む） */
.blk { padding: 48px 0; }
.blk.hero { padding: 0; }
.blk.news { padding: 80px 0; }

.blk-narrow { max-width: 860px; }
.blk-center { text-align: center; }

.blk-page-title { text-align: center; font-size: 28px; font-weight: 600; margin: 0; }
.blk h2 { margin: 0 0 16px; }
.blk h3 { margin: 0 0 8px; }
.blk-narrow h2 { font-size: 22px; }
.blk h2.blk-center { margin-bottom: 40px; }

/* リッチテキストの本文（日本語は文節で折り返す） */
.rt {
  margin: 12px 0 0; line-height: 1.9;
  word-break: normal; overflow-wrap: break-word; line-break: strict;
}
@supports (word-break: auto-phrase) { .rt { word-break: auto-phrase; } }
.rt > :first-child { margin-top: 0; }
.rt > :last-child { margin-bottom: 0; }
.rt p { margin: 0 0 .5em; }
.rt div { margin: 0; }
.rt a { color: #8b4513; }
.rt ul, .rt ol { padding-left: 1.6em; margin: .4em 0; }
.rt table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.rt td, .rt th { border: 1px solid #cbd5e1; padding: 6px; }
.rt hr { border: none; border-top: 1px solid #ccc; margin: 14px 0; }
.rt blockquote { margin: .4em 0 .4em 2em; padding: 0; border: none; }

.blk-img img { width: 100%; display: block; border-radius: 8px; margin-top: 12px; }

/* ボタン：塗りつぶし / 枠線だけ（色は --btn で指定） */
.blk-buttons { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 28px; }
.blk-btn {
  display: block; width: 320px; max-width: 100%; box-sizing: border-box;
  padding: 16px 20px; text-align: center; text-decoration: none;
  font-weight: 600; font-size: 17px; border-radius: 8px;
  border: 2px solid var(--btn, #8b4513); transition: background .2s, color .2s, opacity .2s;
}
.blk-btn.fill { background: var(--btn, #8b4513); color: var(--btn-fg, #fff); }
.blk-btn.fill:hover { opacity: .85; }
.blk-btn.outline { background: #fff; color: var(--btn, #8b4513); }
.blk-btn.outline:hover { background: var(--btn, #8b4513); color: var(--btn-fg, #fff); }

/* 画像をボタンにする */
.blk-btn-img { display: block; max-width: 320px; width: 100%; }
.blk-btn-img img { width: 100%; display: block; border-radius: 8px; transition: opacity .2s; }
.blk-btn-img:hover img { opacity: .85; }

.blk-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 28px;
}
.blk-info { background: #faf7f2; border-radius: 12px; padding: 22px 18px; text-align: center; }
.blk-info h2 { font-size: 18px; margin: 0 0 10px; }
.blk-info-main { margin: 0; font-size: 18px; font-weight: 600; word-break: break-all; }
.blk-info-main a { color: #8b4513; }
.blk-info-note {
  margin: 10px 0 0; font-size: 13px; color: #777; line-height: 1.7;
  word-break: keep-all; overflow-wrap: normal; line-break: strict;
}

.blk-more { font-size: 14px; color: #888; text-decoration: none; }

/* フッターの文章欄 */
.footer-body { margin: 0; line-height: 1.65; font-size: 15px; }
.footer-body b { color: #8b4513; }

@media (max-width: 900px) {
  .blk { padding: 32px 0; }
  .blk.news { padding: 56px 0; }
  .blk-narrow { padding: 0 16px; }
  .blk-btn { width: 80%; }
}

/* 基本情報から埋め込んだ画像・PDF（営業カレンダー、アクセスマップなど） */
.info-file { display: block; margin: 6px 0; }
.info-file:first-child { margin-top: 0; }
.info-file:last-child { margin-bottom: 0; }
.info-file img { display: block; width: 100%; max-width: 860px; border-radius: 8px; }
.info-pdf { display: inline-block; margin-top: 6px; font-size: 14px; }

/* カードの説明・連絡先の補足（リッチテキスト） */
.menu-desc { margin: 0; font-size: 14px; color: #666; line-height: 1.7; }
.menu-desc p { margin: 0 0 .4em; }
.blk-info-note { word-break: normal; }

/* HTML埋め込み */
.html-embed { display: block; width: 100%; border: 0; }

/* カードの横の数（2〜7）。増えるほど画像も文字も小さくなる */
.menu-grid { grid-template-columns: repeat(var(--cols, 3), 1fr); }
.menu-grid.cols-4 { gap: 16px; }
.menu-grid.cols-4 .menu-card-body h3 { font-size: 16px; }
.menu-grid.cols-4 .menu-desc { font-size: 13px; }
.menu-grid.cols-5 { gap: 12px; }
.menu-grid.cols-5 .menu-card-body { padding: 12px 12px 16px; }
.menu-grid.cols-5 .menu-card-body h3 { font-size: 15px; }
.menu-grid.cols-5 .menu-desc { font-size: 12px; }
.menu-grid.cols-6 { gap: 10px; }
.menu-grid.cols-6 .menu-card-body { padding: 10px 10px 14px; }
.menu-grid.cols-6 .menu-card-body h3 { font-size: 14px; }
.menu-grid.cols-6 .menu-desc { font-size: 11.5px; }
.menu-grid.cols-7 { gap: 8px; }
.menu-grid.cols-7 .menu-card-body { padding: 8px 8px 12px; }
.menu-grid.cols-7 .menu-card-body h3 { font-size: 13px; }
.menu-grid.cols-7 .menu-desc { font-size: 11px; }
@media (max-width: 900px) {
  .menu-grid { grid-template-columns: 1fr; }
  .menu-grid.cols-4, .menu-grid.cols-5, .menu-grid.cols-6, .menu-grid.cols-7 { grid-template-columns: repeat(2, 1fr); }
}

/* フォトギャラリー */
.gallery { margin-top: 12px; position: relative; }
.gal-fig { margin: 0; }
.gal-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal-item img { display: block; width: 100%; }
.gal-cap { font-size: 13px; color: #666; margin-top: 4px; line-height: 1.5; }
.gal-tile { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 8px; }
.gal-tile .gal-item img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.gal-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
.gal-row .gal-fig { flex: 0 0 auto; scroll-snap-align: start; }
.gal-row .gal-item { width: auto; }
.gal-row .gal-item img { height: 240px; width: auto; border-radius: 6px; }
.gal-col { display: flex; flex-direction: column; gap: 18px; }
.gal-col .gal-item img { border-radius: 8px; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 8px; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track .gal-fig { flex: 0 0 100%; scroll-snap-align: center; }
.gal-slide .gal-item img { aspect-ratio: 3 / 2; object-fit: contain; background: #f3f0eb; }
.gal-slide .gal-cap { text-align: center; }
.gal-nav { position: absolute; top: 42%; transform: translateY(-50%); width: 40px; height: 40px; border: none; border-radius: 50%;
           background: rgba(255,255,255,.88); color: #4B2E05; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.gal-nav.prev { left: 8px; } .gal-nav.next { right: 8px; }
.gal-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.gal-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: #d3c9bb; cursor: pointer; }
.gal-dot.on { background: #8b4513; }
@media (max-width: 900px) {
  .gal-tile { grid-template-columns: repeat(min(var(--cols, 3), 3), 1fr); }
  .gal-row .gal-item img { height: 180px; }
}

/* 拡大表示 */
.lb { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: 92vw; text-align: center; }
.lb-fig img { max-width: 92vw; max-height: 82vh; object-fit: contain; display: block; margin: 0 auto; }
.lb-fig figcaption { color: #fff; font-size: 14px; margin-top: 10px; min-height: 1.4em; }
.lb-btn { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: none; border-radius: 50%; width: 46px; height: 46px; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-btn[hidden] { display: none; }

/* YouTube */
.yt-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.yt-wrap.short { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; }
.yt-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Q&A（開閉） */
.faq { border-top: 1px solid #e0d8cc; }
.faq-item { border-bottom: 1px solid #e0d8cc; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 4px; font-weight: 600; font-size: 17px; line-height: 1.6; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
                           border-right: 2px solid #8b4513; border-bottom: 2px solid #8b4513; transform: rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:focus-visible { outline: 3px solid #c9a27a; outline-offset: 2px; }
.faq-a { padding: 0 4px 18px; }
