/* =========================================================================
 * SINQWELL Roon Theme（東京労音）
 *
 * 目次
 *   1. 基本
 *   2. ヘッダー（上部バー・ロゴ・ローチケ・スマホのアイコン）
 *   3. メニュー（パソコンの帯・スマホの横スクロール）
 *   4. ページ・投稿・一覧
 *   5. 本文（ブロック・Emanon 時代の追加CSS から引き継いだもの）
 *   6. トップページ
 *   7. フッター・スマホの固定フッター
 *
 * 切り替え：スマホ 〜959px ／ パソコン 960px〜（Emanon と同じ）
 * ====================================================================== */

:root {
	--roon-text: #303030;
	--roon-link: #565042;
	--roon-navy: #272b4c;      /* メニューの帯 */
	--roon-deep: #011442;      /* トップのお申込み案内 */
	--roon-gray: #e5e7e8;      /* 上部バー */
	--roon-red: #9e2222;
	--roon-footer: #232323;
	--roon-footer-text: #b5b5b5;
	--roon-width: 1180px;
	--roon-gutter: 16px;
}

/* =========================================================================
 * 1. 基本
 * ====================================================================== */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #fff;
	color: var(--roon-text);
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Arial, Meiryo, sans-serif;
	font-size: 15px;
	line-height: 1.7;
	-webkit-text-size-adjust: 100%;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--roon-link);
}

a:hover {
	opacity: .85;
}

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

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

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 8px 16px;
	clip: auto;
	background: #fff;
}

.icon {
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	vertical-align: -0.15em;
}

/* パソコンだけ・スマホだけ */
@media (max-width: 959px) {
	.only-pc { display: none !important; }
}
@media (min-width: 960px) {
	.only-sp { display: none !important; }
}

/* =========================================================================
 * 2. ヘッダー
 * ====================================================================== */

.top-bar {
	background: var(--roon-gray);
	line-height: 2;
}

.top-bar__text {
	margin: 0;
	font-size: 11.5px;
	font-weight: normal;
}

.header-main {
	background: #fff;
	border-bottom: 1px solid #000;
}

.header-main__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 98px;
}

.site-logo {
	margin: 0;
	line-height: 0;
}

.site-logo img {
	width: auto;
	height: 77px;
}

/* ローソンチケットのボタン（右端） */
.header-lawson a {
	position: relative;
	display: block;
	overflow: hidden;
	padding: 6px 32px;
	border-radius: 25px;
	background: #f2f2f2;
	line-height: 0;
}

.header-lawson img {
	width: 170px;
	height: 73px;
	object-fit: contain;
}

/* 光が流れる演出（Emanon の「ラスター」と同じ雰囲気） */
.header-lawson a::after {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 100%);
	transform: skewX(-25deg);
	animation: roon-luster 4s ease-in-out infinite;
}

@keyframes roon-luster {
	0% { left: -75%; }
	30%, 100% { left: 125%; }
}

@media (prefers-reduced-motion: reduce) {
	.header-lawson a::after { animation: none; display: none; }
}

/* スマホ：電話注文・ネット注文 */
.header-sp-cta {
	display: flex;
	gap: 14px;
	flex-shrink: 0;
}

.header-sp-cta__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--roon-text);
	text-decoration: none;
}

.header-sp-cta__item img {
	width: auto;
	height: 40px;
}

.header-sp-cta__item span {
	margin-top: 3px;
	font-size: 10px;
	line-height: 1.2;
	white-space: nowrap;
}

@media (max-width: 959px) {
	.site-header {
		position: sticky;
		top: 0;
		z-index: 50;
	}
	.admin-bar .site-header {
		top: 46px;
	}
	.top-bar {
		display: none;
	}
	.header-main__inner {
		min-height: 64px;
		padding-top: 6px;
		padding-bottom: 6px;
	}
	.site-logo img {
		height: auto;
		max-height: 52px;
		max-width: 100%;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 0;
		position: relative;
	}
}

/* =========================================================================
 * 3. メニュー
 * ====================================================================== */

/* パソコン：濃紺の帯・項目は均等幅・斜めの区切り線 */
.global-nav {
	background: var(--roon-navy);
	border-bottom: 1px solid #000;
}

.global-nav__list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.global-nav__list > li {
	position: relative;
	flex: 1 1 0;
	text-align: center;
}

.global-nav__list > li + li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 1px;
	height: 22px;
	background: rgba(255, 255, 255, .6);
	transform: translateY(-50%) rotate(20deg);
}

.global-nav__list a,
.global-nav__list a:link,
.global-nav__list a:visited {
	display: block;
	padding: 0 12px;
	color: #fff;
	font-size: 14.5px;
	letter-spacing: .04em;
	line-height: 60px;
	text-decoration: none;
	white-space: nowrap;
}

.global-nav__list a:hover,
.global-nav__list .current-menu-item > a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 5px;
	opacity: 1;
}

/* スマホ：横スクロール */
.mobile-nav {
	position: relative;
	background: var(--roon-navy);
}

.mobile-nav__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.mobile-nav__scroll::-webkit-scrollbar {
	display: none;
}

.mobile-nav__list {
	display: flex;
	margin: 0;
	padding: 0 32px 0 4px;
	list-style: none;
	white-space: nowrap;
}

.mobile-nav__list a,
.mobile-nav__list a:link,
.mobile-nav__list a:visited {
	display: block;
	padding: 0 14px;
	color: #fff;
	font-size: 15px;
	line-height: 50px;
	text-decoration: none;
	border-bottom: 3px solid transparent;
}

.mobile-nav__list .current-menu-item > a {
	border-bottom-color: #fff;
}

.mobile-nav__arrow {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	padding: 0 4px 0 16px;
	background: linear-gradient(90deg, rgba(39, 43, 76, 0) 0%, var(--roon-navy) 45%);
	color: #fff;
	pointer-events: none;
	transition: opacity .2s;
}

.mobile-nav.is-end .mobile-nav__arrow {
	opacity: 0;
}

/* =========================================================================
 * 4. ページ・投稿・一覧
 * ====================================================================== */

.page-main {
	padding-top: 32px;
	padding-bottom: 64px;
}

.entry {
	padding: 24px 32px 40px;
	border: 1px solid #e3e3e3;
	background: #fff;
}

.entry-title {
	margin: 0 0 24px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e3e3e3;
	font-size: 20px;
	font-weight: bold;
	line-height: 1.5;
}

.entry-thumbnail {
	margin-bottom: 24px;
}

.entry-thumbnail img {
	width: 100%;
	max-width: 840px;
}

@media (max-width: 767px) {
	.page-main {
		padding-top: 16px;
		padding-bottom: 40px;
	}
	.entry {
		padding: 16px 0 24px;
		border: 0;
	}
	.entry-title {
		font-size: 18px;
	}
}

/* 一覧（検索結果など） */
.post-list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	border-top: 1px solid #e3e3e3;
}

.post-list__item a {
	display: block;
	padding: 16px 4px;
	border-bottom: 1px solid #e3e3e3;
	color: var(--roon-text);
	text-decoration: none;
}

.post-list__title {
	display: block;
	font-size: 16px;
	font-weight: bold;
}

.post-list__item a:hover .post-list__title {
	color: #c00;
	text-decoration: underline;
}

.post-list__excerpt {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #666;
}

.search-again {
	margin-bottom: 24px;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.navigation.pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 6px 10px;
	border: 1px solid #ccc;
	color: var(--roon-text);
	text-align: center;
	text-decoration: none;
}

.navigation.pagination .page-numbers.current {
	background: var(--roon-navy);
	border-color: var(--roon-navy);
	color: #fff;
}

/* 検索フォーム（灰色の背景・黒い枠・赤いボタン：Emanon 時代の見た目） */
.roon-search {
	display: flex;
	align-items: center;
	max-width: 1000px;
	margin: 0 auto;
	padding: 8px;
	border: 1px solid #000;
	border-radius: 1px;
	background: #eee;
}

.roon-search__input {
	flex: 1;
	min-width: 0;
	padding: 8px 12px;
	border: 0;
	background: transparent;
	color: #000;
	font-size: 16px;
	appearance: none;
}

.roon-search__input:focus {
	outline: 2px solid #999;
}

.roon-search__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 40px;
	border: 0;
	border-radius: 3px;
	background: #d33;
	color: #fff;
	cursor: pointer;
}

/* =========================================================================
 * 5. 本文
 * ====================================================================== */

.entry-content {
	font-size: 16px;
	line-height: 1.6;
}

/* Emanon 時代の設定：段落の上下の余白なし（ページはこの前提で作られている） */
.entry-content p {
	margin-top: 0;
	margin-bottom: 0;
}

.entry-content li {
	list-style-type: none;
}

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

/* 見出しの装飾は、Roon Event Core の一覧・カレンダーの見出し（roon-ec-…）には付けない */
.entry-content h2:not([class*="roon-ec"]) {
	margin: 32px 0 16px;
	font-size: 21px;
	line-height: 1.6;
}

/* Emanon の「左線＋背景」の見出し */
.entry-content h3:not([class*="roon-ec"]) {
	margin: 40px 0 16px;
	padding: 8px 0 8px 12px;
	border-left: 4px solid var(--roon-red);
	border-bottom: 1px solid #000;
	background: #ccc;
	font-size: 18px;
	line-height: 1.35;
}

.entry-content h4:not([class*="roon-ec"]) {
	margin: 0 0 16px;
	font-size: 16px;
}

.entry-content h2:not([class*="roon-ec"]):first-child,
.entry-content h3:not([class*="roon-ec"]):first-child {
	margin-top: 0;
}

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

.entry-content th,
.entry-content td {
	padding: 8px 12px;
	border: 1px solid #ccc;
	vertical-align: top;
}

.entry-content th {
	background: #f4f4f4;
}

.entry-content figure {
	margin-left: 0;
	margin-right: 0;
}

figcaption {
	display: block;
	padding: 1px;
	background: #fff;
	color: #000;
	font-size: smaller;
	text-align: center;
}

.wp-block-image.size-large img {
	max-height: 1024px;
	width: auto;
}

.attachment-medium.size-medium.wp-post-image {
	max-height: 400px;
	width: auto;
	object-fit: contain;
}

/* /osirase/ の最新の投稿ブロック */
.wp-block-latest-posts a {
	font-size: 24px;
	font-weight: bold;
}

/* Emanon 時代の追加CSS から（フォーム・装飾） */
.required-srt {
	margin-left: 10px;
	padding: 5px;
	border-radius: 3px;
	background: #f00;
	color: #fff;
	font-size: 8pt;
	vertical-align: middle;
}

.submit-btn input {
	display: block;
	width: 60%;
	min-width: 220px;
	max-width: 550px;
	margin: 30px auto;
	padding: 5px;
	border: 1px solid #444;
	background: #666;
	color: #fff;
	text-align: center;
	transition: all .4s ease;
}

.submit-btn input:hover {
	background: #fff;
	color: #00142c;
}

@media (max-width: 767px) {
	.cform th,
	.cform td {
		display: block;
		width: 100%;
		border-top: none;
	}
}

.inline-block {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 500px;
	margin: 5px;
	padding: 15px;
	background: #eee;
}

/* 月バーのタイトル（年）は使わない */
h1.monthcalendartitle {
	display: none;
}

/* =========================================================================
 * 6. トップページ
 * ====================================================================== */

.front-search {
	margin: 24px auto;
}

.front-events {
	margin-bottom: 24px;
}

.front-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	padding-top: 16px;
	padding-bottom: 64px;
}

.front-main__content .entry-content {
	margin-bottom: 40px;
}

.front-main__side .widget {
	margin-bottom: 32px;
	font-size: 14px;
}

.front-main__side .widget img {
	display: block;
	margin-bottom: 8px;
}

@media (max-width: 959px) {
	.front-main {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
	.front-main__side {
		max-width: 480px;
	}
}

/* ピックアップ公演 */
.pickup__title {
	margin: 0 0 16px;
	padding-bottom: 6px;
	border-bottom: 2px solid #ccc;
	font-size: 15px;
}

.pickup-card {
	margin-bottom: 16px;
	border: 1px solid #e3e3e3;
	background: #fff;
	transition: box-shadow .2s;
}

.pickup-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.pickup-card__link {
	display: flex;
	gap: 20px;
	padding: 16px;
	color: var(--roon-text);
	text-decoration: none;
}

.pickup-card__link:hover {
	opacity: 1;
}

.pickup-card__thumb {
	position: relative;
	flex: 0 0 240px;
	line-height: 0;
}

.pickup-card__thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.pickup-card__label {
	position: absolute;
	top: 0;
	left: 0;
	padding: 3px 8px;
	background: #161410;
	color: #fff;
	font-size: 11px;
	line-height: 1.4;
}

.pickup-card__title {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.5;
}

.pickup-card__link:hover .pickup-card__title {
	color: #c00;
	text-decoration: underline;
}

.pickup-card__excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
}

@media (max-width: 599px) {
	.pickup-card__link {
		flex-direction: column;
		gap: 10px;
		padding: 12px;
	}
	.pickup-card__thumb {
		flex-basis: auto;
	}
}

/* お知らせ（投稿がある時だけ） */
.front-news {
	padding: 48px 0;
	background: #f8f8f8;
}

.section-title {
	margin: 0 0 24px;
	font-size: 24px;
	text-align: center;
}

.front-news__list {
	max-width: 800px;
	margin: 0 auto 24px;
	padding: 0;
	list-style: none;
}

.front-news__list li {
	display: flex;
	gap: 16px;
	padding: 12px 4px;
	border-bottom: 1px solid #ddd;
}

.front-news__list time {
	flex-shrink: 0;
	color: #666;
	font-size: 13px;
}

.front-news__more {
	text-align: center;
}

.btn {
	display: inline-block;
	padding: 8px 40px;
	border-radius: 20px;
	background: #897b65;
	color: #fff;
	text-decoration: none;
}

/* お電話・インターネットでのお申込み */
.front-cta {
	padding: 80px 0;
	background: var(--roon-deep);
	color: #fff;
}

.front-cta__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

.front-cta__box {
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, .35);
	text-align: center;
	font-size: 13px;
	line-height: 1.7;
}

.front-cta__box p {
	margin: 0 0 20px;
}

.front-cta__title {
	margin: 0 0 16px;
	font-size: 22px;
	color: #fff;
}

.front-cta__title .icon {
	margin-right: 8px;
}

.front-cta__tel {
	display: inline-block;
	padding: 12px 20px;
	background: #fff;
	line-height: 1.3;
}

.front-cta__tel-name {
	display: block;
	color: #1173b1;
	font-size: 18px;
	font-weight: bold;
}

.front-cta__tel a,
.front-cta__tel a:visited {
	color: #1173b1;
	font-size: 30px;
	font-weight: bold;
	text-decoration: none;
}

.front-cta__logo img {
	background: #fff;
}

@media (max-width: 767px) {
	.front-cta {
		padding: 48px 0;
	}
	.front-cta__inner {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.front-cta__title {
		font-size: 19px;
	}
}

/* =========================================================================
 * 7. フッター
 * ====================================================================== */

.site-footer {
	padding: 24px 0 32px;
	background: var(--roon-footer);
	color: var(--roon-footer-text);
	text-align: center;
	font-size: 12px;
}

.site-footer a,
.site-footer a:link,
.site-footer a:visited {
	color: var(--roon-footer-text);
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	opacity: 1;
}

.pagetop {
	margin: 0 0 16px;
}

.pagetop a {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	font-size: 11.5px;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.footer-nav li {
	padding: 0 14px;
	border-left: 1px solid #555;
	line-height: 1.2;
	margin: 4px 0;
}

.footer-nav li:first-child {
	border-left: 0;
}

.copyright {
	margin: 0;
	font-size: 13px;
}

/* スマホの固定フッター（ホーム・電話注文・ネット注文・催し一覧） */
.fixed-footer {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 60;
	display: flex;
	background: rgba(255, 255, 255, .97);
	border-top: 1px solid #ddd;
	padding-bottom: env(safe-area-inset-bottom);
}

.fixed-footer a,
.fixed-footer a:link,
.fixed-footer a:visited {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 7px 0 6px;
	color: #323638;
	font-size: 12px;
	line-height: 1.2;
	text-decoration: none;
}

.fixed-footer .icon {
	width: 22px;
	height: 22px;
}

@media (max-width: 959px) {
	body {
		padding-bottom: 60px; /* 固定フッターの分 */
	}
}
