@charset "UTF-8";
/* =========================================================
 * 見学会・イベント（/event/）
 * 既存テーマに合わせて px 指定。配色は既存ボタンの色（ベージュ・紺）を使う
 * ======================================================= */
:root {
	--event-ink: #1f1f26;
	--event-text: #333;
	--event-muted: #6b6b6b;
	--event-line: #dcdcd7;
	--event-bg: #f4f4f1;
	--event-beige: #ac946f;
	--event-beige-dark: #937b57;
	--event-navy: #18456c;
	--event-closed: #8a8a8a;
}

/* テーマ全体が content-box なので、イベント部分だけ border-box にする */
.event-single,
.event-single *,
.event-archive,
.event-archive * {
	box-sizing: border-box;
}

/* ヘッダーのロゴ下（詳細ページは h1 を本文に譲る） */
#head-logo .head-logo__lead {
	font-size: 12px;
	text-align: center;
	margin: 4px 0;
	font-weight: bold;
}

/* ---------- 共通部品 ---------- */
.event-status {
	display: inline-block;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.6;
	color: #fff;
	background: var(--event-navy);
}
.event-status--open {
	background: var(--event-beige);
}
.event-status--closed {
	background: var(--event-closed);
}
.event-type {
	display: inline-block;
	padding: 2px 9px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--event-ink);
	border: 1px solid var(--event-ink);
	text-decoration: none;
}
a.event-type:hover {
	background: var(--event-ink);
	color: #fff;
}

.event-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 12px 28px;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 2px;
	transition: background-color 0.2s, color 0.2s;
}
.event-button--primary {
	background: var(--event-beige);
	color: #fff;
}
.event-button--primary:hover {
	background: var(--event-beige-dark);
	color: #fff;
}
.event-button--primary::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
}
.event-button--sub {
	background: #fff;
	color: var(--event-ink);
	border-color: var(--event-ink);
}
.event-button--sub:hover {
	background: var(--event-ink);
	color: #fff;
}

.event-section {
	margin-top: clamp(48px, 5vw, 80px);
}
.event-section__title {
	position: relative;
	margin-bottom: 28px;
	padding: 12px 18px;
	font-size: clamp(18px, 1.2vw + 13px, 24px);
	font-weight: bold;
	line-height: 1.5;
	color: #fff;
	background: var(--event-ink);
}
.event-section__en {
	display: block;
	font-family: "Roboto", sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--event-beige);
}
.event-section__cta {
	margin-top: 32px;
	text-align: center;
}
.event-section__cta .event-button {
	min-width: min(100%, 360px);
}

/* ---------- 詳細：ヒーロー ---------- */
.event-single {
	padding-bottom: 80px;
}
.event-hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(24px, 3vw, 48px);
	align-items: start;
}
.event-hero__labels {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}
.event-hero__title {
	font-size: clamp(22px, 1.6vw + 15px, 32px);
	font-weight: bold;
	line-height: 1.5;
	color: var(--event-ink);
}
.event-data {
	margin-top: 22px;
	border-top: 2px solid var(--event-ink);
}
.event-data__row {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 12px;
	padding: 12px 2px;
	border-bottom: 1px solid var(--event-line);
	font-size: 15px;
	line-height: 1.7;
}
.event-data__term {
	font-weight: bold;
	color: var(--event-beige-dark);
}
.event-data__desc {
	color: var(--event-ink);
	font-weight: bold;
}
.event-hero__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 26px;
}
.event-hero__actions .event-button {
	width: 100%;
}
.event-hero__actions .event-button--primary {
	min-height: 64px;
	font-size: 17px;
}
.event-hero__closed {
	padding: 16px;
	background: var(--event-bg);
	text-align: center;
	font-weight: bold;
	color: var(--event-muted);
}
.event-hero__image {
	margin: 0;
}
.event-hero__image img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- 詳細：本文 ---------- */
.event-single__inner {
	max-width: 960px;
}
.event-table {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid var(--event-line);
	font-size: 15px;
	line-height: 1.8;
}
.event-table th,
.event-table td {
	padding: 16px 18px;
	border-bottom: 1px solid var(--event-line);
	text-align: left;
	vertical-align: top;
}
.event-table th {
	width: 9em;
	background: var(--event-bg);
	font-weight: bold;
	color: var(--event-ink);
	white-space: nowrap;
}
.event-table a,
.event-reserve__lead a,
.event-access__link a {
	color: var(--event-navy);
	text-decoration: underline;
}

.event-content {
	font-size: 15px;
	line-height: 2;
	color: var(--event-text);
}
.event-content__block + .event-content__block {
	margin-top: 36px;
}
.event-content__title {
	margin-bottom: 16px;
	padding: 4px 0 4px 14px;
	border-left: 4px solid var(--event-beige);
	font-size: clamp(17px, 0.6vw + 14px, 20px);
	font-weight: bold;
	line-height: 1.6;
	color: var(--event-ink);
}
h4.event-content__title {
	border-left-width: 2px;
	font-size: 16px;
}
.event-content__text p {
	margin-bottom: 1em;
}
.event-content__text img,
.event-content__image img {
	max-width: 100%;
	height: auto;
}
.event-content__text a {
	color: var(--event-navy);
	text-decoration: underline;
}
.event-content__image {
	margin: 20px 0 0;
}

/* ---------- 詳細：アクセス ---------- */
.event-access__data {
	display: grid;
	grid-template-columns: 4em 1fr;
	gap: 8px 16px;
	margin-bottom: 18px;
	font-size: 15px;
	line-height: 1.7;
}
.event-access__data dt {
	font-weight: bold;
	color: var(--event-beige-dark);
}
.event-access__map {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--event-bg);
}
.event-access__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.event-access__link {
	margin-top: 10px;
	font-size: 14px;
	text-align: right;
}

/* ---------- 詳細：予約 ---------- */
.event-reserve {
	scroll-margin-top: 20px;
}
.event-reserve__summary {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 16px;
	background: var(--event-bg);
	border-left: 4px solid var(--event-beige);
}
.event-reserve__thumb img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
}
.event-reserve__label {
	font-size: 12px;
	font-weight: bold;
	color: var(--event-beige-dark);
}
.event-reserve__name {
	margin-top: 2px;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.5;
	color: var(--event-ink);
}
.event-reserve__meta {
	margin-top: 4px;
	font-size: 13px;
	color: var(--event-muted);
}
.event-reserve__lead {
	margin: 24px 0;
	font-size: 15px;
	line-height: 1.8;
}
.event-reserve__done,
.event-reserve__closed {
	padding: 32px 24px;
	background: var(--event-bg);
	text-align: center;
	font-size: 15px;
	line-height: 1.9;
}
.event-reserve__done:focus {
	outline: none;
}
.event-reserve__done-title {
	margin-bottom: 12px;
	font-size: 20px;
	font-weight: bold;
	color: var(--event-ink);
}
.event-reserve__closed-links,
.event-archive__empty-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
}

/* フォーム本体（CF7） */
.event-form__row {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 8px 24px;
	align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid var(--event-line);
}
.event-form__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 15px;
	font-weight: bold;
	color: var(--event-ink);
}
.event-form__badge {
	flex-shrink: 0;
	padding: 1px 8px;
	font-size: 11px;
	font-weight: bold;
	color: #fff;
	background: #c0392b;
}
.event-form__badge--optional {
	color: var(--event-muted);
	background: #e6e6e1;
}
.event-form__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.event-form input[type="text"],
.event-form input[type="email"],
.event-form input[type="tel"],
.event-form select,
.event-form textarea {
	width: 100%;
	padding: 12px 14px;
	font-size: 16px; /* iOS のズーム防止 */
	line-height: 1.5;
	color: var(--event-ink);
	background: #fff;
	border: 1px solid #b9b9b3;
	border-radius: 2px;
	box-sizing: border-box;
}
.event-form__fields .wpcf7-form-control-wrap {
	flex: 1 1 180px;
}
.event-form textarea {
	min-height: 140px;
}
.event-form input:focus,
.event-form select:focus,
.event-form textarea:focus {
	outline: 2px solid var(--event-navy);
	outline-offset: 1px;
}
.event-form__note {
	margin-top: 6px;
	font-size: 12px;
	color: var(--event-muted);
}
.event-form__agree {
	margin-top: 28px;
	text-align: center;
	font-size: 15px;
}
.event-form__agree a {
	color: var(--event-navy);
	text-decoration: underline;
}
.event-form__submit {
	margin-top: 24px;
	text-align: center;
}
.event-form input[type="submit"] {
	width: min(100%, 400px);
	min-height: 64px;
	font-size: 17px;
	font-weight: bold;
	color: #fff;
	background: var(--event-beige);
	border: 0;
	border-radius: 2px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.event-form input[type="submit"]:hover {
	background: var(--event-beige-dark);
}
.event-form input[type="submit"]:disabled {
	background: #c9c1b3;
	cursor: not-allowed;
}
.event-form .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 13px;
	color: #c0392b;
}
.event-form .wpcf7-response-output {
	margin: 24px 0 0 !important;
	padding: 12px 16px !important;
	font-size: 14px;
}
.event-form .wpcf7-spinner {
	display: block;
	margin: 12px auto 0;
}

/* 画面下の予約ボタン */
.event-fixed-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 -1px 0 var(--event-line);
	transform: translateY(110%);
	visibility: hidden;
	transition: transform 0.25s, visibility 0.25s;
}
.event-fixed-cta.is-visible {
	transform: translateY(0);
	visibility: visible;
}
.event-fixed-cta__button {
	display: block;
	max-width: 480px;
	margin: 0 auto;
	padding: 14px;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
	color: #fff;
	background: var(--event-beige);
	border-radius: 2px;
	text-decoration: none;
}
.event-single__back {
	margin-top: 56px;
	text-align: center;
}
.event-single__back a {
	color: var(--event-ink);
	text-decoration: underline;
}

/* ---------- カード ---------- */
.event-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.event-card {
	background: #fff;
	border: 1px solid var(--event-line);
}
.event-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}
.event-card__image {
	position: relative;
	aspect-ratio: 1 / 1; /* アイキャッチはSNS用の正方形（一部 4:5）が中心なので、切らずに全体を見せる */
	overflow: hidden;
	background: var(--event-bg);
}
.event-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.4s;
}
.event-card__image .event-card__noimage {
	object-fit: contain;
	padding: 20% 25%;
	box-sizing: border-box;
}
.event-card__link:hover .event-card__image img {
	transform: scale(1.03);
}
.event-card__image .event-status {
	position: absolute;
	top: 0;
	left: 0;
}
.event-card__body {
	padding: 16px 18px 20px;
}
.event-card__types {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 8px;
}
.event-card__title {
	font-size: 16px;
	font-weight: bold;
	line-height: 1.6;
	color: var(--event-ink);
}
.event-card__link:hover .event-card__title {
	text-decoration: underline;
}
.event-card__data {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--event-text);
}
.event-card__data div {
	display: grid;
	grid-template-columns: 3em 1fr;
}
.event-card__data dt {
	font-weight: bold;
	color: var(--event-beige-dark);
}
.event-card--closed .event-card__image img {
	filter: grayscale(0.6);
	opacity: 0.85;
}

/* 来場プレゼント */
.event-gift-badge,
.event-card__gift {
	display: inline-block;
	padding: 2px 9px;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.6;
	color: var(--event-beige-dark);
	background: #fff;
	border: 1px solid var(--event-beige);
}
.event-card__gift {
	margin-bottom: 8px;
}
.event-gift {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	align-items: center;
	padding: 24px;
	background: #fbf8f2;
	border: 1px solid #e6dccb;
}
.event-gift:not(:has(.event-gift__image)) {
	grid-template-columns: 1fr;
}
.event-gift__image img {
	display: block;
	width: 100%;
	height: auto;
}
.event-gift__text {
	font-size: clamp(17px, 0.6vw + 14px, 20px);
	font-weight: bold;
	line-height: 1.6;
	color: var(--event-ink);
}
.event-gift__note {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.8;
	color: var(--event-muted);
}
.event-gift__cta {
	margin-top: 16px;
}
@media screen and (max-width: 768px) {
	.event-gift {
		grid-template-columns: 1fr;
		padding: 18px 16px;
	}
	.event-gift__image {
		max-width: 240px;
		margin: 0 auto;
	}
	.event-gift__cta .event-button {
		width: 100%;
	}
}

/* 終了したイベント：画像の上に自動で帯（画像に文字を書き込む運用をやめるため） */
.event-closed-band {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	padding: 10px 8px;
	font-size: 15px;
	font-weight: bold;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-align: center;
	color: #fff;
	background: rgba(31, 31, 38, 0.82);
	pointer-events: none;
}
.event-hero__image {
	position: relative;
}
.event-hero__image .event-closed-band {
	padding: 16px 8px;
	font-size: clamp(16px, 1vw + 12px, 20px);
}
.event-hero__image.is-closed img {
	filter: grayscale(0.5);
}
.event-mini__thumb img {
	object-fit: contain;
}

/* ---------- 一覧 ---------- */
.event-archive {
	padding-bottom: 80px;
}
.event-archive__lead {
	font-size: 15px;
	line-height: 1.9;
	text-align: center;
}
.event-filter {
	margin-top: 28px;
}
.event-filter__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.event-filter__item {
	display: block;
	min-width: 96px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: bold;
	text-align: center;
	color: var(--event-ink);
	background: #fff;
	border: 1px solid var(--event-ink);
	text-decoration: none;
}
.event-filter__item:hover,
.event-filter__item.is-current {
	color: #fff;
	background: var(--event-ink);
}
.event-archive__empty {
	padding: 32px 24px;
	background: var(--event-bg);
	text-align: center;
	font-size: 15px;
	line-height: 1.9;
}
.event-pager {
	margin-top: 40px;
}
.event-pager ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.event-pager .page-numbers {
	display: block;
	min-width: 40px;
	padding: 8px 12px;
	font-size: 14px;
	text-align: center;
	color: var(--event-ink);
	border: 1px solid var(--event-line);
	text-decoration: none;
}
.event-pager .page-numbers.current,
.event-pager a.page-numbers:hover {
	color: #fff;
	background: var(--event-ink);
	border-color: var(--event-ink);
}

/* ---------- スマホ ---------- */
@media screen and (max-width: 768px) {
	.event-hero {
		grid-template-columns: 1fr;
	}
	.event-hero__image {
		order: -1;
	}
	.event-cards {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.event-table th,
	.event-table td {
		display: block;
		width: auto;
		padding: 10px 12px;
	}
	.event-table th {
		border-bottom: 0;
	}
	.event-form__row {
		grid-template-columns: 1fr;
		padding: 14px 0;
	}
	.event-form__label {
		justify-content: flex-start;
	}
	.event-reserve__thumb img {
		width: 72px;
		height: 72px;
	}
	.event-single {
		padding-bottom: 170px;
	}
	.event-fixed-cta {
		padding-bottom: 10px;
		box-shadow: 0 -1px 0 var(--event-line), 0 1px 0 var(--event-line);
	}
}
@media screen and (min-width: 769px) and (max-width: 1000px) {
	.event-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* =========================================================
 * サイト各所の導線（2026-10 追加）
 * ======================================================= */
.event-promo,
.event-promo *,
.top-news,
.top-news *,
.top-event__cards,
.top-event__cards *,
.top-event__empty,
.top-event__empty * {
	box-sizing: border-box;
}

/* ---------- トップ：EVENT ---------- */
.eventBox .top-event__lead {
	margin: -10px 0 28px;
	font-size: 15px;
	line-height: 1.8;
	text-align: center;
}
.eventBox ul.event-cards {
	margin-bottom: 40px;
}
.eventBox .event-card {
	padding: 0;
	border-top: 0;
	min-height: 0;
}
.eventBox .event-card__title {
	font-size: 16px;
}
.top-event__empty {
	max-width: 760px;
	margin: 0 auto 40px;
}

/* ---------- トップ：NEWS ---------- */
.top-news {
	margin: -40px auto 100px;
}
.top-news__wrap {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px 48px;
	max-width: 1000px;
	margin: 0 auto;
	padding: 36px 40px;
	background: #fff;
	border-top: 4px solid var(--event-ink);
}
.top-news__title {
	font-size: 20px;
	font-weight: bold;
	line-height: 1.4;
	color: var(--event-ink);
}
.top-news__en {
	display: block;
	font-family: "Roboto", sans-serif;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0.08em;
}
.top-news__more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 12px;
	font-size: 14px;
	color: var(--event-ink);
	text-decoration: underline;
}
.top-news__more--sp {
	display: none;
}
.top-news__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--event-line);
}
.top-news__item {
	border-bottom: 1px solid var(--event-line);
}
.top-news__link {
	display: grid;
	grid-template-columns: 7em 1fr;
	gap: 16px;
	align-items: baseline;
	padding: 16px 4px;
	color: var(--event-text);
	text-decoration: none;
	line-height: 1.6;
}
.top-news__link:hover .top-news__name {
	text-decoration: underline;
}
.top-news__date {
	font-family: "Roboto", sans-serif;
	font-size: 14px;
	color: var(--event-muted);
}
.top-news__name {
	font-size: 15px;
	color: var(--event-ink);
}


.event-promo__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
}
.event-promo__empty-box {
	padding: 28px 24px;
	background: #fff;
	text-align: center;
	font-size: 15px;
	line-height: 1.9;
}
.event-promo__empty-box a:not(.event-button) {
	color: var(--event-navy);
	text-decoration: underline;
}

/* 件数が少ない時はカードを中央に寄せる（トップ・各所の案内） */
@media screen and (min-width: 769px) {
	.eventBox ul.top-event__cards,
	.event-promo .event-cards {
		grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
		justify-content: center;
	}
}
/* ---------- スマホ ---------- */
@media screen and (max-width: 768px) {
	.eventBox .top-event__lead {
		margin: 0 0 16px;
		font-size: 14px;
		text-align: left;
	}

	/* カードは横スワイプ（次のカードが少し見える） */
	.event-cards--scroll {
		display: flex;
		gap: 12px;
		margin-left: -1.5rem;
		margin-right: -1.5rem;
		padding: 0 1.5rem 8px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-left: 1.5rem;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
	}
	.event-cards--scroll > .event-card {
		flex: 0 0 82%;
		scroll-snap-align: start;
	}
	.event-cards--scroll > .event-card:only-child {
		flex-basis: 100%;
	}

	.top-news {
		margin: -4rem 0 7.5rem;
		padding: 0 1.5rem;
	}
	.top-news__wrap {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 24px 16px 16px;
	}
	.top-news__head {
		display: flex;
		align-items: baseline;
		gap: 12px;
	}
	.top-news__en {
		display: inline;
		margin-right: 8px;
		font-size: 22px;
	}
	.top-news__title {
		font-size: 15px;
	}
	.top-news__more--pc {
		display: none;
	}
	.top-news__more--sp {
		display: flex;
		justify-content: center;
		margin-top: 4px;
		font-weight: bold;
	}
	.top-news__link {
		grid-template-columns: 1fr;
		gap: 2px;
		padding: 12px 2px;
		min-height: 44px;
	}
	.top-news__date {
		font-size: 12px;
	}
	.top-news__name {
		font-size: 14px;
	}
	.event-promo__actions {
		flex-direction: column;
	}
	.event-promo__actions .event-button {
		width: 100%;
	}
	.event-promo__empty-box {
		padding: 20px 16px;
		font-size: 14px;
		text-align: left;
	}
}

/* グローバルナビ：「見学会・イベント」を足して9項目になり間隔が24pxに詰まったので、区切り線を間の中央へ */
#gnavi > ul > li:not(:last-child) > a::before,
#gnavi > ul > li:not(:last-child) > a::after,
#gnavi > ul > li:not(:last-child) > .text > a::before,
#gnavi > ul > li:not(:last-child) > .text > a::after {
	right: -12px;
}

