/*
 * トップの新しいセクション（template-parts/top.php の top- で始まる class）。
 * 現行のトップの部品（.mov-topimg・.rental-top・.car-lst・.special-lst・.news-box など）は legacy/index.css と other.css。
 * 色は現行に合わせた：黄 #FFD400、オリーブ #6A6A36、赤 #C93710、薄い黄 #FAFAE8
 */

/* ---- ボタン ---- */
.top-btn { display: inline-block; min-width: 200px; padding: 12px 26px; border-radius: 4px; font-family: var(--asv-font); font-weight: 600; text-align: center; text-decoration: none !important; line-height: 1.4; transition: opacity .2s, background-color .2s; }
.top-btn:hover { opacity: .85; }
.top-btn--red { background: #C93710; color: #FFF !important; }
.top-btn--yellow { background: #FFD400; color: #4A4A2A !important; }
.top-btn--white { background: rgba(255, 255, 255, .92); color: #6A6A36 !important; }
.top-btn--olive { background: #6A6A36; color: #FFF !important; }
.top-btn--insta { background: linear-gradient(45deg, #F9CE34, #EE2A7B 55%, #6228D7); color: #FFF !important; }
.top-more { text-align: center; margin: 24px 0 10px; }
.top-lead { text-align: center; color: #6A6A36; line-height: 1.9; margin: 0 auto 24px; max-width: 760px; padding: 0 12px; }
.top-h { font-family: var(--asv-font); color: #6A6A36; font-weight: 600; font-size: 1.6em; margin: 4px 0 0; }

/* ---- 1 メインビジュアル（動画・写真の上にキャッチとボタン） ---- */
.top-mv { position: relative; overflow: hidden; background: #2b2b1f; }
/* 動画は枠いっぱいに（はみ出た分は切る）。現行は幅いっぱい・高さ成り行きで、縦長の画面では下に背景写真が見えていた */
/* ヘッダーまわり（11/05 夜、宮城と相談して決定）
   現行は、動画ファイル（movie.mp4、1280×720）の上下の黒い帯（各約12%）が PC でたまたまヘッダーの後ろに重なり、黒い背景に見えていた。
   新：黒い帯はやめ、ヘッダーは透明のまま動画を画面のいちばん上から全面に出す（動画の上下の黒い帯は切る）。
   白いメニューの文字が明るい空の上でも読めるよう、上側だけうっすら暗くする。マウスを乗せる・スクロールすると現行どおり黄色（top-header.css） */
.top-mv { height: 100vh; min-height: 560px; max-height: 1000px; }
.top-mv #video { background-color: #000; }
.top-mv #player { position: absolute; left: 0; top: -14%; width: 100%; height: 128%; object-fit: cover; object-position: center; margin: 0; display: block; }
.top-mv::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 180px; background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); z-index: 2; pointer-events: none; }
@media screen and (max-width: 810px) {
	.top-mv { height: 560px; min-height: 0; }
	.top-mv::before { height: 110px; }
}
@media screen and (max-width: 568px) { .top-mv { height: 440px; } }
.top-mv > img { width: 100%; height: 100%; object-fit: cover; }
.top-mv::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent); z-index: 1; pointer-events: none; }
.top-mv__slides { position: absolute; inset: 0; }  /* 写真のときも画面のいちばん上から */
.top-mv__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.top-mv__slides img.is-on { opacity: 1; }
.top-mv__over { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; padding: 0 16px; z-index: 2; }
.top-mv__catch { color: #FFF; font-family: var(--asv-font); font-weight: 600; font-size: 2.2em; line-height: 1.5; text-shadow: 0 2px 8px rgba(0, 0, 0, .55); margin-bottom: 22px; }
.top-mv__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.top-mv__btns .top-btn { box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
@media screen and (max-width: 810px) {
	.top-mv__catch { font-size: 1.5em; }
	.top-btn { min-width: 0; }
}
@media screen and (max-width: 568px) {
	.top-mv__over { bottom: 5%; }
	.top-mv__catch { font-size: 1.15em; margin-bottom: 14px; }
	.top-mv__btns { gap: 8px; }
	.top-mv__btns li { flex: 1 1 30%; }
	.top-mv__btns .top-btn { display: block; padding: 10px 6px; font-size: 13px; }
}
/* 形のパターン（11/05。管理画面の「形」、見比べは ?fv=）
   full＝画面いっぱい（上の指定のまま）／peek＝少し低くして次のセクションをのぞかせる／search＝peek＋「車を探す」欄 */
.top-mv--peek, .top-mv--search { height: 82vh; min-height: 520px; max-height: 860px; }
@media screen and (max-width: 810px) { .top-mv--peek { height: 480px; min-height: 0; } .top-mv--search { height: 540px; min-height: 0; } }
@media screen and (max-width: 568px) { .top-mv--peek { height: 380px; } .top-mv--search { height: 500px; } }
.top-mv__search { display: flex; align-items: flex-end; gap: 10px; max-width: 720px; margin: 0 auto 16px; padding: 12px 14px; background: rgba(255, 255, 255, .95); border-radius: 12px; box-shadow: 0 6px 22px rgba(0, 0, 0, .25); text-align: left; }
.top-mv__field { flex: 1; display: block; margin: 0; }
.top-mv__field span { display: block; font-size: 12px; font-weight: 600; color: #6A6A36; margin: 0 0 4px 2px; }
.top-mv__field .fa { color: #C9B200; }
.top-mv__field select { width: 100%; height: 46px; padding: 0 34px 0 12px; border: 2px solid #E6E3C4; border-radius: 8px; background: #FFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236A6A36' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font-family: inherit; font-size: 15px; color: #4A4A2A; cursor: pointer; }
.top-mv__field select:focus-visible { outline: 3px solid #FFD400; outline-offset: 1px; }
.top-mv__go { flex: 0 0 auto; height: 46px; padding: 0 26px; border: 0; border-radius: 8px; background: #C93710; color: #FFF; font-family: var(--asv-font); font-weight: 600; font-size: 15px; cursor: pointer; transition: opacity .2s; }
.top-mv__go:hover { opacity: .85; }
/* 検索つきのときは、下の3つのボタンを小さく（主役は検索） */
.top-mv--search .top-mv__catch { margin-bottom: 16px; }
.top-mv--search .top-mv__btns .top-btn { min-width: 0; padding: 8px 18px; font-size: 13px; }
@media screen and (max-width: 568px) {
	.top-mv__search { flex-wrap: wrap; gap: 8px; padding: 10px; margin-bottom: 10px; }
	.top-mv__field { flex: 1 1 40%; }
	.top-mv__field select { height: 42px; font-size: 14px; padding-left: 8px; }
	.top-mv__go { flex: 1 1 100%; height: 42px; }
	.top-mv--search .top-mv__btns .top-btn { padding: 8px 4px; font-size: 12px; }
}
.top-intro-h { font-size: inherit; margin: 0; }
/* 紹介文（セカンドビュー）の上下の余白をそろえる（11/05）。現行の index.css の .rental-top（上 17px・下 58px）と .sub-contents（下 60px）が重なり、上 29px・下 約140px になっていた */
.top-intro.sub-contents { padding: 0 2%; margin-bottom: 0; }
.top-intro .rental-top { padding: 56px 0 44px; } /* 下は次のセクションの内側の 12px と合わせて 56px */
@media screen and (max-width: 810px) { .top-intro .rental-top { padding: 36px 0 24px; } } /* 現行の .rental-top h2 の見た目を h1 でも同じに */
.rental-top .top-intro-h { color: #6A6A36; font-family: var(--asv-font); font-weight: 600; font-size: 1.6em; line-height: 1.6; margin-bottom: 14px; }

/* ---- 2＋3 体験・目的から選ぶ ＋ おすすめ車種（A 案：1つのパネル。assets/js/top.js） ---- */
.top-finder__panel { max-width: 1080px; margin: 0 auto; background: #FAFAE8; border: 1px solid #ECE9CC; border-radius: 16px; padding: 22px 24px 26px; }
.top-finder__q { font-family: var(--asv-font); font-weight: 600; font-size: 1.15em; color: #6A6A36; margin-bottom: 12px; }
.top-finder__q span { font-weight: 400; font-size: .78em; color: #8A8A5A; margin-left: 4px; }
.top-finder__chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; }
.top-finder__chip { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; padding: 8px 8px 8px 8px; background: #FFF; border: 2px solid #E6E3C4; border-radius: 12px; text-align: left; color: #4A4A2A; cursor: pointer; font-family: inherit; transition: border-color .15s, background-color .15s, transform .1s; }
.top-finder__chip:hover { border-color: #FFD400; }
.top-finder__chip:active { transform: scale(.98); }
.top-finder__chip:focus-visible { outline: 3px solid #6A6A36; outline-offset: 2px; }
.top-finder__chip.on { border-color: #FFD400; background: #FFF8CC; }
.top-finder__thumb { position: relative; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #EEE; }
.top-finder__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top-finder__thumb .fa { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; border-radius: 50%; background: #6A6A36; color: #FFF; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.top-finder__chipname { font-weight: 600; font-size: .98em; line-height: 1.35; color: #6A6A36; }
.nb { display: inline-block; white-space: nowrap; } /* asoviva_nb()：「・」「、」「。」の後だけで改行 */
.top-finder__chipname small { display: block; font-weight: 400; font-size: .78em; color: #6A6A5A; margin-top: 2px; line-height: 1.5; }
/* チェックはカードの右上の角に（文字の幅を広げるため。1行目だけ float で場所を空ける） */
.top-finder__chipname::before { content: ""; float: right; width: 24px; height: 20px; }
.top-finder__tick { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #D9D6AE; color: transparent; display: flex; align-items: center; justify-content: center; font-size: 11px; background: #FFF; }
.top-finder__chip.on .top-finder__tick { background: #FFD400; border-color: #FFD400; color: #4A4A2A; }
.top-finder__result { margin-top: 20px; padding-top: 18px; border-top: 2px dashed #E0DCB4; border-radius: 4px; }
.top-finder__result.is-flash { animation: tf-flash .7s ease-out; }
@keyframes tf-flash { 0% { background: #FFF3A0; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .top-finder__result.is-flash { animation: none; } }
.top-finder__rhead { font-family: var(--asv-font); font-weight: 600; font-size: 1.15em; color: #6A6A36; margin-bottom: 4px; }
.top-finder__rhead .fa { color: #C9B200; }
.top-finder__rhead.is-filtered { color: #C93710; }
.top-finder__rhead.is-filtered .fa:before { content: "\f00c"; }
.top-finder .car-lst2 li.car-card2 { display: inline-block; width: 22%; margin: 1.5%; padding: 0; box-sizing: border-box; vertical-align: top; }
.top-finder .car-lst2 li.car-card2[hidden] { display: none; }
.top-finder .car-card2__tx { display: none; }
.top-finder__more { text-align: center; margin-top: 14px; }
@media screen and (max-width: 810px) {
	.top-finder__panel { padding: 16px 12px 20px; border-radius: 12px; }
	.top-finder__q { font-size: 1em; }
	.top-finder__q span { display: block; margin: 2px 0 0; }
	.top-finder__chips { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.top-finder__chip { padding: 6px; gap: 8px; }
	.top-finder__thumb { flex-basis: 40px; width: 40px; height: 40px; }
	.top-finder__chipname { font-size: .82em; }
	.top-finder__chipname::before { width: 20px; height: 16px; }
	.top-finder__chipname small { display: none; }
	.top-finder__tick { top: 5px; right: 5px; width: 18px; height: 18px; font-size: 9px; }
	.top-finder__rhead { font-size: 1em; }
	.top-finder .car-lst2 li.car-card2 { width: 47%; }
}

.top-early { max-width: 900px; margin: 30px auto 0; padding: 20px; background: #FFF8D0; border: 2px solid #FFD400; border-radius: 8px; text-align: center; color: #6A6A36; line-height: 1.8; }
.top-early p { margin-bottom: 12px; font-weight: 500; }

/* ---- 4 はじめてでも安心（11/05 夜に作り直し：写真の上に番号、アイコン付きの見出し、詳しく見る） ---- */
.top-anshin { background: #FAFAE8; border-radius: 16px; padding: 30px 16px 36px !important; }
.top-anshin__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; counter-reset: none; }
.top-anshin__list a { display: flex; flex-direction: column; height: 100%; background: #FFF; border-radius: 12px; overflow: hidden; color: #4A4A2A; text-decoration: none; box-shadow: 0 3px 14px rgba(106, 106, 54, .10); transition: transform .2s, box-shadow .2s; }
.top-anshin__list a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(106, 106, 54, .18); }
.top-anshin__ph { position: relative; display: block; }
.top-anshin__ph img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.top-anshin__no { position: absolute; left: 12px; bottom: -18px; width: 44px; height: 44px; border-radius: 50%; background: #FFD400; color: #4A4A2A; font-family: 'Acme', sans-serif; font-size: 1.2em; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.top-anshin__in { display: flex; flex-direction: column; flex: 1; padding: 26px 16px 14px; }
.top-anshin__name { font-family: var(--asv-font); font-weight: 600; font-size: 1.08em; color: #6A6A36; margin-bottom: 6px; }
.top-anshin__name .fa { color: #C9B200; margin-right: 6px; }
.top-anshin__tx { font-size: .88em; line-height: 1.75; flex: 1; }
.top-anshin__more { margin-top: 10px; text-align: right; font-size: .88em; font-weight: 600; color: #C93710; }
@media screen and (max-width: 810px) {
	.top-anshin { border-radius: 0; margin-left: -2%; margin-right: -2%; }
	.top-anshin__list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.top-anshin__in { padding: 22px 10px 10px; }
	.top-anshin__name { font-size: .95em; }
	.top-anshin__tx { font-size: .8em; }
}

/* ---- 5 Instagram ---- */
.top-insta__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 1080px; margin: 0 auto; padding: 0 12px; }
.top-insta__list .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }
@media screen and (max-width: 810px) { .top-insta__list { grid-template-columns: repeat(2, 1fr); } }

/* ---- 7 新着情報（11/05 夜に作り直し。現行の .news-box は左右2段の作りで、1つだけだと崩れたため） ---- */
.top-news { background: #F8F8F0; padding: 40px 16px 44px; clear: both; }
.top-news__in { max-width: 860px; margin: 0 auto; }
.top-news__list { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid #E6E3C4; }
.top-news__list a { display: flex; align-items: baseline; gap: 18px; padding: 16px 8px; border-bottom: 1px solid #E6E3C4; color: #4A4A2A; text-decoration: none; transition: background-color .15s; }
.top-news__list a:hover { background: #FFF; }
.top-news__list time { flex: 0 0 6.5em; font-family: 'Roboto', sans-serif; font-weight: 600; color: #6A6A36; font-size: .92em; }
.top-news__list span { flex: 1; line-height: 1.6; }
.top-news__list .fa { color: #C93710; }
.top-news .top-more { margin-top: 22px; }
@media screen and (max-width: 568px) {
	.top-news__list a { flex-direction: column; gap: 2px; padding: 12px 4px; }
	.top-news__list time, .top-news__list span { flex: none; } /* 縦並びのとき、日付の幅（6.5em）が高さとして効いて間が空いていた */
	.top-news__list .fa { display: none; }
}

/* ---- 8 キャンピングカー製作（フッターの手前の小さなバナー） ---- */
.top-custom { padding: 40px 16px 50px; clear: both; }
.top-custom__in { display: flex; align-items: stretch; max-width: 900px; margin: 0 auto; background: #F8F8F0; border: 1px solid #6A6A36; border-radius: 8px; overflow: hidden; color: #6A6A36; text-decoration: none !important; }
.top-custom__ph { flex: 0 0 38%; }
.top-custom__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.top-custom__tx { flex: 1; padding: 22px 24px; }
.top-custom__en { display: block; font-family: 'Acme', sans-serif; color: #FFD400; font-size: 1.3em; letter-spacing: .05em; }
.top-custom__ttl { display: block; font-family: var(--asv-font); font-weight: 600; font-size: 1.3em; margin: 4px 0 8px; }
.top-custom__p { display: block; font-size: .9em; line-height: 1.8; margin-bottom: 14px; }
@media screen and (max-width: 568px) {
	.top-custom__in { flex-direction: column; }
	.top-custom__tx { padding: 16px; text-align: center; }
}


/* 紹介文の見出し：英語・繁体字は現行（english/zh-tw の index202606.css）と同じく、長い文を普通の太さ・小さめで出す */
html[lang="en-US"] .rental-top .top-intro-h, html[lang="zh-TW"] .rental-top .top-intro-h { font-weight: 400; font-size: 1.2em; line-height: 1.8; }
@media screen and (max-width: 810px) { html[lang="en-US"] .rental-top .top-intro-h, html[lang="zh-TW"] .rental-top .top-intro-h { font-size: 1.1em; } }
@media screen and (max-width: 568px) {
	.rental-top .top-intro-h { font-size: 1.25em; }
	html[lang="en-US"] .rental-top .top-intro-h, html[lang="zh-TW"] .rental-top .top-intro-h { font-size: 1em; line-height: 1.6; }
}

/* 9 動画（メインビジュアルが写真のとき、トップの下のほうに。11/09）
   動画ファイルは上下に黒い帯（各約12%）がある作りなので、枠を 16:9 より横長にして帯を切る */
.top-movie { padding: 56px 16px 40px; clear: both; }
.top-movie .top-lead { text-align: center; }
.top-movie__box { max-width: 1080px; margin: 24px auto 0; aspect-ratio: 1280 / 545; overflow: hidden; border-radius: 8px; background: #000; position: relative; }
.top-movie__box video { position: absolute; left: 0; top: -14%; width: 100%; height: 128%; object-fit: cover; display: block; }
@media screen and (max-width: 810px) {
	.top-movie { padding: 36px 16px 28px; }
	.top-movie__box { border-radius: 6px; margin-top: 16px; }
}

/* 5 Instagram：Smash Balloon のフィード（11/09）。見た目はプラグインの設定（列の数など）に任せ、幅だけそろえる */
.top-insta__feed { max-width: 1080px; margin: 20px auto 0; }
/* プラグインの「Instagram でフォロー」は隠し、下のテーマの「Instagram を見る」（3言語の文言）1つにする（11/24 宮城決定）。プラグインの設定を変えても効くように CSS で */
.top-insta__feed .sbi_follow_btn { display: none !important; }

/* トップのセクションは box-sizing: border-box で幅を決めている（11/24 に main.css の仮の指定から移した） */
.home .site-main > section, .home .site-main > section * { box-sizing: border-box; }
