/* Singapura の共通の見た目（2026-11-16）。main.ui の中だけに効く
   方向：旅の雑誌のような落ち着いた見た目。黒いヘッダーに合わせ、墨色の文字・象牙色の面・金色（サイトの #BFA466）
   色の役割：金＝ブランド（見出しの飾り・番号・押すボタン）／紺＝リンク／緑＝できる・得／黄＝注意
   角の丸み：カード14px・ボタン999px（丸薬型）・小さい札も丸薬型。小さい字は13px以上
   各ページが basic-info/_config.php の $css_ui を link で読み込む。部品はここに足す。ページごとに見た目を書き写さない */

.ui {
  --gold: #bfa466;          /* サイトの金色 */
  --gold-deep: #8a6d2f;     /* 白地の上の金の字（読める濃さ） */
  --gold-soft: #faf6ec;     /* 金の淡い面 */
  --gold-line: #e8dcc0;     /* 金の淡い線 */
  --ink: #1d1f24;           /* 見出しの墨色 */
  --text: #3d4048;
  --muted: #6b6f78;
  --line: #ebe7df;          /* 区切り線 */
  --paper: #fbfaf7;         /* 象牙色の面 */
  --link: #1a73e8;           /* リンクはサイトのほかのリンクと同じ青（2026-11-16、紺は「リンクっぽくない」とオーナー） */
  --ok: #2f6b3a; --ok-soft: #eef6ef; --ok-line: #c4e0c8;
  --warn: #6b5413; --warn-soft: #fff9e8; --warn-line: #efdca4;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  color: var(--text);
}
.content-wrapper main.ui { background: #fff; }

/* ---- 見出し ---- */
.ui .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .22em; color: var(--gold-deep); text-transform: uppercase; margin: .4rem 0 .5rem; }
.ui .kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.ui h1 { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1.4; letter-spacing: .02em; color: var(--ink); margin: 0 0 .9rem; padding: 0; border: 0; }
.ui h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; line-height: 1.5; letter-spacing: .02em; color: var(--ink); margin: 3rem 0 1rem; padding: 0; border: 0; }
.ui h2::before { content: ""; display: block; width: 36px; height: 2px; background: var(--gold); margin-bottom: .7rem; }
.ui h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 1.8rem 0 .6rem; }
.ui p { color: var(--text); line-height: 1.95; margin: 0 0 1.1rem; }
.ui a { color: var(--link); }
.ui strong { color: var(--ink); }
.ui small, .ui .note { color: var(--muted); }
.ui .note { font-size: .86rem; line-height: 1.75; }
.ui .num { font-variant-numeric: tabular-nums; }

/* h1 の下：更新日・広告の表示・リード文 */
.ui .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 1.4rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.ui .checked { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.ui .checked::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.ui .pr { font-size: .8rem; color: var(--muted); margin: 0; }
.ui .lead { font-size: 1.06rem; line-height: 2; color: var(--ink); }

/* ---- 枠 ---- */
/* このページのまとめ・はじめに知っておきたいこと */
.ui .point { position: relative; background: var(--paper); border: 1px solid var(--gold-line); border-radius: 14px; padding: 18px 22px 16px; margin: 1.2rem 0 1.6rem; }
.ui .point > b:first-child { display: block; font-size: .78rem; letter-spacing: .14em; color: var(--gold-deep); margin-bottom: .5rem; }
.ui .point ul { margin: 0 0 0 1.1rem; line-height: 1.9; }
.ui .point li { margin-bottom: .2rem; }
/* まちがえやすい注意 */
.ui .warn { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 14px; padding: 14px 18px; margin: 1rem 0 1.4rem; color: var(--warn); font-size: .94rem; line-height: 1.8; }
.ui .warn b { color: var(--warn); }
/* できる・得 */
.ui .can { background: var(--ok-soft); border: 1px solid var(--ok-line); border-radius: 14px; padding: 14px 18px; margin: 1rem 0 1.4rem; color: var(--ok); line-height: 1.8; }
.ui ul.dots { margin: 0 0 1.1rem 1.2rem; line-height: 1.9; }
.ui ul.dots li { margin-bottom: .3rem; }

/* ---- 写真（観光地のページ。2026-11-17） ---- */
.ui .photo { margin: 0 0 1.4rem; }
.ui .photo img { display: block; width: 100%; height: auto; border-radius: 14px; } /* 切らずに全部見せる（下の singapura.jp の文字が欠けないように） */
.ui .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: .8rem 0 1.4rem; }
.ui .gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--paper); border-radius: 10px; } /* 写真は 3:2。縦長も切らずに収める */
/* 年表 */
.ui .tl { list-style: none; margin: .8rem 0 1.4rem; padding: 0; border-left: 2px solid var(--gold-line); }
.ui .tl li { position: relative; padding: 0 0 1rem 1.2rem; line-height: 1.8; }
.ui .tl li::before { content: ""; position: absolute; left: -6px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.ui .tl b { display: block; font-family: var(--serif); color: var(--gold-deep); font-size: .95rem; }
/* 写真つきのカード（近くのホテル・観光地） */
.ui .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: .8rem 0 1.4rem; }
.ui .cards a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.ui .cards a:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.ui .cards img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; } /* 写真と同じ 3:2 で切らない */
.ui .cards b { display: block; padding: 10px 14px 2px; font-size: .95rem; line-height: 1.5; }
.ui .cards span { display: block; padding: 0 14px 12px; font-size: .8rem; color: var(--muted); line-height: 1.6; }

/* 計算機の選ぶ欄（マンダイの公園など） */
.ui .mpk { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ui .mpk label { display: flex; align-items: flex-start; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 700; cursor: pointer; line-height: 1.5; }
.ui .mpk label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.ui .mpk input { margin-top: .3em; accent-color: var(--gold); }
.ui .mpk small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }

/* ---- 数字のタイル ---- */
.ui .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 1rem 0 1.8rem; align-items: stretch; }
.ui .facts > :not(.fact) { display: none; } /* 自動広告などが並びに入りこまないように */
.ui .fact { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 3px; }
.ui .fact .fl { font-size: .76rem; letter-spacing: .06em; color: var(--muted); }
.ui .fact b { font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; color: var(--ink); font-variant-numeric: tabular-nums; }
.ui .fact .fs { font-size: .8rem; color: var(--gold-deep); }
.ui .fact.key { background: var(--ink); border-color: var(--ink); }
.ui .fact.key .fl { color: #c9c3b4; }
.ui .fact.key b { color: #fff; }
.ui .fact.key .fs { color: var(--gold); }

/* ---- 表 ---- */
.ui .tbl-wrap { overflow-x: auto; margin: .6rem 0 1.2rem; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; }
.ui table { border-collapse: collapse; width: 100%; font-size: .93rem; margin: 0; table-layout: auto; }
.ui th, .ui td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); font-weight: inherit; text-align: left; vertical-align: top; line-height: 1.6; color: var(--text); }
.ui tbody tr:last-child th, .ui tbody tr:last-child td { border-bottom: 0; }
.ui thead th { background: var(--paper); font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.ui td.r, .ui th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui td.c, .ui th.c { text-align: center; font-variant-numeric: tabular-nums; }
.ui tr.now td { background: var(--gold-soft); color: var(--ink); font-weight: 700; }
.ui tr.now td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.ui tr.dim td { color: #9a9ea6; }

/* ---- ボタン（押すものは金） ---- */
.ui .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--gold); color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .02em; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--gold); text-decoration: none; transition: background .15s, box-shadow .15s; cursor: pointer; }
.ui .btn:hover { background: #ad914f; color: #fff; box-shadow: 0 4px 14px rgba(191,164,102,.35); }
.ui .btn.ghost { background: #fff; color: var(--gold-deep); }
.ui .btn.ghost:hover { background: var(--gold-soft); color: var(--gold-deep); box-shadow: none; }
.ui .btn.dark { background: var(--ink); border-color: var(--ink); }
.ui .btn.dark:hover { background: #000; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.ui .btn i { font-size: .8em; }
.ui .btns { display: flex; flex-wrap: wrap; gap: 10px; margin: .6rem 0 1.2rem; }

/* 予約・チケットの入口（Klook・KKday など） */
.ui .buy { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: .8rem 0 1rem; }
.ui .buy > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; }
.ui .buy b { color: var(--ink); margin-bottom: .2rem; }
.ui .buy p { font-size: .86rem; color: var(--muted); line-height: 1.7; margin: 0 0 .8rem; flex: 1; }
.ui .buy .btn { width: 100%; }
/* 予約サイトの色（サイドバーのボタンと同じ。名前が似ているので色で見分ける） */
.ui .btn.kkday { background: #26bec9; border-color: #26bec9; }
.ui .btn.kkday:hover { background: #1fa8b2; box-shadow: 0 4px 14px rgba(38,190,201,.35); }
.ui .btn.klook { background: #4d40ca; border-color: #4d40ca; }
.ui .btn.klook:hover { background: #3f33b0; box-shadow: 0 4px 14px rgba(77,64,202,.35); }
.ui .btn.gyg { background: #ff512e; border-color: #ff512e; }
.ui .btn.gyg:hover { background: #e8441f; box-shadow: 0 4px 14px rgba(255,81,46,.35); }
/* 計算機の結果の円（金額の下に小さく） */
.ui .yen { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }

/* ---- リンクのカード ---- */
.ui .next { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: .8rem 0 1.2rem; }
.ui .next a { display: block; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 40px 14px 16px; font-weight: 700; color: var(--link); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ui .next a::after { content: "\f054"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: .75rem; color: var(--gold); }
.ui .next a[target="_blank"]::after { content: "\f35d"; }
.ui .next a:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(29,31,36,.07); transform: translateY(-1px); }
.ui .next a span { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.ui .next a[target="_blank"] > em { display: inline-block; font-style: normal; font-size: .68rem; font-weight: 700; color: var(--muted); background: #f2f1ee; border-radius: 999px; padding: 1px 8px; margin-bottom: 4px; }

/* 公式のページへのリンク */
.ui .official { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: .6rem 0 1rem; }
.ui .official a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--link); font-weight: 700; font-size: .92rem; text-decoration: none; }
.ui .official a::after { content: "\f35d"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; font-size: .7rem; color: var(--gold); margin-left: .4rem; }
.ui .official a span { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
.ui .official a:hover { border-color: var(--gold); }

/* ---- 道具（計算機など） ---- */
.ui .tool { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin: 1rem 0 1.6rem; }
.ui .tool .step-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--gold-deep); margin: 1rem 0 .5rem; }
.ui .tool .step-label:first-child { margin-top: 0; }
.ui .tool label { font-size: .86rem; font-weight: 700; color: var(--ink); }
.ui .tool select, .ui .tool input[type=number], .ui .tool input[type=time], .ui .tool input[type=text] { padding: 9px 12px; border: 1px solid #d8d4cb; border-radius: 10px; font-size: 1rem; background: #fff; color: var(--ink); }
.ui .tool select:focus, .ui .tool input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(191,164,102,.2); }
.ui .tool .row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.ui .tool .row > div { display: flex; flex-direction: column; gap: 5px; }
.ui .tool .hint { font-size: .8rem; color: var(--muted); margin: .5rem 0 0; line-height: 1.6; }
.ui .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: .2rem 0 .4rem; }
.ui .chips button { border: 1px solid #d8d4cb; background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: .88rem; cursor: pointer; }
.ui .chips button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ui .res { margin-top: 1rem; background: #fff; border: 1px solid var(--gold-line); border-radius: 14px; padding: 16px 18px; }
.ui .res .big { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1.3; font-variant-numeric: tabular-nums; }
.ui .res .big small { font-family: inherit; font-size: .9rem; font-weight: 400; color: var(--muted); margin-left: .3rem; }
.ui .res .sub { font-size: .9rem; color: var(--muted); margin: .3rem 0 0; }

/* ---- 時計（2つ並び） ---- */
.ui .clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.2rem 0 1.6rem; }
.ui .clock { border-radius: 18px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); }
.ui .clock.sg { background: var(--ink); border-color: var(--ink); }
.ui .clock .cl { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; letter-spacing: .08em; color: var(--muted); }
.ui .clock.sg .cl { color: #c9c3b4; }
.ui .clock .ct { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1.2; margin-top: .3rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ui .clock.sg .ct { color: #fff; }
.ui .clock .cd { font-size: .82rem; color: var(--muted); }
.ui .clock.sg .cd { color: var(--gold); }

/* ---- 手順（番号の丸と縦の線）。<ol class="howto"><li><strong>見出し</strong>説明</li> ---- */
.ui ol.howto { list-style: none; margin: .8rem 0 1.6rem; padding: 0; counter-reset: hw; }
.ui ol.howto > li { counter-increment: hw; position: relative; padding: 0 0 1.2rem 48px; line-height: 1.85; }
.ui ol.howto > li::before { content: counter(hw); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-deep); font-family: var(--serif); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .95rem; background: #fff; }
.ui ol.howto > li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 1px; background: var(--gold-line); }
.ui ol.howto > li:last-child::after { display: none; }
.ui ol.howto > li > strong:first-child { display: block; font-size: 1.02rem; margin: 2px 0; }

/* ---- 開閉（よくある質問） ---- */
.ui details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.ui summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.ui summary::-webkit-details-marker { display: none; }
.ui summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; font-weight: 400; color: var(--gold-deep); }
.ui details[open] summary::after { content: "−"; }
.ui details > div { padding: 0 18px 14px; font-size: .94rem; line-height: 1.85; }
.ui details > div p:last-child { margin-bottom: 0; }

/* ---- 出典 ---- */
.ui .src { font-size: .84rem; color: var(--muted); }
.ui .src li { margin: 0 0 .5rem 1.2rem; line-height: 1.7; word-break: break-all; }

/* ---- 最後のリンクのまとまり ---- */
.ui .endlinks { margin-top: 3rem; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 6px 22px 18px; }
.ui .endlinks h2 { margin-top: 1.4rem; }

@media (max-width: 600px) {
  .ui h1 { font-size: 1.5rem; }
  .ui h2 { font-size: 1.25rem; margin-top: 2.4rem; }
  .content-wrapper main.ui { padding-left: 1rem; padding-right: 1rem; }
  .ui .facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ui .fact b { font-size: 1.3rem; }
  .ui .clocks { gap: 8px; }
  .ui .clock { padding: 14px; }
  .ui .clock .ct { font-size: 1.8rem; }
  .ui th, .ui td { padding: 9px 8px; }
  .ui table { font-size: .88rem; }
  .ui .tool { padding: 16px; }
  .ui .endlinks { padding: 4px 14px 14px; }
}

/* ---- 横の棒グラフ（割合）。<ul class="bars"><li><span class="bl">英語</span><span class="bb"><i style="width:48.3%"></i></span><span class="bv">48.3%</span></li> （2026-11-16、言語） ---- */
.ui .bars { list-style: none; margin: .8rem 0 1rem; padding: 0; }
.ui .bars li { display: grid; grid-template-columns: 8.5em 1fr 4.2em; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ui .bars li:last-child { border-bottom: 0; }
.ui .bars .bl { font-size: .92rem; color: var(--ink); font-weight: 700; line-height: 1.4; }
.ui .bars .bl small { display: block; font-weight: 400; font-size: .76rem; }
.ui .bars .bb { height: 10px; background: #f2efe8; border-radius: 999px; overflow: hidden; }
.ui .bars .bb i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.ui .bars li.top .bb i { background: var(--ink); }
.ui .bars .bv { text-align: right; font-variant-numeric: tabular-nums; font-size: .92rem; color: var(--ink); }
/* 2つを並べて比べる（年代など） */
.ui .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: .8rem 0 1.2rem; }
.ui .duo > div { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 8px; }
.ui .duo h3 { margin: .8rem 0 .2rem; font-size: .95rem; }
.ui .duo .bars li { grid-template-columns: 6em 1fr 3.6em; gap: 8px; }
/* 引用（法律の条文など）。<blockquote class="quote"><p>…</p><cite>…</cite></blockquote> */
.ui blockquote.quote { margin: 1rem 0 1.4rem; padding: 14px 20px; border-left: 2px solid var(--gold); background: var(--paper); border-radius: 0 14px 14px 0; }
.ui blockquote.quote p { font-family: var(--serif); color: var(--ink); margin: 0 0 .4rem; line-height: 1.9; }
.ui blockquote.quote cite { font-style: normal; font-size: .8rem; color: var(--muted); }
/* あいさつの表：大きな文字と読み */
.ui .say { display: block; font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.ui .yomi { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 600px) {
  .ui .bars li { grid-template-columns: 6.5em 1fr 3.8em; gap: 8px; }
  .ui .duo { grid-template-columns: 1fr; }
}

/* 既存の部品の中のリンクは、もとの色のまま（ui の「リンクは紺」を上書きしない）。Amazon・楽天・Yahoo! の金色のボタンの文字は白（2026-11-16 オーナー） */
.ui .cv_button a, .ui .cv_button a:hover { color: #fff; }

/* ---- グラフ（basic-info/_chart.php が出す SVG）。スマホでは横に動かして見る（2026-11-17） ---- */
.ui .sg-chart-wrap { margin: .8rem 0 .6rem; border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.ui .sg-chart { display: block; width: 100%; min-width: 560px; height: auto; }
.ui .sg-chart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8rem; color: var(--muted); padding: 0 6px 6px; }
.ui .sg-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ui .sg-chart-legend i { display: inline-block; width: 18px; }

/* ---- 天気：種類ごとの色（fair 晴れ・pcloud 晴れ時々くもり・cloud くもり・rain 雨・thunder 雷雨・haze もや・wind 風） ---- */
.ui { --wx-fair: #f3c95a; --wx-pcloud: #f4e3a6; --wx-cloud: #cfd4da; --wx-rain: #7fb2d6; --wx-thunder: #4a5fa8; --wx-haze: #d9c9a8; --wx-wind: #b9d8cf; }
.ui .wx-ico { display: inline-flex; align-items: center; justify-content: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1rem; flex: none; }
.ui .wx-ico.fair { background: #fdf3d0; color: #b9860b; } .ui .wx-ico.pcloud { background: #faf3d9; color: #a8842a; }
.ui .wx-ico.cloud { background: #eef0f3; color: #6b7280; } .ui .wx-ico.rain { background: #e3f0f8; color: #2f77a8; }
.ui .wx-ico.thunder { background: #e6e9f6; color: #3d4f96; } .ui .wx-ico.haze { background: #f3ecdc; color: #8a7748; } .ui .wx-ico.wind { background: #e4f1ec; color: #3f7e6b; }
/* 今の天気（大きな札） */
.ui .wx-now { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; background: var(--ink); color: #fff; border-radius: 18px; padding: 22px 24px; margin: 1rem 0 1.4rem; }
.ui .wx-now .wx-ico { font-size: 1.7rem; background: rgba(255,255,255,.1); color: var(--gold); }
.ui .wx-now .t { font-family: var(--serif); font-size: 3rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ui .wx-now .t small { font-size: 1.1rem; font-weight: 400; color: #c9c3b4; margin-left: 2px; }
.ui .wx-now .w { font-size: 1.1rem; font-weight: 700; }
.ui .wx-now .s { grid-column: 1 / -1; font-size: .84rem; color: #c9c3b4; line-height: 1.7; margin: 4px 0 0; }
.ui .wx-now .s b { color: var(--gold); font-weight: 700; }
/* 4日間の予報の札 */
.ui .wx-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: .8rem 0 1.2rem; }
.ui .wx-day { border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px; text-align: center; background: #fff; }
.ui .wx-day .d { font-weight: 700; color: var(--ink); } .ui .wx-day .d small { display: block; font-weight: 400; font-size: .78rem; }
.ui .wx-day .wx-ico { margin: 10px auto 8px; font-size: 1.25rem; }
.ui .wx-day .w { font-size: .88rem; color: var(--ink); line-height: 1.5; min-height: 2.6em; }
.ui .wx-day .t { font-variant-numeric: tabular-nums; margin-top: 6px; } .ui .wx-day .t b { color: #c8574f; } .ui .wx-day .t i { font-style: normal; color: #4a7fb5; }
.ui .wx-day .x { font-size: .76rem; color: var(--muted); margin-top: 4px; line-height: 1.6; }
/* 時間帯ごとの予報（表のセルの中） */
.ui .wx-cell { display: inline-flex; align-items: center; gap: 8px; } .ui .wx-cell .wx-ico { font-size: .85rem; }
/* 地図 */
.ui .wx-map { position: relative; border: 1px solid var(--line); border-radius: 18px; background: #eef4f7; overflow: hidden; margin: .8rem 0 .6rem; }
.ui .wx-map svg { display: block; width: 100%; height: auto; }
.ui .wx-map path { stroke: #fff; stroke-width: 1.2; cursor: pointer; transition: opacity .15s; }
.ui .wx-map path.fair { fill: var(--wx-fair); } .ui .wx-map path.pcloud { fill: var(--wx-pcloud); } .ui .wx-map path.cloud { fill: var(--wx-cloud); }
.ui .wx-map path.rain { fill: var(--wx-rain); } .ui .wx-map path.thunder { fill: var(--wx-thunder); } .ui .wx-map path.haze { fill: var(--wx-haze); } .ui .wx-map path.wind { fill: var(--wx-wind); }
.ui .wx-map path:hover { opacity: .8; } .ui .wx-map path.on { stroke: var(--ink); stroke-width: 2.6; }
.ui .wx-map .lbl { font-size: 17px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.ui .wx-map .pin { fill: var(--ink); stroke: #fff; stroke-width: 2; pointer-events: none; }
.ui .wx-card { position: absolute; left: 10px; right: 10px; bottom: 10px; max-width: 420px; background: #fff; border: 1px solid #ddd; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.14); padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.ui .wx-card b { display: block; color: var(--ink); font-size: 1.02rem; } .ui .wx-card span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.ui .wx-card .f { font-weight: 700; color: var(--ink); font-size: .95rem; }
.ui .wx-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--muted); margin: 0 0 1rem; }
.ui .wx-legend span { display: inline-flex; align-items: center; gap: 6px; } .ui .wx-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
/* 季節の帯（12か月） */
.ui .season { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: .8rem 0 .4rem; }
.ui .season div { text-align: center; border-radius: 8px; padding: 8px 0 6px; font-size: .78rem; line-height: 1.4; color: var(--ink); background: #f2efe8; }
.ui .season div b { display: block; font-size: .95rem; }
.ui .season .wet { background: #cfe3f1; } .ui .season .dry { background: #fbe9b8; } .ui .season .sw { background: #e3ecd9; } .ui .season .im { background: #efe9f5; }
.ui .season .now { outline: 2px solid var(--ink); outline-offset: 1px; }
.ui .season-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--muted); margin: 0 0 1rem; }
.ui .season-key span { display: inline-flex; align-items: center; gap: 6px; } .ui .season-key i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
@media (max-width: 600px) {
  .ui .wx-days { grid-template-columns: 1fr 1fr; }
  .ui .wx-now { padding: 18px; } .ui .wx-now .t { font-size: 2.4rem; }
  .ui .wx-map .lbl { font-size: 26px; }
  .ui .season { grid-template-columns: repeat(6, 1fr); }
  .ui .wx-cell .wx-ico { display: none; }
}
/* 天気：時間帯の列は折り返さない。スマホでは、地図の上の札を地図の下に出す（島を隠さない） */
.ui td.w strong { white-space: nowrap; }
@media (max-width: 600px) {
  .ui .wx-card { position: static; max-width: none; margin: 0 8px 8px; box-shadow: none; border-color: var(--line); }
  .ui .wx-map svg { margin-bottom: -12%; }
}
