/* IDOLWatch 固定ページ・404（第2版のルール、DESIGN.md §12-14）
   見出しはニュース一覧・グループDB と同じ形。本文（外側の箱に iw-doc）は Elementor の標準ウィジェットの文字組みを整える */
.iw-p, .iw-doc {
	--p-pink: var(--iw-color-primary, #C73C77);
	--p-ink: var(--iw-color-ink, #26232B);
	--p-sub: #4A4652;
	--p-muted: var(--iw-color-muted, #6B6775);
	--p-line: #DAD7E0;
	font-family: "Noto Sans JP", sans-serif;
	font-synthesis: none;
	color: var(--p-ink);
}
.iw-p { max-width: 1328px; margin: 0 auto; padding: 0 24px; }
.iw-p *, .iw-p *::before, .iw-p *::after { box-sizing: border-box; }
.iw-p a { color: inherit; text-decoration: none; }
.iw-p p { margin: 0; }
.iw-p .iw-g-bc { padding-top: 14px; font-size: 12px; color: var(--p-muted); }
.iw-p .iw-g-bc ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.iw-p .iw-g-bc li + li::before { content: "›"; margin: 0 8px; color: #B9B5C0; }
.iw-p .iw-g-bc a:hover { color: var(--p-pink); }
.iw-p-hero { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: end; padding-bottom: 24px; border-bottom: 2px solid var(--p-ink); }
.iw-p-hero.is-nolead { grid-template-columns: 1fr; }
.iw-p-hero__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.iw-p-hero__en { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 120px; line-height: .9; overflow-wrap: anywhere; }
.iw-p-title { margin: 0; font-size: 28px; font-weight: 500; line-height: 1.45; }
.iw-p-lead { font-size: 14px; line-height: 1.9; color: var(--p-sub); }

/* 本文（iw-doc） */
.elementor .e-con.iw-doc, .iw-doc { max-width: 1328px; margin-left: auto; margin-right: auto; padding: 8px 24px 0; --gap: 0px; --row-gap: 0px; }
.elementor .e-con.iw-doc > .elementor-element, .elementor .e-con.iw-doc > .e-con-inner { width: 100%; max-width: 860px; }
.elementor .e-con.iw-doc.is-wide > .elementor-element { max-width: none; }
.iw-doc .e-con { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --min-height: 0px; }
.elementor .e-con.iw-doc.is-last, .iw-doc.is-last { padding-bottom: 96px; }
/* 本文の中の箱は縦に積む（昔の2〜4列の並びは文書の幅では窮屈になる） */
.elementor .iw-doc .e-con.e-flex { --flex-direction: column; flex-direction: column; --align-items: stretch; }
.elementor .iw-doc .e-con > .elementor-element, .elementor .iw-doc .e-con > .e-con { --width: 100%; width: 100%; max-width: 100%; }
.iw-doc .elementor-widget-image { margin: 0 0 24px; }
.iw-doc .elementor-widget-image img { width: 100%; height: auto; }
.iw-doc .elementor-widget-button { margin: 8px 0 32px; }
.iw-doc .elementor-widget-text-editor, .iw-doc .elementor-widget-text-editor p, .iw-doc .elementor-widget-text-editor li { font-family: "Noto Sans JP", sans-serif; font-size: 15px; line-height: 2; font-weight: 400; color: var(--p-ink); }
.iw-doc .elementor-widget-text-editor p { margin: 0 0 18px; }
.iw-doc > .elementor-widget-text-editor:first-child { margin-top: 40px; }
.iw-doc > .elementor-widget-text-editor:first-child > .elementor-widget-container > h2:first-child, .iw-doc > .elementor-widget-text-editor:first-child h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
/* 見出しの帯の下線と重ならないよう、最初の表・最初の見出しの上の線は出さない */
.iw-doc > .elementor-widget-text-editor:first-child tr:first-child th, .iw-doc > .elementor-widget-text-editor:first-child tr:first-child td { border-top: 0; }
.iw-doc > .elementor-element:first-child .elementor-widget-heading:first-child .elementor-heading-title, .iw-doc > .elementor-widget-heading:first-child .elementor-heading-title { border-top: 0 !important; padding-top: 0 !important; margin-top: 40px !important; }
.iw-doc .elementor-widget-text-editor strong, .iw-doc .elementor-widget-text-editor b { font-weight: 500; }
.iw-doc .elementor-widget-text-editor a { color: var(--p-pink); text-decoration: underline; text-underline-offset: 3px; }
.iw-doc .elementor-widget-text-editor h2, .iw-doc .elementor-widget-heading h2.elementor-heading-title, .iw-doc .elementor-widget-heading .elementor-heading-title {
	margin: 48px 0 16px; padding-top: 14px; border-top: 2px solid var(--p-ink); font-family: "Noto Sans JP", sans-serif !important; font-size: 21px !important; font-weight: 500 !important; line-height: 1.5 !important; color: var(--p-ink) !important; text-align: left !important; letter-spacing: 0 !important; text-transform: none !important; background: none !important;
}
.iw-doc .elementor-widget-text-editor h3, .iw-doc .elementor-widget-heading h3.elementor-heading-title { margin: 32px 0 12px; padding: 0 0 0 12px; border-top: 0; border-left: 3px solid var(--p-pink); font-size: 17px !important; }
.iw-doc .elementor-widget-text-editor h4 { margin: 24px 0 8px; font-size: 15px; font-weight: 500; }
.iw-doc .elementor-widget-text-editor ul, .iw-doc .elementor-widget-text-editor ol { margin: 0 0 18px; padding-left: 1.4em; }
.iw-doc .elementor-widget-text-editor li { margin: 0 0 4px; }
.iw-doc .elementor-widget-text-editor table, .iw-doc .iw-doc-table { width: 100%; border-collapse: collapse; margin: 40px 0 18px; font-size: 14px; line-height: 1.8; }
.iw-doc .elementor-widget-text-editor th, .iw-doc .elementor-widget-text-editor td { padding: 14px 12px; border: 0; border-bottom: 1px solid var(--p-line); text-align: left; vertical-align: top; background: none; }
.iw-doc .elementor-widget-text-editor th { width: 28%; font-weight: 500; color: var(--p-muted); white-space: nowrap; }
.iw-doc .elementor-widget-text-editor tr:first-child th, .iw-doc .elementor-widget-text-editor tr:first-child td { border-top: 2px solid var(--p-ink); }
.iw-doc .elementor-widget-image img { border-radius: 0 !important; }
.iw-doc .elementor-widget-container { border-radius: 0 !important; box-shadow: none !important; }
.iw-doc .e-con, .iw-doc .e-con-inner { background: none !important; border-radius: 0 !important; box-shadow: none !important; }

/* ボタン（四角・ピンク） */
.iw-doc .elementor-button, .iw-p-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 40px !important; border: 0 !important; border-radius: 0 !important; background: var(--p-pink) !important; color: #fff !important; font-family: "Noto Sans JP", sans-serif !important; font-size: 15px !important; font-weight: 500 !important; box-shadow: none !important; }
.iw-doc .elementor-button:hover, .iw-p-btn:hover { background: #A32F61 !important; }

/* フォーム（Elementor Pro のフォーム・新しいフォーム）: 下線だけの入力欄・四角 */
.iw-doc .elementor-form .elementor-field-group { margin-bottom: 18px; }
.iw-doc .elementor-form .elementor-field-label, .iw-doc .e-form-label, .iw-doc [class*="e-form-label"] { font-family: "Noto Sans JP", sans-serif !important; font-size: 13px !important; font-weight: 500 !important; color: var(--p-ink) !important; }
.iw-doc .elementor-form .elementor-field, .iw-doc .elementor-form .elementor-field-textual, .iw-doc .e-form-input, .iw-doc .e-form-textarea, .iw-doc form input[type="text"], .iw-doc form input[type="email"], .iw-doc form input[type="tel"], .iw-doc form input[type="url"], .iw-doc form textarea, .iw-doc form select {
	width: 100%; min-height: 44px; padding: 10px 12px !important; border: 1px solid #C9C5D3 !important; border-radius: 0 !important; background: #fff !important; font-family: "Noto Sans JP", sans-serif !important; font-size: 15px !important; color: var(--p-ink) !important; box-shadow: none !important;
}
.iw-doc form input:focus, .iw-doc form textarea:focus, .iw-doc form select:focus { border-color: var(--p-ink) !important; outline: none; }
.iw-doc .elementor-form .elementor-button, .iw-doc .e-form-submit-button, .iw-doc form button[type="submit"] { min-height: 52px; padding: 0 48px !important; border: 0 !important; border-radius: 0 !important; background: var(--p-pink) !important; color: #fff !important; font-family: "Noto Sans JP", sans-serif !important; font-size: 15px !important; font-weight: 500 !important; }
.iw-doc .elementor-form .elementor-field-type-acceptance label, .iw-doc .elementor-form .elementor-field-subgroup label { font-size: 13px; }
.iw-doc .elementor-form .elementor-message { font-size: 14px; }

/* よくある質問（入れ子のアコーディオン） */
.iw-doc .e-n-accordion-item { border: 0 !important; border-bottom: 1px solid var(--p-line) !important; border-radius: 0 !important; }
.iw-doc .e-n-accordion-item:first-child { border-top: 2px solid var(--p-ink) !important; }
.iw-doc .e-n-accordion-item-title { padding: 16px 0 !important; border: 0 !important; background: none !important; }
.iw-doc .e-n-accordion-item-title-text { font-family: "Noto Sans JP", sans-serif !important; font-size: 15px !important; font-weight: 500 !important; color: var(--p-ink) !important; }
.iw-doc .e-n-accordion-item > .e-con { padding: 0 0 16px !important; border: 0 !important; }

/* COVER IDOL 募集（iw-cover） */
.iw-doc .iw-cover-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 18px; padding: 0; list-style: none; border-top: 2px solid var(--p-ink); }
.iw-doc .iw-cover-points li { margin: 0; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--p-line); font-size: 15px; font-weight: 500; line-height: 1.6; }
.iw-doc .iw-cover-points li + li { padding-left: 16px; border-left: 1px solid var(--p-line); }
.iw-doc .iw-cover-points b { display: block; margin-bottom: 6px; font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 34px; line-height: 1; color: var(--p-pink); }

/* 404 */
.iw-p-404 { padding-bottom: 96px; }
.iw-p-404__hero { margin-top: 48px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: end; padding-bottom: 32px; border-bottom: 2px solid var(--p-ink); }
.iw-p-404__num { font-family: "Bebas Neue", sans-serif; font-size: 280px; line-height: .78; color: var(--p-pink); }
.iw-p-404__text { display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.iw-p-404__text .iw-p-hero__en { font-size: 40px; }
.iw-p-404__search { display: flex; gap: 12px; margin-top: 12px; max-width: 520px; }
.iw-p-404__search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--p-ink); border-radius: 0; background: transparent; font: inherit; font-size: 16px; outline: none; }
.iw-p-404__search button { min-height: 48px; padding: 0 28px; border: 0; border-radius: 0; background: var(--p-pink); color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.iw-p-404__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.iw-p-404__links a { display: flex; flex-direction: column; gap: 8px; padding: 24px 20px 24px 0; border-bottom: 1px solid var(--p-line); font-size: 14px; }
.iw-p-404__links a + a { padding-left: 20px; border-left: 1px solid var(--p-line); }
.iw-p-404__en { font-family: "Bebas Neue", sans-serif; font-size: 32px; line-height: 1; }
.iw-p-404__links a:hover span:last-child { color: var(--p-pink); }

@media (max-width: 1024px) {
	.iw-p-hero { grid-template-columns: 1fr; gap: 16px; }
	.iw-doc .iw-cover-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.iw-doc .iw-cover-points li:nth-child(3) { padding-left: 0; border-left: 0; }
	.iw-p-404__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.iw-p-404__links a:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 767px) {
	.iw-p { padding: 0 20px; }
	.iw-p .iw-g-bc { padding-top: 12px; font-size: 11px; }
	.iw-p-hero { margin-top: 16px; gap: 10px; padding-bottom: 16px; }
	.iw-p-hero__en { font-size: 64px; }
	.iw-p-title { font-size: 19px; }
	.iw-p-lead { font-size: 12px; line-height: 1.8; }
	.elementor .e-con.iw-doc, .iw-doc { padding: 0 20px; }
	.elementor .e-con.iw-doc.is-last, .iw-doc.is-last { padding-bottom: 56px; }
	.iw-doc .elementor-widget-text-editor, .iw-doc .elementor-widget-text-editor p, .iw-doc .elementor-widget-text-editor li { font-size: 14px; line-height: 1.9; }
	.iw-doc .elementor-widget-text-editor h2, .iw-doc .elementor-widget-heading .elementor-heading-title { margin-top: 36px; font-size: 18px !important; }
	.iw-doc .elementor-widget-text-editor th, .iw-doc .elementor-widget-text-editor td { display: block; width: 100%; padding: 4px 0; border: 0; }
	.iw-doc .elementor-widget-text-editor th { padding-top: 14px; }
	.iw-doc .elementor-widget-text-editor td { padding-bottom: 14px; border-bottom: 1px solid var(--p-line); }
	.iw-doc .elementor-widget-text-editor tr:first-child td { border-top: 0; }
	.iw-doc .elementor-button { width: 100%; }
	.iw-p-404__hero { margin-top: 24px; grid-template-columns: 1fr; gap: 12px; }
	.iw-p-404__num { font-size: 160px; }
	.iw-p-404__text .iw-p-hero__en { font-size: 30px; }
	.iw-p-404__links a { padding: 18px 12px 18px 0; }
	.iw-p-404__links a + a { padding-left: 12px; }
	.iw-p-404__en { font-size: 24px; }
	.iw-p-404 { padding-bottom: 56px; }
}
