/*
Theme Name: MMR
Theme URI: https://github.com/yasho111/mmr-web
Description: MMRサーバー（Mikesaba Railroad）公式サイト用テーマ
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: mmr
*/

:root {
	--mmr-text: #222;
	--mmr-muted: #444;
	--mmr-border: #d9d9d9;
	--mmr-line-light: #ececec;
	--mmr-search-bg: #f1f1f1;
	--mmr-hover-bg: #f7f7f7;
	--mmr-accent: #5cd5b9;
	--mmr-accent-dark: #0b7c66;
	--mmr-blue: #0e7fff;
	--mmr-green: #3fdc59;
	--mmr-green-text: #2fbf47;
	--mmr-orange: #ff9f0e;
	--mmr-red: #ff3b3b;
	--mmr-gray: #9a9a9a;
	--mmr-footer: #282828;
	--mmr-container: 1136px;
	--mmr-gutter: 24px;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: #fff;
	color: var(--mmr-text);
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	font-size: 15px;
	line-height: 1.7;
	/* Without this, Noto Sans JP renders noticeably heavier on macOS. */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
	letter-spacing: inherit;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 2px solid var(--mmr-blue);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.container {
	width: 100%;
	max-width: calc(var(--mmr-container) + var(--mmr-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--mmr-gutter);
}

/* ---------- Header ---------- */

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

.site-logo {
	display: flex;
	align-items: center;
	width: 380px;
	max-width: 100%;
	height: 73px;
	margin-left: 5px;
}

.site-logo img,
.site-logo .custom-logo {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 73px;
}

.site-logo__text {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.site-footer .site-logo__text {
	color: #fff;
}

.search-form {
	position: relative;
	width: 380px;
	max-width: 100%;
}

.search-form__input {
	width: 100%;
	height: 42px;
	padding: 0 48px 0 20px;
	border: 1px solid transparent;
	border-radius: 21px;
	background: var(--mmr-search-bg);
	color: var(--mmr-text);
	font-size: 15px;
}

.search-form__input::placeholder {
	color: #9a9a9a;
}

.search-form__input:focus {
	outline: none;
	border-color: var(--mmr-border);
	background: #fff;
}

.search-form__submit svg {
	width: 22px;
	height: 22px;
}

.search-form__submit {
	position: absolute;
	top: 0;
	right: 4px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	background: none;
	color: #9a9a9a;
	cursor: pointer;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumb {
	background: #efefef;
}

.breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 0;
	padding: 16px 0;
	list-style: none;
	font-size: 15px;
}

.breadcrumb__item {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

/* Chevron drawn with borders so the trail needs no icon asset. */
.breadcrumb__item + .breadcrumb__item::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-top: 2px solid #a8a8a8;
	border-right: 2px solid #a8a8a8;
	transform: rotate(45deg);
}

.breadcrumb__link {
	color: var(--mmr-text);
}

.breadcrumb__link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.breadcrumb__current {
	overflow: hidden;
	color: var(--mmr-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	height: 326px;
	background-color: #6b7a6a;
	background-position: center 44%;
	background-size: cover;
}

.status-bar {
	display: flex;
	gap: 22px;
	padding-top: 44px;
	padding-left: calc(var(--mmr-gutter) + 51px);
	padding-right: calc(var(--mmr-gutter) + 52px);
}

.status {
	display: flex;
	align-items: stretch;
	height: 40px;
	overflow: hidden;
	border-radius: 6px;
	background: #fff;
}

.status--operation {
	flex: 605 1 0;
}

.status--server {
	flex: 405 1 0;
}

.status__label {
	display: flex;
	flex: 0 0 160px;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.status__body {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	padding: 0 24px;
}

.status__message {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.status__count {
	color: var(--mmr-green-text);
	font-weight: 700;
	white-space: nowrap;
}

.status--normal .status__label { background: var(--mmr-blue); }
.status--delay .status__label { background: var(--mmr-orange); }
.status--suspend .status__label { background: var(--mmr-red); }
.status--online .status__label { background: var(--mmr-green); }
.status--offline .status__label,
.status--loading .status__label { background: var(--mmr-gray); }
.status--offline .status__count,
.status--loading .status__count { color: var(--mmr-gray); }

/* ---------- Quick navigation ---------- */

.quick-nav {
	border-bottom: 1px solid var(--mmr-line-light);
}

.quick-nav__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	max-width: var(--mmr-container);
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.quick-nav__item {
	border-left: 1px solid var(--mmr-line-light);
}

.quick-nav__item:last-child {
	border-right: 1px solid var(--mmr-line-light);
}

.quick-nav__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding: 18px 8px 16px;
	font-weight: 700;
	text-align: center;
	word-break: keep-all;
	transition: background-color 0.15s;
}

.quick-nav__link:hover {
	background: var(--mmr-hover-bg);
}

.icon-circle {
	display: grid;
	flex: none;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--mmr-accent);
	color: #fff;
}

.icon-circle svg {
	width: 60%;
	height: 60%;
}

/* ---------- News ---------- */

.news {
	padding: 72px 0 80px;
}

.news__grid {
	display: grid;
	grid-template-columns: 543fr 525fr;
	column-gap: 68px;
}

.news-block__header {
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 0 5px 12px;
	border-bottom: 1px solid var(--mmr-border);
}

.news-block__header .icon-circle {
	width: 34px;
	height: 34px;
}

.news-block__title {
	margin: 0;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.06em;
}

.news-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.news-item {
	border-bottom: 1px solid var(--mmr-border);
}

.news-item__link {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 15px 12px;
	transition: background-color 0.15s;
}

.news-item__link:hover {
	background: var(--mmr-hover-bg);
}

.news-item__meta {
	display: flex;
	align-items: center;
	gap: 28px;
}

/* A fixed date width keeps every category pill on the same vertical line. */
.news-item__date {
	min-width: 7.4em;
	font-size: 15px;
	line-height: 1.5;
}

.news-item__category {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 130px;
	height: 26px;
	padding: 0 14px;
	border-radius: 13px;
	background: var(--mmr-accent);
	color: #fff;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 0.06em;
}

.news-item__title {
	margin: 0;
	font-weight: 500;
	line-height: 1.7;
}

.news-empty {
	padding: 24px 12px;
	color: var(--mmr-muted);
	border-bottom: 1px solid var(--mmr-border);
}

.news-block__more {
	display: flex;
	justify-content: center;
	margin-top: 44px;
}

.button-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 184px;
	height: 50px;
	padding: 0 38px;
	border: 1px solid var(--mmr-border);
	border-radius: 25px;
	background: #fff;
	font-size: 17px;
	transition: background-color 0.15s, border-color 0.15s;
}

.button-outline:hover {
	border-color: #b5b5b5;
	background: var(--mmr-hover-bg);
}

/* ---------- Join ---------- */

.join {
	position: relative;
	padding: 76px 0 76px;
	background-position: center;
	background-size: cover;
	text-align: center;
}

.join::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(110, 200, 206, 0.62);
}

.join > * {
	position: relative;
}

.join__title {
	margin: 0 0 30px;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-shadow: 0 1px 6px rgba(0, 60, 70, 0.35);
}

.join__card {
	max-width: 773px;
	margin: 0 auto;
	padding: 36px 24px 44px;
	border-radius: 13px;
	background: #fff;
}

.join__text {
	margin: 0 0 24px;
	line-height: 2.1;
}

.join__text p {
	margin: 0;
}

.button-square {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 238px;
	height: 50px;
	padding: 0 24px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	font-size: 17px;
	font-weight: 500;
	transition: background-color 0.15s, border-color 0.15s;
}

.button-square:hover {
	border-color: #5865f2;
	background: #5865f2;
	color: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--mmr-footer);
	color: #ddd;
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 54px;
}

.footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	font-weight: 500;
}

.footer-nav__list a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.site-footer__copy {
	margin: 0;
	padding: 72px 0 28px;
	font-size: 12px;
	color: #bbb;
	text-align: center;
}

/* ---------- Generic pages ---------- */

.page-main {
	padding: 56px 0 80px;
}

/* Pages and single posts sit in a centred column, narrower than the list pages. */
.page-main > .container > article {
	max-width: 990px;
	margin: 0 auto;
}

.page-title {
	margin: 0 0 32px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--mmr-border);
	font-size: 28px;
	font-weight: 700;
}

/* Static pages lead straight into their own section headings. */
body.page .page-title {
	padding-bottom: 0;
	border-bottom: 0;
}

.entry-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
	margin-bottom: 24px;
	color: var(--mmr-muted);
}

.entry-content {
	max-width: 100%;
}

.entry-content > * + * {
	margin-top: 1.2em;
}

/* Keeps the gap down to the CTA identical whatever the last block is. */
.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-weight: 700;
	line-height: 1.5;
}

.entry-content h1 {
	font-size: 28px;
}

.entry-content h2 {
	padding-left: 14px;
	border-left: 4px solid var(--mmr-accent);
	font-size: 24px;
}

.entry-content h3 {
	padding-bottom: 10px;
	border-bottom: 3px solid var(--mmr-accent);
	font-size: 20px;
}

.entry-content h4 {
	font-size: 18px;
}

.entry-content h5 {
	font-size: 16px;
}

.entry-content h6 {
	font-size: 14px;
}

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

.entry-content a {
	color: var(--mmr-accent-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content > h2 {
	margin-top: 72px;
}

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

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

.entry-content td,
.entry-content th {
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--mmr-border);
	text-align: left;
	vertical-align: top;
}

.entry-content td:first-child,
.entry-content th:first-child {
	width: 34%;
	font-weight: 700;
}

.entry-content .wp-block-table {
	margin: 0;
	padding-left: 18px;
}

/* 3-up screenshot rows; .media-grid holds the placeholders until real images are added */
.media-grid,
.entry-content .wp-block-gallery.has-nested-images {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.media-grid__item {
	aspect-ratio: 1 / 1;
	background: var(--mmr-border);
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image {
	width: auto;
	margin: 0;
}

.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* ---------- 鉄道案内: route map ---------- */

.route-map {
	position: relative;
	border: 1px solid var(--mmr-border);
	background: #fff;
}

/* pan-y leaves vertical swipes to the page, so the map never traps scrolling.
   Zooming is the buttons' job. */
.route-map__viewport {
	height: 520px;
	overflow: hidden;
	cursor: grab;
	touch-action: pan-y;
}

.route-map.is-panning .route-map__viewport {
	cursor: grabbing;
}

.route-map__image {
	display: block;
	max-width: none;
	transform-origin: 0 0;
	user-select: none;
	-webkit-user-drag: none;
}

.route-map__image svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Station names on the map link through to their 駅 page. The map sits inside
   .entry-content, so the underline that applies to body links must be undone. */
.entry-content .route-map__station,
.route-map__station {
	cursor: pointer;
	text-decoration: none;
}

.route-map__station text {
	text-decoration: none;
	transition: fill 0.15s;
}

.route-map__station:hover text {
	fill: var(--mmr-accent-dark);
}

.route-map__controls {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: flex;
	gap: 6px;
}

.route-map__button {
	display: grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--mmr-border);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.95);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.route-map__button:hover {
	border-color: #b5b5b5;
	background: var(--mmr-hover-bg);
}

.route-map__button--wide {
	font-size: 13px;
}

/* ---------- 鉄道案内: line buttons ---------- */

.entry-content .line-grid,
.line-grid {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 0;
	padding: 0;
	list-style: none;
}

/* 18% lets five sit on a row; fewer than five still stretch to fill it. */
.line-grid__item {
	display: flex;
	flex: 1 1 18%;
	margin-left: -1px;
}

.entry-content .line-grid__link,
.line-grid__link {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 10px 14px;
	border: 1px solid var(--mmr-border);
	border-bottom: 4px solid var(--mmr-line-color, var(--mmr-accent));
	background: #fff;
	color: var(--mmr-text);
	font-size: 18px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s;
}

.line-grid__link:hover {
	background: var(--mmr-hover-bg);
}

/* ---------- 路線情報 ---------- */

.line-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
}

.entry-content .line-head__title {
	margin: 0;
}

.entry-content .line-head__back {
	flex: none;
	font-size: 15px;
}

.entry-content .line-legend,
.line-legend {
	margin-top: 26px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 34px;
	margin-bottom: 0;
	padding: 18px 24px;
	border: 1px solid var(--mmr-border);
	border-radius: 6px;
	list-style: none;
}

.line-legend__item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.line-legend__swatch {
	width: 42px;
	height: 9px;
	border-radius: 2px;
}

.line-legend__label {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.line-legend__label small {
	display: block;
	font-size: 12px;
	font-weight: 400;
}

/* Diagram: a column of rails on the left, station details on the right. */
.line-diagram {
	--mmr-rail-width: 34px;
	--mmr-stop-offset: 30px;
	margin-top: 28px;
}

.line-diagram__row {
	display: flex;
	align-items: stretch;
	gap: 20px;
}

.line-diagram__rails {
	display: flex;
	flex: none;
}

.line-rail {
	position: relative;
	width: var(--mmr-rail-width);
}

.line-rail__track {
	position: absolute;
	left: 50%;
	width: 9px;
	margin-left: -4.5px;
	background: var(--mmr-rail-color);
}

.line-rail__track--through {
	top: 0;
	bottom: 0;
}

.line-rail__track--start {
	top: var(--mmr-stop-offset);
	bottom: 0;
	border-radius: 5px 5px 0 0;
}

.line-rail__track--end {
	top: 0;
	height: var(--mmr-stop-offset);
	border-radius: 0 0 5px 5px;
}

.line-rail__stop {
	position: absolute;
	top: var(--mmr-stop-offset);
	left: 50%;
	width: 17px;
	height: 17px;
	margin: -8.5px 0 0 -8.5px;
	border: 4px solid var(--mmr-rail-color);
	border-radius: 50%;
	background: #fff;
}

/* ▲ 特別停車: a solid triangle, matching the notation used in the timetable. */
.line-rail__stop--special {
	width: 18px;
	height: 16px;
	margin: -8px 0 0 -9px;
	border: 0;
	border-radius: 0;
	background: var(--mmr-rail-color);
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.entry-content .line-legend__note {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--mmr-muted);
	text-align: center;
}

.line-diagram__body {
	flex: 1;
	min-width: 0;
	padding: 14px 0 18px;
	border-bottom: 1px solid var(--mmr-border);
}

.line-diagram__row:first-child .line-diagram__body {
	border-top: 1px solid var(--mmr-border);
}

.entry-content .line-station__name {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.entry-content .line-station__name a {
	color: var(--mmr-text);
	text-decoration: none;
}

.entry-content .line-station__name a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.line-station__name small {
	margin-left: 10px;
	font-size: 12px;
	font-weight: 400;
	color: var(--mmr-muted);
}

.entry-content .line-station__transfer {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 8px 0 0;
	font-size: 14px;
}

.line-station__transfer-label {
	font-weight: 700;
}


/* ---------- 駅情報 ---------- */

/* Modelled on the station signs standing on the platforms in-game. */
.station-sign {
	position: relative;
	max-width: 540px;
	margin: 0 auto 40px;
	padding: 26px 24px 16px;
	border: 1px solid var(--mmr-border);
	background: #fff;
	text-align: center;
}

.station-sign__number {
	position: absolute;
	top: 18px;
	right: 18px;
	display: grid;
	justify-items: center;
	min-width: 46px;
	padding: 2px 6px 4px;
	border: 2px solid #fcc400;
	border-radius: 4px;
	line-height: 1.1;
}

.station-sign__code {
	font-size: 13px;
	font-weight: 700;
	color: #fcc400;
}

.station-sign__digits {
	font-size: 19px;
	font-weight: 700;
}

.entry-content .station-sign__name {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.3;
}

.entry-content .station-sign__kana,
.entry-content .station-sign__romaji {
	margin: 2px 0 0;
	line-height: 1.4;
}

.station-sign__kana {
	font-size: 15px;
}

.station-sign__romaji {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.station-sign__bar {
	display: block;
	height: 12px;
	margin: 18px 0 10px;
	background: #f08300;
}

.entry-content .station-sign__neighbours {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	font-size: 14px;
}

.station-sign__line {
	flex: 1;
	font-size: 12px;
	color: var(--mmr-muted);
}

.entry-content .station-sign__line a {
	color: inherit;
	text-decoration: none;
}

/* The card centres its text, so the neighbours have to opt back out to line up
   with the ends of the orange bar. */
.entry-content .station-sign__prev,
.entry-content .station-sign__next {
	min-width: 60px;
}

.station-sign__prev {
	text-align: left;
}

.station-sign__next {
	text-align: right;
}

.entry-content .station-coords {
	margin: 0;
	padding-left: 18px;
	letter-spacing: 0.08em;
}

.station-coords--empty {
	color: var(--mmr-muted);
}

.entry-content .facility-grid,
.facility-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	margin-bottom: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--mmr-border);
}

.facility {
	display: grid;
	border-right: 1px solid var(--mmr-border);
	border-bottom: 1px solid var(--mmr-border);
	text-align: center;
}

.facility:nth-child(3n) {
	border-right: 0;
}

.facility:nth-last-child(-n + 3) {
	border-bottom: 0;
}

.facility__label {
	padding: 14px 10px;
	border-bottom: 1px solid var(--mmr-border);
	background: #e8f4f8;
	font-size: 16px;
	font-weight: 700;
}

.facility__icon {
	display: grid;
	place-items: center;
	padding: 22px 10px;
	color: var(--mmr-text);
}

.facility__icon svg {
	width: 52px;
	height: 52px;
}

/* A facility the station does not have stays visible, just muted. */
.facility--absent {
	opacity: 0.28;
}

/* ---------- 運営紹介 ---------- */

.staff-list {
	display: grid;
	gap: 56px;
}

.staff {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 36px;
	align-items: start;
}

.staff__icon img,
.staff__icon-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: var(--mmr-border);
}

.entry-content .staff__details {
	margin: 0;
}

.staff__row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 20px;
	padding: 16px 0;
	border-bottom: 1px solid var(--mmr-border);
}

.entry-content .staff__row dt {
	margin: 0;
	font-weight: 700;
}

.entry-content .staff__row dd {
	margin: 0;
}

/* ---------- お問い合わせフォーム ---------- */

.contact-form__row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 20px;
	align-items: start;
	padding: 12px 0;
	border-bottom: 1px solid var(--mmr-border);
}

.contact-form__label {
	padding-top: 9px;
	font-weight: 700;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 8px 14px;
	/* Transparent until focus so swapping it in causes no layout shift. */
	border: 1px solid transparent;
	border-radius: 4px;
	background: var(--mmr-search-bg);
	color: var(--mmr-text);
	/* Body line-height is set for prose and makes single-line fields bulky. */
	line-height: 1.5;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--mmr-border);
	background: #fff;
}

.contact-form textarea {
	min-height: 200px;
	resize: vertical;
}

.contact-form__submit {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

.contact-form__submit input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 184px;
	height: 50px;
	padding: 0 38px;
	border: 1px solid var(--mmr-border);
	border-radius: 25px;
	background: #fff;
	font-size: 17px;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.contact-form__submit input[type="submit"]:hover {
	border-color: #b5b5b5;
	background: var(--mmr-hover-bg);
}

/* Contact Form 7 wraps fields in spans and appends its own messages. */
.wpcf7-form-control-wrap {
	display: block;
}

.wpcf7 form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 15px;
}

.wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 14px;
}

.wpcf7-spinner {
	display: block;
	margin: 12px auto 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
	.status-bar {
		flex-direction: column;
		gap: 12px;
		padding: 32px var(--mmr-gutter) 0;
	}

	.status--operation,
	.status--server {
		flex: none;
	}

	.news__grid {
		column-gap: 40px;
	}
}

@media (max-width: 768px) {
	:root {
		--mmr-gutter: 16px;
	}

	.site-header__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		min-height: 0;
		padding-top: 16px;
		padding-bottom: 16px;
	}

	.site-logo {
		width: auto;
		height: 56px;
		margin-left: 0;
	}

	.site-logo img,
	.site-logo .custom-logo {
		max-height: 56px;
	}

	.search-form {
		width: 100%;
	}

	.hero {
		height: auto;
		min-height: 240px;
		padding-bottom: 32px;
	}

	.status {
		font-size: 14px;
	}

	.status__label {
		flex-basis: 104px;
	}

	.status__body {
		padding: 0 12px;
	}

	.quick-nav__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.quick-nav__item,
	.quick-nav__item:last-child {
		border-left: 0;
		border-right: 0;
		border-bottom: 1px solid var(--mmr-line-light);
	}

	.quick-nav__item:nth-child(odd) {
		border-right: 1px solid var(--mmr-line-light);
	}

	.quick-nav__item:nth-last-child(-n + 2) {
		border-bottom: 0;
	}

	.quick-nav__link {
		font-size: 14px;
	}

	.news {
		padding-top: 48px;
	}

	.news__grid {
		grid-template-columns: 1fr;
		row-gap: 56px;
	}

	/* Stacked on one column, お知らせ is the more useful block to meet first. */
	.news-block--notice {
		order: -1;
	}

	.news-block__header {
		gap: 16px;
	}

	.news-block__title {
		font-size: 26px;
	}

	.news-block__header .icon-circle {
		width: 32px;
		height: 32px;
	}

	.news-block__more {
		margin-top: 28px;
	}

	.news-item__meta {
		gap: 16px;
	}

	.news-item__category {
		min-width: 0;
	}

	.join {
		padding: 56px 0;
	}

	.site-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		padding-top: 40px;
	}

	.footer-nav__list {
		justify-content: flex-start;
		font-size: 16px;
	}

	.site-footer__copy {
		padding-top: 48px;
	}

	.entry-content > h2 {
		margin-top: 48px;
	}

	.entry-content .wp-block-table {
		padding-left: 0;
	}

	.entry-content td,
	.entry-content th {
		padding: 12px 8px;
	}

	.media-grid,
	.entry-content .wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.route-map__viewport {
		height: 360px;
	}

	.line-grid__item {
		flex-basis: 45%;
	}

	.line-grid__link {
		font-size: 16px;
	}

	.staff {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.staff__icon {
		max-width: 220px;
	}

	.staff__row,
	.contact-form__row {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.contact-form__label {
		padding-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
