/* ============================================================================
 * 山寺芭蕉記念館（yamadera-basho） Layer 2 スタイル
 * 旧 samidare デザイン（ssl.samidare.jp/~tukiyamaf/basho/p/basho241016.css）を踏襲
 * 変数定義は :root に、各 data-template で scope しない要素は header/footer のみ
 * ========================================================================== */

[data-template="custom-yamadera-basho"] {
  --basho-brown:        #604C3F;
  --basho-brown-dark:   #3f3225;
  --basho-green:        #345720;
  --basho-gold:         #876100;
  --basho-sand:         #D0B580;
  --basho-cream:        #F8F6E3;
  --basho-paper:        #F4F2ED;
  --basho-stone:        #E7E0DC;
  --basho-ink:          #333;
  --basho-mute:         #9E9E9F;
  --basho-maxw:         1120px;

  /* サイト内のテキストはすべて BIZ UDゴシックで統一（旧 mincho 指定箇所も含めて） */
  --basho-font-mincho:  'BIZ UDPGothic', 'BIZ UDGothic', 'メイリオ', Meiryo, 'ヒラギノ角ゴシック','Hiragino Sans', YuGothic, 'Yu Gothic', sans-serif;
  --basho-font-sans:    'BIZ UDPGothic', 'BIZ UDGothic', 'メイリオ', Meiryo, 'ヒラギノ角ゴシック','Hiragino Sans', YuGothic, 'Yu Gothic', sans-serif;
  --basho-font-rounded: 'M PLUS Rounded 1c', sans-serif;
}

/* body 直下に当たるため scope 不要 */
body:has([data-basho-root]) {
  font-family: var(--basho-font-sans);
  color: var(--basho-ink);
  background: var(--basho-paper);
}
/* 保険：Chrome の wrap div に明示適用（body inline-style に負けないよう重ねる） */
[data-basho-root], [data-template="custom-yamadera-basho"] {
  font-family: var(--basho-font-sans);
}

/* ===== 文字サイズ切替（html の data-basho-font = lg/md/sm） =====
 * CSS zoom で data-basho-root 全体を均等スケール（絶対値font-sizeも全て効く）。
 * zoom は Chrome/Edge/Safari で古くから、Firefox も 2024年以降サポート済み。 */
html[data-basho-font="lg"] [data-basho-root] { zoom: 1.12; }
html[data-basho-font="sm"] [data-basho-root] { zoom: 0.92; }

/* ===== ヘッダー（黒背景＋白ロゴ、旧 basho241016 準拠） ===== */
.basho-header {
  position: sticky; top: 0; z-index: 75;
  background: #000;
  border-bottom: 2px solid var(--basho-sand);
}
.basho-header__inner {
  max-width: 100%;
  margin: 0;
  padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.basho-header__logo {
  display: flex; flex-direction: row; align-items: center; gap: 22px;
  text-decoration: none;
}
.basho-header__logo img {
  display: block; height: 52px; width: auto;
  animation: basho-logo-enter 1.6s cubic-bezier(.22,.9,.3,1) 0.1s backwards;
}
.basho-header__logo-en {
  animation-delay: 0.35s !important;
}
@keyframes basho-logo-enter {
  from { opacity: 0; transform: translateY(-6px); filter: blur(1.5px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.basho-header__logo:hover img {
  animation: basho-logo-hover 1.8s ease-in-out infinite;
}
@keyframes basho-logo-hover {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.5px); }
}
@media (prefers-reduced-motion: reduce) {
  .basho-header__logo img { animation: none !important; }
}
.basho-header__logo-en { height: 48px !important; opacity: 0.9; }
@media (max-width: 820px) {
  /* タブレット以下は縦2段に戻す */
  .basho-header__inner { padding: 12px 14px; gap: 10px; }
  .basho-header__logo {
    flex-direction: column; align-items: flex-start; gap: 4px;
    /* ハンバーガー 64px + gap 10px + padding 14px = 88px 余裕を確保 */
    max-width: calc(100% - 90px);
    min-width: 0;
  }
  .basho-header__logo img { height: 28px; max-width: 100%; width: auto; }
  .basho-header__logo-en { height: 16px !important; max-width: 100%; }
}
@media (max-width: 480px) {
  .basho-header__inner { padding: 10px 12px; gap: 8px; }
  .basho-header__logo { max-width: calc(100% - 80px); }
  .basho-header__logo img { height: 24px; }
  .basho-header__logo-en { height: 13px !important; }
}

/* ハンバーガー（白線） — 常に最前面 */
.basho-header__hamburger {
  width: 64px; height: 44px; border: none; background: transparent;
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  cursor: pointer;
  position: relative; z-index: 80;
  flex-shrink: 0;  /* ロゴ縦積みでも押し出されない */
  touch-action: manipulation; /* iOSダブルタップズーム抑止 */
  -webkit-tap-highlight-color: transparent;
}
.basho-header__hamburger span {
  display: block; height: 2px; width: 44px; background: #fff;
  margin: 0 auto;
  transition: transform .25s, opacity .25s;
}
.basho-header__hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.basho-header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.basho-header__hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ドロワー（旧 basho241016 準拠：右から深緑シート） */
.basho-drawer-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; transition: opacity .25s;
  z-index: 85;
}
.basho-drawer-modal.is-open { opacity: 1; pointer-events: auto; }

.basho-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh;
  width: min(520px, 92vw);
  z-index: 90;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding: 70px 32px 40px;
  box-shadow: -8px 0 32px rgba(0,0,0,0.25);
  color: #fff;
  background-color: var(--basho-green);
  /* 麻の葉風の控えめな幾何学模様 */
  background-image:
    repeating-linear-gradient( 60deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(  0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 32px);
}
.basho-drawer.is-open { transform: translateX(0); }

.basho-drawer__close {
  position: absolute; top: 16px; right: 20px;
  width: 48px; height: 48px; border: none; background: transparent;
  cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.basho-drawer__close svg { display: block; }

.basho-drawer__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* 左カラム：ピル型ナビ */
.basho-drawer__pills {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 13px;
}
.basho-drawer__pill {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 8px 12px;
  background: #fff;
  color: var(--basho-brown);
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--basho-font-mincho);
  font-size: 14px; letter-spacing: 0.08em;
  line-height: 1.25;
  transition: color .2s, background .2s;
}
.basho-drawer__pill:hover { background: var(--basho-cream); color: var(--basho-green); }

/* 右カラム：言語 / 文字サイズ / SNS */
.basho-drawer__side {
  display: flex; flex-direction: column; gap: 16px;
}
.basho-drawer__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.basho-drawer__list li a {
  display: inline-flex; align-items: center; gap: 5px;
  color: #fff; text-decoration: none;
  font-family: var(--basho-font-mincho);
  font-size: 14px; letter-spacing: 0.06em;
}
.basho-drawer__list li a:hover { color: var(--basho-cream); }
.basho-drawer__list li a[aria-current="true"] u { text-decoration-thickness: 1px; }
.basho-drawer__arrow {
  color: #fff; opacity: 0.9; margin-right: 4px;
}
.basho-drawer__list--sizes { margin-top: 16px; }

.basho-drawer__sns {
  margin-top: 22px;
  display: flex; gap: 11px;
}
.basho-drawer__sns a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 7px;
  color: var(--basho-green); background: #fff;
}
.basho-drawer__sns svg { width: 22px; height: 22px; }
.basho-drawer__sns a:hover { background: var(--basho-cream); }

@media (max-width: 560px) {
  .basho-drawer__grid { grid-template-columns: 1fr; gap: 28px; }
  .basho-drawer { padding: 70px 24px 32px; }
}

/* ===== main ===== */
.basho-main { min-height: 60vh; margin: 0; padding: 0; }
.basho-top { margin: 0; padding: 0; }

/* ===== TOP ヒーロー ===== */
.basho-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2100 / 1013;
  max-height: 70vh;
  overflow: hidden;
  background: #000;
}
.basho-hero__slides { position: absolute; inset: 0; }
.basho-hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  /* opacity は長めに、transform も同じ長さで追従させて切替時のジャンプを消す */
  transition: opacity 2s ease-in-out, transform 2s ease-in-out;
  transform: scale(1.12); /* 非アクティブ時はズーム完了状態で待機 */
  will-change: opacity, transform;
}
/* PC：ズーム＆フェード（Ken Burns 風） */
.basho-hero__slide.is-active {
  opacity: 1;
  animation: basho-hero-zoom 11s ease-out forwards;
}
@keyframes basho-hero-zoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .basho-hero__slide { transform: none; transition: opacity 0.6s linear; }
  .basho-hero__slide.is-active { animation: none; }
}
.basho-hero__haiku {
  position: absolute;
  right: 4%; bottom: 6%;
  height: 72%; max-height: 540px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45));
  transform-origin: 50% 70%;
  /* 初回：音もなく滲み出るようにフェードイン → その後ずっと微揺れ */
  animation:
    basho-haiku-enter 2.2s cubic-bezier(.22,.9,.3,1) 0.3s backwards,
    basho-haiku-float 8s ease-in-out 2.5s infinite;
}
@keyframes basho-haiku-enter {
  from { opacity: 0; transform: translateY(14px) scale(0.985); filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45)) blur(2px); }
  to   { opacity: 1; transform: translateY(0)    scale(1);     filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45)) blur(0); }
}
@keyframes basho-haiku-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-6px) rotate(-0.25deg); }
}
@media (prefers-reduced-motion: reduce) {
  .basho-hero__haiku { animation: none; }
}
@media (max-width: 640px) {
  /* ヒーローの高さを前回より -20%（72vh → 58vh）、画像 cover で横はみ出し許容 */
  .basho-hero {
    aspect-ratio: auto;
    height: 58vh;
    max-height: 58vh;
  }
  .basho-hero__slide { object-fit: cover; object-position: center; }
  /* SPは引き続き左右パンアニメ（ズームだと高さ縮小時に窮屈） */
  .basho-hero__slide.is-active {
    animation: basho-hero-pan 14s ease-in-out infinite alternate;
  }
  @keyframes basho-hero-pan {
    from { transform: scale(1.08) translateX(-2.5%); }
    to   { transform: scale(1.08) translateX(2.5%); }
  }
  .basho-hero__haiku {
    /* 右下寄せ・40%縮小（画面幅100% → 60%） */
    width: 60%;
    height: auto;
    max-height: 70%;
    right: 4%; left: auto;
    bottom: 6%; top: auto;
    margin: 0;
    object-fit: contain;
  }
}

/* ===== アンカーボタン（旧UI：淡クリーム＋金縁ピル）
 * 文字数に合わせた可変幅＋折返し禁止、中央寄せで並ぶ ===== */
.basho-anchors {
  max-width: var(--basho-maxw); margin: 48px auto 56px;
  padding: 0 28px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
}
.basho-anchors__item {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 20px 32px; min-height: 68px;
  background: var(--basho-cream);
  border: 2px solid var(--basho-sand);
  border-radius: 999px;
  color: var(--basho-brown); text-decoration: none;
  font-family: var(--basho-font-sans);
  font-size: 19px; letter-spacing: 0.1em; font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(255,255,255,0.6);
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .15s;
}
.basho-anchors__item:hover {
  background: var(--basho-brown); color: #fff; border-color: var(--basho-brown);
  box-shadow: 0 4px 10px rgba(0,0,0,0.14);
  transform: translateY(-1px);
}
@media (max-width: 820px) {
  .basho-anchors { gap: 12px; margin: 32px auto 40px; }
  .basho-anchors__item { font-size: 17px; min-height: 56px; padding: 14px 22px; }
}

/* ===== TOP セクション共通 ===== */
.basho-section {
  max-width: var(--basho-maxw); margin: 48px auto;
  padding: 0 20px;
}
.basho-head01 {
  font-family: var(--basho-font-mincho);
  font-size: 29px; letter-spacing: 0.1em;
  color: var(--basho-brown);
  text-align: center;
  margin: 0 0 32px;
  position: relative; padding-bottom: 14px;
}
.basho-head01::after {
  content: ''; display: block;
  width: 48px; height: 2px; background: var(--basho-brown);
  margin: 10px auto 0;
}

/* ===== 新着記事 ===== */
.basho-news__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
}
.basho-news__item {
  display: grid; grid-template-columns: 220px 1fr; gap: 20px;
  padding: 16px; background: #fff;
  border: 1px solid var(--basho-stone);
  transition: box-shadow .25s;
}
.basho-news__item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.basho-news__thumb {
  display: block; width: 220px; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--basho-cream);
}
.basho-news__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.basho-news__item:hover .basho-news__thumb img { transform: scale(1.04); }
.basho-news__thumb--placeholder { background: var(--basho-cream); }
.basho-news__body { display: flex; flex-direction: column; gap: 8px; }
.basho-news__date {
  margin: 0; color: var(--basho-mute); font-size: 16px;
  letter-spacing: 0.08em;
}
.basho-news__title {
  margin: 0; font-size: 20px; line-height: 1.5;
  font-family: var(--basho-font-mincho);
}
.basho-news__title a { color: var(--basho-brown); text-decoration: none; }
.basho-news__title a:hover { color: var(--basho-green); text-decoration: underline; }
.basho-news__excerpt {
  margin: 0; color: var(--basho-ink); font-size: 17px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.basho-news__more {
  margin-top: auto; color: var(--basho-green);
  font-size: 16px; text-decoration: none; align-self: flex-start;
}
.basho-news__more:hover { text-decoration: underline; }
.basho-news__more-link {
  margin-top: 28px; text-align: center;
}
.basho-news__more-link a {
  display: inline-block; padding: 10px 24px;
  color: var(--basho-brown); border: 1px solid var(--basho-brown);
  text-decoration: none; font-family: var(--basho-font-mincho);
  font-size: 18px; letter-spacing: 0.08em;
  transition: background .2s, color .2s;
}
.basho-news__more-link a:hover { background: var(--basho-brown); color: #fff; }

@media (max-width: 640px) {
  .basho-news__item { grid-template-columns: 1fr; gap: 12px; }
  .basho-news__thumb { width: 100%; }
}

/* ===== Footer（深緑1段コンパクト構成：館名 + サイトマップ + 関連リンク） ===== */
.basho-footer {
  margin-top: 64px;
  background-color: var(--basho-green);
  background-image:
    repeating-linear-gradient( 60deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(  0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 32px);
  color: #fff;
}
.basho-footer__inner {
  max-width: var(--basho-maxw); margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.basho-footer__col-title {
  margin: 0 0 14px;
  font-family: var(--basho-font-mincho);
  font-size: 16px; letter-spacing: 0.12em;
  color: #fff;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.basho-footer__arrow { color: var(--basho-sand); margin-right: 6px; }

/* 1列目：館名＋住所＋開館時間＋運営注記 */
.basho-footer__brand-name { margin: 0 0 16px; }
.basho-footer__brand-name .ja {
  display: block; font-family: var(--basho-font-mincho);
  font-size: 30px; letter-spacing: 0.08em; color: #fff;
  line-height: 1.2;
}
.basho-footer__brand-name .en {
  display: block; font-size: 13px; letter-spacing: 0.14em;
  color: #fff; margin-top: 8px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  max-width: fit-content;
}
.basho-footer__brand-info p { margin: 2px 0; font-size: 15px; line-height: 1.8; }
.basho-footer__brand-info a { color: #fff; }
.basho-footer__hours { margin-top: 16px; }
.basho-footer__hours p {
  margin: 10px 0; font-size: 14px; line-height: 1.6;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.basho-footer__hours small { font-size: 12px; opacity: 0.85; }
.basho-footer__pill {
  display: inline-block;
  background: var(--basho-cream); color: var(--basho-green);
  padding: 2px 14px; border-radius: 999px;
  font-family: var(--basho-font-mincho);
  font-size: 13px; letter-spacing: 0.1em;
  vertical-align: 2px;
}
.basho-footer__note { margin-top: 14px; font-size: 11px; opacity: 0.75; line-height: 1.6; }

/* 2列目：サイトマップ（2カラムで畳む） */
.basho-footer__sitemap {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px;
}
.basho-footer__sitemap > li { font-size: 13px; line-height: 1.7; }
.basho-footer__sitemap-head {
  display: inline-block; color: #fff;
  font-family: var(--basho-font-mincho);
  font-size: 15px; letter-spacing: 0.05em;
  text-decoration: none; margin: 4px 0 2px;
}
.basho-footer__sitemap-head:hover { color: var(--basho-sand); }
.basho-footer__sitemap > li > ul {
  list-style: none; margin: 0 0 4px 14px; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.basho-footer__sitemap > li > ul > li > a {
  color: #fff; opacity: 0.85; font-size: 12px; text-decoration: none;
}
.basho-footer__sitemap > li > ul > li > a:hover { opacity: 1; text-decoration: underline; }

/* 3列目：関連リンク＋FBアイコン */
.basho-footer__related {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px;
}
@media (max-width: 560px) {
  .basho-footer__related { grid-template-columns: 1fr; }
}
.basho-footer__related > li > a {
  color: #fff; opacity: 0.9; text-decoration: none;
  font-size: 13px; line-height: 1.8;
}
.basho-footer__related > li > a:hover { opacity: 1; color: var(--basho-sand); }
.basho-footer__fb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: #fff; color: var(--basho-green);
  margin-top: 16px;
  transition: background .2s;
}
.basho-footer__fb:hover { background: var(--basho-cream); }

/* 下部：コピーライト＋TOPへ */
.basho-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  max-width: var(--basho-maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.basho-footer__copy { margin: 0; font-size: 12px; opacity: 0.75; }
.basho-footer__totop {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; opacity: 0.9;
}
.basho-footer__totop:hover { opacity: 1; color: var(--basho-sand); }
.basho-footer__totop span { font-family: var(--basho-font-mincho); font-size: 13px; letter-spacing: 0.1em; }
.basho-footer__totop svg { display: block; }

@media (max-width: 900px) {
  .basho-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .basho-footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .basho-footer__inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 20px; }
  .basho-footer__sitemap { grid-template-columns: 1fr; }
  .basho-footer__bottom { flex-direction: column; gap: 12px; padding: 16px 20px; }
}

/* ===== 外部バナー ===== */
.basho-banners {
  max-width: var(--basho-maxw); margin: 48px auto 72px;
  padding: 0 24px;
  display: grid; gap: 24px;
}
.basho-banners__hero {
  display: block; overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  transition: transform .25s, box-shadow .25s;
}
.basho-banners__hero img {
  display: block; width: 100%; height: auto;
}
.basho-banners__hero:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.16); }

.basho-banners__sns {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.basho-banners__sns-item {
  display: block; overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform .2s, box-shadow .2s;
  background: #fff;
}
.basho-banners__sns-item img {
  display: block; width: 100%; height: auto;
}
.basho-banners__sns-item:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.14); }

@media (max-width: 640px) {
  .basho-banners__sns { grid-template-columns: 1fr; gap: 12px; }
  .basho-banners { margin: 32px auto 48px; }
}

/* ===== /about ページ専用 ===== */
.p-about {
  max-width: var(--basho-maxw); margin: 0 auto;
  padding: 24px 24px 48px;
}
.basho-corner-title {
  margin: 32px 0 24px;
  padding-left: 12px;
  border-left: 6px solid var(--basho-brown);
  font-size: 28px; letter-spacing: 0.08em;
  color: var(--basho-brown); font-weight: 700;
}
/* 5col アンカー：等分grid を解除し、文字数に合わせた可変幅＋折返し禁止 */
.basho-anchors--5col {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  grid-template-columns: none !important;
  gap: 16px !important;
}
.basho-anchors--5col .basho-anchors__item {
  font-size: 17px;
  padding: 18px 32px;
  white-space: nowrap;   /* 折返し禁止 */
  min-height: 60px;
  width: auto;           /* 文字幅ベースで自然幅 */
}
@media (max-width: 820px) {
  .basho-anchors--5col { gap: 10px !important; }
  .basho-anchors--5col .basho-anchors__item { font-size: 15px; padding: 14px 22px; min-height: 52px; }
}

.basho-head02 {
  position: relative;
  margin: 0 0 24px;
  padding: 14px 20px;
  background: var(--basho-cream);
  border-left: 6px solid var(--basho-brown);
  font-size: 22px; letter-spacing: 0.08em; font-weight: 700;
  color: var(--basho-brown);
}

/* 概要 */
.p-about-outline { margin-bottom: 56px; scroll-margin-top: 90px; }
.p-about-outline__image {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 20px;
}
.p-about-outline__image img { width: 100%; height: auto; display: block; }
.p-about-outline__info { font-size: 16px; line-height: 2; color: var(--basho-ink); }

/* 収蔵品リスト */
.p-about-collection { margin-bottom: 56px; scroll-margin-top: 90px; }
.p-about-collection__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 24px; }
.p-about-collection__list > li {
  display: grid; grid-template-columns: 200px 1fr; gap: 20px;
  padding: 16px; background: #fff; border: 1px solid var(--basho-stone);
}
.p-about-collection__thumb { display: block; width: 200px; aspect-ratio: 4/3; overflow: hidden; background: var(--basho-cream); }
.p-about-collection__thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-about-collection__body { display: flex; flex-direction: column; gap: 6px; }
.p-about-collection__date { margin: 0; color: var(--basho-mute); font-size: 13px; }
.p-about-collection__title { margin: 0; font-size: 18px; font-weight: 700; }
.p-about-collection__title a { color: var(--basho-brown); text-decoration: none; }
.p-about-collection__title a:hover { color: var(--basho-green); text-decoration: underline; }
.p-about-collection__excerpt { margin: 0; font-size: 14px; line-height: 1.7; }
.p-about-collection__more { color: var(--basho-green); margin-left: 4px; }
@media (max-width: 640px) {
  .p-about-collection__list > li { grid-template-columns: 1fr; gap: 12px; }
  .p-about-collection__thumb { width: 100%; }
}

.p-about-caution {
  background: var(--basho-paper);
  border-left: 4px solid var(--basho-sand);
  padding: 14px 18px;
  font-size: 14px; line-height: 1.8;
}
.p-about-caution strong {
  display: inline-block; margin-bottom: 4px;
  color: var(--basho-brown); font-weight: 700;
}

/* 刊行物 */
.p-about-publication { margin: 56px 0; scroll-margin-top: 90px; }
.p-about-publication__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.p-about-publication__item { text-align: center; font-size: 13px; line-height: 1.6; }
.p-about-publication__image { display: block; margin-bottom: 10px; }
.p-about-publication__image img { width: 100%; height: auto; display: block; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.p-about-publication__item h3 { margin: 10px 0 6px; font-size: 15px; color: var(--basho-brown); font-weight: 700; }
.p-about-publication__item p { margin: 0; color: var(--basho-ink); }
@media (max-width: 820px) { .p-about-publication__grid { grid-template-columns: repeat(2, 1fr); } }

/* だより */
.p-about-newsletter { margin: 56px 0; scroll-margin-top: 90px; }
.p-about-newsletter__intro { font-size: 15px; line-height: 1.9; margin: 0 0 16px; }
.p-about-newsletter__label { margin: 0 0 12px; color: var(--basho-brown); font-weight: 700; }
.p-about-newsletter__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
.p-about-newsletter__list a {
  display: block; padding: 12px 15px;
  background: #f7f7f7; border: 1px solid #ddd; color: #333;
  text-decoration: none; text-align: center;
  transition: background .2s;
}
.p-about-newsletter__list a:hover { background: #eee; text-decoration: underline; }
@media (max-width: 640px) { .p-about-newsletter__list { grid-template-columns: repeat(2, 1fr); } }

/* ボランティア */
.p-about-vol { margin: 56px 0; scroll-margin-top: 90px; }
.p-about-vol h3 { margin: 20px 0 8px; font-size: 17px; color: var(--basho-brown); font-weight: 700; border-bottom: 1px dotted var(--basho-stone); padding-bottom: 6px; }
.p-about-vol p { margin: 0 0 12px; font-size: 15px; line-height: 1.9; }

/* FAQ */
.p-about-qa { margin: 56px 0 0; scroll-margin-top: 90px; }
.p-about-qa__container { display: grid; gap: 12px; }
.p-about-qa__wrapper { background: #fff; border: 1px solid var(--basho-stone); }
.p-about-qa__q {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 16px 20px;
  background: var(--basho-cream);
  border: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 16px; font-weight: 700;
  color: var(--basho-brown);
  position: relative;
}
.p-about-qa__q::before {
  content: 'Q.'; color: var(--basho-green);
  font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.p-about-qa__chev { transition: transform .2s; margin-left: auto; flex-shrink: 0; }
.is-open .p-about-qa__chev { transform: rotate(180deg); }
.p-about-qa__wrap { padding: 16px 20px; border-top: 1px dashed var(--basho-stone); }
.p-about-qa__a { font-size: 15px; line-height: 1.9; color: var(--basho-ink); }
.p-about-qa__a a { color: var(--basho-green); text-decoration: underline; }

/* /tenji: 「過去記事を見る」導線 */
.p-about-tenji__more { text-align: right; margin-top: 12px; }
.p-about-tenji__more a {
  color: var(--basho-green); text-decoration: none; font-size: 14px;
}
.p-about-tenji__more a:hover { text-decoration: underline; }

/* ===== /information 専用 ===== */
.p-info-text { font-size: 15px; line-height: 1.9; margin: 0 0 16px; }
.p-info-note { font-size: 13px; line-height: 1.8; color: var(--basho-ink); opacity: 0.85; margin: 10px 0 20px; }
.p-info-subhead {
  margin: 24px 0 10px; padding-left: 10px;
  border-left: 4px solid var(--basho-green);
  font-size: 16px; font-weight: 700; color: var(--basho-brown);
}
.p-info-link {
  color: var(--basho-brown); font-weight: 700; text-decoration: underline;
}
.p-info-link:hover { color: var(--basho-green); }

/* 開館カレンダー / フロアマップ 画像 */
.p-info-calendar img, .p-info-floormap img {
  display: block; max-width: 100%; height: auto;
  border: 1px solid var(--basho-stone);
  margin: 0 auto;
}
.p-info-calendar, .p-info-floormap { display: block; margin: 0 0 24px; }

/* 入館料・使用料 テーブル */
.p-info-table {
  width: 100%; border-collapse: collapse; margin: 0 0 10px;
  background: #fff;
}
.p-info-table th, .p-info-table td {
  border: 1px solid var(--basho-stone);
  padding: 10px 12px;
  font-size: 14px; line-height: 1.6;
  text-align: center;
}
.p-info-table thead th {
  background: var(--basho-brown); color: #fff; font-weight: 700;
}
.p-info-table tbody td:first-child {
  background: var(--basho-cream); font-weight: 700; color: var(--basho-brown);
}

/* 研修室カード */
.p-info-rooms {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin: 24px 0;
}
.p-info-rooms__item {
  display: grid; grid-template-columns: 180px 1fr; gap: 16px;
  background: #fff; border: 1px solid var(--basho-stone); padding: 12px;
}
.p-info-rooms__item img { width: 180px; height: 120px; object-fit: cover; display: block; }
.p-info-rooms__item h3 {
  margin: 0 0 6px; font-size: 17px; color: var(--basho-brown);
}
.p-info-rooms__item h3 small { font-size: 12px; margin-left: 6px; opacity: 0.8; }
.p-info-rooms__spec { font-size: 13px; line-height: 1.6; }
@media (max-width: 820px) {
  .p-info-rooms { grid-template-columns: 1fr; }
  .p-info-rooms__item { grid-template-columns: 140px 1fr; gap: 12px; }
  .p-info-rooms__item img { width: 140px; height: 100px; }
}

/* アクセス 順路 */
.p-info-walk {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.p-info-walk > li {
  background: #fff; border: 1px solid var(--basho-stone); padding: 14px;
}
.p-info-walk__image { position: relative; }
.p-info-walk__image img { display: block; width: 100%; height: auto; }
.p-info-walk__badge {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--basho-brown); color: #fff;
  font-family: var(--basho-font-mincho); font-size: 18px; font-weight: 700;
}
.p-info-walk > li > p { margin: 10px 0 0; font-size: 14px; line-height: 1.8; }
@media (max-width: 640px) { .p-info-walk { grid-template-columns: 1fr; } }

/* Googleマップ埋め込み */
.p-info-map {
  width: 100%; aspect-ratio: 4 / 3; max-height: 480px;
  margin: 16px 0 0;
}
.p-info-map iframe { width: 100%; height: 100%; border: 0; }

/* ===== /contact 専用（左にフォーム、右に芭蕉像） ===== */
.basho-contact__grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  padding: 24px 24px 48px;
  max-width: var(--basho-maxw); margin: 0 auto;
  align-items: start;
}
.basho-contact__form { min-width: 0; }
.basho-contact__desc {
  font-size: 15px; line-height: 1.9; margin: 0 0 20px;
  color: var(--basho-ink);
}
.basho-contact__aside figure {
  margin: 0;
  background: var(--basho-cream);
  padding: 12px 12px 10px;
  border: 1px solid var(--basho-stone);
}
.basho-contact__aside img {
  display: block; width: 100%; height: auto;
}
.basho-contact__aside figcaption {
  margin-top: 8px;
  font-family: var(--basho-font-mincho);
  font-size: 14px; letter-spacing: 0.1em;
  color: var(--basho-brown); text-align: center;
}
@media (max-width: 820px) {
  .basho-contact__grid { grid-template-columns: 1fr; gap: 24px; padding: 16px 20px 36px; }
  .basho-contact__aside figure { max-width: 420px; margin: 0 auto; }
}

/* ノーイメージ時のフォールバック（松尾芭蕉像）：天揃え */
.basho-news__thumb--fallback {
  object-position: center top;
}

/* ===== /blog/[slug] 記事詳細（Layer 2 独自レンダ） ===== */
.basho-article__meta {
  margin: 0 0 24px; font-size: 13px; color: var(--basho-mute);
  display: flex; gap: 14px; align-items: center;
}
.basho-article__cat {
  background: var(--basho-cream); color: var(--basho-brown);
  padding: 2px 10px; border-radius: 999px;
  font-family: var(--basho-font-mincho); font-size: 12px;
}
.basho-article__body {
  font-size: 16px; line-height: 2;
  color: var(--basho-ink);
}
.basho-article__body img {
  max-width: 100%; height: auto; display: block; margin: 16px auto;
}
.basho-article__body p { margin: 1em 0; }
.basho-article__body a { color: var(--basho-green); text-decoration: underline; }
.basho-article__body h2, .basho-article__body h3 {
  color: var(--basho-brown); font-family: var(--basho-font-mincho);
  margin: 1.4em 0 0.6em;
}
.basho-article__body h2 { font-size: 20px; border-left: 4px solid var(--basho-brown); padding-left: 10px; }
.basho-article__body h3 { font-size: 17px; }
.basho-article__back {
  margin: 40px 0 0; padding-top: 20px;
  border-top: 1px solid var(--basho-stone);
}
.basho-article__back a { color: var(--basho-green); text-decoration: none; font-size: 14px; }
.basho-article__back a:hover { text-decoration: underline; }
