/* worldtrip 専用デザイン(templates/)。THE THOR のCSSは読み込まないので、ここで土台から整える。 */

:root {
	--wt-text: #111111;
	--wt-muted: #6b6b6b;
	--wt-line: #ececec;
	--wt-bg: #ffffff;
	--wt-bg-soft: #f3f3f3;
	--wt-accent: #0b6e69;
	--wt-gutter: 16px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body.wt-site {
	margin: 0;
	background: var(--wt-bg);
	color: var(--wt-text);
	font-family: "IBM Plex Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.8;
	-webkit-text-size-adjust: 100%;
}

.wt-site a {
	color: var(--wt-accent);
}

/* WordPress本体のグローバルスタイル(テーマ由来のフォント等)を引き継がない */
.wt-site h1,
.wt-site h2,
.wt-site h3,
.wt-site button,
.wt-site input {
	font-family: inherit;
	letter-spacing: normal;
}

.wt-site img {
	max-width: 100%;
	height: auto;
}

.wt-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 var(--wt-gutter);
}

.wt-wrap--narrow {
	max-width: 760px;
}

.wt-sr,
.wt-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ヘッダー */

.wt-header {
	border-bottom: 1px solid var(--wt-line);
	background: var(--wt-bg);
}

.wt-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	min-height: 60px;
}

.wt-site .wt-header__brand {
	color: var(--wt-text);
	text-decoration: none;
}

.wt-header__name {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
}

/* メイン */

.wt-main {
	padding: 32px 0 80px;
}

.wt-page__title,
.wt-article__title {
	margin: 0 0 .6em;
	font-size: 1.6rem;
	line-height: 1.45;
}

.wt-article__back {
	margin: 0 0 1em;
	font-size: .9rem;
}

.wt-site .wt-article__back a {
	text-decoration: none;
}

.wt-article__date {
	margin: 0 0 1.5em;
	font-size: .85rem;
	color: var(--wt-muted);
}

.wt-article__thumb {
	margin: 0 0 2em;
}

.wt-article__thumb img {
	display: block;
	width: 100%;
	border-radius: 14px;
}

/* 本文 */

.wt-content > :first-child {
	margin-top: 0;
}

.wt-content p,
.wt-content ul,
.wt-content ol,
.wt-content table {
	margin: 0 0 1.4em;
}

.wt-content ul,
.wt-content ol {
	padding-left: 1.4em;
}

.wt-content li {
	margin-bottom: .3em;
}

.wt-content h2 {
	margin: 2.4em 0 1em;
	padding: 0 0 .4em;
	border-bottom: 2px solid var(--wt-text);
	font-size: 1.35rem;
	line-height: 1.5;
}

.wt-content h3 {
	margin: 2em 0 .8em;
	padding-left: .6em;
	border-left: 4px solid var(--wt-accent);
	font-size: 1.1rem;
	line-height: 1.5;
}

.wt-content table {
	width: 100%;
	border-collapse: collapse;
}

.wt-content th,
.wt-content td {
	padding: .5em .7em;
	border: 1px solid var(--wt-line);
	text-align: left;
	vertical-align: top;
}

/* 基本データ枠の表は、本文の表の罫線を使わない */
.wt-content .wt-basic__table th,
.wt-content .wt-basic__table td {
	border-width: 1px 0 0;
}

.wt-content .wt-basic__table {
	margin: 0;
}

/* ほかの行き先 */

.wt-others {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--wt-line);
}

.wt-others__title {
	margin: 0 0 .6em;
	font-size: 1.1rem;
}

.wt-others__list {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

/* 絞り込みページ [worldtrip_finder]: 左に条件、右に結果 */

.wt-finder {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px 48px;
	font-size: 14px;
	line-height: 1.6;
}

.wt-finder__toggle {
	display: none;
}

.wt-finder__panel {
	flex: 1 1 280px;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wt-finder__results {
	flex: 999 1 560px;
	min-width: 0;
}

.wt-finder__group {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.wt-finder__legend {
	padding: 0;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 500;
	color: var(--wt-muted);
	letter-spacing: .04em;
}

.wt-finder__hint {
	margin-left: 8px;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0;
}

/* 選択肢の共通: 入力欄は隠し、ラベル全体を押せるようにする。キーボード操作時は枠を出す */
.wt-chip,
.wt-month,
.wt-seg__item,
.wt-place {
	cursor: pointer;
	user-select: none;
	transition: background-color .15s, color .15s;
}

.wt-chip:has(input:focus-visible),
.wt-month:has(input:focus-visible),
.wt-seg__item:has(input:focus-visible),
.wt-place:has(input:focus-visible) {
	outline: 2px solid var(--wt-accent);
	outline-offset: 2px;
}

.wt-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wt-chip {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 11px;
	font-size: 13px;
	border-radius: 999px;
	background: var(--wt-bg-soft);
}

.wt-chip:hover {
	background: #e8e8e8;
}

.wt-chip:has(input:checked) {
	background: var(--wt-text);
	color: #ffffff;
}

.wt-months {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 4px;
}

.wt-month {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	border-radius: 8px;
	background: var(--wt-bg-soft);
	font-variant-numeric: tabular-nums;
}

.wt-month:hover {
	background: #e8e8e8;
}

.wt-month:has(input:checked) {
	background: var(--wt-text);
	color: #ffffff;
}

.wt-seg {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	padding: 3px;
	border-radius: 10px;
	background: var(--wt-bg-soft);
}

.wt-seg__item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	border-radius: 8px;
	color: var(--wt-muted);
	font-size: 12px;
	letter-spacing: -.08em;
	white-space: nowrap;
}

.wt-seg__item:has(input:checked) {
	background: var(--wt-bg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
	color: var(--wt-text);
	font-weight: 700;
}

/* 場所もチップで並べる。選んだ地域の国、国の都市は、枠線だけのチップで後ろに出る */
.wt-places {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wt-place {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 11px;
	font-size: 13px;
	border-radius: 999px;
	background: var(--wt-bg-soft);
}

.wt-place[hidden] {
	display: none;
}

.wt-place--d1,
.wt-place--d2,
.wt-place--d3 {
	border: 1px solid #d6d6d6;
	background: var(--wt-bg);
}

.wt-place:hover {
	background: #e8e8e8;
}

.wt-place:has(input:checked) {
	border-color: var(--wt-text);
	background: var(--wt-text);
	color: #ffffff;
}

/* 結果 */

/* 条件をクリア: 条件欄のいちばん下。何も選んでいないときは押せない */
.wt-finder__reset {
	align-self: stretch;
	height: 40px;
	border: 1px solid var(--wt-text);
	border-radius: 10px;
	background: var(--wt-bg);
	color: var(--wt-text);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}

.wt-finder__reset:hover:not(:disabled) {
	background: var(--wt-text);
	color: #ffffff;
}

.wt-finder__reset:disabled {
	border-color: var(--wt-line);
	color: #b5b5b5;
	cursor: default;
}

/* 本文(.wt-content)の ul・li・p の余白を打ち消す */
.wt-finder .wt-finder__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 32px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wt-finder .wt-finder__empty {
	margin: 0 0 24px;
	color: var(--wt-muted);
}

.wt-finder .wt-card {
	margin: 0;
}

.wt-card[hidden] {
	display: none;
}

.wt-site .wt-card__link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--wt-text);
	text-decoration: none;
}

.wt-card.is-near {
	opacity: .38;
	transition: opacity .15s;
}

.wt-card.is-near:hover {
	opacity: .7;
}

.wt-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: 14px;
	overflow: hidden;
	background: #dfe3e1;
}

/* .wt-site img の height: auto より強くして、枠いっぱいに切り抜く */
.wt-card__media .wt-card__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.wt-card__link:hover .wt-card__media .wt-card__thumb {
	transform: scale(1.03);
}

.wt-card__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.wt-card__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.wt-card__en {
	margin-left: 4px;
	font-size: 12px;
	font-weight: 400;
	color: var(--wt-muted);
}

.wt-card__budget {
	flex: none;
	font-size: 13px;
	color: var(--wt-muted);
	letter-spacing: -.04em;
}

.wt-card__place {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-top: -8px;
	font-size: 12px;
	color: var(--wt-muted);
}

.wt-card__sep {
	margin: 0 6px;
	color: #c4c4c4;
}

.wt-card__months {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 2px;
}

.wt-card__months span {
	height: 3px;
	background: #e6e6e6;
}

.wt-card__months .is-on {
	background: var(--wt-text);
}

.wt-card__miss {
	font-size: 12px;
	color: var(--wt-muted);
}

.wt-card__miss:empty {
	display: none;
}

/* PC(高さが足りる画面): 絞り込みページを1画面に収める。
   ヘッダー・条件・フッターは固定し、結果の欄だけを中でスクロールさせる */
@media (min-width: 761px) and (min-height: 600px) {
	body.wt-site--page {
		display: flex;
		flex-direction: column;
		height: 100vh;
		height: 100dvh;
		overflow: hidden;
	}

	.wt-site--page .wt-main {
		flex: 1;
		min-height: 0;
		padding: 0;
	}

	/* 本文にショートコード以外があっても、絞り込みが残りの高さを使う */
	.wt-site--page .wt-page,
	.wt-site--page .wt-content {
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	.wt-site--page .wt-finder {
		flex: 1;
		flex-wrap: nowrap;
		min-height: 0;
	}

	.wt-site--page .wt-finder__panel {
		flex: 0 0 360px;
		max-width: 360px;
		max-height: 100%;
		gap: 16px;
		padding: 16px 0;
		overflow-y: auto;
		scrollbar-width: none;
	}

	.wt-site--page .wt-finder__results {
		height: 100%;
		padding: 24px 4px 32px 0;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.wt-site--page .wt-header__inner {
		min-height: 52px;
	}

	/* 画面が低くて条件欄が中でスクロールしても、クリアは常に見える */
	.wt-site--page .wt-finder__reset {
		position: sticky;
		bottom: 0;
		flex: none;
		box-shadow: 0 -12px 12px var(--wt-bg);
	}

	.wt-site--page .wt-footer {
		padding: 8px 0;
		font-size: .75rem;
	}
}

/* スマホ: 条件は「条件」ボタンで開く(JSが動かないときは常に表示) */
@media (max-width: 760px) {
	.wt-finder {
		gap: 16px;
	}

	.wt-finder__panel {
		max-width: none;
	}

	.wt-finder.is-js .wt-finder__toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 44px;
		padding: 0 18px;
		border: 1px solid #e2e2e2;
		border-radius: 999px;
		background: var(--wt-bg);
		color: var(--wt-text);
		font-size: 14px;
		font-weight: 700;
		cursor: pointer;
	}

	.wt-finder.is-js .wt-finder__panel {
		display: none;
	}

	.wt-finder.is-js.is-open .wt-finder__panel {
		display: flex;
		padding-bottom: 8px;
	}

	.wt-finder .wt-finder__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}

	.wt-card__media {
		border-radius: 10px;
	}

	.wt-card__en {
		display: none;
	}
}

/* フッター */

.wt-footer {
	padding: 32px 0;
	border-top: 1px solid var(--wt-line);
	font-size: .8rem;
	color: var(--wt-muted);
}

.wt-footer .wt-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
}

.wt-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.wt-site .wt-footer__nav a {
	color: var(--wt-muted);
	text-decoration: none;
}

.wt-site .wt-footer__nav a:hover {
	color: var(--wt-text);
}

.wt-footer__copy {
	margin: 0;
}

@media (max-width: 600px) {
	.wt-main {
		padding-top: 20px;
	}

	.wt-page__title,
	.wt-article__title {
		font-size: 1.35rem;
	}
}

/* 写真が主役の worldtrip 記事(templates/parts/gallery-article.php) */

/* 写真・ここがすごい・文章(本文も)を同じ幅にそろえる */
.wt-gallery-article .wt-wrap,
.wt-wrap--gallery {
	max-width: 1080px;
}

.wt-gallery-article__title {
	margin-bottom: .5em;
}

.wt-hero {
	position: relative;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 8px;
	height: min(62vh, 520px);
	border-radius: 16px;
	overflow: hidden;
}

.wt-hero__main {
	grid-row: 1 / 3;
}

.wt-hero--0 {
	grid-template-columns: 1fr;
}

.wt-hero--1 {
	grid-template-columns: 2fr 1fr;
}

.wt-hero--1 .wt-hero__side,
.wt-hero--3 .wt-hero__side:last-of-type {
	grid-row: 1 / 3;
}

.wt-hero--2 {
	grid-template-columns: 2fr 1fr;
}

.wt-hero__main,
.wt-hero__side {
	min-width: 0;
	min-height: 0;
	background: var(--wt-bg-soft);
}

.wt-hero a,
.wt-hero img {
	display: block;
	width: 100%;
	height: 100%;
}

.wt-highlight a {
	display: block;
}

.wt-highlight img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
}

.wt-hero img,
.wt-highlight img {
	object-fit: cover;
	transition: opacity .2s;
}

.wt-hero a:hover img,
.wt-highlight a:hover img {
	opacity: .9;
}

.wt-hero__all {
	position: absolute;
	right: 16px;
	bottom: 16px;
	padding: 8px 14px;
	border: 1px solid var(--wt-text);
	border-radius: 8px;
	background: var(--wt-bg);
	color: var(--wt-text);
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.wt-video {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #000;
	cursor: pointer;
}

.wt-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .6);
}

.wt-video__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -14px 0 0 -8px;
	border-style: solid;
	border-width: 14px 0 14px 24px;
	border-color: transparent transparent transparent #fff;
}

.wt-video__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.wt-catch {
	margin: 28px 0 16px;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.5;
}

.wt-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin: 0 0 8px;
	padding: 16px 0;
	border-top: 1px solid var(--wt-line);
	border-bottom: 1px solid var(--wt-line);
}

.wt-facts__item dt {
	font-size: 12px;
	color: var(--wt-muted);
}

.wt-facts__item dd {
	margin: 0;
	font-weight: 500;
}

.wt-section-title {
	margin: 0 0 16px;
	font-size: 1.2rem;
}

.wt-highlights {
	margin-top: 48px;
}

.wt-highlights__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 24px;
}

.wt-highlight {
	margin: 0;
}

/* PCで奇数のときは最後の1つを横いっぱいにして、右側を空けない */
@media (min-width: 761px) {
	.wt-highlight:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.wt-highlight:last-child:nth-child(odd) img {
		aspect-ratio: 21 / 9;
	}
}

.wt-highlight a {
	border-radius: 14px;
	overflow: hidden;
	background: var(--wt-bg-soft);
}

.wt-highlight figcaption {
	margin-top: 10px;
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.6;
}

.wt-miss {
	margin-top: 48px;
	padding: 20px 24px;
	border-left: 4px solid var(--wt-accent);
	border-radius: 0 12px 12px 0;
	background: var(--wt-bg-soft);
}

.wt-miss .wt-section-title {
	margin-bottom: 10px;
}

.wt-miss ul {
	margin: 0;
	padding-left: 1.2em;
}

.wt-miss li + li {
	margin-top: 6px;
}

.wt-more {
	margin-top: 56px;
}

.wt-more__body .wt-article__date {
	margin: 2em 0 0;
}

.wt-credits {
	margin-top: 24px;
	font-size: 12px;
	color: var(--wt-muted);
}

.wt-credits__title {
	margin: 0 0 4px;
	font-weight: 500;
}

.wt-credits ul {
	margin: 0;
	padding-left: 1.2em;
}

.wt-site .wt-credits a {
	color: inherit;
}

/* 全画面表示(assets/gallery.js) */

.wt-lightbox-open {
	overflow: hidden;
}

.wt-lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #000;
	color: #fff;
}

.wt-lightbox::backdrop {
	background: #000;
}

.wt-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	margin: 0;
	padding: 56px 64px;
}

.wt-lightbox__img {
	max-width: 100%;
	max-height: calc(100% - 28px);
	object-fit: contain;
}

.wt-lightbox__credit {
	margin-top: 8px;
	font-size: 12px;
	color: rgba(255, 255, 255, .7);
}

.wt-lightbox__close,
.wt-lightbox__nav {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.wt-lightbox__close {
	top: 12px;
	right: 12px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.wt-lightbox__nav {
	top: 50%;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border-radius: 50%;
	font-size: 32px;
}

.wt-lightbox__nav--prev {
	left: 12px;
}

.wt-lightbox__nav--next {
	right: 12px;
}

.wt-lightbox__count {
	position: absolute;
	top: 22px;
	left: 0;
	right: 0;
	margin: 0;
	text-align: center;
	font-size: 13px;
	pointer-events: none;
}

/* スマホの写真の点(assets/gallery.js が作る)。PCでは出さない */
.wt-hero-dots {
	display: none;
}

/* スマホ: 写真は横にスワイプ、ここがすごいは1列 */
@media (max-width: 760px) {
	.wt-hero-dots {
		display: flex;
		justify-content: center;
		gap: 6px;
		margin-top: 10px;
		font-size: 12px;
		color: var(--wt-muted);
	}

	.wt-hero-dots span {
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: var(--wt-text);
		opacity: .2;
		transition: opacity .2s, transform .2s;
	}

	.wt-hero-dots span.is-active {
		opacity: 1;
		transform: scale(1.25);
	}

	.wt-hero {
		display: flex;
		height: auto;
		margin: 0 calc(-1 * var(--wt-gutter));
		gap: 6px;
		border-radius: 0;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.wt-hero::-webkit-scrollbar {
		display: none;
	}

	.wt-hero__main,
	.wt-hero__side,
	.wt-hero__rest[hidden] {
		display: block;
		flex: 0 0 88%;
		aspect-ratio: 4 / 3;
		scroll-snap-align: center;
	}

	.wt-hero--0 .wt-hero__main {
		flex-basis: 100%;
	}

	.wt-hero__all {
		display: none;
	}

	.wt-catch {
		margin-top: 20px;
		font-size: 1.2rem;
	}

	.wt-highlights__list {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.wt-lightbox__figure {
		padding: 56px 0;
	}

	.wt-lightbox__nav {
		display: none;
	}
}

/* 記事の最後: 絞り込みページへ戻る */

.wt-backtop {
	margin-top: 48px;
	text-align: center;
}

.wt-site .wt-backtop__button {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 999px;
	background: var(--wt-text);
	color: var(--wt-bg);
	font-weight: 500;
	text-decoration: none;
}

.wt-site .wt-backtop__button:hover {
	opacity: .85;
}
