/*
 * トップページ以外（SANGO が表示するページ）を、トップページの見た目にそろえる指定
 *
 * SANGO 3.12.20 が出力する HTML（2026年10月15日、/event-info/ と固定ページ7つで確認）に合わせて書いている。
 * カスタマイザーの「色」の設定は、この指定で上書きされる（カスタマイザーで色を変えても効かない）。
 * 色・書体の正本は crosstalk スキルの references/brand.json。
 *
 * 強さをそろえるため、セレクタの頭に html body を付けている。
 */

/* ---------- 1. 書体と色の基本 ---------- */

html:root {
	--sgb-main-color: #111111;
	--sgb-pastel-color: #f2f2f2;
	--sgb-accent-color: #111111;
	--sgb-widget-title-bg-color: transparent;
	--sgb-widget-title-color: #111111;

	/* The Events Calendar（イベント一覧の部品）の色と書体 */
	--tec-color-accent-primary: #111111;
	--tec-color-accent-primary-hover: #333333;
	--tec-color-accent-primary-active: #000000;
	--tec-color-accent-primary-background: rgba(17, 17, 17, 0.07);
	--tec-color-link-accent: #111111;
	--tec-color-link-accent-hover: #333333;
	--tec-color-text-primary: #111111;
	--tec-color-text-secondary: #595959;
	--tec-font-family-sans-serif: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
}

html body {
	--sgb-font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
	color: #111111;
}

html body,
html body button,
html body input,
html body select,
html body textarea,
html body .dfont {
	font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
}

html body a {
	color: #111111;
}

/* ---------- 2. ヘッダー（白地に黒） ---------- */

html body .header {
	background-color: #ffffff;
	box-shadow: none;
	border-bottom: 1px solid #e6e6e6;
}

/* ロゴ：カスタマイザーで設定された画像は見えなくし、テーマの CrossTalk の文字ロゴを出す。
   画像そのものは残しているので、読み上げでは今までどおり「CrossTalk」と読まれる。 */
html body #logo .header-logo__link {
	display: inline-block;
	width: 168px;
	height: 62px;
	background: url(../img/crosstalk-logo-wordmark.svg) no-repeat center / auto 26px;
	vertical-align: middle;
}

html body #logo .header-logo__img {
	width: 168px;
	height: 62px;
	padding: 0;
	object-fit: contain;
	opacity: 0;
}

html body .header .desktop-nav li a,
html body .header .header-search__open,
html body .header .header-search label,
html body #logo a {
	color: #111111;
}

html body .header .desktop-nav li a {
	font-weight: 700;
}

html body .header .desktop-nav li:after {
	background: #111111;
}

/* 「ホーム」はメニューから外す（ロゴで戻れる） */
html body .header .desktop-nav .menu-item-home {
	display: none;
}

/* スマホ・タブレット：今は SANGO のメニューが出ていないので、ロゴの下に横に流せるメニューを出す */
@media (max-width: 1029px) {
	html body #inner-header {
		flex-wrap: wrap;
	}

	html body .header .desktop-nav {
		display: block;
		width: 100%;
		order: 2;
		margin: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		border-top: 1px solid #e6e6e6;
	}

	html body .header .desktop-nav::-webkit-scrollbar {
		display: none;
	}

	html body .header .desktop-nav ul {
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0;
		margin: 0;
		padding: 0 4px;
		white-space: nowrap;
	}

	html body .header .desktop-nav li {
		float: none;
		flex: none;
	}

	html body .header .desktop-nav li a {
		display: block;
		padding: 0 12px;
		font-size: 14px;
		line-height: 44px;
		height: 44px;
	}

	html body .header .desktop-nav li:after {
		display: none;
	}

	html body .header .desktop-nav .current-menu-item a {
		text-decoration: underline;
		text-underline-offset: 6px;
	}
}

/* ---------- 3. 見出し帯・ボタンなど（SANGO のメインカラーを黒に） ---------- */

/* サイドバーの見出し：帯をやめ、トップページと同じ「上に黒い線＋太字」 */
html body .widgettitle,
html body .sidebar .wp-block-group h2,
html body .sidebar .widget h2,
html body .drawer .wp-block-group h2 {
	margin: 0 0 16px;
	padding: 14px 0 0;
	border: 0;
	border-top: 2px solid #111111;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: #111111;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.5;
	text-align: left;
}

html body .widgettitle::before,
html body .widgettitle::after,
html body .sidebar .widget h2::before,
html body .sidebar .widget h2::after {
	display: none;
}

/* ページの先頭へ戻るボタン（SANGO のもの）。トップページと同じく、黒い丸に白い縁 */
html body .totop {
	background: #111111;
	border: 2px solid #ffffff;
}

/* サイドバーの「今後のイベント」は囲みブロックで作られているので、見出しを上と同じ形にする
   （色がブロックに直接書かれているため !important で上書き） */
html body .sidebar .sgb-box-simple {
	margin: 0 0 32px;
}

html body .sidebar .sgb-box-simple__title {
	margin: 0 0 16px;
	padding: 14px 0 0;
	border-top: 2px solid #111111;
	border-radius: 0;
	background: none !important;
	color: #111111 !important;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.5;
}

html body .sidebar .sgb-box-simple__body {
	padding: 0;
	border: 0;
	background: none !important;
}

/* ---------- 4. フッター（夜の色） ---------- */

html body .footer,
html body #footer-menu {
	background-color: #1b1c1f;
}

html body .footer,
html body .footer a,
html body .footer .widget ul li a,
html body #footer-menu a {
	color: #f2f0eb;
}

html body .copyright {
	color: #a8a6a0;
	opacity: 1;
}

/* 「HOME」ボタンを CrossTalk のロゴに替える（リンク先はそのままトップページ） */
html body #footer-menu .footer-menu__btn {
	display: inline-block;
	width: 96px;
	height: 102px;
	margin: 16px 0 8px;
	background: url(../img/crosstalk-logo-full-white.svg) no-repeat center / contain;
	font-size: 0;
	color: transparent;
	vertical-align: middle;
}

html body #footer-menu .footer-menu__btn:hover {
	opacity: 0.85;
}

/* ---------- 5. ページの頭（パンくず・ページ名・アイキャッチ） ---------- */

html body #inner-content,
html body .page:not(.no-bg) #inner-content,
html body.page:not(.no-bg) #inner-content {
	background: #ffffff;
	box-shadow: none;
}

html body #entry {
	box-shadow: none;
}

html body .breadcrumb,
html body .breadcrumb li a,
html body .breadcrumb li:after {
	color: #595959;
	font-size: 0.8125rem;
}

html body .breadcrumb li a:hover {
	color: #111111;
}

html body .page-title,
html body .single-title {
	margin: 8px 0 24px;
	color: #111111;
	font-size: clamp(1.75rem, 1.45rem + 1vw, 2.5rem);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

html body .post-thumbnail img {
	border-radius: 0;
	box-shadow: none;
}

/* ---------- 6. 本文 ---------- */

html body .entry-content {
	color: #111111;
	line-height: 1.9;
}

html body .entry-content a {
	color: #111111;
	text-decoration: underline;
	text-underline-offset: 4px;
}

html body .entry-content a:hover {
	text-decoration-thickness: 2px;
}

/* 見出し：SANGO の帯や左線をやめ、トップページと同じ組み方にそろえる */
html body .entry-content h2,
html body .entry-content h3,
html body .entry-content h4 {
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: #111111;
	font-weight: 700;
	letter-spacing: 0;
}

html body .entry-content h2::before,
html body .entry-content h2::after,
html body .entry-content h3::before,
html body .entry-content h3::after,
html body .entry-content h4::before,
html body .entry-content h4::after {
	display: none;
}

html body .entry-content h2 {
	margin: 3em 0 1em;
	padding: 20px 0 0;
	border-top: 2px solid #111111;
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
	line-height: 1.45;
}

html body .entry-content h3 {
	margin: 2.2em 0 0.8em;
	padding: 0 0 8px;
	border-bottom: 1px solid #e6e6e6;
	font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
	line-height: 1.55;
}

html body .entry-content h4 {
	margin: 1.8em 0 0.6em;
	padding: 0;
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* SANGO の「見出し」ブロック（文字に色や背景が付けられるもの） */
html body .entry-content h2.sgb-heading {
	padding-top: 20px;
}

html body .entry-content .sgb-heading__inner {
	padding: 0;
	border: 0;
	background: none;
}

html body .entry-content hr,
html body .entry-content .wp-block-separator {
	height: 0;
	margin: 3em 0;
	border: 0;
	border-top: 1px solid #e6e6e6;
	background: none;
	opacity: 1;
}

/* 見出しの直前の区切り線は、見出しの黒い線と二重になるので消す */
html body .entry-content hr:has(+ h2),
html body .entry-content .wp-block-separator:has(+ h2) {
	display: none;
}

/* 表 */
html body .entry-content table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	font-size: 0.9375rem;
	line-height: 1.7;
}

html body .entry-content th,
html body .entry-content td,
html body .entry-content .wp-block-table th,
html body .entry-content .wp-block-table td {
	padding: 12px 14px;
	border: 1px solid #e6e6e6;
	background: #ffffff;
	color: #111111;
	text-align: left;
	vertical-align: top;
}

html body .entry-content th,
html body .entry-content .wp-block-table th,
html body .entry-content .wp-block-table thead th,
html body .entry-content .wp-block-table td:first-child {
	background: #f2f2f2;
	font-weight: 700;
}

html body .entry-content .wp-block-table thead {
	border-bottom: 0;
}

/* 横に長い表（サイズ表など）は、スマホでは表だけ横に流す */
html body .entry-content .wp-block-table {
	margin: 0 0 1.5em;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
	html body .entry-content th,
	html body .entry-content td {
		padding: 10px;
		font-size: 0.875rem;
	}

	html body .entry-content .wp-block-table table {
		min-width: max-content;
	}

	html body .entry-content .wp-block-table td,
	html body .entry-content .wp-block-table th {
		white-space: nowrap;
	}

	/* 2列の表（項目と内容）は、項目の下に内容を置く縦並びにする */
	html body .entry-content .wp-block-table table:not(:has(tr > :nth-child(3))) {
		min-width: 0;
	}

	html body .entry-content .wp-block-table table:not(:has(tr > :nth-child(3))) tr,
	html body .entry-content .wp-block-table table:not(:has(tr > :nth-child(3))) td,
	html body .entry-content .wp-block-table table:not(:has(tr > :nth-child(3))) th {
		display: block;
		width: 100%;
		white-space: normal;
	}

	html body .entry-content .wp-block-table table:not(:has(tr > :nth-child(3))) tr + tr > :first-child {
		border-top: 0;
	}

	html body .entry-content .wp-block-table table:not(:has(tr > :nth-child(3))) td:first-child,
	html body .entry-content .wp-block-table table:not(:has(tr > :nth-child(3))) th:first-child {
		padding-block: 8px;
		border-bottom: 0;
	}
}

/* 囲み・注意書き */
html body .entry-content blockquote {
	border: 0;
	border-left: 2px solid #111111;
	border-radius: 0;
	background: #f2f2f2;
	box-shadow: none;
}

/* お問い合わせフォームの「完全招待制です」の囲み（フォームの設定で薄い赤が指定されている） */
html body .entry-content .sango-box.message,
html body .entry-content .sango-box.message[style] {
	padding: 4px 20px 16px;
	border: 0;
	border-left: 2px solid #111111;
	border-radius: 0;
	background-color: #f2f2f2 !important;
	color: #111111;
}

/* 「必須」の印 */
html body .entry-content .badge,
html body .entry-content .badge.red {
	display: inline-block;
	margin-left: 6px;
	padding: 0 8px;
	border-radius: 4px;
	background: #111111;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.8;
	vertical-align: 0.1em;
}

/* ---------- 7. ボタン ---------- */

html body .entry-content .wp-block-button__link,
html body .entry-content .wpcf7-submit,
html body .entry-content input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 36px;
	border: 2px solid #111111;
	border-radius: 999px;
	background: #111111;
	box-shadow: none;
	color: #ffffff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

html body .entry-content .wp-block-button__link:hover,
html body .entry-content .wpcf7-submit:hover,
html body .entry-content input[type="submit"]:hover {
	border-color: #333333;
	background: #333333;
	color: #ffffff;
}

html body .entry-content .is-style-outline > .wp-block-button__link,
html body .entry-content .wp-block-button__link.is-style-outline {
	background: transparent;
	color: #111111;
}

html body .entry-content .is-style-outline > .wp-block-button__link:hover {
	background: #111111;
	color: #ffffff;
}

/* ---------- 8. 入力欄（お問い合わせ・グッズの注文） ---------- */

html body .entry-content input[type="text"],
html body .entry-content input[type="email"],
html body .entry-content input[type="tel"],
html body .entry-content input[type="number"],
html body .entry-content input[type="url"],
html body .entry-content select,
html body .entry-content textarea {
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #8c8c8c;
	border-radius: 8px;
	background-color: #ffffff;
	box-shadow: none;
	color: #111111;
	font-family: inherit;
	font-size: 16px; /* 16px 未満だと iPhone で画面が拡大される */
	line-height: 1.6;
}

html body .entry-content input[type="number"] {
	width: 8em;
}

html body .entry-content textarea {
	min-height: 180px;
}

html body .entry-content input:focus-visible,
html body .entry-content select:focus-visible,
html body .entry-content textarea:focus-visible,
html body .entry-content .wp-block-button__link:focus-visible,
html body .entry-content summary:focus-visible {
	outline: 2px solid #111111;
	outline-offset: 2px;
}

html body .entry-content input::placeholder,
html body .entry-content textarea::placeholder {
	color: #767676;
}

html body .entry-content input[type="checkbox"],
html body .entry-content input[type="radio"] {
	accent-color: #111111;
	width: 18px;
	height: 18px;
	vertical-align: -3px;
}

html body .entry-content .wpcf7-list-item {
	margin: 0 1.2em 0.4em 0;
}

html body .entry-content .wpcf7-not-valid-tip {
	color: #b3261e;
	font-size: 0.875rem;
}

html body .entry-content .wpcf7 form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 12px 16px;
	border-radius: 8px;
}

/* ---------- 9. よくあるご質問（グッズのページの開け閉め） ---------- */

html body .entry-content details.ct-acc {
	margin: 0;
	border: 0;
	border-bottom: 1px solid #e6e6e6;
	border-radius: 0;
	background: none;
}

html body .entry-content details.ct-acc:first-of-type {
	border-top: 1px solid #e6e6e6;
}

html body .entry-content details.ct-acc > summary {
	padding: 18px 48px 18px 0;
	color: #111111;
	font-weight: 700;
	line-height: 1.6;
}

html body .entry-content details.ct-acc > summary:hover {
	background: none;
	text-decoration: underline;
	text-underline-offset: 5px;
}

html body .entry-content details.ct-acc > summary::after {
	right: 8px;
	color: #111111;
	content: "＋";
}

/* ページ内の指定（[open]）が SANGO に書き換えられて効いていないので、ここで「−」にする */
html body .entry-content details.ct-acc[open] > summary::after {
	content: "−";
}

html body .entry-content details.ct-acc .ct-acc-body {
	padding: 0 0 20px;
	overflow-x: auto; /* 中のサイズ表は、スマホでは表だけ横に流す */
	-webkit-overflow-scrolling: touch;
}

html body .entry-content details.ct-acc .ct-acc-body th,
html body .entry-content details.ct-acc .ct-acc-body td {
	padding: 8px 10px;
	border-color: #e6e6e6;
	text-align: center;
	white-space: nowrap;
}

/* ---------- 10. ページ下のシェアボタン ---------- */

html body .sns-btn__title {
	color: #595959;
}
