/* くらべて選ぶ（aboven-ex.com）記事ページの見た目  2026-11-16
 * 正はこのファイル（C:\claude\rakuten-travel-blog\site-style\）。サーバー側を直接書き換えない。
 * 設計メモ: C:\Users\drago\.company\engineering\docs\aboven-ex-ui-renewal-spec.md
 * 対象は投稿ページ（body.single-post）の本文だけ。トップ・固定ページには効かない。
 * 既存記事のクラス名（jin-box-* / jin-table / jin-button など。テーマ側に定義が無かった）に当てている。
 * !important は「記事HTMLに直書きされた style」と「テーマの余白」を上書きする所だけ。
 */

/* 0. 色と角丸 */
:root{--kc-ink:#22302c;--kc-sub:#5b6b66;--kc-line:#dde6e1;--kc-bg:#f4f8f6;--kc-green:#2e7d5b;--kc-green-d:#1f5c43;--kc-green-t:#e8f2ed;--kc-cta:#c9541c;--kc-cta-d:#a34312;--kc-cta-t:#fdf3ee;--kc-link:#1a66c2;--kc-r:10px}

/* 1. テーマの読み込みフェードを止める（本文が opacity:0 から始まるため） */
.d--animation-general-on #mainContent,.d--animation-general-on .o--jinr-mainvisual{opacity:1!important;animation:none!important}

/* 2. 本文の文字（元は 13〜14px・太さ300・#666 で薄かった） */
body.single-post .jinr-article>section{font-family:'Hiragino Sans','Hiragino Kaku Gothic ProN','Noto Sans JP','Yu Gothic UI',Meiryo,sans-serif;color:var(--kc-ink)}
body.single-post .jinr-article>section :is(p,li,td,th){font-size:16px;line-height:1.9;font-weight:400;letter-spacing:.03em;color:var(--kc-ink)}
body.single-post .jinr-article>section a:not(.jin-button){color:var(--kc-link)}

/* 3. 見出し */
body.single-post .jinr-article>section h2{font-size:22px;line-height:1.5;font-weight:700;letter-spacing:.03em;color:var(--kc-ink);margin:2.6em 0 1.1em;padding:0 0 .55em;background:none;border:0;border-bottom:3px solid var(--kc-line);position:relative}
body.single-post .jinr-article>section h2::before{display:none}
body.single-post .jinr-article>section h2::after{content:'';display:block;position:absolute;left:0;bottom:-3px;width:4.5em;height:3px;background:var(--kc-green);border:0}
body.single-post .jinr-article>section h3{font-size:19px;line-height:1.5;font-weight:700;letter-spacing:.03em;color:var(--kc-ink);margin:2.2em 0 .8em;padding:.1em 0 .1em .7em;background:none;border:0;border-left:5px solid var(--kc-green)}
body.single-post .jinr-article>section h3::before,body.single-post .jinr-article>section h3::after{display:none}
body.single-post .jinr-article>section h4{font-size:15px;line-height:1.5;font-weight:700;letter-spacing:.05em;color:var(--kc-green-d);margin:1.5em 0 .4em;padding:0;background:none;border:0}
body.single-post .jinr-article>section h4::before,body.single-post .jinr-article>section h4::after{display:none}
body.single-post .jinr-article>section h3[id^='hotel-']+p{margin:0 0 .8em;padding:0}
body.single-post .jinr-article>section h3[id^='hotel-']+p strong{color:var(--kc-green-d);font-size:15px}

/* 4. 写真 */
body.single-post .jinr-article>section figure.wp-block-image{margin:0 0 1.2em}
body.single-post .jinr-article>section figure.wp-block-image img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--kc-r)}
body.single-post .jinr-article>section figure.wp-block-image p:empty{display:none}

/* 5. 囲み枠（基本情報・口コミ評価・スポット情報など） */
body.single-post .jinr-article>section [class^='jin-box-']{margin:1.2em 0;padding:16px 18px;border:1px solid var(--kc-line);border-radius:var(--kc-r);background:var(--kc-bg)}
body.single-post .jinr-article>section [class^='jin-box-']>h4{margin:0 0 .5em}
body.single-post .jinr-article>section [class^='jin-box-'] p{margin:0!important;padding:0!important}
body.single-post .jinr-article>section [class^='jin-box-'] ul{list-style:none;margin:0;padding:0}
body.single-post .jinr-article>section [class^='jin-box-'] li{margin:0;padding:.4em 0;font-size:15px;line-height:1.7;border-bottom:1px dashed var(--kc-line)}
body.single-post .jinr-article>section [class^='jin-box-'] li::before{display:none}
body.single-post .jinr-article>section [class^='jin-box-'] li:last-child{border-bottom:0;padding-bottom:0}
/* 最初の h2 より前にある jin-box-success ＝「先に結論」。枠を強くしてラベルを付ける */
body.single-post .jinr-article>section>.jin-box-success:not(h2~.jin-box-success){background:#fff;border:2px solid var(--kc-green);padding:18px 20px 20px}
body.single-post .jinr-article>section>.jin-box-success:not(h2~.jin-box-success)>h4{display:inline-block;margin:0 0 .8em;padding:.2em 1em;border-radius:99px;background:var(--kc-green);color:#fff;font-size:13px}
body.single-post .jinr-article>section .jin-box-warning{background:#fdf6e7;border-color:#efdcb2}
/* こんな人におすすめ */
body.single-post .jinr-article>section .jin-box-check{background:var(--kc-cta-t);border:0;border-left:4px solid var(--kc-cta);border-radius:0 var(--kc-r) var(--kc-r) 0;padding:12px 16px}

/* 6. 良い点・気になる点・設備（h4 の直後のリスト。✓ や △ は本文の文字） */
body.single-post .jinr-article>section h4+ul{list-style:none;margin:0 0 1em;padding:0}
body.single-post .jinr-article>section h4+ul>li{margin:0;padding:.25em 0;font-size:15px;line-height:1.7}
body.single-post .jinr-article>section h4+ul>li::before{display:none}
body.single-post .jinr-article>section .rating-stars{color:#c77700;font-weight:700}

/* 7. 目次の重複を消す（記事内の jin-toc と RTOC が両方出ていた。RTOC は h2 だけに） */
body.single-post .jinr-article>section .jin-toc{display:none}
body.single-post .jinr-article>section .rtoc-mokuji-content .mokuji_ul.level-2{display:none}
/* 広告の表記は記事の上のウィジェット（.pr-notice）1か所にまとめる（2026-11-16 オーナー決定）。
 * 本文頭の同じ注記を隠す。上のウィジェットを外すときは、必ずこの行も外す */
body.single-post .jinr-article>section .pr-disclosure{display:none}

/* 8. 比較表（スマホは横スクロール・1列目固定。元は列が潰れて縦書き状態だった） */
body.single-post .jinr-article>section .jin-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:1.2em 0 1.6em;border:1px solid var(--kc-line);border-radius:var(--kc-r)}
body.single-post .jinr-article>section .jin-table{width:100%;min-width:640px;margin:0;border:0;border-collapse:collapse;background:#fff}
body.single-post .jinr-article>section .jin-table :is(th,td){padding:10px 12px;font-size:14px;line-height:1.6;text-align:left;vertical-align:middle;border:0;border-bottom:1px solid var(--kc-line)}
body.single-post .jinr-article>section .jin-table th{background:var(--kc-green);color:#fff;font-size:13px;font-weight:700;white-space:nowrap}
body.single-post .jinr-article>section .jin-table tbody tr{background:#fff}
body.single-post .jinr-article>section .jin-table tbody tr:nth-child(even){background:var(--kc-bg)}
body.single-post .jinr-article>section .jin-table tbody tr:last-child td{border-bottom:0}
body.single-post .jinr-article>section .jin-table :is(th,td):first-child{position:sticky;left:0;z-index:1;min-width:9em;max-width:11em}
body.single-post .jinr-article>section .jin-table td:first-child{background:inherit;font-weight:700;box-shadow:1px 0 0 var(--kc-line)}
/* 5列の表（宿の比較表・設備の表）は 2〜4列目を折り返さない */
body.single-post .jinr-article>section .jin-table td:first-child:nth-last-child(5)~td:not(:last-child){white-space:nowrap}

/* 9. ボタン（楽天トラベル＝主。Amazon＝副。記事HTMLに直書きの青を上書きする） */
body.single-post .jinr-article>section a.jin-button{display:inline-flex!important;align-items:center;justify-content:center;gap:.5em;box-sizing:border-box;min-width:min(320px,100%)!important;padding:14px 26px!important;border:0;border-radius:8px!important;background:var(--kc-cta)!important;color:#fff!important;font-size:16px!important;font-weight:700!important;line-height:1.4;text-decoration:none!important;box-shadow:0 3px 0 var(--kc-cta-d)}
body.single-post .jinr-article>section a.jin-button::after{content:'›';font-size:1.3em;line-height:1}
body.single-post .jinr-article>section a.jin-button br{display:none}
body.single-post .jinr-article>section a.jin-button .jin-button-text{color:inherit}
body.single-post .jinr-article>section .jin-button-wrapper{margin:1em 0 1.6em;text-align:center}
body.single-post .jinr-article>section a.jin-button[href*='amazon.co.jp']{background:#fff!important;color:var(--kc-ink)!important;border:1.5px solid #9aa8a3;box-shadow:none}

/* 10. アソビューの体験カード（縦長1枚360px → 写真を左に置いた横並び）
 *     2026-11-22 より前の記事の形。説明欄はタイトルと同じ文なので隠す（新しい記事は 10b の .kc-activity） */
body.single-post .jinr-article>section .d--simple-box1{display:grid;grid-template-columns:150px 1fr;gap:6px 16px;align-items:start;margin:0 0 12px!important;padding:14px!important;border:1px solid var(--kc-line)!important;border-radius:var(--kc-r);background:#fff}
body.single-post .jinr-article>section .d--simple-box1 .activity-image{grid-row:1/3;margin:0!important}
body.single-post .jinr-article>section .d--simple-box1 .activity-image img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px!important}
body.single-post .jinr-article>section .d--simple-box1 h4{margin:0!important;font-size:15px!important;line-height:1.55;color:var(--kc-ink)!important;letter-spacing:.02em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
body.single-post .jinr-article>section .d--simple-box1 .activity-price{margin:0!important;font-size:16px!important;color:var(--kc-ink)!important}
body.single-post .jinr-article>section .d--simple-box1 .activity-description{display:none}
body.single-post .jinr-article>section .d--simple-box1>div:last-child{grid-column:1/-1;margin:8px 0 0!important}
body.single-post .jinr-article>section .d--simple-box1>div:last-child a{display:block!important;padding:11px 16px!important;border-radius:8px!important;background:var(--kc-green)!important;font-size:15px!important;box-shadow:0 3px 0 var(--kc-green-d)}

/* 10b. 2026-11-22 以降の記事が出すクラス（kc-*）。上の既存記事向けの指定と同じ見た目＋α */
/* 先に結論 */
body.single-post .jinr-article>section .kc-verdict{background:#fff;border:2px solid var(--kc-green);padding:18px 20px 20px}
body.single-post .jinr-article>section .kc-verdict>h4{display:inline-block;margin:0 0 .8em;padding:.2em 1em;border-radius:99px;background:var(--kc-green);color:#fff;font-size:13px}
/* 宿1軒のまとまり */
body.single-post .jinr-article>section .kc-hotel{margin:2.4em 0 0;padding:1.6em 0 0;border-top:1px solid var(--kc-line)}
body.single-post .jinr-article>section .kc-hotel>h3{margin-top:0}
/* ここが良い／気になる点：印は CSS で付ける */
body.single-post .jinr-article>section :is(ul.kc-pros,ul.kc-cons){list-style:none;margin:0 0 1em;padding:0}
body.single-post .jinr-article>section :is(ul.kc-pros,ul.kc-cons)>li{position:relative;margin:0;padding:.25em 0 .25em 1.6em;font-size:15px;line-height:1.7}
body.single-post .jinr-article>section :is(ul.kc-pros,ul.kc-cons)>li::before{display:block;position:absolute;left:0;top:.25em;width:auto;height:auto;margin:0;border:0;background:none;transform:none;font-weight:700}
body.single-post .jinr-article>section ul.kc-pros>li::before{content:'✓';color:var(--kc-green)}
body.single-post .jinr-article>section ul.kc-cons>li::before{content:'△';color:#a8741a}
/* 設備・サービス：小さな札 */
body.single-post .jinr-article>section ul.kc-tags{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0 0 1em;padding:0}
body.single-post .jinr-article>section ul.kc-tags>li{margin:0;padding:.15em .85em;border:1px solid var(--kc-line);border-radius:99px;background:#fff;font-size:13px;line-height:1.7}
body.single-post .jinr-article>section ul.kc-tags>li::before{display:none}
/* 項目別の口コミ評価：格子 */
body.single-post .jinr-article>section .kc-scores ul{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
body.single-post .jinr-article>section .kc-scores li{display:flex;flex-direction:column;padding:8px 10px!important;border:0!important;border-radius:8px;background:#fff;line-height:1.4!important}
body.single-post .jinr-article>section .kc-scores .kc-score-label{font-size:12px;color:var(--kc-sub)}
body.single-post .jinr-article>section .kc-scores li strong{font-size:18px;color:var(--kc-ink)}
/* よくある質問 */
body.single-post .jinr-article>section h3.kc-faq{font-size:17px;border-left:0;padding-left:0;color:var(--kc-green-d)}
/* ボタンの種類（橙＝楽天トラベルは既定のまま） */
body.single-post .jinr-article>section a.jin-button.kc-btn-asoview{background:var(--kc-green)!important;box-shadow:0 3px 0 var(--kc-green-d)}
body.single-post .jinr-article>section a.jin-button.kc-btn-amazon{background:#fff!important;color:var(--kc-ink)!important;border:1.5px solid #9aa8a3;box-shadow:none}
/* アソビューの体験カード（新） */
body.single-post .jinr-article>section .kc-activity{display:grid;grid-template-columns:150px 1fr;gap:6px 16px;align-items:start;margin:0 0 12px;padding:14px;border:1px solid var(--kc-line);border-radius:var(--kc-r);background:#fff}
body.single-post .jinr-article>section .kc-activity .activity-image{grid-row:1/4;margin:0}
body.single-post .jinr-article>section .kc-activity .activity-image img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}
body.single-post .jinr-article>section .kc-activity p{margin:0!important;padding:0}
body.single-post .jinr-article>section .kc-activity .kc-activity-title{font-size:15px;font-weight:700;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
body.single-post .jinr-article>section .kc-activity .activity-price{font-size:16px;font-weight:700}
body.single-post .jinr-article>section .kc-activity .activity-description{font-size:13px;line-height:1.6;color:var(--kc-sub);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body.single-post .jinr-article>section .kc-activity .kc-activity-cta{grid-column:1/-1;margin:8px 0 0!important}
body.single-post .jinr-article>section .kc-activity .kc-activity-cta a.jin-button{display:flex!important;width:100%;padding:12px 14px!important;font-size:15px!important}

/* 10c. テーマ別まとめ（2026-11-29）: グラフは写真用の 16:9 切り抜き（1章）を当てない。宿カードは 10b の .kc-activity をそのまま使う */
body.single-post .jinr-article>section figure.kc-chart{margin:0 0 1.4em}
body.single-post .jinr-article>section figure.kc-chart img{display:block;width:100%;height:auto;border:1px solid var(--kc-line);border-radius:var(--kc-r)}
/* 予約サイトのボタンは各社のロゴの色（2026-11-29 各社サイトのロゴ画像から取得）:
 * 楽天トラベル #00b900（travel-logo-pc.png）、一休.com #003766＋金 #b68200（ikyu_logo.svg）、Yahoo!トラベル #ff0033（Yahoo! JAPAN の赤） */
body.single-post .jinr-article>section a.jin-button.kc-btn-rakuten{background:#00b900!important;box-shadow:0 3px 0 #008a00}
body.single-post .jinr-article>section a.jin-button.kc-btn-ikyu{background:#003766!important;box-shadow:0 3px 0 #b68200}
body.single-post .jinr-article>section a.jin-button.kc-btn-yahoo{background:#ff0033!important;box-shadow:0 3px 0 #b80025}
/* 宿カードのボタン2つ（楽天＋一休 or Yahoo!トラベル）を横に並べる */
body.single-post .jinr-article>section .kc-activity .kc-activity-cta.kc-cta2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body.single-post .jinr-article>section .kc-activity .kc-activity-cta.kc-cta2 a.jin-button{min-width:0!important;padding:12px 8px!important;font-size:14px!important}
/* 旅先ごとの「ほかの宿を探す」（一休・Yahoo!トラベルのエリアの一覧） */
body.single-post .jinr-article>section p.kc-ota-label{margin:1.2em 0 .2em;font-size:14px;font-weight:700;text-align:center;color:var(--kc-sub)}
body.single-post .jinr-article>section .jin-button-wrapper.kc-ota{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:.4em 0 1.6em}
body.single-post .jinr-article>section .kc-ota a.jin-button{min-width:min(260px,100%)!important}
/* 11. スマホ */
@media(max-width:600px){
body.single-post .jinr-article>section h2{font-size:20px}
body.single-post .jinr-article>section h3{font-size:18px}
body.single-post .jinr-article>section .jin-table{min-width:560px}
body.single-post .jinr-article>section .jin-table :is(th,td){padding:9px 10px;font-size:13px}
body.single-post .jinr-article>section .jin-table :is(th,td):first-child{min-width:7.5em;max-width:8.5em}
body.single-post .jinr-article>section a.jin-button{display:flex!important;width:100%}
body.single-post .jinr-article>section .d--simple-box1{grid-template-columns:104px 1fr;gap:4px 12px;padding:12px!important}
body.single-post .jinr-article>section .kc-activity{grid-template-columns:104px 1fr;gap:4px 12px;padding:12px}
body.single-post .jinr-article>section .kc-scores ul{grid-template-columns:repeat(2,1fr)}
}
