:root {
	--blue: #2866b1;
	--button: #1e73be;
	--text: rgba(0, 0, 0, .55);
	--heading: rgba(0, 0, 0, .85);
	--container: 1040px;
}

* { box-sizing: border-box; }
html { font-size: 10px; }
body {
	margin: 0;
	color: var(--text);
	background: #454545;
	font: 15px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
main, .site-header, .site-footer { background: #fff; }
a { color: var(--button); text-decoration: none; }
a:hover { color: #629dd2; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, p, ul { margin-top: 0; }
button, input, textarea, select { font: inherit; }
.site-container {
	width: 100%;
	max-width: var(--container);
	margin-right: auto;
	margin-left: auto;
	padding-right: 20px;
	padding-left: 20px;
}
.text-center { text-align: center; }

/* Header */
.utility-bar {
	color: #fff;
	background-color: #4e9bed;
	background-image: url('/wp-content/uploads/2015/05/black-linen.png');
	background-repeat: repeat;
	padding: 10px 0;
}
.utility-inner { min-height: 24.75px; }
.utility-inner::after { display: table; clear: both; content: ""; }
.phone {
	padding-right: 1em;
	font-size: 16.5px;
	font-weight: 700;
	line-height: 24.75px;
}
.language-nav { float: right; font-size: 12px; line-height: 18px; }
.language-nav ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.language-nav li { margin-left: 20px; }
.language-nav li { margin-right: 10px; margin-left: 10px; }
.language-nav a { color: #fff; font-weight: 700; }
.brand-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(243, 243, 243, 1);
}
.brand-inner {
	display: flex;
	min-height: 83.75px;
	align-items: center;
	justify-content: space-between;
	padding-top: 20px;
	padding-bottom: 20px;
}
.site-description { display: block; width: 100%; }
.site-name {
	display: inline-block;
	margin: 0 10px 0 0;
	color: var(--heading);
	font-size: 18px;
	font-weight: 700;
	line-height: 27px;
}
.site-name a { color: var(--heading); }
.tagline, .ticket-top {
	display: inline-block;
	margin: 0;
	color: var(--blue);
	font-size: 22.5px;
	line-height: 33.75px;
}
.tagline { font-weight: 700; }
.ticket-top { margin-left: 2em; }
.button {
	display: inline-block;
	padding: 5px 15px;
	border: 0;
	border-radius: 0;
	color: #fff;
	background: var(--button);
	font-weight: 700;
	line-height: 33.75px;
	text-align: center;
}
.button:hover { color: #fff; background: #629dd2; }
.ticket-top .button { font-size: 22.5px; }
.button-small { font-size: 15px; line-height: 22.5px; }
.mobile-nav { display: none; }

/* Hero slideshow */
.hero-slider {
	position: relative;
	height: 550px;
	overflow: hidden;
	background: #f6eed5;
}
.hero-track, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
	opacity: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	transition: opacity .55s ease;
}
.hero-slide.is-active { z-index: 1; opacity: 1; }
.hero-arrows { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.hero-arrows button {
	position: absolute;
	top: 50%;
	width: 50px;
	height: 70px;
	padding: 0;
	border: 0;
	color: #fff;
	background: rgba(0, 0, 0, .28);
	font-size: 45px;
	line-height: 70px;
	opacity: 0;
	cursor: pointer;
	pointer-events: auto;
	transform: translateY(-50%);
	transition: opacity .2s, left .2s, right .2s;
}
.hero-prev { left: -50px; }
.hero-next { right: -50px; }
.hero-slider:hover .hero-prev, .hero-prev:focus { left: 10px; opacity: 1; }
.hero-slider:hover .hero-next, .hero-next:focus { right: 10px; opacity: 1; }
.hero-pages {
	position: absolute;
	right: 0;
	bottom: -35px;
	left: 0;
	z-index: 4;
	display: flex;
	justify-content: center;
	gap: 6px;
	transition: bottom .2s;
}
.hero-slider:hover .hero-pages { bottom: 15px; }
.hero-pages button {
	width: 13px;
	height: 13px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(0, 0, 0, .25);
	cursor: pointer;
}
.hero-pages button.is-active { background: #fff; }

/* Shared page-builder replacement */
.paper-widget {
	background-color: #ededc2;
	background-image: var(--paper-image);
	background-position: center;
	background-repeat: repeat;
}
.content-widget { padding-top: 1%; padding-bottom: 1%; }
.section-heading { margin-bottom: 30px; }
.section-heading h3, .section-heading h4 {
	margin: 0;
	color: var(--heading);
	font-size: 30px;
	font-weight: 400;
	line-height: 45px;
}
.section-heading .section-excerpt {
	max-width: 745px;
	margin: 10px auto 0;
	font-size: 20px;
	line-height: 30px;
}
.section-excerpt p { margin: 0; }
.content-grid {
	display: flex;
	flex-flow: row wrap;
	margin-right: -10px;
	margin-left: -10px;
}
.content-card, .intro-card {
	position: relative;
	margin: 0 10px 20px;
}
.columns-2 > * { width: calc(50% - 20px); }
.columns-3 > * { width: calc(33.333333% - 20px); }
.columns-4 > * { width: calc(25% - 20px); }
.section-heading + .content-grid { margin-top: 0; }
.card-image { overflow: hidden; text-align: center; }
.card-image img { width: 100%; }
.square-images .card-image { aspect-ratio: 1; }
.square-images .card-image img { height: 100%; object-fit: cover; }
.landscape-images .card-image { aspect-ratio: 4 / 3; }
.landscape-images .card-image img { height: 100%; object-fit: cover; }
.round-images .card-image { aspect-ratio: 1; border-radius: 50%; }
.round-images .card-image img { height: 100%; object-fit: cover; }
.card-body { padding-top: 15px; text-align: left; }
.card-body h5 {
	margin: 0;
	color: var(--heading);
	font-size: 20px;
	font-weight: 400;
	line-height: 30px;
}
.card-body h5 a { color: var(--heading); }
.card-body p { margin: 10px 0 0; font-size: 15px; line-height: 22.5px; }

/* Intro and warning */
.intro-widget { color: var(--blue); }
.intro-heading { margin-bottom: 30px; }
.intro-heading h3 { color: var(--blue); }
.intro-heading .section-excerpt { color: var(--blue); }
.intro-card { min-height: 313px; color: var(--blue); }
.intro-widget.lang-en .intro-card { min-height: 289px; }
.intro-widget.lang-tw .intro-card { min-height: 206.5px; }
.intro-card h5 {
	margin: 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 30px;
}
.intro-copy { margin-top: 10px; font-size: 15px; line-height: 22.5px; }
.intro-copy strong { font-weight: 700; }
.intro-copy p { margin: 0; }
.intro-copy p:not(:first-child) { margin-top: 15px; }
.caution-widget { background-color: transparent; }
.caution-grid > * { margin: 0 10px 20px; }
.caution-copy { padding-right: 0; }
.caution-copy h5 { margin: 0 0 10px; color: var(--heading); font-size: 20px; font-weight: 400; line-height: 30px; }
.caution-copy > div p { margin: 0; }
.caution-copy > div p:not(:first-child) { margin-top: 15px; }
.caution-image img { width: 100%; }
.caution-image-spacer { height: 22.5px; margin-top: 15px; line-height: 22.5px; }

/* Image and content sections */
.standard-widget { background: #fff; }
.map-widget {
	display: flex;
	height: 650px;
	overflow: hidden;
	align-items: center;
	justify-content: center;
	padding: 32.5px 20px;
}
.map-widget img { width: auto; max-width: 995px; max-height: 585px; }
.restaurant-widget .section-heading + .content-grid,
.shop-widget .section-heading + .content-grid,
.garden-widget .section-heading + .content-grid,
.brochure-widget .section-heading + .content-grid,
.features-widget .section-heading + .content-grid { margin-top: 0; }
.brochure-compact .section-heading { margin-bottom: 15px; }
.brochure-compact .section-heading h3 { font-size: 25px; line-height: 37.5px; }
.brochure-compact .section-heading .section-excerpt { font-size: 15px; line-height: 22.5px; }
.brochure-grid .card-image { height: 455px; }
.brochure-grid .card-image a { display: block; height: 100%; }
.brochure-grid .card-image img { width: 100%; height: 100%; object-fit: contain; object-position: top center; }
.feature-images .card-image { width: 250px; height: 250px; }
.feature-images .card-image img { width: 250px; height: 250px; object-fit: cover; }

/* Access */
.access-widget { margin-bottom: 3%; }
.access-widget .section-heading { margin-bottom: 30px; }
.access-widget .section-heading h4 { font-size: 30px; }
.access-copy { margin-bottom: 0; }
.access-widget iframe { width: 600px; max-width: 100%; height: 450px; border: 0; }

/* Dynamic news: hidden when there are no WordPress posts. */
.news-section { padding: 4% 0; }
.news-section .section-title { margin: 0 0 30px; color: var(--heading); font-size: 30px; font-weight: 400; text-align: center; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { padding: 20px; border-top: 3px solid var(--button); background: #f3f3f3; }
.news-card h3 { font-size: 20px; font-weight: 400; }
.news-index-link { text-align: right; }
.legacy-empty-widget { padding-top: 1%; padding-bottom: 1%; background: #fff; }
.legacy-post-spacer { padding-top: 1%; padding-bottom: 1%; background: #fff; }
.legacy-post-spacer > div { width: 100%; max-width: var(--container); height: 25.5px; margin: auto; }

/* Footer */
.site-footer { clear: both; padding: 20px 0; background: #f2f2f2; }
.footer-content { padding-top: 20px; padding-bottom: 20px; }
.footer-grid { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.footer-column { width: calc(33.333333% - 20px); margin: 0 10px 20px; }
.footer-column h5 { margin: 0 0 15px; color: #323232; font-size: 12px; font-weight: 700; line-height: 18px; }
.footer-column p { margin: 0; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin-bottom: 8px; }
.footer-column hr { height: 1px; margin: 15px 0; border: 0; background: rgba(0, 0, 0, .1); }
.facility-logos img { display: inline; width: 175px; height: 27px; margin: 0; }
.copyright { height: 40px; margin: 0 -10px; padding: 20px 10px 0; font-size: 12px; line-height: 18px; }

/* Emergency notice retained as a dynamic WordPress feature. */
.ishigaki-notice {
	position: relative;
	z-index: 110;
	padding: 12px 50px;
	color: #fff;
	background: #b30000;
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	white-space: pre-line;
}
.ishigaki-notice[data-level="info"] { background: var(--button); }
.ishigaki-notice[data-level="warning"] { background: #d17900; }
.ishigaki-notice[hidden] { display: none; }
.notice-close { position: absolute; top: 50%; right: 15px; border: 0; color: #fff; background: transparent; font-size: 25px; transform: translateY(-50%); cursor: pointer; }

/* Inner WordPress pages */
.wrap { width: 100%; max-width: var(--container); margin: auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.section-pad { padding-top: 4%; padding-bottom: 4%; }
.page-hero { padding: 40px 0; color: #fff; background: var(--button); }
.page-hero h1 { margin: 0; font-size: 30px; font-weight: 400; }
.news-row { padding: 25px 0; border-bottom: 1px solid #ddd; }
.news-row h2 { font-size: 20px; font-weight: 400; }
.entry-content { min-height: 300px; }

@media only screen and (min-width: 481px) and (max-width: 768px) {
	.columns-4 > * { width: calc(50% - 20px); }
}

@media only screen and (max-width: 768px) {
	.brand-inner { padding-top: 10px; padding-bottom: 10px; }
	.site-name { font-size: 16px; }
	.tagline, .ticket-top { font-size: 18px; line-height: 27px; }
	.ticket-top { margin-left: 1em; }
	.ticket-top .button { font-size: 18px; line-height: 27px; }
	.section-heading + .content-grid { margin-top: 0; }
	.hero-slider { height: 550px; }
	.hero-arrows { display: none; }
	.map-widget { height: 650px; }
	.footer-column { width: calc(50% - 20px); }
}

@media only screen and (max-width: 480px) {
	.utility-bar { display: none; }
	.brand-header { position: relative; }
	.brand-inner { min-height: 0; align-items: center; padding: 10px; }
	.site-description { flex: 0 0 calc(100% - 44px); width: calc(100% - 44px); }
	.site-name { display: inline-block; margin-right: 10px; font-size: 18px; line-height: 27px; }
	.tagline { display: inline-block; width: 100%; font-size: 22.5px; line-height: 33.75px; }
	.ticket-top { margin-left: 2em; font-size: 22.5px; line-height: 33.75px; }
	.ticket-top .button { padding: 5px 15px; font-size: 22.5px; line-height: 33.75px; }
	.mobile-nav { position: relative; display: block; flex: 0 0 44px; width: 44px; height: 40px; }
	.mobile-nav span, .mobile-nav::before, .mobile-nav::after { position: absolute; right: 0; width: 24px; height: 4px; background: #555; content: ""; }
	.mobile-nav::before { top: 10px; }
	.mobile-nav span { top: 18px; }
	.mobile-nav::after { top: 26px; }
	.hero-slider { height: 550px; }
	.columns-2 > *, .columns-3 > *, .columns-4 > * { width: calc(100% - 20px); }
	.intro-widget .intro-card { min-height: auto; }
	.intro-widget.lang-en .intro-card, .intro-widget.lang-tw .intro-card { min-height: auto; }
	.intro-widget.lang-ja .intro-grid .intro-card:nth-child(2) { min-height: 313px; }
	.caution-image img { height: calc((100vw - 40px) * .80078125); object-fit: cover; }
	.square-images .card-image, .landscape-images .card-image, .round-images .card-image { aspect-ratio: auto; border-radius: 0; }
	.square-images .card-image img, .landscape-images .card-image img, .round-images .card-image img { width: auto; height: auto; object-fit: fill; }
	.round-images .card-image img { border-radius: 50%; }
	.brochure-grid .card-image img { width: auto; height: auto; object-fit: fill; }
	.map-widget { height: 650px; padding-right: 10px; padding-left: 10px; }
	.brochure-grid .card-image { height: auto; }
	.feature-images .card-image { width: 250px; }
	.access-widget iframe { width: 100%; }
	.news-grid { grid-template-columns: 1fr; }
	.footer-column { width: calc(100% - 20px); }
	.copyright { height: 50px; }
}
