/* =========================================================
 * 固定ページ（static-pages-pc / static-pages-sp）
 * 運営者情報・編集方針・広告掲載について・プライバシーポリシー・お問い合わせ
 * ======================================================= */

.page-wrap { padding: 24px var(--gutter) 64px; }
.page-wrap--about { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.page-article { display: flex; flex-direction: column; gap: 28px; min-width: 0; max-width: 820px; }

/* 左のメニュー */
.about-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.about-menu { border: 1px solid var(--bd); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.about-menu__h { padding: 12px 16px; font-weight: 900; font-size: 13px; background: var(--bg2); color: var(--sub); }
.about-menu__item { padding: 12px 16px; border-top: 1px solid var(--row); font-size: 14px; font-weight: 700; border-left: 3px solid transparent; }
.about-menu__item:hover { background: var(--hover); color: var(--ink); }
.about-menu__item.is-active { font-weight: 900; color: var(--red); border-left-color: var(--red); background: var(--ebook-bg); }
.about-side__note { font-size: 12px; color: var(--sub); line-height: 1.7; }
.about-side__note a { color: var(--navy); text-decoration: underline; }

/* ページの見出し */
.page-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; border-bottom: 3px solid var(--navy); }
.page-head__en { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--red); letter-spacing: .12em; }
.page-head__title { margin: 0; font-size: clamp(23px, 2.6vw, 32px); font-weight: 900; line-height: 1.4; }
.page-head__lead { font-size: 15px; line-height: 1.9; color: var(--body); }
.page-head__date { font-size: 12px; color: var(--sub); }

/* 本文：h2は番号付き（01、02…）で下に線 */
.page-content { counter-reset: sec; font-size: 15px; line-height: 2; }
.page-content > * { margin-top: 0; margin-bottom: 0; }
.page-content > * + * { margin-top: 12px; }
.page-content > h2 { margin-top: 26px; }
.page-content > :first-child { margin-top: 0; }
.page-content h2 {
	font-size: 20px; font-weight: 900; line-height: 1.5; display: flex; align-items: center; gap: 10px;
	padding-bottom: 10px; border-bottom: 2px solid var(--bd); background: none; color: var(--ink); border-radius: 0;
}
.page-content > h2:not(.is-style-navy) { counter-increment: sec; }
.page-content > h2:not(.is-style-navy)::before {
	content: counter(sec, decimal-leading-zero); font-family: var(--mono); color: var(--red); font-size: 14px; font-weight: 500;
}
.page-content h2.is-style-navy {
	background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 6px; border-bottom: 0; display: block;
}
.page-content > h2.is-style-navy { margin-top: 28px; }
.page-content > h2.is-style-navy + * { margin-top: 14px; }
.page-content > h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 17px; font-weight: 900; line-height: 1.6; }
.page-content p { font-size: 15px; line-height: 2; }
.page-content ul, .page-content ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.8; }
.page-content a { color: var(--navy); text-decoration: underline; }
.page-content a:hover { color: var(--red); }

/* 運営者情報の表（ブロックのスタイル「項目と内容」） */
.page-content .wp-block-table.is-style-kv, .is-root-container .wp-block-table.is-style-kv { margin: 0; border: 1px solid var(--bd2); border-radius: 10px; overflow: hidden; }
.wp-block-table.is-style-kv table { border-collapse: collapse; width: 100%; font-size: 15px; }
.wp-block-table.is-style-kv td { border: 0; border-bottom: 1px solid var(--row); padding: 14px 18px; line-height: 1.75; vertical-align: top; }
.wp-block-table.is-style-kv tr:last-child td { border-bottom: 0; }
.wp-block-table.is-style-kv td:first-child { width: 180px; background: var(--bg2); font-weight: 900; }

/* パターン共通：グループブロックの中に自動で入る入れ物を無視して並べます */
:is(.otaku-members, .otaku-member, .otaku-points, .otaku-point, .otaku-contact-types, .otaku-contact-type) > .wp-block-group__inner-container { display: contents; }
:is(.otaku-member, .otaku-point, .otaku-contact-type) p { margin: 0 !important; }

/* 編集部メンバー（パターン） */
.otaku-members { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.otaku-member { border: 1px solid var(--bd); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.otaku-member > * { margin: 0 !important; }
.otaku-member::before {
	content: ""; width: 56px; height: 56px; border-radius: 50%; background: #eef0f4 var(--noimg) center / 56% auto no-repeat;
}
.otaku-member:has(figure)::before { display: none; } /* 画像を入れたら仮の丸は出さない（画像は内側の入れ物の中にあります） */
.otaku-member figure { margin: 0 !important; }
.otaku-member figure img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; }
.otaku-member__name { font-size: 16px !important; font-weight: 900; line-height: 1.5 !important; }
.otaku-member__role { font-size: 12px !important; font-weight: 700; color: var(--red); line-height: 1.5 !important; }
.otaku-member__bio { font-size: 13px !important; color: var(--body); line-height: 1.7 !important; }
.otaku-note { font-size: 12px !important; color: var(--sub); line-height: 1.7 !important; }

/* 編集方針の3つの要点（パターン） */
.otaku-points { display: flex !important; flex-direction: column; gap: 8px; }
.otaku-point {
	background: var(--bg2); border-radius: 12px; padding: 14px 18px; display: grid !important;
	grid-template-columns: 32px minmax(180px, auto) minmax(0, 1fr); gap: 14px; align-items: center;
}
.otaku-point > * { margin: 0 !important; }
.otaku-point__no { font-family: var(--mono); font-size: 13px !important; color: var(--red); }
.otaku-point__t { font-size: 16px !important; font-weight: 900; white-space: nowrap; line-height: 1.5 !important; }
.otaku-point__d { font-size: 13px !important; color: var(--body); line-height: 1.7 !important; }

/* お問い合わせの種類（パターン） */
.otaku-contact-types { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.otaku-contact-type { background: var(--bg2); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.otaku-contact-type > * { margin: 0 !important; }
.otaku-contact-type__t { font-size: 14px !important; font-weight: 900; line-height: 1.5 !important; }
.otaku-contact-type__d { font-size: 12px !important; color: var(--sub); line-height: 1.6 !important; }
.page-content > .otaku-contact-types + * { margin-top: 22px; }

/* ---------- お問い合わせフォーム（Contact Form 7） ---------- */
.wpcf7 { margin: 0; }
.wpcf7-form { border: 1px solid var(--bd2); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 20px; line-height: normal; }
.wpcf7-form > fieldset.hidden-fields-container { display: none; }
.cf-row { display: flex; flex-direction: column; gap: 6px; }
.cf-label { font-size: 14px; font-weight: 900; }
.cf-req { color: var(--red); font-size: 11px; }
.cf-opt { color: var(--sub); font-size: 11px; font-weight: 700; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="url"], .wpcf7-form select, .wpcf7-form textarea {
	width: 100%; border: 1.5px solid var(--bd2); border-radius: 8px; padding: 12px; font-size: 15px; outline: none; background: #fff;
	color: var(--ink); font-family: inherit;
}
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { border-color: var(--navy); }
.wpcf7-form textarea { line-height: 1.7; resize: vertical; min-height: 150px; }
.wpcf7-form select {
	appearance: none; -webkit-appearance: none; cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f3a6e' stroke-width='2'/%3E%3C/svg%3E") right 14px center no-repeat;
}
.cf-err { display: none; font-size: 12px; color: var(--red); font-weight: 700; }
.cf-row.is-err .cf-err { display: inline; }
.cf-row.is-err input, .cf-row.is-err textarea { border-color: var(--red); }
.cf-foot { display: flex; justify-content: space-between; gap: 8px; }
.cf-count { font-size: 12px; color: var(--sub); margin-left: auto; }
.wpcf7-not-valid-tip { display: none !important; }

.cf-row--agree { font-size: 14px; }
.cf-row--agree .wpcf7-list-item { margin: 0; }
.cf-row--agree label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.cf-row--agree input[type="checkbox"] {
	appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 5px; border: 2px solid #9aa0b0;
	background: #fff; margin: 0; flex-shrink: 0; cursor: pointer; display: grid; place-content: center;
}
.cf-row--agree input[type="checkbox"]:checked { border-color: var(--navy); background: var(--navy); }
.cf-row--agree input[type="checkbox"]:checked::before { content: "✓"; color: #fff; font-size: 13px; font-weight: 900; }
.cf-row--agree.is-err input[type="checkbox"] { border-color: var(--red); }
.cf-row--agree a { color: var(--navy); text-decoration: underline; }

.cf-submit-wrap { display: flex; justify-content: center; position: relative; }
.wpcf7-form .cf-submit {
	border: 0; background: #9aa0b0; color: #fff; font-weight: 900; font-size: 16px; padding: 15px 56px; border-radius: 999px;
	cursor: pointer; font-family: inherit; transition: background .15s;
}
.wpcf7-form .cf-submit.is-ready { background: var(--btn); }
.wpcf7-spinner { position: absolute; right: 0; top: 50%; margin: -12px 0 0; }
.wpcf7-response-output { display: none; }

.cf-sent {
	border: 2px solid var(--green); background: var(--green-bg); border-radius: 12px; padding: 28px; display: flex; flex-direction: column;
	gap: 10px; align-items: center; text-align: center;
}
.cf-sent__t { font-size: 20px; font-weight: 900; color: var(--green); }
.cf-sent__d { font-size: 14px; line-height: 1.8; color: var(--body); }
.cf-sent__btn {
	border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font-weight: 700; font-size: 13px; padding: 9px 20px;
	border-radius: 999px; cursor: pointer; font-family: inherit;
}

/* 1列のページ（後の段階で作るページ） */
.page-wrap:not(.page-wrap--about) .page-article { max-width: 920px; }

/* =========================================================
 * スマホ
 * ======================================================= */
@media (max-width: 768px) {
	.about-chips { gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--row); }
	.about-chip {
		flex-shrink: 0; white-space: nowrap; border: 1px solid var(--bd2); font-size: 12px; font-weight: 700; padding: 10px 14px; border-radius: 999px;
	}
	.about-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 900; }

	.page-wrap, .page-wrap--about { display: block; padding: 18px 16px 0; }
	.page-article { gap: 22px; }
	.page-head { gap: 8px; padding-bottom: 16px; }
	.page-head__en { font-size: 11px; }
	.page-head__title { font-size: 23px; line-height: 1.45; }
	.page-head__lead { font-size: 14px; line-height: 1.85; }
	.page-head__date { font-size: 11px; }

	.page-content > * + * { margin-top: 10px; }
	.page-content > h2 { margin-top: 22px; }
	.page-content h2 { font-size: 17px; gap: 8px; padding-bottom: 8px; align-items: flex-start; }
	.page-content > h2:not(.is-style-navy)::before { font-size: 13px; padding-top: 2px; }
	.page-content h2.is-style-navy { font-size: 17px; padding: 11px 14px; }
	.page-content > h2.is-style-navy { margin-top: 22px; }
	.page-content > h2.is-style-navy + * { margin-top: 10px; }
	.page-content p { font-size: 14px; line-height: 1.95; }
	.page-content ul, .page-content ol { padding-left: 20px; font-size: 14px; line-height: 1.75; }

	.wp-block-table.is-style-kv tr, .wp-block-table.is-style-kv td { display: block; width: auto !important; }
	.wp-block-table.is-style-kv td:first-child { padding: 8px 14px; font-size: 12px; border-bottom: 0; }
	.wp-block-table.is-style-kv td:last-child { padding: 10px 14px; font-size: 14px; line-height: 1.7; }
	.wp-block-table.is-style-kv tr:not(:last-child) td:last-child { border-bottom: 1px solid var(--row); }

	.otaku-members { display: flex !important; flex-direction: column; gap: 10px; }
	.otaku-member { padding: 14px; display: grid !important; grid-template-columns: 48px 1fr; gap: 3px 12px; align-items: start; }
	.otaku-member::before { width: 48px; height: 48px; grid-row: 1 / span 3; }
	.otaku-member figure { grid-row: 1 / span 3; grid-column: 1; }
	.otaku-member figure img { width: 48px; height: 48px; }
	.otaku-member:has(figure) > :not(figure), .otaku-member:has(figure) .wp-block-group__inner-container > :not(figure) { grid-column: 2; }
	.otaku-member__name { font-size: 15px !important; }
	.otaku-member__role { font-size: 11px !important; }
	.otaku-member__bio { font-size: 13px !important; line-height: 1.65 !important; }

	.otaku-point { padding: 12px 14px; border-radius: 10px; grid-template-columns: auto 1fr; grid-template-areas: "no t" "no d"; gap: 2px 10px; align-items: start; }
	.otaku-point__no { grid-area: no; font-size: 12px !important; padding-top: 2px; }
	.otaku-point__t { grid-area: t; font-size: 15px !important; white-space: normal; }
	.otaku-point__d { grid-area: d; font-size: 12px !important; line-height: 1.6 !important; }

	.otaku-contact-types { display: none !important; }
	.page-content > .otaku-contact-types + * { margin-top: 0; }

	.wpcf7-form { border: 0; padding: 0; gap: 18px; border-radius: 0; }
	.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="url"], .wpcf7-form select, .wpcf7-form textarea { font-size: 16px; padding: 13px 12px; }
	.cf-row--agree label { min-height: 44px; }
	.cf-row--agree input[type="checkbox"] { width: 24px; height: 24px; }
	.cf-submit-wrap { display: block; }
	.wpcf7-form .cf-submit { width: 100%; padding: 16px; }
	.cf-sent { padding: 22px 16px; }
	.cf-sent__t { font-size: 18px; }
	.cf-sent__d { font-size: 13px; }
	.cf-sent__btn { padding: 12px 22px; }
}
