@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@600&display=swap");
/* ==========================================================
   ANOMACHI 共通CSS（都道府県ページ・市区町村ページ 兼用）
   - 1ファイルを読み込むだけで両テンプレートが表示できる
   - すべて .amg 配下にスコープ（テーマ gensen_tcd050 と干渉しない）
   - 子テーマの style.css 末尾、または 追加CSS に貼り付けて使用
   - 色・余白は CSS 変数で一括変更可能（都道府県ごとにアクセント色を変える等）
   ========================================================== */
.amg{
  --amg-ink:#22262a;
  --amg-ink-2:#555b61;
  --amg-ink-3:#8a9096;
  --amg-line:#e3e1dc;
  --amg-bg:#ffffff;
  --amg-paper:#f6f4ef;
  --amg-accent:oklch(0.48 0.09 230);      /* 北の海の青 */
  --amg-accent-soft:oklch(0.95 0.02 230);
  --amg-warm:oklch(0.62 0.13 45);         /* 季節・注目 */
  --amg-warm-soft:oklch(0.96 0.025 45);
  --amg-serif:"Shippori Mincho","Noto Serif JP","Yu Mincho",serif;
  --amg-sans:"Noto Sans JP","Hiragino Kaku Gothic ProN",sans-serif;
  --amg-r:6px;
  font-family:var(--amg-sans);
  color:var(--amg-ink);
  font-size:15px;
  line-height:1.9;
  letter-spacing:.02em;
}
/* ---------- 地方別アクセントカラー（.amg に data-region を付けるだけで切替） ----------
   例）<div class="amg" data-region="kanto">
   都道府県単位で変えたい場合は style="--amg-accent:..." を直接指定してもOK */
.amg[data-region="hokkaido-tohoku"]{--amg-accent:oklch(0.48 0.09 230);--amg-accent-soft:oklch(0.95 0.02 230)}
.amg[data-region="kanto"]{--amg-accent:oklch(0.48 0.09 265);--amg-accent-soft:oklch(0.95 0.02 265)}
.amg[data-region="chubu"]{--amg-accent:oklch(0.48 0.09 160);--amg-accent-soft:oklch(0.95 0.02 160)}
.amg[data-region="kinki"]{--amg-accent:oklch(0.48 0.09 10); --amg-accent-soft:oklch(0.95 0.02 10)}
.amg[data-region="chugoku"]{--amg-accent:oklch(0.48 0.09 300);--amg-accent-soft:oklch(0.95 0.02 300)}
.amg[data-region="shikoku"]{--amg-accent:oklch(0.48 0.09 195);--amg-accent-soft:oklch(0.95 0.02 195)}
.amg[data-region="kyushu-okinawa"]{--amg-accent:oklch(0.50 0.10 40); --amg-accent-soft:oklch(0.95 0.02 40)}

.amg *,.amg *::before,.amg *::after{box-sizing:border-box}

/* ---------- テーマ（.post_content 等）の装飾リセット ----------
   詳細度：リセット 0,2,0 ／ 各コンポーネント .amg .amg-xxx 0,2,0 以上（後勝ち）
   → テーマの .post_content h2 (0,1,1) や .post_content table th (0,1,2) より強くなる */
.amg.amg :where(h1,h2,h3,h4,p,ul,ol,li,dl,dt,dd,table,tr,th,td,figure,figcaption,details,summary,time,small,b){
  margin:0;padding:0;border:0;background:none;box-shadow:none;
  font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;letter-spacing:inherit;text-align:inherit;
}
.amg.amg :where(b){font-weight:600}
.amg.amg :where(ul,ol){list-style:none}
.amg.amg :where(h1,h2,h3,h4,li)::before,.amg.amg :where(h1,h2,h3,h4,li)::after{content:none}
.amg.amg :where(table){border-collapse:collapse;width:100%}
.amg.amg :where(a){text-decoration:none;border:0}
.amg.amg :where(p){margin:0 0 1em;text-wrap:pretty}
.amg.amg :where(a){color:var(--amg-accent)}
.amg.amg :where(img){max-width:100%;height:auto;display:block}
.amg.amg :where(ruby rt){font-size:.5em;color:var(--amg-ink-3);letter-spacing:.05em}

/* ---------- 画像プレースホルダー（WPでは img に差し替え） ---------- */
.amg .amg-ph{
  position:relative;width:100%;aspect-ratio:16/10;border-radius:var(--amg-r);overflow:hidden;
  background:repeating-linear-gradient(135deg,#ebe8e1 0 8px,#f2f0ea 8px 16px);
  display:flex;align-items:center;justify-content:center;
}
.amg .amg-ph span{font:11px/1.4 ui-monospace,Menlo,monospace;color:#8b877d;background:#f9f8f5;padding:4px 8px;border-radius:3px}
.amg .amg-ph--wide{aspect-ratio:21/9}
.amg .amg-ph--sq{aspect-ratio:1/1}
.amg .amg-ph--tall{aspect-ratio:4/5}
.amg.amg :where(figure){margin:0}
.amg.amg :where(figcaption){font-size:11px;color:var(--amg-ink-3);margin-top:6px}


/* ---------- 実画像（.amg-ph を <img> に置換した場合も比率を維持） ---------- */
.amg .amg-hero__media img{width:100%;aspect-ratio:2/1;object-fit:cover}
.amg .amg-area__map img{width:100%;aspect-ratio:21/9;object-fit:cover;border-radius:var(--amg-r)}
.amg .amg-spot__media img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:var(--amg-r)}
.amg .amg-card img,.amg .amg-onsen__item img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--amg-r);margin-bottom:10px}
.amg .amg-onsen__item img{margin-bottom:0}
.amg .amg-gourmet__item img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:var(--amg-r);margin-bottom:10px}
.amg .amg-gift img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:50%;margin-bottom:8px}

/* ---------- ヒーロー ---------- */
.amg .amg-hero{margin-bottom:40px}
.amg .amg-hero__media{position:relative}
.amg .amg-hero__media .amg-ph{aspect-ratio:2/1;border-radius:0}
.amg .amg-hero__body{
  position:relative;margin:-64px 24px 0;background:var(--amg-bg);
  padding:28px 32px 26px;border-radius:var(--amg-r);box-shadow:0 1px 0 var(--amg-line),0 10px 30px -18px rgba(0,0,0,.25);
}
.amg .amg-hero__crumb{font-size:12px;color:var(--amg-ink-3);letter-spacing:.12em;margin:0 0 6px}
.amg .amg-hero__crumb b{color:var(--amg-accent);font-weight:600}
.amg .amg-hero__title{font-family:var(--amg-serif);font-weight:600;font-size:34px;line-height:1.35;margin:0 0 4px;letter-spacing:.06em}
.amg .amg-hero__title small{display:block;font-family:var(--amg-sans);font-size:12px;letter-spacing:.3em;color:var(--amg-ink-3);font-weight:400;margin-top:4px}
.amg .amg-hero__lead{margin:18px 0 0;color:var(--amg-ink-2)}
.amg .amg-tags{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 0;padding:0;list-style:none}
.amg .amg-tags li{font-size:12px;line-height:1;padding:7px 10px;border:1px solid var(--amg-line);border-radius:999px;color:var(--amg-ink-2)}

/* ---------- ひと目でわかる ---------- */
.amg .amg-facts{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--amg-line);border-radius:var(--amg-r);margin:0 0 40px;overflow:hidden}
.amg .amg-facts div{padding:16px 18px;border-left:1px solid var(--amg-line)}
.amg .amg-facts div:first-child{border-left:0}
.amg .amg-facts dt{font-size:11px;color:var(--amg-ink-3);letter-spacing:.1em}
.amg .amg-facts dd{margin:2px 0 0;font-size:17px;font-weight:600;line-height:1.4}
.amg .amg-facts dd small{font-size:11px;font-weight:400;color:var(--amg-ink-2);margin-left:2px}

/* ---------- 目次 ---------- */
.amg .amg-toc{background:var(--amg-paper);border-radius:var(--amg-r);padding:22px 26px;margin:0 0 56px}
.amg .amg-toc__title{font-size:12px;letter-spacing:.2em;color:var(--amg-ink-3);margin:0 0 10px}
.amg .amg-toc ol{display:grid;grid-template-columns:repeat(2,1fr);gap:2px 24px;margin:0;padding:0;list-style:none;counter-reset:toc}
.amg .amg-toc li{counter-increment:toc}
.amg .amg-toc a{display:flex;gap:10px;align-items:baseline;color:var(--amg-ink);text-decoration:none;padding:6px 0;border-bottom:1px dashed #d8d5ce;font-size:14px}
.amg .amg-toc a::before{content:counter(toc,decimal-leading-zero);font:600 11px/1 var(--amg-sans);color:var(--amg-accent);letter-spacing:.05em}
.amg .amg-toc a:hover{color:var(--amg-accent)}

/* ---------- セクション見出し ---------- */
.amg .amg-sec{margin:0 0 64px;scroll-margin-top:90px}
.amg .amg-h2{margin:0 0 24px;display:grid;grid-template-columns:auto 1fr;align-items:end;gap:4px 14px}
.amg .amg-h2__no{grid-row:span 2;font:600 44px/0.9 var(--amg-serif);color:var(--amg-accent);letter-spacing:0}
.amg .amg-h2__en{font-size:11px;letter-spacing:.28em;color:var(--amg-ink-3);text-transform:uppercase;line-height:1}
.amg .amg-h2__ja{font-family:var(--amg-serif);font-size:25px;font-weight:600;line-height:1.35;letter-spacing:.06em}
.amg .amg-h2::after{content:"";grid-column:1/-1;height:1px;background:var(--amg-line);margin-top:12px}
.amg .amg-sec__lead{color:var(--amg-ink-2);margin:-6px 0 24px}
.amg .amg-h3{font-size:18px;font-weight:600;line-height:1.5;margin:0 0 8px;letter-spacing:.04em}
.amg .amg-h3 ruby rt{font-weight:400}

/* ---------- エリアガイド ---------- */
.amg .amg-area{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.amg .amg-area__item{border:1px solid var(--amg-line);border-radius:var(--amg-r);padding:18px 20px}
.amg .amg-area__head{display:flex;align-items:baseline;gap:10px;margin-bottom:6px}
.amg .amg-area__name{font-family:var(--amg-serif);font-size:20px;font-weight:600}
.amg .amg-area__cities{font-size:12px;color:var(--amg-accent)}
.amg .amg-area__item p{font-size:13.5px;color:var(--amg-ink-2);margin:0;line-height:1.8}
.amg .amg-area__map{grid-column:1/-1}

/* ---------- スポット ---------- */
.amg .amg-spot{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:28px 0;border-top:1px solid var(--amg-line)}
.amg .amg-spot:first-of-type{border-top:0;padding-top:0}
.amg .amg-spot:nth-of-type(even) .amg-spot__media{order:2}
.amg .amg-spot__label{display:inline-block;font-size:11px;letter-spacing:.12em;color:var(--amg-accent);margin-bottom:4px}
.amg .amg-spot__body p{font-size:14px;color:var(--amg-ink-2)}
.amg .amg-spec{margin:12px 0 0;padding:12px 0 0;border-top:1px dashed var(--amg-line);display:grid;grid-template-columns:auto 1fr;gap:4px 14px;font-size:12.5px}
.amg .amg-spec dt{color:var(--amg-ink-3)}
.amg .amg-spec dd{margin:0;color:var(--amg-ink)}

.amg .amg-more{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:8px}
.amg .amg-card{display:block;color:inherit;text-decoration:none}
.amg .amg-card .amg-ph{aspect-ratio:4/3;margin-bottom:10px}
.amg .amg-card__area{font-size:11px;color:var(--amg-ink-3);letter-spacing:.08em}
.amg .amg-card__title{font-weight:600;font-size:15px;line-height:1.5;margin:0 0 4px}
.amg .amg-card p{font-size:12.5px;color:var(--amg-ink-2);line-height:1.75;margin:0}
.amg .amg-subhead{font-size:13px;letter-spacing:.14em;color:var(--amg-ink-3);margin:24px 0 14px;display:flex;align-items:center;gap:12px}
.amg .amg-subhead::after{content:"";flex:1;height:1px;background:var(--amg-line)}

/* ---------- 季節カレンダー ---------- */
.amg .amg-season{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--amg-line);border-radius:var(--amg-r);overflow:hidden}
.amg .amg-season__col{padding:18px 16px 20px;border-left:1px solid var(--amg-line)}
.amg .amg-season__col:first-child{border-left:0}
.amg .amg-season__name{font-family:var(--amg-serif);font-size:22px;font-weight:600;line-height:1}
.amg .amg-season__months{font-size:11px;color:var(--amg-ink-3);margin:4px 0 12px;letter-spacing:.08em}
.amg .amg-season ul{list-style:none;margin:0;padding:0}
.amg .amg-season li{font-size:13px;line-height:1.6;padding:7px 0;border-top:1px dashed var(--amg-line)}
.amg .amg-season li b{display:block;font-size:11px;font-weight:600;color:var(--amg-accent);letter-spacing:.05em}
.amg .amg-season__col--spring .amg-season__name{color:oklch(0.6 0.11 0)}
.amg .amg-season__col--summer .amg-season__name{color:oklch(0.55 0.11 150)}
.amg .amg-season__col--autumn .amg-season__name{color:var(--amg-warm)}
.amg .amg-season__col--winter .amg-season__name{color:var(--amg-accent)}
.amg .amg-season__wear{font-size:12px;color:var(--amg-ink-2);margin-top:12px;background:var(--amg-paper);padding:8px 10px;border-radius:4px;line-height:1.6}

/* ---------- アクセス ---------- */
.amg .amg-access{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.amg .amg-access__box{border:1px solid var(--amg-line);border-radius:var(--amg-r);padding:18px 20px}
.amg .amg-access__type{font-size:12px;letter-spacing:.14em;color:var(--amg-ink-3);margin:0 0 8px}
.amg .amg-route{list-style:none;margin:0;padding:0}
.amg .amg-route li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px dashed var(--amg-line);font-size:13.5px}
.amg .amg-route li:first-child{border-top:0}
.amg .amg-route b{font-weight:600;white-space:nowrap}
.amg .amg-note{font-size:12px;color:var(--amg-ink-3);margin:12px 0 0}
.amg .amg-distance{grid-column:1/-1;background:var(--amg-accent-soft);border-radius:var(--amg-r);padding:18px 20px}
.amg .amg-distance__title{font-weight:600;font-size:14px;margin:0 0 10px;color:var(--amg-accent)}
.amg .amg-distance table{width:100%;border-collapse:collapse;font-size:13px}
.amg .amg-distance th,.amg .amg-distance td{padding:7px 8px;text-align:left;border-top:1px solid rgba(0,0,0,.06)}
.amg .amg-distance th{font-weight:400;color:var(--amg-ink-2)}
.amg .amg-distance td{white-space:nowrap}

/* ---------- モデルコース ---------- */
.amg .amg-course{border:1px solid var(--amg-line);border-radius:var(--amg-r);overflow:hidden}
.amg .amg-course__head{background:var(--amg-ink);color:#fff;padding:16px 22px;display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.amg .amg-course__title{font-family:var(--amg-serif);font-size:19px;font-weight:600;margin:0}
.amg .amg-course__meta{font-size:12px;opacity:.75}
.amg .amg-course__days{display:grid;grid-auto-flow:column;grid-auto-columns:1fr}
.amg .amg-day{padding:18px 20px;border-left:1px solid var(--amg-line)}
.amg .amg-day:first-child{border-left:0}
.amg .amg-day__no{font-size:11px;letter-spacing:.2em;color:var(--amg-accent);font-weight:600}
.amg .amg-day__title{font-weight:600;margin:2px 0 12px;font-size:15px}
.amg .amg-day ol{list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid var(--amg-accent-soft)}
.amg .amg-day li{position:relative;font-size:13px;line-height:1.6;padding:0 0 12px}
.amg .amg-day li::before{content:"";position:absolute;left:-19px;top:6px;width:8px;height:8px;border-radius:50%;background:var(--amg-bg);border:2px solid var(--amg-accent)}
.amg .amg-day li time{display:block;font-size:11px;color:var(--amg-ink-3)}

/* ---------- 温泉 ---------- */
.amg .amg-onsen{display:grid;gap:14px}
.amg .amg-onsen__item{display:grid;grid-template-columns:200px 1fr;gap:20px;padding:16px;border:1px solid var(--amg-line);border-radius:var(--amg-r)}
.amg .amg-onsen__item .amg-ph{aspect-ratio:4/3}
.amg .amg-onsen__item p{font-size:13.5px;color:var(--amg-ink-2);margin:0 0 8px}
.amg .amg-chips{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
.amg .amg-chips li{font-size:11.5px;line-height:1;padding:6px 9px;border-radius:3px;background:var(--amg-warm-soft);color:oklch(0.45 0.1 45)}
.amg .amg-chips li.is-blue{background:var(--amg-accent-soft);color:var(--amg-accent)}

/* ---------- グルメ ---------- */
.amg .amg-gourmet{display:grid;grid-template-columns:repeat(3,1fr);gap:22px 18px}
.amg .amg-gourmet__item .amg-ph{aspect-ratio:1/1;margin-bottom:10px}
.amg .amg-gourmet__item .amg-h3{font-size:16px;margin-bottom:4px}
.amg .amg-gourmet__item p{font-size:12.5px;color:var(--amg-ink-2);line-height:1.75;margin:0 0 6px}
.amg .amg-where{font-size:11.5px;color:var(--amg-accent)}
.amg .amg-where::before{content:"食べるなら ";color:var(--amg-ink-3)}

/* ---------- お土産 ---------- */
.amg .amg-gift{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;list-style:none;margin:0;padding:0}
.amg .amg-gift li{text-align:center}
.amg .amg-gift .amg-ph{aspect-ratio:1/1;margin-bottom:8px;border-radius:50%}
.amg .amg-gift__name{font-size:13px;font-weight:600;line-height:1.45}
.amg .amg-gift__desc{font-size:11px;color:var(--amg-ink-3);line-height:1.5;margin-top:2px}

/* ---------- 特産品 ---------- */
.amg .amg-special{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:1px solid var(--amg-line)}
.amg .amg-special__group{padding:16px 16px 18px 0;border-bottom:1px solid var(--amg-line)}
.amg .amg-special__group:not(:nth-child(3n+1)){padding-left:16px;border-left:1px solid var(--amg-line)}
.amg .amg-special__cat{font-size:12px;letter-spacing:.14em;color:var(--amg-accent);font-weight:600;margin:0 0 8px}
.amg .amg-special ul{list-style:none;margin:0;padding:0}
.amg .amg-special li{font-size:13.5px;line-height:1.6;padding:3px 0}
.amg .amg-special li ruby rt{font-size:.55em}

/* ---------- 旅のヒント ---------- */
.amg .amg-tips{display:grid;grid-template-columns:1fr 1fr;gap:14px;counter-reset:tip;list-style:none;margin:0;padding:0}
.amg .amg-tips li{counter-increment:tip;background:var(--amg-paper);border-radius:var(--amg-r);padding:18px 20px 16px}
.amg .amg-tips li::before{content:"TIP " counter(tip,decimal-leading-zero);font-size:11px;letter-spacing:.16em;font-weight:600;color:var(--amg-warm)}
.amg .amg-tips b{display:block;font-size:15px;margin:2px 0 4px}
.amg .amg-tips p{font-size:13px;color:var(--amg-ink-2);margin:0;line-height:1.75}

/* ---------- 基本データ ---------- */
.amg .amg-data{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.amg .amg-data table{width:100%;border-collapse:collapse;font-size:13.5px}
.amg .amg-data th,.amg .amg-data td{padding:10px 12px;border-bottom:1px solid var(--amg-line);text-align:left;vertical-align:top}
.amg .amg-data th{width:34%;font-weight:400;color:var(--amg-ink-3);background:var(--amg-paper)}
.amg .amg-data__note{font-size:11px;color:var(--amg-ink-3);margin-top:8px}

/* ---------- FAQ ---------- */
.amg .amg-faq details{border-bottom:1px solid var(--amg-line)}
.amg .amg-faq details:first-child{border-top:1px solid var(--amg-line)}
.amg .amg-faq summary{list-style:none;cursor:pointer;padding:16px 36px 16px 34px;position:relative;font-weight:600;font-size:14.5px}
.amg .amg-faq summary::-webkit-details-marker{display:none}
.amg .amg-faq summary::before{content:"Q";position:absolute;left:4px;top:14px;font:600 18px/1.3 var(--amg-serif);color:var(--amg-accent)}
.amg .amg-faq summary::after{content:"";position:absolute;right:10px;top:22px;width:9px;height:9px;border-right:1.5px solid var(--amg-ink-3);border-bottom:1.5px solid var(--amg-ink-3);transform:rotate(45deg);transition:transform .2s}
.amg .amg-faq details[open] summary::after{transform:rotate(-135deg);top:26px}
.amg .amg-faq details p{padding:0 10px 18px 34px;margin:0;font-size:13.5px;color:var(--amg-ink-2)}

/* ---------- 周辺エリア ---------- */
.amg .amg-near{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;list-style:none;margin:0;padding:0}
.amg .amg-near a{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border:1px solid var(--amg-line);border-radius:var(--amg-r);text-decoration:none;color:var(--amg-ink);font-size:14px;font-weight:600;transition:border-color .15s,color .15s}
.amg .amg-near a::after{content:"→";color:var(--amg-ink-3);font-weight:400}
.amg .amg-near a:hover{border-color:var(--amg-accent);color:var(--amg-accent)}
.amg .amg-near small{display:block;font-size:11px;font-weight:400;color:var(--amg-ink-3)}

.amg .amg-updated{font-size:11px;color:var(--amg-ink-3);text-align:right;margin:-32px 0 0}

/* ==========================================================
   レスポンシブ（gensen はおよそ 991px / 767px で切替）
   ========================================================== */
@media (max-width:767px){
  .amg{font-size:14.5px}
  .amg .amg-hero__body{margin:-40px 12px 0;padding:22px 20px}
  .amg .amg-hero__title{font-size:27px}
  .amg .amg-facts{grid-template-columns:1fr 1fr}
  .amg .amg-facts div:nth-child(3){border-left:0}
  .amg .amg-facts div:nth-child(n+3){border-top:1px solid var(--amg-line)}
  .amg .amg-toc ol{grid-template-columns:1fr}
  .amg .amg-h2__no{font-size:36px}
  .amg .amg-h2__ja{font-size:21px}
  .amg .amg-area,.amg .amg-access,.amg .amg-tips,.amg .amg-data{grid-template-columns:1fr}
  .amg .amg-spot{grid-template-columns:1fr;gap:14px}
  .amg .amg-spot:nth-of-type(even) .amg-spot__media{order:0}
  .amg .amg-more,.amg .amg-gourmet{grid-template-columns:1fr 1fr}
  .amg .amg-season{grid-template-columns:1fr 1fr}
  .amg .amg-season__col:nth-child(3){border-left:0}
  .amg .amg-season__col:nth-child(n+3){border-top:1px solid var(--amg-line)}
  .amg .amg-course__days{grid-auto-flow:row}
  .amg .amg-day{border-left:0;border-top:1px solid var(--amg-line)}
  .amg .amg-day:first-child{border-top:0}
  .amg .amg-onsen__item{grid-template-columns:1fr;gap:12px}
  .amg .amg-gift{grid-template-columns:repeat(3,1fr)}
  .amg .amg-special{grid-template-columns:1fr 1fr}
  .amg .amg-special__group:not(:nth-child(3n+1)){padding-left:0;border-left:0}
  .amg .amg-special__group:nth-child(even){padding-left:14px;border-left:1px solid var(--amg-line)}
  .amg .amg-near{grid-template-columns:1fr 1fr}
  .amg .amg-distance td{white-space:normal}
}


/* ##########################################################
   ここから：市区町村ページ用パーツ
   ########################################################## */

/* ---------- 上位ページへの導線 ---------- */
.amg .amg-parent{display:flex;align-items:center;gap:8px;font-size:12px;margin:0 0 14px;color:var(--amg-ink-3)}
.amg .amg-parent a{color:var(--amg-ink-2);border-bottom:1px solid var(--amg-line)}
.amg .amg-parent a:hover{color:var(--amg-accent);border-color:var(--amg-accent)}

/* ---------- キャッチ（受賞・ランキング等） ---------- */
.amg .amg-catch{display:inline-flex;align-items:center;gap:8px;margin:0 0 10px;font-size:12.5px;font-weight:600;color:oklch(0.45 0.1 45);background:var(--amg-warm-soft);padding:6px 12px;border-radius:999px}
.amg .amg-catch::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--amg-warm)}

/* ---------- この街の魅力 3ポイント ---------- */
.amg .amg-points{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:2px solid var(--amg-ink);counter-reset:pt}
.amg .amg-points li{counter-increment:pt;padding:18px 18px 4px 0}
.amg .amg-points li + li{padding-left:18px;border-left:1px solid var(--amg-line)}
.amg .amg-points li::before{content:"POINT " counter(pt);display:block;font-size:11px;letter-spacing:.18em;font-weight:600;color:var(--amg-accent);margin-bottom:6px}
.amg .amg-points b{display:block;font-family:var(--amg-serif);font-size:18px;line-height:1.5;margin-bottom:6px}
.amg .amg-points p{font-size:13px;color:var(--amg-ink-2);line-height:1.8;margin:0}

/* ---------- 数字で見る街 ---------- */
.amg .amg-stats{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}
.amg .amg-stats__grid{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid var(--amg-line);border-radius:var(--amg-r);overflow:hidden}
.amg .amg-stat{padding:16px 18px;border-top:1px solid var(--amg-line);border-left:1px solid var(--amg-line)}
.amg .amg-stat:nth-child(-n+2){border-top:0}
.amg .amg-stat:nth-child(odd){border-left:0}
.amg .amg-stat__label{font-size:11px;color:var(--amg-ink-3);letter-spacing:.1em}
.amg .amg-stat__value{font-family:var(--amg-serif);font-size:28px;font-weight:600;line-height:1.3;color:var(--amg-ink)}
.amg .amg-stat__value small{font-family:var(--amg-sans);font-size:12px;font-weight:400;margin-left:2px;color:var(--amg-ink-2)}
.amg .amg-stat__note{font-size:11.5px;color:var(--amg-ink-2);line-height:1.6}

/* 人口推移バー（--v に 0〜100 の割合） */
.amg .amg-trend{background:var(--amg-paper);border-radius:var(--amg-r);padding:16px 18px}
.amg .amg-trend__title{font-size:12px;letter-spacing:.1em;color:var(--amg-ink-3);margin:0 0 12px}
.amg .amg-trend__bars{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:10px;align-items:end;height:150px}
.amg .amg-trend__bar{display:grid;grid-template-rows:auto 1fr auto;justify-items:center;height:100%;gap:4px}
.amg .amg-trend__bar b{order:0}
.amg .amg-trend__bar i{display:block;width:100%;max-width:38px;height:calc(var(--v) * 1%);align-self:end;background:var(--amg-accent);opacity:.35;border-radius:3px 3px 0 0}
.amg .amg-trend__bar:last-child i{opacity:1}
.amg .amg-trend__bar b{font-size:11px;font-weight:600;line-height:1}
.amg .amg-trend__bar span{font-size:10.5px;color:var(--amg-ink-3);line-height:1}

/* ---------- 駅・路線 ---------- */
.amg .amg-lines{display:grid;gap:10px;margin-bottom:16px}
.amg .amg-line{display:grid;grid-template-columns:150px 1fr;gap:14px;align-items:center;padding:12px 16px;border:1px solid var(--amg-line);border-radius:var(--amg-r)}
.amg .amg-line__name{font-weight:600;font-size:14px;display:flex;align-items:center;gap:8px}
.amg .amg-line__name::before{content:"";width:12px;height:12px;border-radius:50%;border:3px solid var(--c,var(--amg-accent))}
.amg .amg-line__stations{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13.5px}
.amg .amg-line__stations span::after{content:"駅";color:var(--amg-ink-3);font-size:11px;margin-left:1px}

/* ---------- 季節の見どころ（12か月カレンダー） ---------- */
.amg .amg-cal{border:1px solid var(--amg-line);border-radius:var(--amg-r);overflow:hidden}
.amg .amg-cal__months,.amg .amg-cal__row{display:grid;grid-template-columns:150px repeat(12,1fr)}
.amg .amg-cal__months{background:var(--amg-paper);font-size:11px;color:var(--amg-ink-3);text-align:center}
.amg .amg-cal__months span{padding:6px 0}
.amg .amg-cal__months span:first-child{text-align:left;padding-left:14px}
.amg .amg-cal__row{border-top:1px solid var(--amg-line);align-items:center;min-height:42px;
  background-image:repeating-linear-gradient(90deg,transparent 0 calc(100%/12 - 1px),var(--amg-line) calc(100%/12 - 1px) calc(100%/12));
  background-position:150px 0;background-size:calc(100% - 150px) 100%;background-repeat:no-repeat}
.amg .amg-cal__label{font-size:13px;font-weight:600;padding:8px 14px;line-height:1.4}
.amg .amg-cal__label small{display:block;font-size:10.5px;font-weight:400;color:var(--amg-ink-3)}
.amg .amg-cal__bar{grid-column:var(--from) / var(--to);height:14px;border-radius:999px;background:var(--c,var(--amg-accent));margin:0 3px}
.amg .amg-cal__note{font-size:11.5px;color:var(--amg-ink-3);margin-top:8px}

/* ---------- 店舗リスト ---------- */
.amg .amg-shops{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.amg .amg-shop{display:grid;grid-template-columns:96px 1fr;gap:14px;padding:14px;border:1px solid var(--amg-line);border-radius:var(--amg-r)}
.amg .amg-shop .amg-ph,.amg .amg-shop img{aspect-ratio:1/1;border-radius:4px;width:100%;object-fit:cover}
.amg .amg-shop .amg-ph span{font-size:10px;padding:2px 5px}
.amg .amg-shop__genre{display:inline-block;font-size:10.5px;line-height:1;padding:4px 7px;border-radius:3px;background:var(--amg-accent-soft);color:var(--amg-accent);margin-bottom:4px}
.amg .amg-shop__name{font-weight:600;font-size:15px;line-height:1.45;margin:0 0 4px}
.amg .amg-shop__name ruby rt{font-weight:400}
.amg .amg-shop p{font-size:12.5px;color:var(--amg-ink-2);line-height:1.7;margin:0}
.amg .amg-shop__price{font-size:11.5px;color:var(--amg-ink-3);margin-top:4px}
.amg .amg-shop--ramen .amg-shop__genre{background:var(--amg-warm-soft);color:oklch(0.45 0.1 45)}

/* ---------- 買い物・暮らしの施設 ---------- */
.amg .amg-facility{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.amg .amg-facility div{padding:14px 16px;background:var(--amg-paper);border-radius:var(--amg-r)}
.amg .amg-facility dt{font-size:11px;letter-spacing:.12em;color:var(--amg-accent);font-weight:600;margin-bottom:4px}
.amg .amg-facility dd{margin:0;font-size:13px;line-height:1.75}

/* ---------- スポット詳細の表（既存 .amg-spec を拡張） ---------- */
.amg .amg-spec dd a{color:var(--amg-accent)}

/* ==========================================================
   レスポンシブ
   ========================================================== */
@media (max-width:767px){
  .amg .amg-points{grid-template-columns:1fr}
  .amg .amg-points li + li{padding-left:0;border-left:0;border-top:1px solid var(--amg-line)}
  .amg .amg-stats{grid-template-columns:1fr}
  .amg .amg-line{grid-template-columns:1fr;gap:6px}
  .amg .amg-cal__months,.amg .amg-cal__row{grid-template-columns:96px repeat(12,1fr)}
  .amg .amg-cal__row{background-position:96px 0;background-size:calc(100% - 96px) 100%;
  }
  .amg .amg-cal__label{padding:8px 8px;font-size:12px}
  .amg .amg-cal__months span:first-child{padding-left:8px}
  .amg .amg-shops{grid-template-columns:1fr}
  .amg .amg-facility{grid-template-columns:1fr}
}


/* ##########################################################
   ここから：区ページ用パーツ（政令指定都市の区など）
   ########################################################## */

/* ---------- パンくず（県 › 市 › 区） ---------- */
.amg .amg-parent a + span,.amg .amg-parent a + a{margin-left:0}

/* ---------- 同じ市のほかの区（現在地ハイライト） ---------- */
.amg .amg-wards{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.amg .amg-wards a,.amg .amg-wards span{display:block;font-size:13px;line-height:1;padding:10px 14px;border:1px solid var(--amg-line);border-radius:999px;color:var(--amg-ink);text-decoration:none;transition:border-color .15s,color .15s}
.amg .amg-wards a:hover{border-color:var(--amg-accent);color:var(--amg-accent)}
.amg .amg-wards .is-current{background:var(--amg-accent);border-color:var(--amg-accent);color:#fff;font-weight:600}
.amg .amg-wards-box{display:grid;grid-template-columns:auto 1fr;gap:10px 20px;align-items:center;background:var(--amg-paper);border-radius:var(--amg-r);padding:16px 20px;margin:0 0 40px}
.amg .amg-wards-box__t{font-size:12px;letter-spacing:.12em;color:var(--amg-ink-3);white-space:nowrap}
.amg .amg-wards-box__t b{display:block;font-size:14px;color:var(--amg-ink);letter-spacing:.04em}

/* ---------- 駅ガイド ---------- */
.amg .amg-stations{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.amg .amg-station{border:1px solid var(--amg-line);border-radius:var(--amg-r);overflow:hidden;display:flex;flex-direction:column}
.amg .amg-station__head{padding:14px 16px 12px;border-bottom:3px solid var(--c,var(--amg-accent))}
.amg .amg-station__line{font-size:11px;color:var(--amg-ink-3);letter-spacing:.08em}
.amg .amg-station__name{font:600 19px/1.4 var(--amg-serif);letter-spacing:.06em}
.amg .amg-station__name ruby rt{font-family:var(--amg-sans);font-weight:400}
.amg .amg-station__body{padding:12px 16px 16px;flex:1;display:flex;flex-direction:column;gap:8px}
.amg .amg-station__body p{font-size:13px;color:var(--amg-ink-2);line-height:1.75;margin:0}
.amg .amg-station__tags{display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:0;padding:0}
.amg .amg-station__tags li{font-size:11px;line-height:1;padding:5px 8px;border-radius:3px;background:var(--amg-accent-soft);color:var(--amg-accent)}
.amg .amg-station__time{margin-top:auto;padding-top:8px;border-top:1px dashed var(--amg-line);font-size:12px;display:flex;justify-content:space-between}
.amg .amg-station__time b{font-weight:600}

/* ---------- 区役所・窓口 ---------- */
.amg .amg-office{display:grid;grid-template-columns:1fr 1.1fr;gap:20px;align-items:start}
.amg .amg-office .amg-ph{aspect-ratio:4/3}
.amg .amg-office .amg-data{grid-template-columns:1fr}
.amg .amg-office__map{border-radius:var(--amg-r);overflow:hidden}
.amg .amg-office__map iframe{display:block;width:100%;aspect-ratio:4/3;border:0}

@media (max-width:767px){
  .amg .amg-wards-box{grid-template-columns:1fr}
  .amg .amg-stations{grid-template-columns:1fr}
  .amg .amg-office{grid-template-columns:1fr}
}


/* ##########################################################
   ここから：区のある市ページ用「区から探す」セレクター
   ・絞り込みは CSS のみ（JS不要／WordPressで script が消えても動作）
   ・グループは最大6つ：input に amg-wsel__r1〜r6、カードに data-g="1"〜"6"
   ########################################################## */
.amg .amg-wsel{position:relative}
.amg .amg-wsel > input{position:absolute;opacity:0;pointer-events:none}
.amg .amg-wsel__tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px;padding:0;list-style:none}
.amg .amg-wsel__tabs label{display:block;cursor:pointer;font-size:13px;line-height:1;padding:10px 16px;border-radius:999px;border:1px solid var(--amg-line);color:var(--amg-ink-2);background:#fff;transition:all .15s;user-select:none}
.amg .amg-wsel__tabs label:hover{border-color:var(--amg-accent);color:var(--amg-accent)}
.amg .amg-wsel__tabs label small{font-size:11px;color:var(--amg-ink-3);margin-left:4px}
.amg .amg-wsel__r0:checked ~ .amg-wsel__tabs label[for$="-0"],
.amg .amg-wsel__r1:checked ~ .amg-wsel__tabs label[for$="-1"],
.amg .amg-wsel__r2:checked ~ .amg-wsel__tabs label[for$="-2"],
.amg .amg-wsel__r3:checked ~ .amg-wsel__tabs label[for$="-3"],
.amg .amg-wsel__r4:checked ~ .amg-wsel__tabs label[for$="-4"],
.amg .amg-wsel__r5:checked ~ .amg-wsel__tabs label[for$="-5"],
.amg .amg-wsel__r6:checked ~ .amg-wsel__tabs label[for$="-6"]{background:var(--amg-ink);border-color:var(--amg-ink);color:#fff}
.amg .amg-wsel__r0:checked ~ .amg-wsel__tabs label[for$="-0"] small,
.amg .amg-wsel__r1:checked ~ .amg-wsel__tabs label[for$="-1"] small,
.amg .amg-wsel__r2:checked ~ .amg-wsel__tabs label[for$="-2"] small,
.amg .amg-wsel__r3:checked ~ .amg-wsel__tabs label[for$="-3"] small,
.amg .amg-wsel__r4:checked ~ .amg-wsel__tabs label[for$="-4"] small,
.amg .amg-wsel__r5:checked ~ .amg-wsel__tabs label[for$="-5"] small,
.amg .amg-wsel__r6:checked ~ .amg-wsel__tabs label[for$="-6"] small{color:rgba(255,255,255,.7)}
.amg .amg-wsel > input:focus-visible ~ .amg-wsel__tabs{outline:2px solid var(--amg-accent);outline-offset:4px;border-radius:999px}

.amg .amg-wsel__r1:checked ~ .amg-wsel__grid .amg-wcard:not([data-g="1"]),
.amg .amg-wsel__r2:checked ~ .amg-wsel__grid .amg-wcard:not([data-g="2"]),
.amg .amg-wsel__r3:checked ~ .amg-wsel__grid .amg-wcard:not([data-g="3"]),
.amg .amg-wsel__r4:checked ~ .amg-wsel__grid .amg-wcard:not([data-g="4"]),
.amg .amg-wsel__r5:checked ~ .amg-wsel__grid .amg-wcard:not([data-g="5"]),
.amg .amg-wsel__r6:checked ~ .amg-wsel__grid .amg-wcard:not([data-g="6"]){display:none}

.amg .amg-wsel__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.amg .amg-wcard{display:flex;flex-direction:column;gap:6px;position:relative;padding:16px 18px 14px;border:1px solid var(--amg-line);border-radius:var(--amg-r);color:var(--amg-ink);text-decoration:none;background:#fff;transition:border-color .15s,box-shadow .15s,transform .15s}
.amg .amg-wcard:hover{border-color:var(--amg-accent);box-shadow:0 10px 24px -16px rgba(0,0,0,.35);transform:translateY(-2px)}
.amg .amg-wcard__area{font-size:10.5px;letter-spacing:.12em;color:var(--amg-ink-3)}
.amg .amg-wcard__name{font:600 20px/1.3 var(--amg-serif);letter-spacing:.08em;display:flex;align-items:baseline;gap:8px}
.amg .amg-wcard__name small{font:400 11px var(--amg-sans);letter-spacing:.06em;color:var(--amg-ink-3)}
.amg .amg-wcard__catch{font-size:13px;line-height:1.65;color:var(--amg-ink-2);margin:0}
.amg .amg-wcard__tags{display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:2px 0 0;padding:0}
.amg .amg-wcard__tags li{font-size:11px;line-height:1;padding:5px 8px;border-radius:3px;background:var(--amg-accent-soft);color:var(--amg-accent)}
.amg .amg-wcard__st{margin-top:auto;padding-top:8px;border-top:1px dashed var(--amg-line);font-size:11.5px;color:var(--amg-ink-3);display:flex;justify-content:space-between;align-items:center}
.amg .amg-wcard__st::after{content:"→";color:var(--amg-ink-3);transition:transform .15s,color .15s}
.amg .amg-wcard:hover .amg-wcard__st::after{color:var(--amg-accent);transform:translateX(3px)}
.amg .amg-wcard--soon{pointer-events:none;opacity:.55}
.amg .amg-wcard--soon .amg-wcard__st::after{content:"準備中";font-size:11px}


@media (max-width:991px){ .amg .amg-wsel__grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:767px){
  .amg .amg-wsel__tabs{flex-wrap:nowrap;overflow-x:auto;margin-right:-20px;padding-right:20px;scrollbar-width:none}
  .amg .amg-wsel__tabs label{white-space:nowrap}
  .amg .amg-wsel__grid{grid-template-columns:1fr 1fr;gap:8px}
  .amg .amg-wcard{padding:12px 12px 10px}
  .amg .amg-wcard__name{font-size:17px;flex-direction:column;gap:0}
  .amg .amg-wcard__catch{font-size:12px}
  .amg .amg-wcard__tags{display:none}
}


/* ##########################################################
   ここから：神社仏閣
   ########################################################## */
.amg .amg-shrines{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.amg .amg-shrine{display:flex;flex-direction:column;border:1px solid var(--amg-line);border-radius:var(--amg-r);overflow:hidden;background:#fff}
.amg .amg-shrine > .amg-ph,.amg .amg-shrine > img{aspect-ratio:16/9;border-radius:0;width:100%;object-fit:cover}
.amg .amg-shrine__body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.amg .amg-shrine__meta{display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--amg-ink-3);letter-spacing:.06em}
.amg .amg-shrine__type{display:inline-block;font-size:11px;font-weight:600;line-height:1;padding:5px 8px;border-radius:3px;letter-spacing:.1em;color:#fff;background:oklch(0.55 0.15 32)}
.amg .amg-shrine__type.is-tera{background:oklch(0.42 0.05 160)}
.amg .amg-shrine__type.is-byo{background:oklch(0.5 0.12 75)}
.amg .amg-shrine .amg-h3{margin:0}
.amg .amg-shrine__body > p{font-size:13.5px;color:var(--amg-ink-2);line-height:1.8;margin:0}
.amg .amg-shrine .amg-spec{margin-top:auto}

/* 参拝の基本（任意ブロック） */
.amg .amg-manner{margin:20px 0 0;background:var(--amg-paper);border-radius:var(--amg-r);padding:18px 20px}
.amg .amg-manner__t{font-size:12px;letter-spacing:.14em;color:var(--amg-ink-3);margin:0 0 10px}
.amg .amg-manner ol{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0;padding:0;list-style:none;counter-reset:mn}
.amg .amg-manner li{counter-increment:mn;font-size:12.5px;line-height:1.7;color:var(--amg-ink-2)}
.amg .amg-manner li::before{content:counter(mn);display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#fff;color:var(--amg-accent);font-weight:600;font-size:11px;margin-right:6px;border:1px solid var(--amg-line)}
.amg .amg-manner li b{color:var(--amg-ink)}

@media (max-width:767px){
  .amg .amg-shrines{grid-template-columns:1fr}
  .amg .amg-manner ol{grid-template-columns:1fr 1fr}
}


/* ##########################################################
   v1.1 修正：「こちらもおすすめ」と WordPress 自動整形（wpautop）対策
   ・クラシックエディターでは改行が <br> / 空の <p> に変換され、
     グリッドの1マスを占有して並びが崩れるため、.amg 内では無効化
   ########################################################## */
.amg .amg-more > br,.amg .amg-gourmet > br,.amg .amg-shops > br,.amg .amg-shrines > br,
.amg .amg-wsel__grid > br,.amg .amg-stations > br,.amg .amg-area > br,.amg .amg-facility > br,
.amg .amg-onsen > br,.amg .amg-special > br,.amg .amg-season > br,.amg .amg-access > br,
.amg .amg-course__days > br,.amg .amg-data > br,.amg .amg-stats__grid > br,.amg .amg-trend__bars > br,
.amg .amg-points > br,.amg .amg-gift > br,.amg .amg-tips > br,.amg .amg-near > br,.amg .amg-facts > br{display:none}
.amg p:empty{display:none}
/* wpautop がカードを <p> で包んだ場合も、中身をグリッドの子として扱う */
.amg .amg-more > p,.amg .amg-wsel__grid > p,.amg .amg-gourmet > p,.amg .amg-shops > p,.amg .amg-shrines > p{display:contents}

/* ---------- こちらもおすすめ：件数に合わせて自動レイアウト ---------- */
.amg .amg-more{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:20px 16px;margin-top:4px}
.amg .amg-card{position:relative;display:flex;flex-direction:column;gap:4px}
.amg .amg-card .amg-ph,.amg .amg-card img{margin-bottom:6px;transition:opacity .2s}
.amg .amg-card__title{margin:2px 0 0}
.amg .amg-card__title a{color:var(--amg-ink);text-decoration:none}
.amg .amg-card__title a::after{content:"";position:absolute;inset:0;z-index:1}  /* カード全体をクリック可能に */
.amg .amg-card:hover .amg-card__title a{color:var(--amg-accent)}
.amg .amg-card:hover .amg-ph,.amg .amg-card:hover img{opacity:.85}
.amg .amg-card__area{order:-1;margin-top:0}
.amg .amg-card .amg-ph,.amg .amg-card img{order:-2}

/* SP：横長リスト（画像左・テキスト右）で読みやすく */
@media (max-width:767px){
  .amg .amg-more{grid-template-columns:1fr;gap:0;border-top:1px solid var(--amg-line)}
  .amg .amg-card{display:grid;grid-template-columns:112px 1fr;grid-template-rows:auto auto 1fr;column-gap:14px;row-gap:2px;padding:14px 0;border-bottom:1px solid var(--amg-line)}
  .amg .amg-card .amg-ph,.amg .amg-card img{grid-row:1 / 4;grid-column:1;margin:0;aspect-ratio:1/1;align-self:start}
  .amg .amg-card .amg-ph span{font-size:10px;padding:2px 5px}
  .amg .amg-card__area,.amg .amg-card__title,.amg .amg-card > p{grid-column:2}
  .amg .amg-card__title{font-size:14.5px}
  .amg .amg-card > p:not(.amg-card__title){font-size:12px;line-height:1.7}
}

/* 区から探す：同じくリンク外出し構造に対応 */
.amg .amg-wcard{position:relative}
.amg .amg-wcard__name a{color:inherit;text-decoration:none}
.amg .amg-wcard__name a::after{content:"";position:absolute;inset:0;z-index:1}


/* ##########################################################
   v1.2 修正：WordPress 自動整形で生じる「空の行・余分な罫線」対策
   ・カード以外の要素（空 <p>、<br>、テーマが付ける装飾）をグリッドから完全に除外
   ・罫線はカード自身ではなく「2枚目以降のカードの上」にだけ引く
   ########################################################## */
.amg .amg-more > :not(.amg-card):not(p),
.amg .amg-more > p:not(:has(.amg-card)),
.amg .amg-more > p > :not(.amg-card),
.amg .amg-card > br,
.amg .amg-card > p:empty{display:none !important}
.amg .amg-more > p{display:contents !important;margin:0 !important;padding:0 !important;border:0 !important}
/* 自動整形でカードが分断され、中身のない .amg-card ができた場合も非表示 */
.amg .amg-more .amg-card:not(:has(.amg-card__title)),
.amg .amg-more > :empty{display:none !important}

@media (max-width:767px){
  .amg .amg-more{border-top:0;row-gap:0}
  .amg .amg-card{border-bottom:0;border-top:0;padding:14px 0}
  .amg .amg-card ~ .amg-card{border-top:1px solid var(--amg-line)}
  .amg .amg-more{border-bottom:1px solid var(--amg-line)}
  .amg .amg-subhead + .amg-more,.amg .amg-subhead + p + .amg-more{margin-top:0}
}


/* ##########################################################
   v1.3 追加：郷土料理／伝統工芸
   ########################################################## */
/* ---------- 郷土料理：2列カード（奇数の最後は全幅横長） ---------- */
.amg .amg-kyodo{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.amg .amg-kyodo > br,.amg .amg-kyodo > p:not(:has(article)){display:none !important}
.amg .amg-kyodo > p{display:contents !important}
.amg .amg-kyodo__item{display:flex;flex-direction:column;border:1px solid var(--amg-line);border-radius:var(--amg-r);overflow:hidden;background:#fff}
.amg .amg-kyodo__item > .amg-ph,.amg .amg-kyodo__item > img{aspect-ratio:3/2;border-radius:0;width:100%;object-fit:cover}
.amg .amg-kyodo__body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.amg .amg-kyodo__area{font-size:11px;letter-spacing:.12em;color:var(--amg-warm);font-weight:600;margin:0}
.amg .amg-kyodo__item .amg-h3{margin:0}
.amg .amg-kyodo__body > p:not(.amg-kyodo__area){font-size:13.5px;color:var(--amg-ink-2);line-height:1.8;margin:0}
.amg .amg-kyodo__item .amg-spec{margin-top:auto}
.amg .amg-kyodo__item:last-of-type:nth-of-type(odd){grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr}
.amg .amg-kyodo__item:last-of-type:nth-of-type(odd) > .amg-ph,
.amg .amg-kyodo__item:last-of-type:nth-of-type(odd) > img{aspect-ratio:auto;height:100%;min-height:240px}
.amg .amg-sec__note{font-size:12px;color:var(--amg-ink-3);margin:12px 0 0}

/* ---------- 伝統工芸：横長リスト（画像左・本文右） ---------- */
.amg .amg-kogei{display:grid;gap:0;border-top:1px solid var(--amg-line)}
.amg .amg-kogei > br,.amg .amg-kogei > p:not(:has(article)){display:none !important}
.amg .amg-kogei > p{display:contents !important}
.amg .amg-kogei__item{display:grid;grid-template-columns:220px 1fr;gap:22px;padding:22px 0;border-bottom:1px solid var(--amg-line)}
.amg .amg-kogei__item > .amg-ph,.amg .amg-kogei__item > img{aspect-ratio:1/1;width:100%;object-fit:cover}
.amg .amg-kogei__body{display:flex;flex-direction:column;gap:6px;min-width:0}
.amg .amg-kogei__meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:11.5px;color:var(--amg-ink-3);margin:0}
.amg .amg-kogei__badge{display:inline-block;font-size:10.5px;font-weight:600;line-height:1;padding:5px 8px;border-radius:3px;letter-spacing:.08em;border:1px solid currentColor;color:var(--amg-accent)}
.amg .amg-kogei__badge.is-pref{color:var(--amg-warm)}
.amg .amg-kogei__badge.is-local{color:var(--amg-ink-3)}
.amg .amg-kogei__item .amg-h3{margin:0}
.amg .amg-kogei__body > p:not(.amg-kogei__meta){font-size:13.5px;color:var(--amg-ink-2);line-height:1.8;margin:0}
.amg .amg-kogei__exp{display:flex;align-items:center;gap:10px;margin-top:auto;padding:10px 12px;background:var(--amg-paper);border-radius:4px;font-size:12.5px;line-height:1.6}
.amg .amg-kogei__exp b{flex:none;font-size:11px;font-weight:600;letter-spacing:.1em;color:#fff;background:var(--amg-ink);padding:4px 8px;border-radius:3px}

@media (max-width:767px){
  .amg .amg-kyodo{grid-template-columns:1fr;gap:14px}
  .amg .amg-kyodo__item:last-of-type:nth-of-type(odd){display:flex}
  .amg .amg-kyodo__item:last-of-type:nth-of-type(odd) > .amg-ph,
  .amg .amg-kyodo__item:last-of-type:nth-of-type(odd) > img{aspect-ratio:3/2;height:auto;min-height:0}
  .amg .amg-kogei__item{grid-template-columns:96px 1fr;gap:14px;padding:16px 0}
  .amg .amg-kogei__item > .amg-ph span{font-size:10px;padding:2px 5px}
  .amg .amg-kogei__exp{grid-column:1 / -1;flex-direction:column;align-items:flex-start;gap:6px}
}


/* ##########################################################
   v1.4 追加：詳細オーバーレイ（スポット情報・地域情報）
   ・HTML標準の Popover API を使用（JavaScript不要）
     トリガー：<button popovertarget="ov-xxx">／本体：<div id="ov-xxx" class="amg-ov" popover>
   ・ESCキー・背景タップで閉じる。PCは中央モーダル、SPは下からのボトムシート
   ・対応：Chrome/Edge 114+・Safari 17+・Firefox 125+
   ########################################################## */

/* ---------- トリガー（カード全体をタップ可能に） ---------- */
.amg .amg-spot,.amg .amg-shrine,.amg .amg-area__item,.amg .amg-station,.amg .amg-card{position:relative}
.amg .amg-ov-open{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;gap:8px;align-self:flex-start;
  margin:10px 0 0;padding:7px 8px 7px 14px;border:1px solid var(--amg-line);border-radius:999px;background:#fff;
  font:600 12px/1 var(--amg-sans);letter-spacing:.08em;color:var(--amg-ink);cursor:pointer;transition:border-color .15s,color .15s,background .15s}
.amg .amg-ov-open::after{content:"+";display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;
  background:var(--amg-ink);color:#fff;font:400 15px/1 var(--amg-sans);transition:background .15s}
.amg .amg-ov-open::before{content:"";position:absolute;inset:0;z-index:2;border-radius:inherit}
.amg :is(.amg-spot,.amg-shrine,.amg-area__item,.amg-station,.amg-card):hover .amg-ov-open{border-color:var(--amg-accent);color:var(--amg-accent)}
.amg :is(.amg-spot,.amg-shrine,.amg-area__item,.amg-station,.amg-card):hover .amg-ov-open::after{background:var(--amg-accent)}
.amg .amg-ov-open:focus-visible{outline:2px solid var(--amg-accent);outline-offset:2px}
.amg :is(.amg-shrine,.amg-area__item,.amg-station){cursor:pointer;transition:border-color .15s,box-shadow .15s}
.amg :is(.amg-shrine,.amg-area__item,.amg-station):has(.amg-ov-open):hover{border-color:var(--amg-accent);box-shadow:0 10px 24px -18px rgba(0,0,0,.4)}
.amg .amg-station .amg-ov-open{margin-top:4px}

/* オーバーレイがある場合、ページ側の本文は要約表示 */
.amg .amg-spot:has(.amg-ov) .amg-spot__body > p,
.amg .amg-shrine:has(.amg-ov) .amg-shrine__body > p:not(.amg-shrine__meta),
.amg .amg-area__item:has(.amg-ov) > p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.amg .amg-spot:has(.amg-ov) .amg-spot__body > p{-webkit-line-clamp:4}
.amg .amg-card:has(.amg-ov) > p:not(.amg-card__title){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

/* ---------- オーバーレイ本体 ---------- */
.amg .amg-ov{position:fixed;inset:0;margin:auto;width:min(720px,calc(100vw - 32px));height:fit-content;max-height:min(88vh,880px);
  padding:0;border:0;border-radius:14px;background:#fff;color:var(--amg-ink);overflow:auto;overscroll-behavior:contain;
  box-shadow:0 40px 90px -24px rgba(0,0,0,.5);font-family:var(--amg-sans);font-size:15px;line-height:1.85;letter-spacing:.02em;text-align:left;cursor:auto;
  opacity:0;transform:translateY(18px) scale(.98);
  transition:opacity .25s ease,transform .32s cubic-bezier(.2,.8,.2,1),overlay .32s allow-discrete,display .32s allow-discrete}
.amg .amg-ov:popover-open{opacity:1;transform:none}
@starting-style{.amg .amg-ov:popover-open{opacity:0;transform:translateY(18px) scale(.98)}}
.amg .amg-ov::backdrop{background:rgba(18,20,22,0);backdrop-filter:blur(0);transition:background .3s,backdrop-filter .3s,overlay .3s allow-discrete,display .3s allow-discrete}
.amg .amg-ov:popover-open::backdrop{background:rgba(18,20,22,.62);backdrop-filter:blur(3px)}
@starting-style{.amg .amg-ov:popover-open::backdrop{background:rgba(18,20,22,0);backdrop-filter:blur(0)}}
html:has(.amg-ov:popover-open){overflow:hidden}

/* 閉じるボタン（画像の上に固定） */
.amg .amg-ov__bar{position:sticky;top:0;height:0;z-index:5;display:flex;justify-content:flex-end}
.amg .amg-ov__close{appearance:none;-webkit-appearance:none;position:relative;margin:14px 14px 0 0;width:40px;height:40px;border:0;border-radius:50%;
  background:rgba(255,255,255,.94);box-shadow:0 4px 14px -4px rgba(0,0,0,.35);cursor:pointer;flex:none}
.amg .amg-ov__close::before,.amg .amg-ov__close::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:1.5px;background:var(--amg-ink);border-radius:1px}
.amg .amg-ov__close::before{transform:translate(-50%,-50%) rotate(45deg)}
.amg .amg-ov__close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.amg .amg-ov__close:hover{background:#fff}
.amg .amg-ov__close:focus-visible{outline:2px solid var(--amg-accent);outline-offset:2px}

.amg .amg-ov__media .amg-ph,.amg .amg-ov__media img{display:flex;width:100%;aspect-ratio:16/9;height:auto;border-radius:0;margin:0;object-fit:cover;opacity:1 !important;grid-row:auto;order:0}
.amg .amg-ov__body{padding:22px 30px 6px}
.amg .amg-ov p{font-size:14.5px;line-height:1.9;color:var(--amg-ink-2);margin:0}
.amg .amg-ov .amg-ov__label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:11.5px;letter-spacing:.12em;color:var(--amg-accent);font-weight:600;margin:0 0 4px}
.amg .amg-ov .amg-ov__label .amg-shrine__type{color:#fff}
.amg .amg-ov .amg-ov__title{font:600 25px/1.45 var(--amg-serif);letter-spacing:.06em;color:var(--amg-ink);margin:0 0 14px}
.amg .amg-ov .amg-ov__title ruby rt{font-family:var(--amg-sans);font-weight:400;font-size:.42em;letter-spacing:.08em}
.amg .amg-ov .amg-ov__title small{display:block;font:400 12px var(--amg-sans);letter-spacing:.1em;color:var(--amg-ink-3);margin-top:2px}
.amg .amg-ov .amg-ov__desc{color:var(--amg-ink)}
.amg .amg-ov .amg-ov__h{font-size:11.5px;font-weight:600;letter-spacing:.16em;color:var(--amg-ink-3);margin:22px 0 10px;padding-top:18px;border-top:1px solid var(--amg-line)}
.amg .amg-ov .amg-spec{margin:0;padding:0;border:0;font-size:13.5px;gap:9px 20px;line-height:1.7}
.amg .amg-ov .amg-chips{margin:0}
.amg .amg-ov .amg-station__tags{margin:0}
.amg .amg-ov .amg-station__time{margin:12px 0 0;padding:10px 14px;border:0;border-radius:6px;background:var(--amg-paper);font-size:13px}

/* もっと見る（ブログ記事へ） */
.amg .amg-ov__foot{position:sticky;bottom:0;z-index:4;padding:26px 30px 24px;background:linear-gradient(rgba(255,255,255,0),#fff 22px)}
.amg .amg-ov__more{display:flex;align-items:center;gap:14px;width:100%;padding:15px 16px 15px 22px;border-radius:10px;background:var(--amg-ink);color:#fff !important;text-decoration:none;transition:background .15s}
.amg .amg-ov__more span{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.amg .amg-ov__more b{font:600 15.5px/1.3 var(--amg-sans);letter-spacing:.1em}
.amg .amg-ov__more small{font-size:11.5px;line-height:1.4;opacity:.72;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amg .amg-ov__more::after{content:"→";flex:none;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.14);font-size:15px;transition:transform .2s,background .15s}
.amg .amg-ov__more:hover{background:var(--amg-accent)}
.amg .amg-ov__more:hover::after{transform:translateX(3px);background:rgba(255,255,255,.22)}

/* ---------- SP：ボトムシート ---------- */
@media (max-width:767px){
  .amg .amg-ov-open{margin-top:8px;padding:6px 7px 6px 12px;font-size:11.5px}
  .amg .amg-card .amg-ov-open{grid-column:2;margin-top:6px}
  .amg .amg-ov{inset:auto 0 0 0;margin:0;width:100%;max-width:none;max-height:92vh;max-height:92dvh;border-radius:18px 18px 0 0;transform:translateY(100%)}
  .amg .amg-ov:popover-open{transform:none}
  @starting-style{.amg .amg-ov:popover-open{transform:translateY(100%)}}
  .amg .amg-ov__bar::before{content:"";position:absolute;left:50%;top:8px;width:44px;height:4px;border-radius:2px;background:rgba(255,255,255,.9);transform:translateX(-50%);box-shadow:0 1px 4px rgba(0,0,0,.25)}
  .amg .amg-ov__close{width:36px;height:36px;margin:12px 12px 0 0}
  .amg .amg-ov__body{padding:18px 20px 4px}
  .amg .amg-ov .amg-ov__title{font-size:21px;margin-bottom:10px}
  .amg .amg-ov p{font-size:14px}
  .amg .amg-ov .amg-spec{grid-template-columns:1fr;gap:2px}
  .amg .amg-ov .amg-spec dd{margin-bottom:8px}
  .amg .amg-ov__foot{padding:20px 20px calc(16px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){.amg .amg-ov,.amg .amg-ov::backdrop{transition:none}}


/* ##########################################################
   v1.5 修正：ページ上の「詳しく見る」ボタンを非表示化
   ・カード全体をタップ領域にする（ボタンは透明でカード全面を覆う）
   ・「詳しく見る」はオーバーレイ下部のボタンのみに表示
   ########################################################## */
.amg .amg-ov-open{position:absolute;inset:auto;top:0;left:0;width:100%;height:100%;min-height:0;z-index:2;display:block;margin:0 !important;padding:0;border:0;border-radius:inherit;
  background:transparent;font-size:0;line-height:0;color:transparent;cursor:pointer;grid-column:auto !important}
.amg .amg-ov-open::before,.amg .amg-ov-open::after{content:none}
.amg .amg-ov-open:focus-visible{outline:2px solid var(--amg-accent);outline-offset:4px}
.amg :is(.amg-spot,.amg-shrine,.amg-area__item,.amg-station,.amg-card):has(.amg-ov-open){cursor:pointer}
/* ホバー時の手がかり（画像を少し明るく・タイトルをアクセント色に） */
.amg :is(.amg-spot,.amg-shrine,.amg-card):has(.amg-ov-open) :is(.amg-ph,img){transition:opacity .2s,transform .3s}
.amg :is(.amg-spot,.amg-shrine,.amg-card):has(.amg-ov-open):hover :is(.amg-ph,img){opacity:.88}
.amg :is(.amg-spot,.amg-shrine,.amg-card):has(.amg-ov-open):hover :is(.amg-h3,.amg-card__title){color:var(--amg-accent)}
.amg .amg-area__item:has(.amg-ov-open):hover .amg-area__name,
.amg .amg-station:has(.amg-ov-open):hover .amg-station__name{color:var(--amg-accent)}
.amg .amg-area__item:has(.amg-ov-open){transition:border-color .15s,box-shadow .15s}
.amg .amg-area__item:has(.amg-ov-open):hover{border-color:var(--amg-accent);box-shadow:0 10px 24px -18px rgba(0,0,0,.4)}
/* オーバーレイ内の要素はクリック可能なまま */
.amg .amg-ov{z-index:auto}


/* ##########################################################
   v1.6 追加：オーバーレイ対象を拡張
   （ご当地・名物／郷土料理／伝統工芸／人気店／ラーメン／買い物・暮らし）
   ########################################################## */
.amg :is(.amg-gourmet__item,.amg-kyodo__item,.amg-kogei__item,.amg-shop,.amg-facility__item){position:relative}
.amg :is(.amg-gourmet__item,.amg-kyodo__item,.amg-kogei__item,.amg-shop,.amg-facility__item):has(.amg-ov-open){cursor:pointer}
.amg :is(.amg-gourmet__item,.amg-kyodo__item,.amg-kogei__item,.amg-shop):has(.amg-ov-open) :is(.amg-ph,img){transition:opacity .2s}
.amg :is(.amg-gourmet__item,.amg-kyodo__item,.amg-kogei__item,.amg-shop):has(.amg-ov-open):hover :is(.amg-ph,img){opacity:.88}
.amg :is(.amg-gourmet__item,.amg-kyodo__item,.amg-kogei__item):has(.amg-ov-open):hover .amg-h3,
.amg .amg-shop:has(.amg-ov-open):hover .amg-shop__name,
.amg .amg-facility__item:has(.amg-ov-open):hover dt{color:var(--amg-accent)}
.amg :is(.amg-kyodo__item,.amg-shop,.amg-facility__item):has(.amg-ov-open){transition:border-color .15s,box-shadow .15s,background .15s}
.amg :is(.amg-kyodo__item,.amg-shop):has(.amg-ov-open):hover{border-color:var(--amg-accent);box-shadow:0 10px 24px -18px rgba(0,0,0,.4)}
.amg .amg-facility__item:has(.amg-ov-open):hover{background:var(--amg-accent-soft)}
.amg .amg-facility__item{padding:14px 16px;background:var(--amg-paper);border-radius:var(--amg-r)}
.amg .amg-facility__item dd{position:static}
.amg .amg-facility__item:has(.amg-ov-open) dt::after{content:"›";margin-left:6px;font-weight:400;opacity:.6}
/* ページ側は要約表示 */
.amg :is(.amg-kyodo__item,.amg-kogei__item):has(.amg-ov) :is(.amg-kyodo__body,.amg-kogei__body) > p:not([class]){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.amg .amg-kyodo__item:has(.amg-ov) .amg-spec{display:none}
.amg .amg-shop:has(.amg-ov) > div > p:not([class]){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
/* 画像なしオーバーレイ（暮らしの情報） */
.amg .amg-ov__body.is-nomedia{padding-top:30px;padding-right:72px}
.amg .amg-ov__list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.amg .amg-ov__list li{position:relative;padding:8px 12px 8px 28px;background:var(--amg-paper);border-radius:6px;font-size:13.5px;line-height:1.6}
.amg .amg-ov__list li::before{content:"";position:absolute;left:12px;top:15px;width:6px;height:6px;border-radius:50%;background:var(--amg-accent)}
@media (max-width:767px){ .amg .amg-ov__body.is-nomedia{padding-top:56px;padding-right:20px} }


/* ##########################################################
   v1.7 追加：必食ラーメン（系統タブ・タグ・店舗詳細ボタン）
   ・系統：data-g＝1 二郎系／2 家系／3 ちゃん系／4 つけ麺系／5 ラーショ系／6 その他
   ・絞り込みは CSS の :has() で動作（JS不要。自動整形で <p> に包まれても動く）
   ・店舗が0件の系統タブは自動で非表示
   ########################################################## */
.amg .amg-rg--1,.amg .amg-rsel label[for$="-1"]{--rg:oklch(0.6 0.12 95)}
.amg .amg-rg--2,.amg .amg-rsel label[for$="-2"]{--rg:oklch(0.52 0.13 30)}
.amg .amg-rg--3,.amg .amg-rsel label[for$="-3"]{--rg:oklch(0.52 0.11 330)}
.amg .amg-rg--4,.amg .amg-rsel label[for$="-4"]{--rg:oklch(0.52 0.1 210)}
.amg .amg-rg--5,.amg .amg-rsel label[for$="-5"]{--rg:oklch(0.52 0.11 150)}
.amg .amg-rg--6,.amg .amg-rsel label[for$="-6"]{--rg:oklch(0.5 0.02 250)}
.amg .amg-shop__genre[class*="amg-rg--"]{background:var(--rg) !important;color:#fff !important}

/* タブ */
.amg .amg-rsel input[type="radio"]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.amg .amg-rsel > br,.amg .amg-rsel > p:empty{display:none}
.amg .amg-rsel > p:has(input){display:contents}
.amg .amg-rsel__tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;padding:0;list-style:none}
.amg .amg-rsel__tabs label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:13px;line-height:1;padding:10px 15px;border-radius:999px;border:1px solid var(--amg-line);color:var(--amg-ink-2);background:#fff;transition:all .15s;user-select:none}
.amg .amg-rsel__tabs label i{display:block;width:8px;height:8px;border-radius:50%;background:var(--rg)}
.amg .amg-rsel__tabs label small{font-size:11px;color:var(--amg-ink-3)}
.amg .amg-rsel__tabs label:hover{border-color:var(--rg,var(--amg-accent));color:var(--amg-ink)}
.amg .amg-rsel:has(.amg-rsel__r0:checked) label[for$="-0"]{background:var(--amg-ink);border-color:var(--amg-ink);color:#fff}
.amg .amg-rsel:has(.amg-rsel__r1:checked) label[for$="-1"],
.amg .amg-rsel:has(.amg-rsel__r2:checked) label[for$="-2"],
.amg .amg-rsel:has(.amg-rsel__r3:checked) label[for$="-3"],
.amg .amg-rsel:has(.amg-rsel__r4:checked) label[for$="-4"],
.amg .amg-rsel:has(.amg-rsel__r5:checked) label[for$="-5"],
.amg .amg-rsel:has(.amg-rsel__r6:checked) label[for$="-6"]{background:var(--rg);border-color:var(--rg);color:#fff}
.amg .amg-rsel:has(input:checked) label:is([for$="-0"],[for$="-1"],[for$="-2"],[for$="-3"],[for$="-4"],[for$="-5"],[for$="-6"]) small{color:inherit;opacity:.7}
.amg .amg-rsel:has(.amg-rsel__r1:checked) label[for$="-1"] i,.amg .amg-rsel:has(.amg-rsel__r2:checked) label[for$="-2"] i,
.amg .amg-rsel:has(.amg-rsel__r3:checked) label[for$="-3"] i,.amg .amg-rsel:has(.amg-rsel__r4:checked) label[for$="-4"] i,
.amg .amg-rsel:has(.amg-rsel__r5:checked) label[for$="-5"] i,.amg .amg-rsel:has(.amg-rsel__r6:checked) label[for$="-6"] i{background:#fff}
.amg .amg-rsel:has(input:focus-visible) .amg-rsel__tabs{outline:2px solid var(--amg-accent);outline-offset:4px;border-radius:12px}
/* 店舗0件の系統タブを隠す */
.amg .amg-rsel:not(:has(.amg-shop[data-g="1"])) .amg-rsel__tabs li:has(label[for$="-1"]),
.amg .amg-rsel:not(:has(.amg-shop[data-g="2"])) .amg-rsel__tabs li:has(label[for$="-2"]),
.amg .amg-rsel:not(:has(.amg-shop[data-g="3"])) .amg-rsel__tabs li:has(label[for$="-3"]),
.amg .amg-rsel:not(:has(.amg-shop[data-g="4"])) .amg-rsel__tabs li:has(label[for$="-4"]),
.amg .amg-rsel:not(:has(.amg-shop[data-g="5"])) .amg-rsel__tabs li:has(label[for$="-5"]),
.amg .amg-rsel:not(:has(.amg-shop[data-g="6"])) .amg-rsel__tabs li:has(label[for$="-6"]){display:none}
/* 絞り込み */
.amg .amg-rsel:has(.amg-rsel__r1:checked) .amg-ramen .amg-shop:not([data-g="1"]),
.amg .amg-rsel:has(.amg-rsel__r2:checked) .amg-ramen .amg-shop:not([data-g="2"]),
.amg .amg-rsel:has(.amg-rsel__r3:checked) .amg-ramen .amg-shop:not([data-g="3"]),
.amg .amg-rsel:has(.amg-rsel__r4:checked) .amg-ramen .amg-shop:not([data-g="4"]),
.amg .amg-rsel:has(.amg-rsel__r5:checked) .amg-ramen .amg-shop:not([data-g="5"]),
.amg .amg-rsel:has(.amg-rsel__r6:checked) .amg-ramen .amg-shop:not([data-g="6"]){display:none}

/* 系統ガイド（選択中の系統の説明） */
.amg .amg-rsel__guide{margin:0 0 18px}
.amg .amg-rsel__guide p{display:none;margin:0;padding:12px 16px;border-radius:6px;background:var(--amg-paper);font-size:13px;line-height:1.75;color:var(--amg-ink-2)}
.amg .amg-rsel__guide p b{color:var(--amg-ink);margin-right:8px}
.amg .amg-rsel__guide p[data-g]:not([data-g="0"]){border-left:3px solid var(--rg)}
.amg .amg-rsel__guide p[data-g="1"]{--rg:oklch(0.6 0.12 95)}.amg .amg-rsel__guide p[data-g="2"]{--rg:oklch(0.52 0.13 30)}
.amg .amg-rsel__guide p[data-g="3"]{--rg:oklch(0.52 0.11 330)}.amg .amg-rsel__guide p[data-g="4"]{--rg:oklch(0.52 0.1 210)}
.amg .amg-rsel__guide p[data-g="5"]{--rg:oklch(0.52 0.11 150)}.amg .amg-rsel__guide p[data-g="6"]{--rg:oklch(0.5 0.02 250)}
.amg .amg-rsel:has(.amg-rsel__r0:checked) .amg-rsel__guide p[data-g="0"],
.amg .amg-rsel:has(.amg-rsel__r1:checked) .amg-rsel__guide p[data-g="1"],
.amg .amg-rsel:has(.amg-rsel__r2:checked) .amg-rsel__guide p[data-g="2"],
.amg .amg-rsel:has(.amg-rsel__r3:checked) .amg-rsel__guide p[data-g="3"],
.amg .amg-rsel:has(.amg-rsel__r4:checked) .amg-rsel__guide p[data-g="4"],
.amg .amg-rsel:has(.amg-rsel__r5:checked) .amg-rsel__guide p[data-g="5"],
.amg .amg-rsel:has(.amg-rsel__r6:checked) .amg-rsel__guide p[data-g="6"]{display:block}

/* カード：タグ・店舗詳細ボタン */
.amg .amg-ramen .amg-shop__text{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.amg .amg-ramen .amg-shop__name{margin:2px 0 0}
.amg .amg-shop__tags{display:flex;flex-wrap:wrap;gap:4px;list-style:none;margin:6px 0 0;padding:0}
.amg .amg-shop__tags li{font-size:11px;line-height:1;padding:5px 7px;border-radius:3px;background:var(--amg-paper);color:var(--amg-ink-2)}
.amg .amg-shop__tags li::before{content:"#";opacity:.45;margin-right:1px}
.amg .amg-shop__detail{position:relative;z-index:3;display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:7px 10px 7px 13px;border:1px solid var(--amg-accent);border-radius:999px;
  font-size:12px;font-weight:600;line-height:1;letter-spacing:.06em;color:var(--amg-accent) !important;background:#fff;text-decoration:none;transition:background .15s,color .15s}
.amg .amg-shop__detail::after{content:"→";font-weight:400;transition:transform .15s}
.amg .amg-shop__detail:hover{background:var(--amg-accent);color:#fff !important}
.amg .amg-shop__detail:hover::after{transform:translateX(2px)}

/* 一覧ページへ */
.amg .amg-listlink{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 0;padding:15px 20px;border:1px solid var(--amg-ink);border-radius:8px;
  color:var(--amg-ink) !important;font-size:14px;font-weight:600;letter-spacing:.06em;text-decoration:none;transition:background .15s,color .15s}
.amg .amg-listlink::after{content:"→";font-weight:400}
.amg .amg-listlink:hover{background:var(--amg-ink);color:#fff !important}

/* オーバーレイ：ボタン2つ（店舗詳細＋関連記事） */
.amg .amg-ov__foot.is-double{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:stretch}
.amg .amg-ov__sub{display:flex;align-items:center;justify-content:center;gap:8px;padding:0 20px;border:1px solid var(--amg-line);border-radius:10px;background:#fff;
  color:var(--amg-ink) !important;font-size:13.5px;font-weight:600;letter-spacing:.06em;text-decoration:none;white-space:nowrap;transition:border-color .15s,color .15s}
.amg .amg-ov__sub::after{content:"→";font-weight:400;opacity:.6}
.amg .amg-ov__sub:hover{border-color:var(--amg-accent);color:var(--amg-accent) !important}
.amg .amg-ov .amg-ov__label .amg-shop__genre{margin:0;letter-spacing:.06em}
.amg .amg-ov .amg-shop__tags{margin:0}
.amg .amg-ov .amg-shop__tags li{font-size:12px;padding:6px 9px}

@media (max-width:767px){
  .amg .amg-rsel__tabs{flex-wrap:nowrap;overflow-x:auto;margin-right:-20px;padding-right:20px;scrollbar-width:none}
  .amg .amg-rsel__tabs::-webkit-scrollbar{display:none}
  .amg .amg-rsel__tabs label{white-space:nowrap;padding:9px 13px}
  .amg .amg-ov__foot.is-double{grid-template-columns:1fr}
  .amg .amg-ov__sub{padding:13px 16px}
}


/* ##########################################################
   v1.8 修正：基本データ表がスマホで右に見切れる問題
   ・原因：グリッドの子の最小幅（min-width:auto）＋長いURL・自治体名で表が画面より広がる
   ・対策：列を minmax(0,1fr) に／表を固定レイアウト＋折り返し
   ・SP：1行ずつのカード型（項目名を左に小さく、値を右に）に組み替え
   ########################################################## */
.amg .amg-data{grid-template-columns:repeat(2,minmax(0,1fr))}
.amg .amg-data > div{min-width:0}
.amg .amg-data table{table-layout:fixed;max-width:100%}
.amg .amg-data th,.amg .amg-data td{white-space:normal !important;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.amg .amg-data td a{overflow-wrap:anywhere}
.amg .amg-data td ruby{white-space:nowrap}
.amg .amg-office{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
.amg .amg-office > *{min-width:0}

@media (max-width:767px){
  .amg .amg-data{grid-template-columns:minmax(0,1fr);gap:0;border:1px solid var(--amg-line);border-radius:var(--amg-r);overflow:hidden}
  .amg .amg-data > div + div{border-top:1px solid var(--amg-line)}
  .amg .amg-data table,.amg .amg-data tbody{display:block;width:100%}
  .amg .amg-data tr{display:grid;grid-template-columns:6.5em minmax(0,1fr);border-bottom:1px solid var(--amg-line)}
  .amg .amg-data > div:last-child tr:last-child,
  .amg .amg-data > div:last-child table:last-child tr:last-child{border-bottom:0}
  .amg .amg-data > div:has(.amg-data__note) tr:last-child{border-bottom:1px solid var(--amg-line)}
  .amg .amg-data th,.amg .amg-data td{display:block;width:auto;padding:11px 14px;border-bottom:0;font-size:13.5px;line-height:1.65}
  .amg .amg-data th{font-size:11.5px;letter-spacing:.06em;padding-right:8px;display:flex;align-items:center}
  .amg .amg-data td a{display:inline-flex;align-items:center;gap:4px}
  .amg .amg-data td a[target="_blank"]::after{content:"↗";font-size:.85em;opacity:.6}
  .amg .amg-data__note{margin:0;padding:10px 14px 12px;background:#fff;font-size:11px;line-height:1.6}
  /* 区役所欄 */
  .amg .amg-office{grid-template-columns:minmax(0,1fr)}
  .amg .amg-office .amg-data{border:1px solid var(--amg-line)}
}


/* ##########################################################
   v1.9 追加：オーバーレイ対象に「おすすめの温泉郷」「お土産」を追加
   ########################################################## */
.amg :is(.amg-onsen__item,.amg-gift > li){position:relative}
.amg :is(.amg-onsen__item,.amg-gift > li):has(.amg-ov-open){cursor:pointer}
.amg .amg-onsen__item:has(.amg-ov-open){transition:border-color .15s,box-shadow .15s}
.amg .amg-onsen__item:has(.amg-ov-open):hover{border-color:var(--amg-accent);box-shadow:0 10px 24px -18px rgba(0,0,0,.4)}
.amg .amg-onsen__item:has(.amg-ov-open):hover .amg-h3,
.amg .amg-gift > li:has(.amg-ov-open):hover .amg-gift__name{color:var(--amg-accent)}
.amg :is(.amg-onsen__item,.amg-gift > li):has(.amg-ov-open) .amg-ph{transition:opacity .2s,transform .3s}
.amg :is(.amg-onsen__item,.amg-gift > li):has(.amg-ov-open):hover .amg-ph{opacity:.88}
.amg .amg-gift > li:has(.amg-ov-open):hover .amg-ph{transform:scale(1.03)}
.amg .amg-onsen__item:has(.amg-ov) > div > p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
/* オーバーレイ内のお土産画像は正方形・中央寄せ */
.amg .amg-gift .amg-ov{text-align:left}
.amg .amg-ov__media.is-square{display:flex;justify-content:center;background:var(--amg-paper);padding:28px 0}
.amg .amg-ov__media.is-square .amg-ph{width:min(320px,70%);aspect-ratio:1/1;border-radius:50%}


/* ##########################################################
   v2.0 追加：そば・うどん（種類タブ・タグ・店舗詳細ボタン）
   ・種類：data-n＝1 そば／2 うどん／3 その他の麺
   ・構造・動作は「必食ラーメン」（.amg-rsel）と同じ
   ########################################################## */
.amg .amg-ng--1,.amg .amg-nsel label[for$="-1"],.amg .amg-nsel__guide p[data-n="1"]{--rg:oklch(0.45 0.06 70)}
.amg .amg-ng--2,.amg .amg-nsel label[for$="-2"],.amg .amg-nsel__guide p[data-n="2"]{--rg:oklch(0.62 0.11 85)}
.amg .amg-ng--3,.amg .amg-nsel label[for$="-3"],.amg .amg-nsel__guide p[data-n="3"]{--rg:oklch(0.5 0.06 160)}
.amg .amg-shop__genre[class*="amg-ng--"]{background:var(--rg) !important;color:#fff !important}

.amg .amg-nsel input[type="radio"]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.amg .amg-nsel > br,.amg .amg-nsel > p:empty{display:none}
.amg .amg-nsel > p:has(input){display:contents}
.amg .amg-nsel__tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;padding:0;list-style:none}
.amg .amg-nsel__tabs label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:13px;line-height:1;padding:10px 15px;border-radius:999px;border:1px solid var(--amg-line);color:var(--amg-ink-2);background:#fff;transition:all .15s;user-select:none}
.amg .amg-nsel__tabs label i{display:block;width:8px;height:8px;border-radius:50%;background:var(--rg)}
.amg .amg-nsel__tabs label small{font-size:11px;color:var(--amg-ink-3)}
.amg .amg-nsel__tabs label:hover{border-color:var(--rg,var(--amg-accent));color:var(--amg-ink)}
.amg .amg-nsel:has(.amg-nsel__r0:checked) label[for$="-0"]{background:var(--amg-ink);border-color:var(--amg-ink);color:#fff}
.amg .amg-nsel:has(.amg-nsel__r1:checked) label[for$="-1"],
.amg .amg-nsel:has(.amg-nsel__r2:checked) label[for$="-2"],
.amg .amg-nsel:has(.amg-nsel__r3:checked) label[for$="-3"]{background:var(--rg);border-color:var(--rg);color:#fff}
.amg .amg-nsel:has(.amg-nsel__r1:checked) label[for$="-1"] i,
.amg .amg-nsel:has(.amg-nsel__r2:checked) label[for$="-2"] i,
.amg .amg-nsel:has(.amg-nsel__r3:checked) label[for$="-3"] i{background:#fff}
.amg .amg-nsel:has(input:checked) label small{color:inherit;opacity:.7}
.amg .amg-nsel:has(input:focus-visible) .amg-nsel__tabs{outline:2px solid var(--amg-accent);outline-offset:4px;border-radius:12px}
.amg .amg-nsel:not(:has(.amg-shop[data-n="1"])) .amg-nsel__tabs li:has(label[for$="-1"]),
.amg .amg-nsel:not(:has(.amg-shop[data-n="2"])) .amg-nsel__tabs li:has(label[for$="-2"]),
.amg .amg-nsel:not(:has(.amg-shop[data-n="3"])) .amg-nsel__tabs li:has(label[for$="-3"]){display:none}
.amg .amg-nsel:has(.amg-nsel__r1:checked) .amg-noodle .amg-shop:not([data-n="1"]),
.amg .amg-nsel:has(.amg-nsel__r2:checked) .amg-noodle .amg-shop:not([data-n="2"]),
.amg .amg-nsel:has(.amg-nsel__r3:checked) .amg-noodle .amg-shop:not([data-n="3"]){display:none}
.amg .amg-nsel__guide{margin:0 0 18px}
.amg .amg-nsel__guide p{display:none;margin:0;padding:12px 16px;border-radius:6px;background:var(--amg-paper);font-size:13px;line-height:1.75;color:var(--amg-ink-2)}
.amg .amg-nsel__guide p b{color:var(--amg-ink);margin-right:8px}
.amg .amg-nsel__guide p[data-n]:not([data-n="0"]){border-left:3px solid var(--rg)}
.amg .amg-nsel:has(.amg-nsel__r0:checked) .amg-nsel__guide p[data-n="0"],
.amg .amg-nsel:has(.amg-nsel__r1:checked) .amg-nsel__guide p[data-n="1"],
.amg .amg-nsel:has(.amg-nsel__r2:checked) .amg-nsel__guide p[data-n="2"],
.amg .amg-nsel:has(.amg-nsel__r3:checked) .amg-nsel__guide p[data-n="3"]{display:block}
.amg .amg-noodle .amg-shop__text{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.amg .amg-noodle .amg-shop__name{margin:2px 0 0}
.amg .amg-shop--noodle{position:relative}
.amg .amg-shop--noodle:has(.amg-ov-open){cursor:pointer;transition:border-color .15s,box-shadow .15s}
.amg .amg-shop--noodle:has(.amg-ov-open):hover{border-color:var(--amg-accent);box-shadow:0 10px 24px -18px rgba(0,0,0,.4)}
.amg .amg-shop--noodle:has(.amg-ov-open):hover .amg-shop__name{color:var(--amg-accent)}
.amg .amg-shop--noodle:has(.amg-ov) .amg-shop__text > p:not([class]){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media (max-width:767px){
  .amg .amg-nsel__tabs{flex-wrap:nowrap;overflow-x:auto;margin-right:-20px;padding-right:20px;scrollbar-width:none}
  .amg .amg-nsel__tabs::-webkit-scrollbar{display:none}
  .amg .amg-nsel__tabs label{white-space:nowrap;padding:9px 13px}
}


/* ##########################################################
   v2.1 追加：ご当地シリーズ（ラーメン／スーパー・コンビニ／チェーン店／パン・お菓子／ドリンク・調味料／その他）
   ・カテゴリタブ：data-c＝1〜6（0件のタブは自動で非表示）。CSSのみで絞り込み
   ########################################################## */
.amg .amg-gc--1,.amg .amg-gsel label[for$="-1"],.amg .amg-gsel__guide p[data-c="1"]{--rg:oklch(0.55 0.13 30)}
.amg .amg-gc--2,.amg .amg-gsel label[for$="-2"],.amg .amg-gsel__guide p[data-c="2"]{--rg:oklch(0.52 0.11 150)}
.amg .amg-gc--3,.amg .amg-gsel label[for$="-3"],.amg .amg-gsel__guide p[data-c="3"]{--rg:oklch(0.62 0.13 70)}
.amg .amg-gc--4,.amg .amg-gsel label[for$="-4"],.amg .amg-gsel__guide p[data-c="4"]{--rg:oklch(0.58 0.12 350)}
.amg .amg-gc--5,.amg .amg-gsel label[for$="-5"],.amg .amg-gsel__guide p[data-c="5"]{--rg:oklch(0.5 0.11 240)}
.amg .amg-gc--6,.amg .amg-gsel label[for$="-6"],.amg .amg-gsel__guide p[data-c="6"]{--rg:oklch(0.5 0.03 250)}
.amg .amg-gsel input[type="radio"]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.amg .amg-gsel > br,.amg .amg-gsel > p:empty{display:none}
.amg .amg-gsel > p:has(input){display:contents}
.amg .amg-gsel__tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;padding:0;list-style:none}
.amg .amg-gsel__tabs label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:13px;line-height:1;padding:10px 15px;border-radius:999px;border:1px solid var(--amg-line);color:var(--amg-ink-2);background:#fff;transition:all .15s;user-select:none}
.amg .amg-gsel__tabs label i{display:block;width:8px;height:8px;border-radius:50%;background:var(--rg)}
.amg .amg-gsel__tabs label small{font-size:11px;color:var(--amg-ink-3)}
.amg .amg-gsel__tabs label:hover{border-color:var(--rg,var(--amg-accent));color:var(--amg-ink)}
.amg .amg-gsel:has(.amg-gsel__r0:checked) label[for$="-0"]{background:var(--amg-ink);border-color:var(--amg-ink);color:#fff}
.amg .amg-gsel:has(.amg-gsel__r1:checked) label[for$="-1"],.amg .amg-gsel:has(.amg-gsel__r2:checked) label[for$="-2"],
.amg .amg-gsel:has(.amg-gsel__r3:checked) label[for$="-3"],.amg .amg-gsel:has(.amg-gsel__r4:checked) label[for$="-4"],
.amg .amg-gsel:has(.amg-gsel__r5:checked) label[for$="-5"],.amg .amg-gsel:has(.amg-gsel__r6:checked) label[for$="-6"]{background:var(--rg);border-color:var(--rg);color:#fff}
.amg .amg-gsel:has(input:checked) .amg-gsel__tabs label:is([for$="-0"],[for$="-1"],[for$="-2"],[for$="-3"],[for$="-4"],[for$="-5"],[for$="-6"]) small{color:inherit;opacity:.7}
.amg .amg-gsel:has(.amg-gsel__r1:checked) label[for$="-1"] i,.amg .amg-gsel:has(.amg-gsel__r2:checked) label[for$="-2"] i,
.amg .amg-gsel:has(.amg-gsel__r3:checked) label[for$="-3"] i,.amg .amg-gsel:has(.amg-gsel__r4:checked) label[for$="-4"] i,
.amg .amg-gsel:has(.amg-gsel__r5:checked) label[for$="-5"] i,.amg .amg-gsel:has(.amg-gsel__r6:checked) label[for$="-6"] i{background:#fff}
.amg .amg-gsel:has(input:focus-visible) .amg-gsel__tabs{outline:2px solid var(--amg-accent);outline-offset:4px;border-radius:12px}
.amg .amg-gsel:not(:has(.amg-gitem[data-c="1"])) .amg-gsel__tabs li:has(label[for$="-1"]),
.amg .amg-gsel:not(:has(.amg-gitem[data-c="2"])) .amg-gsel__tabs li:has(label[for$="-2"]),
.amg .amg-gsel:not(:has(.amg-gitem[data-c="3"])) .amg-gsel__tabs li:has(label[for$="-3"]),
.amg .amg-gsel:not(:has(.amg-gitem[data-c="4"])) .amg-gsel__tabs li:has(label[for$="-4"]),
.amg .amg-gsel:not(:has(.amg-gitem[data-c="5"])) .amg-gsel__tabs li:has(label[for$="-5"]),
.amg .amg-gsel:not(:has(.amg-gitem[data-c="6"])) .amg-gsel__tabs li:has(label[for$="-6"]){display:none}
.amg .amg-gsel:has(.amg-gsel__r1:checked) .amg-gitem:not([data-c="1"]),.amg .amg-gsel:has(.amg-gsel__r2:checked) .amg-gitem:not([data-c="2"]),
.amg .amg-gsel:has(.amg-gsel__r3:checked) .amg-gitem:not([data-c="3"]),.amg .amg-gsel:has(.amg-gsel__r4:checked) .amg-gitem:not([data-c="4"]),
.amg .amg-gsel:has(.amg-gsel__r5:checked) .amg-gitem:not([data-c="5"]),.amg .amg-gsel:has(.amg-gsel__r6:checked) .amg-gitem:not([data-c="6"]){display:none}
.amg .amg-gsel__guide{margin:0 0 18px}
.amg .amg-gsel__guide p{display:none;margin:0;padding:12px 16px;border-radius:6px;background:var(--amg-paper);font-size:13px;line-height:1.75;color:var(--amg-ink-2)}
.amg .amg-gsel__guide p b{color:var(--amg-ink);margin-right:8px}
.amg .amg-gsel__guide p[data-c]:not([data-c="0"]){border-left:3px solid var(--rg)}
.amg .amg-gsel:has(.amg-gsel__r0:checked) .amg-gsel__guide p[data-c="0"],.amg .amg-gsel:has(.amg-gsel__r1:checked) .amg-gsel__guide p[data-c="1"],
.amg .amg-gsel:has(.amg-gsel__r2:checked) .amg-gsel__guide p[data-c="2"],.amg .amg-gsel:has(.amg-gsel__r3:checked) .amg-gsel__guide p[data-c="3"],
.amg .amg-gsel:has(.amg-gsel__r4:checked) .amg-gsel__guide p[data-c="4"],.amg .amg-gsel:has(.amg-gsel__r5:checked) .amg-gsel__guide p[data-c="5"],
.amg .amg-gsel:has(.amg-gsel__r6:checked) .amg-gsel__guide p[data-c="6"]{display:block}

/* カード */
.amg .amg-gotochi{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.amg .amg-gotochi > br,.amg .amg-gotochi > p:not(:has(.amg-gitem)){display:none !important}
.amg .amg-gotochi > p{display:contents !important}
.amg .amg-gitem{position:relative;display:flex;flex-direction:column;border:1px solid var(--amg-line);border-radius:var(--amg-r);overflow:hidden;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.amg .amg-gitem > .amg-ph,.amg .amg-gitem > img{aspect-ratio:4/3;border-radius:0;width:100%;object-fit:cover;transition:opacity .2s}
.amg .amg-gitem__body{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:12px 14px 14px;flex:1}
.amg .amg-gitem__cat{display:inline-block;font-size:10.5px;font-weight:600;line-height:1;padding:5px 8px;border-radius:3px;letter-spacing:.06em;background:var(--rg);color:#fff}
.amg .amg-gitem__name{font-weight:600;font-size:15px;line-height:1.45;margin:2px 0 0}
.amg .amg-gitem__name ruby rt{font-weight:400}
.amg .amg-gitem__body > p:not([class]){font-size:12.5px;color:var(--amg-ink-2);line-height:1.7;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.amg .amg-gitem .amg-shop__tags{margin-top:auto;padding-top:6px}
.amg .amg-gitem:hover{border-color:var(--amg-accent);box-shadow:0 10px 24px -18px rgba(0,0,0,.4)}
.amg .amg-gitem:hover .amg-gitem__name{color:var(--amg-accent)}
.amg .amg-gitem:hover > .amg-ph{opacity:.88}
.amg .amg-ov .amg-ov__label .amg-gitem__cat{margin:0}
@media (max-width:991px){ .amg .amg-gotochi{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:767px){
  .amg .amg-gsel__tabs{flex-wrap:nowrap;overflow-x:auto;margin-right:-20px;padding-right:20px;scrollbar-width:none}
  .amg .amg-gsel__tabs::-webkit-scrollbar{display:none}
  .amg .amg-gsel__tabs label{white-space:nowrap;padding:9px 13px}
  .amg .amg-gotochi{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .amg .amg-gitem__body{padding:10px 11px 12px}
  .amg .amg-gitem__name{font-size:14px}
  .amg .amg-gitem__body > p:not([class]){-webkit-line-clamp:2;font-size:12px}
  .amg .amg-gitem .amg-shop__tags{display:none}
}


/* ##########################################################
   v2.2 追加：特産品・名産品をタップしやすいチップ型＋オーバーレイ
   ・各品目を高さ44px以上のチップに（指で押しやすいサイズ）
   ・カテゴリ見出しに件数、チップ右端に「›」で押せることを明示
   ########################################################## */
.amg .amg-special{gap:14px;border-top:0}
.amg .amg-special__group,.amg .amg-special__group:not(:nth-child(3n+1)),.amg .amg-special__group:nth-child(even){padding:16px;border:1px solid var(--amg-line);border-radius:var(--amg-r);background:#fff}
.amg .amg-special__cat{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid var(--amg-line)}
.amg .amg-special__cat small{font-size:11px;font-weight:400;letter-spacing:.04em;color:var(--amg-ink-3)}
.amg .amg-special ul{display:flex;flex-wrap:wrap;gap:8px}
.amg .amg-special li{position:relative;padding:0}
.amg .amg-special li:has(.amg-ov-open){display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 30px 8px 14px;border:1px solid var(--amg-line);border-radius:999px;background:var(--amg-paper);
  font-size:13.5px;line-height:1.35;cursor:pointer;transition:background .15s,border-color .15s,color .15s,transform .1s;-webkit-tap-highlight-color:transparent}
.amg .amg-special li:has(.amg-ov-open)::after{content:"›";position:absolute;right:13px;top:50%;transform:translateY(-52%);font-size:17px;line-height:1;color:var(--amg-ink-3);transition:transform .15s,color .15s}
.amg .amg-special li:has(.amg-ov-open):hover{background:#fff;border-color:var(--amg-accent);color:var(--amg-accent)}
.amg .amg-special li:has(.amg-ov-open):hover::after{color:var(--amg-accent);transform:translate(2px,-52%)}
.amg .amg-special li:has(.amg-ov-open):active{transform:scale(.97)}
.amg .amg-special li:has(.amg-ov-open:focus-visible){outline:2px solid var(--amg-accent);outline-offset:2px}
.amg .amg-special li .amg-ov-open{border-radius:999px}
.amg .amg-special li small{font-size:11px;color:var(--amg-ink-3)}
.amg .amg-special li ruby rt{font-size:.5em}
.amg .amg-special__hint{display:flex;align-items:center;gap:6px;margin:-8px 0 16px;font-size:12px;color:var(--amg-ink-3)}
.amg .amg-special__hint::before{content:"";width:16px;height:16px;border-radius:50%;background:var(--amg-paper);border:1px solid var(--amg-line);box-shadow:inset 0 0 0 4px #fff}
@media (max-width:767px){
  .amg .amg-special{grid-template-columns:minmax(0,1fr);gap:10px}
  .amg .amg-special__group,.amg .amg-special__group:not(:nth-child(3n+1)),.amg .amg-special__group:nth-child(even){padding:14px}
  .amg .amg-special ul{gap:8px}
  .amg .amg-special li:has(.amg-ov-open){min-height:46px;font-size:14px}
}


/* ##########################################################
   v2.3 修正：テーマの li 装飾（::before の旗アイコン・絶対配置・幅指定）と
   干渉して「TIP 01」「POINT 1」などのラベルが縦に崩れる問題
   ・テーマ側の位置・幅・背景・回転などを打ち消し、横書きのラベルとして再定義
   ########################################################## */
.amg .amg-tips > li,.amg .amg-points > li,.amg .amg-manner li,.amg .amg-day li,.amg .amg-ov__list li,.amg .amg-shop__tags li{
  list-style:none !important;background-image:none !important;text-indent:0 !important}
.amg .amg-tips > li::after,.amg .amg-points > li::after,.amg .amg-manner li::after,.amg .amg-shop__tags li::after,.amg .amg-ov__list li::after{content:none !important}

/* 旅のヒント */
.amg .amg-tips > li{position:relative !important;padding:18px 20px 16px !important;margin:0 !important}
.amg .amg-tips > li::before{
  content:"TIP " counter(tip,decimal-leading-zero) !important;
  position:static !important;display:block !important;float:none !important;
  width:auto !important;height:auto !important;min-width:0 !important;max-width:none !important;
  inset:auto !important;margin:0 0 4px !important;padding:0 !important;
  background:none !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;
  transform:none !important;writing-mode:horizontal-tb !important;white-space:nowrap !important;
  font:600 11px/1.4 var(--amg-sans) !important;letter-spacing:.16em !important;color:var(--amg-warm) !important;text-align:left !important}

/* 魅力 3つのポイント */
.amg .amg-points > li{position:relative !important;margin:0 !important}
.amg .amg-points > li::before{
  content:"POINT " counter(pt) !important;
  position:static !important;display:block !important;float:none !important;
  width:auto !important;height:auto !important;inset:auto !important;margin:0 0 6px !important;padding:0 !important;
  background:none !important;border:0 !important;transform:none !important;writing-mode:horizontal-tb !important;white-space:nowrap !important;
  font:600 11px/1.4 var(--amg-sans) !important;letter-spacing:.18em !important;color:var(--amg-accent) !important}

/* 参拝の基本（番号の丸） */
.amg .amg-manner li{position:relative !important;padding:0 !important;margin:0 !important}
.amg .amg-manner li::before{position:static !important;float:none !important;transform:none !important;writing-mode:horizontal-tb !important;background-image:none !important;background-color:#fff !important}

/* タグの「#」 */
.amg .amg-shop__tags li::before{position:static !important;display:inline !important;float:none !important;width:auto !important;height:auto !important;
  margin:0 1px 0 0 !important;background:none !important;border:0 !important;transform:none !important;writing-mode:horizontal-tb !important}

/* オーバーレイ内リストの点 */
.amg .amg-ov__list li{padding:8px 12px 8px 28px !important;margin:0 !important}
.amg .amg-ov__list li::before{width:6px !important;height:6px !important;left:12px !important;top:15px !important;background-image:none !important;transform:none !important}

/* モデルコースの点 */
.amg .amg-day li{padding:0 0 12px !important;margin:0 !important}
.amg .amg-day li::before{width:8px !important;height:8px !important;left:-19px !important;top:6px !important;background-image:none !important;transform:none !important}

@media (max-width:767px){
  .amg .amg-tips > li{padding:16px 16px 14px !important}
}
