/*
 * テーマで足す見た目。現行 rental の CSS（assets/css/legacy/）のあとに読む。
 * 現行の CSS は id・class で書かれているので、ここでは新しく作る部分（トップの新セクション・車種カードなど）だけを書く。
 */

/* フォント：現行は言語ごとに CSS を複製してフォント名だけ変えていた。テーマでは変数にして <html lang> で切り替える */
:root {
	--asv-font: 'Noto Sans Japanese', sans-serif;
	--asv-font-body: 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro W3', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', Helvetica, Arial, sans-serif;
}
html[lang="zh-TW"] {
	--asv-font: 'Noto Sans TC', sans-serif;
	--asv-font-body: 'Noto Sans TC', sans-serif;
}

/* ログイン中（管理バーあり）は、固定ヘッダーを管理バーの下にずらす。現行には管理バーが無いので足した */
.admin-bar header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar header { top: 0; } } /* 600px 以下は管理バーが一緒にスクロールする */

/* ---- 車種詳細・オプション（11/05）。現行の HTML にあった style="" をここに移した ---- */
.product_info .rn-price .rn-price__note { line-height: 1.6; color: #C81C1B; font-size: 15px; } /* other.css の .product_info .rn-price p より強く */
/* 利用条件の強調：現行は <span style="font-weight:500"> だった。other.css の .product_info strong（1.2em・600）だと大きすぎるので戻す */
.product_info .soubi2 li strong { font-size: inherit; font-weight: 500; letter-spacing: inherit; }
.product_info .soubi2 .soubi2__note { color: #C81C1B; font-size: 0.9em; }
.product_info .gear-tex .gear-tex__name { font-size: 1.2em; }
.product_info .gear-tex p:last-child { margin-bottom: 5px; }

/* 写真の拡大（assets/js/gallery-zoom.js）。現行の cloud-zoom の position: 'inside' と同じく、写真の枠の中で拡大する */
.cloudzoom-area .js-zoom { position: relative; display: block; overflow: hidden; }
.asv-zoom-lens { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 250%; background-color: #fff; opacity: 0; transition: opacity .2s; pointer-events: none; }
.asv-zoom-lens.is-on { opacity: 1; cursor: move; }

/* 空車カレンダー（★現行の車種詳細には無い。仕様書「車種詳細：下部にその車の空車カレンダーと予約ボタン」） */
.car-calendar { clear: both; padding: 30px 0 10px; }
.car-calendar__title { color: #6A6A36; font-size: 1.3em; font-weight: 600; margin-bottom: 10px; }
.car-calendar .calendar-embed iframe { width: 100%; height: 600px; border: 0; }
.car-calendar__reserve { text-align: center; margin-top: 15px; }
.car-calendar__reserve a { display: inline-block; color: #FFF; background-color: #C93710; padding: 10px 40px 12px; text-decoration: none; }
.car-calendar__reserve a:hover { background-color: #8D2206; }
@media screen and (max-width: 568px) { .car-calendar .calendar-embed iframe { height: 450px; } }

/* 本文（車種詳細の本文欄に何か入れたとき） */
.car-body { clear: both; padding: 20px 5px; color: #6A6A36; line-height: 1.8; }

/* ---- 車種一覧「こだわり条件で探す」（★11/05 夜に作り直し。archive-car.php・assets/js/car-filter.js）。色は現行（黄 #FFD400・オリーブ #6A6A36・赤 #C93710） ---- */
.car-finder { max-width: 1000px; margin: 10px auto 28px; background: #FFF; border: 1px solid #E6E3C4; border-radius: 10px; box-shadow: 0 4px 18px rgba(106, 106, 54, .10); overflow: hidden; color: #4A4A2A; text-align: left; }
.car-finder__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #6A6A36; color: #FFF; padding: 12px 20px; }
.car-finder__ttl { font-family: var(--asv-font); font-weight: 600; font-size: 1.1em; letter-spacing: .05em; }
.car-finder__count { font-size: .95em; white-space: nowrap; }
.car-finder__count strong { font-size: 1.5em; color: #FFD400; margin-right: 2px; }
.car-finder__lead { padding: 14px 20px 4px; font-size: .92em; line-height: 1.7; color: #6A6A36; }
.car-finder__row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 20px; border-top: 1px dashed #E6E3C4; }
.car-finder__row:first-of-type { border-top: 0; }
.car-finder__label { flex: 0 0 9em; padding-top: 8px; font-weight: 600; font-size: .92em; color: #6A6A36; }
.car-finder__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #D9D6AE; background: #FFF; color: #4A4A2A; border-radius: 999px; padding: 7px 15px; font-size: 14px; line-height: 1.3; cursor: pointer; font-family: inherit; transition: background-color .15s, border-color .15s, transform .1s; }
.cf-chip .fa { color: #6A6A36; width: 1.1em; text-align: center; }
.cf-chip:hover { border-color: #FFD400; background: #FFFBE0; }
.cf-chip:active { transform: scale(.97); }
.cf-chip.on { background: #FFD400; border-color: #FFD400; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(106, 106, 54, .15); }
.cf-chip.on::after { content: "\f00c"; font-family: FontAwesome; font-size: .85em; margin-left: 2px; }
.cf-chip:focus-visible { outline: 2px solid #6A6A36; outline-offset: 2px; }
.cf-chip--big { padding: 10px 18px; font-size: 15px; border-radius: 10px; }
.cf-chip--big .fa { font-size: 1.2em; }
.car-finder__reset { text-align: right; padding: 4px 20px 14px; }
.car-finder__reset button { background: none; border: 0; color: #6A6A36; font-size: .88em; text-decoration: underline; cursor: pointer; font-family: inherit; }
@media screen and (max-width: 810px) {
	.car-finder { margin: 6px 2% 20px; }
	.car-finder__row { flex-direction: column; gap: 6px; padding: 10px 14px; }
	.car-finder__label { flex: none; padding-top: 0; }
	.car-finder__head, .car-finder__lead { padding-left: 14px; padding-right: 14px; }
	.car-finder__head { flex-wrap: wrap; row-gap: 0; }
	.car-finder__ttl { white-space: nowrap; font-size: 1em; letter-spacing: .02em; } /* 11/25 スマホで「す」だけ次の行に落ちたので1行に。入らなければ件数が下の行へ */
	.car-finder__count { margin-left: auto; }
	.cf-chip { padding: 6px 12px; font-size: 13px; }
	.cf-chip--big { padding: 8px 12px; font-size: 13px; }
}
.car-filter__none { text-align: center; padding: 30px 0; color: #6A6A36; }

/* 車両のカード（asoviva_car_card()）。現行の .car-lst li（2列・inline-block）の中身に、人数・設備のアイコン・タグを足した */
/* 現行の .car-lst li（幅47%・inline-block・余白）がカードの中の小さな一覧にも効くので戻す */
.car-lst .car-card2__feat li, .car-lst .car-card2__tags li { display: inline-flex; width: auto; margin: 0; vertical-align: baseline; position: static; }
.car-lst .car-card2__tags li { padding: 0; }
.car-lst2 li.car-card2[hidden] { display: none !important; } /* 絞り込みで外れた車。スマホ用の2列（display:inline-block）より強く */
.car-card2 { text-align: left; }
.car-card2__ph { display: block; overflow: hidden; border-radius: 6px; }
.car-card2__ph img { display: block; width: 100%; height: auto; margin: 0 !important; transition: transform .4s; }
.car-card2__ph:hover img { transform: scale(1.03); opacity: 1 !important; }
.car-card2__body { padding: 10px 4px 0; }
.car-card2 .ce-name, .car-card2 .cj-name { text-align: left; }
.car-card2 .cj-name a { color: inherit; text-decoration: none; }
.car-card2__cap { display: flex; gap: 14px; color: #6A6A36; font-size: .92em; margin: 4px 0 8px; }
.car-card2__cap .fa { color: #C9B200; }
.car-card2__feat { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.car-card2__feat li { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 8px; border-radius: 4px; background: #F4F3E2; color: #6A6A36; }
.car-card2__tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 12.5px; color: #C93710; }
.car-card2__tx { font-size: .9em; line-height: 1.75; color: #4A4A2A; margin-bottom: 6px; }
.car-card2__more { text-align: right; }
.car-card2__more a { color: #6A6A36; font-weight: 600; font-size: .92em; }
@media screen and (max-width: 568px) {
	/* 仕様書：スマホは2列のカード。現行の other.css はスマホで1列にするので上書き */
	.car-lst2 li.car-card2 { display: inline-block; width: 47%; margin: 1.5%; padding: 0; box-sizing: border-box; vertical-align: top; }
	.car-card2 .ce-name { font-size: .7em; }
	.car-card2 .cj-name { font-size: .95em; line-height: 1.4; }
	.car-card2__cap { flex-direction: column; gap: 0; font-size: .8em; }
	.car-card2__feat li span, .car-card2__tx { display: none; }
	.car-card2__feat li { padding: 3px 5px; }
	.car-card2__tags { font-size: 11px; }
}

/* ---- スマホの重なり（11/23。Chat の Chrome 確認 11/09 の指摘） ---- */
/* ヘッダーの下にはみ出した言語ボタン（English／繁体字）が、スクロール中に本文にかぶる → スクロールしたら隠す。言語の切り替えは ≡ メニューの中にもある */
@media screen and (max-width: 810px) {
	.lang-box { transition: opacity .3s, visibility .3s; }
	body.is-scrolled .lang-box { opacity: 0; visibility: hidden; }
}
/* 右下のチャットのアイコンが、右側のカードの「詳細はこちら」にかぶる → カード全体を押せるようにし、「詳細はこちら」は中央に */
@media screen and (max-width: 568px) {
	.car-lst2 li.car-card2 { position: relative; }
	.car-card2__more { text-align: center; }
	.car-card2__more a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
}

/* ---- 空車カレンダーのタブ（template-parts/calendar-tabs.php）。現行 /car/ のページ内 <style>（10/21）を移した ---- */
.googleCalendar .gc-note { text-align: center; font-size: 14px; margin: 8px 10px 0; }
.googleCalendar .gc-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px auto 16px; max-width: 1000px; padding: 0 10px; }
.googleCalendar .gc-tabs button { border: 2px solid #FFD800; background: #FFF; color: #4A4A2A; border-radius: 20px; padding: 6px 14px; font-size: 14px; cursor: pointer; line-height: 1.4; font-family: inherit; }
.googleCalendar .gc-tabs button.on { background: #FFD800; font-weight: bold; }
.googleCalendar ul { max-width: 900px; margin: 0 auto; }
.googleCalendar li { display: none; width: auto !important; float: none !important; margin: 0 10px !important; }
.googleCalendar li.on { display: block; }
.googleCalendar iframe { width: 100%; height: 560px; border: 0; }
.googleCalendar .gc-go { text-align: center; margin: 16px 0 0; }
.googleCalendar .gc-go a { display: inline-block; background: #6B6B3A; color: #FFF; padding: 10px 24px; border-radius: 4px; text-decoration: none; }
@media (max-width: 767px) { .googleCalendar iframe { height: 440px; } .googleCalendar .gc-tabs button { font-size: 12px; padding: 5px 10px; } }
.calendar-lead, .calendar-note { max-width: 900px; margin: 0 auto 10px; padding: 0 10px; color: #6A6A36; line-height: 1.8; text-align: center; }

/* ---- 共通（11/24 に仮の指定を整理。使っていない .btn・.car-cards は外し、トップのセクションの box-sizing は top.css へ移した） ---- */
img { max-width: 100%; height: auto; }
.calendar-embed iframe { width: 100%; border: 0; } /* 車種詳細の空車カレンダー */
/* 予備のテンプレート（index.php・page.php）用。今のページはどれもテンプレートを指定しているので、ふだんは使われない */
.container, .container * { box-sizing: border-box; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
/* 固定ヘッダーの下に本文が隠れないための余白。現行の形（#h50・.h60 で空ける）でないページだけ（body に asv-legacy-layout が無いもの。inc/setup.php）。11/24 時点で当てはまるページは無いが、予備のテンプレート用に残す */
body:not(.has-overlay-header):not(.asv-legacy-layout) .site-main { padding-top: 90px; }
@media screen and (max-width: 810px) { body:not(.has-overlay-header):not(.asv-legacy-layout) .site-main { padding-top: 70px; } }

/* 404（404.php） */
.nf-text { text-align: center; color: #6A6A36; line-height: 1.9; margin: 20px auto 30px; padding: 0 12px; }
.nf-back { max-width: 400px; margin: 0 auto 40px; }
.nf-back ul { list-style: none; padding: 0; }
