/**
 * お客様の声ページの追加スタイル
 *
 * 既存の .voice_box / .voice_list には手を触れず、
 * 新しく足した要素だけを lm- 接頭辞で指定する。
 */

/* ── セクション共通 ───────────────────────── */
.lm-voice-section {
	margin: 48px 0;
}
.lm-voice-section .wrapper {
	max-width: 1100px;
	margin-inline: auto;
	padding-inline: 16px;
}
.lm-voice-section__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 20px;
}
.lm-voice-lead {
	margin-block: 24px;
}

/* ── カテゴリータブ ───────────────────────── */
.lm-voice-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}
.lm-voice-tab {
	appearance: none;
	border: 1px solid #d9d2c5;
	background: #fff;
	color: #4a4a4a;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: .9rem;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.lm-voice-tab:hover {
	border-color: #c4622d;
	color: #c4622d;
}
.lm-voice-tab.is-current {
	background: #c4622d;
	border-color: #c4622d;
	color: #fff;
}
.lm-voice-tab__count {
	margin-left: 6px;
	font-size: .78em;
	opacity: .75;
}

.lm-voice-empty {
	padding: 32px 0;
	text-align: center;
	color: #777;
}

/* 絞り込みでJSが付ける hidden を確実に効かせる。
   .voice_box はテーマ側で display:flex を持つため、
   hidden 属性（display:none）が上書きされてしまうのを防ぐ。 */
.voice_box[hidden] { display: none !important; }

/* ── 一覧の各口コミに足した要素 ─────────────── */
.lm-voice-cat {
	display: inline-block;
	font-size: .78rem;
	line-height: 1;
	padding: 5px 10px;
	border-radius: 4px;
	background: #f3ece1;
	color: #8b5a2b;
	margin-bottom: 8px;
}
.lm-voice-permalink {
	margin-top: 10px;
	font-size: .78rem;
}
.lm-voice-permalink__link {
	color: #a99a86;
	text-decoration: none;
}
.lm-voice-permalink__link:hover {
	color: #c4622d;
	text-decoration: underline;
}

/* ── 対応ドライバー名 → ドライバー詳細ページへのリンク ──
   一覧と Pick up のポップアップの両方で使う。 */
.lm-driver-link {
	color: var(--color_link, #2157d0);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.lm-driver-link::after {
	content: "›";
	margin-left: .3em;
	font-weight: 700;
}
.lm-driver-link:hover,
.lm-driver-link:focus-visible {
	color: #c4622d;
}

/* リンクで飛んできた口コミを一瞬光らせる */
.voice_box.is-target {
	animation: lm-voice-flash 2.4s ease-out;
}
@keyframes lm-voice-flash {
	0%, 35% { box-shadow: 0 0 0 3px rgba(196, 98, 45, .55); }
	100%    { box-shadow: 0 0 0 3px rgba(196, 98, 45, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.voice_box.is-target { animation: none; outline: 3px solid rgba(196,98,45,.55); }
}

/* ── スライダー共通 ───────────────────────── */
.lm-swiper-prev,
.lm-swiper-next {
	color: #c4622d;
}
.lm-swiper-prev::after,
.lm-swiper-next::after {
	font-size: 20px;
	font-weight: 700;
}

/* ── Pick up ─────────────────────────────── */
/* スライダーをブラウザ幅いっぱい（全幅）にする。
   親の max-width を負のマージンで打ち消し、100vw まで広げる。
   overflow: visible で左右のスライドを画面端まで覗かせる。
   body 側が overflow-x: clip のため横スクロールバーは出ない。
   （Swiperの .swiper ルールに負けないよう詳細度を上げている） */
.lm-pickup .lm-pickup__swiper {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: 60px;
	padding-right: 60px;
	padding-bottom: 40px;
	overflow: visible;
}
.lm-pickup .lm-swiper-prev { left: 12px; }
.lm-pickup .lm-swiper-next { right: 12px; }
@media (max-width: 599px) {
	.lm-pickup .lm-pickup__swiper {
		padding-left: 24px;
		padding-right: 24px;
	}
	.lm-pickup .lm-swiper-prev { left: 4px; }
	.lm-pickup .lm-swiper-next { right: 4px; }
}
/* スライド幅を固定する（slidesPerView:'auto' がこの幅を使う）。
   画面幅が広がってもカードは横伸びせず、枚数だけが増える。
   Swiper の .swiper-slide ルールに勝つよう詳細度を上げている。 */
.lm-pickup .lm-pickup__swiper .lm-pickup__card {
	width: 320px;
	max-width: 82vw;
	box-sizing: border-box;
}
.lm-pickup__card {
	background: #fff;
	border: 1px solid #ece5d8;
	border-radius: 14px;
	overflow: hidden;
	height: auto;
	display: flex;
	flex-direction: column;
}
.lm-pickup__img {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
.lm-pickup__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.lm-pickup__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}
.lm-pickup__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
	margin: 0;
}
.lm-pickup__name {
	font-size: .82rem;
	color: #8b6b4a;
	margin: 0;
}
.lm-pickup__text {
	font-size: .88rem;
	line-height: 1.75;
	color: #555;
	margin: 0;
}
/* ポップアップ内にも置くため、カード前提の配置指定は持たせない */
.lm-pickup__more {
	display: inline-block;
	font-size: .84rem;
	color: #c4622d;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

/* ── Pick up カード：全体をクリックできるようにする ── */
.lm-pickup__card {
	position: relative;
}
.lm-pickup__readmore {
	margin-top: auto;
	align-self: flex-start;
	font-size: .84rem;
	color: #c4622d;
	border-bottom: 1px solid currentColor;
}
/* カードに重ねる透明なボタン。見出しや段落を <button> で囲まないための作り。 */
.lm-pickup__trigger {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.lm-pickup__trigger:focus-visible {
	outline: 3px solid #c4622d;
	outline-offset: -3px;
	border-radius: 14px;
}
.lm-pickup__card:hover .lm-pickup__readmore {
	color: #a04d20;
}

/* 読み上げソフト用にだけ残すテキスト */
.lm-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

#lm-pickup-data { display: none !important; }

/* ── 全文ポップアップ ───────────────────────── */
/* dialog を画面いっぱいに広げ、その中でパネルを中央に置く。
   （既定の max-width / margin:auto による中央寄せは、
     パネル幅を自前で決めると効かなくなるため） */
.lm-modal {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
	display: none;
}
.lm-modal[open] {
	display: grid;
	place-items: center;
	padding: 16px;
	box-sizing: border-box;
}
.lm-modal::backdrop {
	background: rgba(0, 0, 0, .55);
}
/* showModal() が使えないブラウザ向け */
.lm-modal.is-fallback {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, .55);
}
.lm-modal__panel {
	position: relative;
	width: min(680px, 100%);
	max-height: 86vh;
	max-height: 86dvh;
	overflow-y: auto;
	overscroll-behavior: contain;   /* 背景を巻き込んでスクロールさせない */
	background: #fff;
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.lm-modal__close {
	position: sticky;
	top: 0;
	float: right;
	width: 36px;
	height: 36px;
	margin: -8px -8px 0 0;
	border: 0;
	border-radius: 50%;
	background: #f3ece1;
	color: #8b5a2b;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.lm-modal__close:hover { background: #e9dfcd; }

.lm-modalCard__img {
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 14px;
	aspect-ratio: 16 / 10;
}
.lm-modalCard__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.lm-modalCard__title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.5;
	margin: 6px 0;
}
.lm-modalCard__name {
	font-size: .86rem;
	color: #8b6b4a;
	margin: 0;
}
.lm-modalCard__date {
	font-size: .82rem;
	color: #888;
	margin: 0 0 10px;
}
.lm-modalCard__meta {
	margin: 0 0 14px;
	font-size: .84rem;
	color: #555;
}
.lm-modalCard__meta > div { display: flex; gap: 6px; }
.lm-modalCard__meta dt { font-weight: 400; color: #777; }
.lm-modalCard__meta dt::after { content: '：'; }
.lm-modalCard__meta dd { margin: 0; font-weight: 700; }
.lm-modalCard__text {
	font-size: .92rem;
	line-height: 1.9;
	color: #333;
}
.lm-modalCard__more { margin: 18px 0 0; }

/* ── TripAdvisor ─────────────────────────── */
.lm-ta__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}
.lm-ta__head .lm-voice-section__title {
	margin-bottom: 0;
}
.lm-ta__more {
	font-size: .88rem;
	color: #1a1a1a;
	text-decoration: underline;
	white-space: nowrap;
}
.lm-ta__card {
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 14px;
	padding: 20px;
	height: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.lm-ta__user {
	display: flex;
	align-items: center;
	gap: 10px;
}
.lm-ta__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}
.lm-ta__avatar--blank {
	background: #ddd;
	display: inline-block;
}
.lm-ta__name {
	font-weight: 700;
	font-size: .95rem;
}
/* TripAdvisorの規約上、評価はTripAdvisor提供の画像を使う（幅は55px以上を確保） */
.lm-ta__rating {
	display: flex;
	gap: 4px;
	margin: 0;
	min-width: 55px;
}
.lm-ta__ratingImg {
	height: 18px;
	width: auto;
	min-width: 55px;
	display: block;
}
.lm-ta__bubble {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #00aa6c;
	display: inline-block;
}
.lm-ta__title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.5;
}
.lm-ta__text {
	font-size: .9rem;
	line-height: 1.8;
	color: #333;
	margin: 0;
}
.lm-ta__meta {
	margin: 0;
	font-size: .82rem;
	color: #555;
}
.lm-ta__meta > div {
	display: flex;
	gap: 6px;
}
.lm-ta__meta dt {
	font-weight: 400;
	color: #777;
}
.lm-ta__meta dt::after {
	content: '：';
}
.lm-ta__meta dd {
	margin: 0;
	font-weight: 700;
}
.lm-ta__source {
	margin-top: auto;
	font-size: .78rem;
	color: #00784f;
	text-decoration: underline;
}

/* スライダー下の「詳しく見る」ボタン */
.lm-ta__cta {
	margin: 24px 0 0;
	text-align: center;
}
.lm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 260px;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition: opacity .15s, transform .15s;
}
.lm-btn:hover {
	opacity: .88;
	transform: translateY(-1px);
}
.lm-btn--ta {
	background: #00aa6c;   /* Tripadvisor のブランドカラー */
	color: #fff;
}
.lm-btn--ta::after {
	content: '';
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: no-repeat center/contain url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h4v2H7v10h10v-2h2v4H5V5z'/%3E%3C/svg%3E");
	mask: no-repeat center/contain url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3zM5 5h4v2H7v10h10v-2h2v4H5V5z'/%3E%3C/svg%3E");
}

@media (max-width: 599px) {
	.lm-voice-section { margin: 32px 0; }
	.lm-voice-section__title { font-size: 1.25rem; }
	.lm-voice-tab { padding: 7px 13px; font-size: .84rem; }
	.lm-btn { min-width: 0; width: 100%; padding: 14px 20px; }

	.lm-modal[open] { padding: 10px; }
	.lm-modal__panel {
		width: 100%;
		max-height: 90vh;
		max-height: 90dvh;
		padding: 18px;
		border-radius: 12px;
	}
	.lm-modalCard__title { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
	.lm-modal,
	.lm-modal__panel {
		transition: none !important;
		animation: none !important;
	}
}
