/*
 * インドネシア進出診断（ibiz-diagnosis）
 * サイト（テーマ avantage）に合わせた見た目: 文字は M PLUS 1（テーマが読み込む）、紺 #324a7c・赤 #d30000、
 * 斜めのボタン、赤い線つきの小見出し。テーマの CSS とぶつからないよう、すべて .ibd / .ibd-banner / .ibd-float の中に限定する。
 */
.ibd, .ibd-banner, .ibd-float, .ibd-ht {
	--ibd-navy: #324a7c;
	--ibd-navy-deep: #1b3d5e;
	--ibd-red: #d30000;
	--ibd-red-dark: #a80000;
	--ibd-ink: #191919;
	--ibd-muted: #5d6675;
	--ibd-line: #dde2ea;
	--ibd-tint: #eef2f8;
	--ibd-bg: #f5f5f5;
	--ibd-shadow: 0 6px 24px rgba(27, 61, 94, .10);
	font-family: inherit;
	color: var(--ibd-ink);
	line-height: 1.8;
	box-sizing: border-box;
}
.ibd *, .ibd *::before, .ibd *::after,
.ibd-banner *, .ibd-banner *::before, .ibd-banner *::after,
.ibd-ht *, .ibd-ht *::before, .ibd-ht *::after { box-sizing: border-box; }
.ibd [hidden], .ibd-banner [hidden], .ibd-float[hidden] { display: none !important; }
.ibd h2, .ibd h3, .ibd h4, .ibd h5, .ibd p, .ibd ul, .ibd ol,
.ibd-banner h2, .ibd-banner p, .ibd-banner ul,
.ibd-ht h1, .ibd-ht p, .ibd-ht ul { margin: 0; padding: 0; letter-spacing: 0; text-transform: none; }
.ibd li, .ibd-banner li, .ibd-ht li { list-style: none; margin: 0; }
.ibd li::before, .ibd-banner li::before, .ibd-ht li::before { content: none; }

.ibd { max-width: 820px; margin: 0 auto 80px; }

/* ---------- 共通部品 ---------- */
/* 赤い線つきの小見出し（サイトの "Why Indonesia?" と同じ形） */
.ibd-kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.ibd-kicker::before { content: ""; width: 40px; border-top: 2px solid var(--ibd-red); flex: none; }

/* 斜めのボタン（テーマの bt_bb_button と同じ傾き。文字はまっすぐのまま、背景だけ傾ける） */
.ibd-btn {
	position: relative; z-index: 0; display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 14px 30px; border: 0; background: none; color: #fff !important;
	font: inherit; font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none !important; cursor: pointer;
}
.ibd-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ibd-red); transform: skewX(-8deg); transition: background .15s; }
.ibd-btn:hover::before { background: var(--ibd-red-dark); }
.ibd-btn:disabled { cursor: not-allowed; color: #8b95a3 !important; }
.ibd-btn:disabled::before { background: #e3e7ed; }
.ibd-btn-line { color: var(--ibd-navy) !important; }
.ibd-btn-line::before { background: #fff; box-shadow: inset 0 0 0 1px #aab4c1; }
.ibd-btn-line:hover::before { background: var(--ibd-tint); }
.ibd-btn-ghost { color: var(--ibd-muted) !important; }
.ibd-btn-ghost::before { background: transparent; box-shadow: inset 0 0 0 1px var(--ibd-line); }
.ibd-btn-ghost:hover::before { background: #fff; }
.ibd-btn-wide { width: 100%; }
.ibd button:focus-visible, .ibd a:focus-visible, .ibd-banner a:focus-visible, .ibd-float:focus-visible { outline: 3px solid #7aa7d6; outline-offset: 3px; }

.ibd-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.ibd-meta li { padding: 3px 12px; border: 1px solid rgba(255, 255, 255, .45); font-size: 13px; font-weight: 700; line-height: 1.6; }
.ibd-note { margin-top: 14px !important; font-size: 12px; color: var(--ibd-muted); line-height: 1.7; }

/* ---------- 診断ページ: 見出し ---------- */
.ibd-hero {
	position: relative; overflow: hidden; margin-bottom: 28px; padding: 44px clamp(22px, 5vw, 48px) 40px; color: #fff;
	background: linear-gradient(120deg, var(--ibd-navy-deep) 0%, var(--ibd-navy) 100%);
}
/* サイトの紺の帯にある三角形の柄を簡易に再現 */
.ibd-hero::after {
	content: ""; position: absolute; right: -60px; top: -40px; width: 320px; height: 320px; opacity: .14;
	background: linear-gradient(135deg, transparent 50%, #fff 50%) 0 0 / 80px 80px;
	transform: rotate(8deg); pointer-events: none;
}
.ibd.is-result .ibd-hero { display: none; } /* 結果はレポートから見せる */
.ibd.is-direct #ibd-result > :not(#ibd-inq) { display: none; } /* ?consult=1: 30分相談の受付画面だけ */
.ibd-direct-note { display: block; margin-top: 6px; font-size: .9em; }
.ibd-hero .ibd-kicker { color: #fff; }
.ibd-hero-title { margin: 12px 0 14px !important; font-size: clamp(28px, 5vw, 40px); font-weight: 800; line-height: 1.35; color: #fff; }
.ibd-hero-title span { color: #fff; }
.ibd-hero-lead { max-width: 560px; margin-bottom: 18px !important; font-size: 15px; color: #dbe3ee; }

/* ---------- 診断ページ: 設問 ---------- */
.ibd-panel { padding: clamp(22px, 5vw, 40px); background: #fff; box-shadow: var(--ibd-shadow); }
.ibd-flight { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--ibd-muted); }
.ibd-track { position: relative; height: 12px; margin: 0 6px 28px; }
.ibd-track::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 2px solid var(--ibd-line); }
.ibd-trail { position: absolute; left: 0; top: 4px; width: 0; height: 4px; background: var(--ibd-navy); transition: width .4s; }
.ibd-plane { position: absolute; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ibd-red); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ibd-red); transform: translateX(-50%); transition: left .4s; }
.ibd-qno { font-size: 13px; font-weight: 700; color: var(--ibd-red); }
.ibd-question { margin: 2px 0 20px !important; font-size: clamp(20px, 3.4vw, 26px); font-weight: 800; line-height: 1.5; color: var(--ibd-navy); }
.ibd-options { display: grid; gap: 10px; }
.ibd-option, .ibd-banner-option {
	display: flex; align-items: center; gap: 13px; width: 100%; margin: 0; padding: 13px 16px;
	border: 1px solid var(--ibd-line); border-radius: 0; background: #fff; box-shadow: none;
	font: inherit; font-size: 15px; font-weight: 500; line-height: 1.5; text-align: left; text-transform: none; letter-spacing: 0;
	color: var(--ibd-ink); cursor: pointer; transition: border-color .12s, background .12s;
}
.ibd-option:hover, .ibd-banner-option:hover { border-color: #8fa3b8; background: #f8fafc; color: var(--ibd-ink); }
.ibd-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #aab4c1; transition: border .12s; }
.ibd-option.is-selected { border-color: var(--ibd-navy); background: var(--ibd-tint); }
.ibd-option.is-selected .ibd-dot { border: 5px solid var(--ibd-navy); }
.ibd-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- 診断ページ: 結果レポート ---------- */
.ibd-report { border: 1px solid var(--ibd-line); }
.ibd-r-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px; background: var(--ibd-navy); color: #fff; font-size: 13px; }
.ibd-rh-r { display: flex; align-items: center; gap: 12px; }
.ibd-mini { padding: 3px 12px; border: 1px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.ibd-mini:hover { background: rgba(255, 255, 255, .12); }
.ibd-r-type { padding: 24px 22px 6px; }
.ibd-r-sub { font-size: 12px; font-weight: 700; color: var(--ibd-muted); }
.ibd-result-title { margin: 2px 0 8px !important; font-size: clamp(23px, 4.6vw, 32px); font-weight: 800; line-height: 1.4; color: var(--ibd-navy); }
.ibd-sub-chip { display: inline-block; margin-bottom: 8px; padding: 0 10px; border: 1px solid var(--ibd-navy); font-size: 12px; font-weight: 700; color: var(--ibd-navy); }
.ibd-result-desc { color: var(--ibd-muted); }
.ibd-dash { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 22px 6px; border-top: 1px solid var(--ibd-line); }
.ibd-radar { display: block; width: 100%; max-width: 250px; margin: auto; }
.ibd-rpoly { fill: rgba(211, 0, 0, .14); stroke: var(--ibd-red); stroke-width: 2.5; transform-origin: 120px 120px; animation: ibd-grow .8s ease-out; }
@keyframes ibd-grow { from { transform: scale(0); } }
.ibd-score { text-align: center; }
.ibd-lab { font-size: 12px; font-weight: 700; color: var(--ibd-muted); }
.ibd-big { font-size: 72px; font-weight: 800; line-height: 1.1; color: var(--ibd-navy); }
.ibd-outof { font-size: 13px; color: var(--ibd-muted); }
.ibd-lv { display: inline-block; margin-top: 8px; padding: 2px 12px; border-left: 4px solid var(--ibd-red); background: var(--ibd-tint); font-size: 14px; font-weight: 700; text-align: left; }
.ibd-metrics { padding: 0 22px 22px; }
.ibd-metric { margin: 10px 0; }
.ibd-mh { display: flex; justify-content: space-between; margin-bottom: 3px; font-size: 12px; font-weight: 700; }
.ibd-mt { height: 8px; overflow: hidden; background: #e6ebf1; }
.ibd-mf { width: 0; height: 100%; background: var(--ibd-navy); transition: width 1s ease; }
.ibd-mf.is-weak { background: var(--ibd-red); }

.ibd-advice { margin: 26px 0; padding: 24px; border: 1px solid var(--ibd-line); border-left: 4px solid var(--ibd-red); background: #fff; }
.ibd-advice-h, .ibd-subheading, .ibd-cta-h, .ibd-form-h { font-size: 19px; font-weight: 800; line-height: 1.5; color: var(--ibd-navy); }
.ibd-advice > .ibd-note:first-of-type { margin: 4px 0 0 !important; }
.ibd-advice-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.ibd-advice-tag { padding: 2px 11px; border: 1px solid #dbe3ed; background: var(--ibd-tint); font-size: 11px; font-weight: 700; color: var(--ibd-navy); }
.ibd-advice-summary { margin: 8px 0 12px; font-size: clamp(17px, 3.2vw, 20px); font-weight: 800; line-height: 1.65; color: var(--ibd-navy); }
.ibd-advice-why { margin: 0 0 15px !important; font-size: 13px; line-height: 1.8; color: #506176; }
.ibd-advice-block { margin: 10px 0; padding: 14px 15px; border: 1px solid #dce4ed; background: #f8fafc; }
.ibd-advice-block h5 { margin: 0 0 4px !important; font-size: 13px; font-weight: 800; color: var(--ibd-navy); }
.ibd-advice-block p { font-size: 13px; line-height: 1.8; }
.ibd-advice-block.is-warning { border-color: #f0d4d4; background: #fff8f8; }
.ibd-advice-action { margin: 16px 0 8px; padding: 17px 18px; background: var(--ibd-navy); color: #fff; }
.ibd-action-kicker { font-size: 11px; font-weight: 800; letter-spacing: .09em; color: #ffb3b3; }
.ibd-advice-action p { margin-top: 4px !important; font-size: 15px; font-weight: 700; line-height: 1.7; color: #fff; }
.ibd-steps-h { margin: 16px 0 0 !important; font-size: 14px; font-weight: 800; color: var(--ibd-navy); }
.ibd-advice-steps { display: grid; gap: 7px; margin: 10px 0 14px !important; }
.ibd-advice-steps li { display: flex; gap: 10px; font-size: 13px; line-height: 1.75; }
.ibd-step-number { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ibd-tint); font-size: 11px; font-weight: 800; color: var(--ibd-navy); }
.ibd-subheading { margin-top: 28px !important; }
.ibd-point { position: relative; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--ibd-line); }
.ibd-point::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 7px; height: 7px; background: var(--ibd-red); }

/* ---------- 診断ページ: 次の一歩 ---------- */
.ibd-cta { margin-top: 30px; padding: 26px clamp(18px, 4vw, 30px); border-top: 4px solid var(--ibd-navy); background: var(--ibd-bg); }
.ibd-cta .ibd-kicker { margin-bottom: 6px; }
.ibd-cta-p { margin: 4px 0 14px !important; font-size: 14px; color: var(--ibd-muted); }
.ibd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.ibd-chips span { padding: 1px 10px; border: 1px solid var(--ibd-line); background: #fff; font-size: 12px; font-weight: 700; }
.ibd-ladder { display: grid; gap: 14px; }
.ibd-rung {
	position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; width: 100%; margin: 0;
	padding: 14px 16px; border: 1px solid #aab4c1; border-radius: 0; background: #fff; box-shadow: none;
	font: inherit; text-align: left; text-transform: none; letter-spacing: 0; color: var(--ibd-ink) !important; text-decoration: none !important; cursor: pointer;
	transition: border-color .12s, background .12s;
}
.ibd-rung:hover { border-color: var(--ibd-navy); background: #fafcfe; }
.ibd-eff { grid-row: span 2; min-width: 58px; padding: 6px 8px; background: var(--ibd-navy); color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.ibd-rung b { font-size: 15px; line-height: 1.5; }
.ibd-rung small { font-size: 12px; line-height: 1.55; color: var(--ibd-muted); }
.ibd-rung.is-rec { border-color: var(--ibd-red); box-shadow: 0 0 0 1px var(--ibd-red); }
.ibd-rung.is-rec .ibd-eff { background: var(--ibd-red); }
.ibd-rung.is-rec::after { content: "おすすめ"; position: absolute; top: -10px; right: 12px; padding: 0 9px; background: var(--ibd-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; }
.ibd-report-cta {
	display: flex; flex-direction: column; align-items: center; width: 100%; margin: 16px 0 0; padding: 12px 16px;
	border: 1px dashed #aab4c1; border-radius: 0; background: transparent; box-shadow: none; font: inherit; text-transform: none; letter-spacing: 0;
	color: var(--ibd-navy); cursor: pointer;
}
.ibd-report-cta:hover { background: #fff; border-style: solid; }
.ibd-report-cta b { font-size: 14px; }
.ibd-report-cta small { font-size: 12px; color: var(--ibd-muted); }

/* ---------- 診断ページ: フォーム ---------- */
/* 問い合わせ（入力 → 日時選択 → 完了）。入口ごとに項目は diagnosis.js の KINDS で切り替える */
.ibd-inq { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ibd-line); scroll-margin-top: 120px; }
.ibd-inq-steps { display: flex; gap: 4px; margin: 0 0 18px !important; counter-reset: ibd-s; }
.ibd-inq-steps li { flex: 1; position: relative; padding: 8px 6px 8px 34px; background: var(--ibd-tint); font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--ibd-muted); counter-increment: ibd-s; }
.ibd .ibd-inq-steps li::before { content: counter(ibd-s); position: absolute; left: 8px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: #fff; font-size: 11px; line-height: 20px; text-align: center; }
.ibd-inq-steps li.is-on { background: var(--ibd-navy); color: #fff; }
.ibd .ibd-inq-steps li.is-on::before { color: var(--ibd-navy); }
.ibd-inq-steps li.is-done { color: var(--ibd-navy); }
.ibd .ibd-inq-steps li.is-done::before { content: "✓"; background: var(--ibd-navy); color: #fff; }
.ibd-form select {
	width: 100%; margin: 0; padding: 10px 10px; border: 1px solid #aab4c1; border-radius: 0; background: #fff; box-shadow: none;
	font: inherit; font-size: 15px; color: var(--ibd-ink); height: auto;
}
.ibd-form-grid.ibd-form-grid3 { grid-template-columns: repeat(3, 1fr); }
.ibd-form .ibd-optin label { margin-top: -6px; }
.ibd-optin small { display: inline-block; font-size: 12px; color: var(--ibd-muted); }
.ibd-form .ibd-consent label { align-items: flex-start; }
.ibd-form .ibd-consent input { margin-top: 5px; flex: none; }

/* 日時選択（試作用の仮画面 / 予約サービスの埋め込み） */
.ibd-book-iframe { display: block; width: 100%; height: 700px; margin-top: 12px; border: 1px solid var(--ibd-line); }
.ibd-book-trx { margin-top: 12px; }
.ibd-demo { margin-top: 12px; padding: 16px; border: 1px solid var(--ibd-line); background: #fff; }
.ibd-demo-note { margin-bottom: 12px !important; padding: 6px 10px; border-left: 3px solid #e0a800; background: #fff8e1; font-size: 12px; line-height: 1.6; color: #6b5300; }
.ibd-days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ibd-day, .ibd-slot {
	margin: 0; padding: 8px 4px; border: 1px solid #aab4c1; border-radius: 0; background: #fff; box-shadow: none;
	font: inherit; text-transform: none; letter-spacing: 0; color: var(--ibd-ink); cursor: pointer; line-height: 1.3;
}
.ibd-day { display: flex; flex-direction: column; align-items: center; }
.ibd-day small { font-size: 11px; color: var(--ibd-muted); }
.ibd-day b { font-size: 15px; }
.ibd-day.is-on, .ibd-slot.is-on { border-color: var(--ibd-navy); background: var(--ibd-navy); color: #fff; }
.ibd-day.is-on small { color: #fff; }
.ibd-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin: 12px 0 16px; }
.ibd-slot { font-size: 14px; font-weight: 700; }
.ibd-slot:disabled { border-color: var(--ibd-line); background: var(--ibd-bg); color: #b3bac4; text-decoration: line-through; cursor: not-allowed; }

/* 送信後の画面 */
.ibd-done { padding: 22px; border: 1px solid var(--ibd-line); border-top: 4px solid var(--ibd-navy); background: #fff; outline: 0; }
.ibd-done-head { display: flex; align-items: center; gap: 14px; }
.ibd-done-photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.ibd-done-check { font-size: 13px; font-weight: 700; color: #1e6b34; }
.ibd-done-p { margin: 12px 0 0 !important; font-size: 15px; font-weight: 700; }
.ibd-done-next { margin: 14px 0 0 !important; counter-reset: ibd-n; }
.ibd .ibd-done-next li { position: relative; padding: 6px 0 6px 34px; font-size: 14px; counter-increment: ibd-n; }
.ibd .ibd-done-next li::before { content: counter(ibd-n); position: absolute; left: 0; top: 7px; width: 24px; height: 24px; border-radius: 50%; background: var(--ibd-tint); font-size: 11px; font-weight: 800; line-height: 24px; text-align: center; color: var(--ibd-navy); }
.ibd-done-up { margin-top: 18px; padding: 16px; background: var(--ibd-bg); }
.ibd-done-up p { margin-bottom: 12px !important; font-size: 14px; }
.ibd-form-intro { margin: 4px 0 6px !important; font-size: 14px; color: var(--ibd-muted); }
.ibd-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ibd-form label { display: block; margin: 14px 0 4px; font-size: 13px; font-weight: 700; color: var(--ibd-ink); }
.ibd-form input[type=email], .ibd-form input:not([type]), .ibd-form textarea {
	width: 100%; margin: 0; padding: 11px 12px; border: 1px solid #aab4c1; border-radius: 0; background: #fff; box-shadow: none;
	font: inherit; font-size: 16px; color: var(--ibd-ink);
}
.ibd-form input:focus, .ibd-form textarea:focus { outline: 0; border-color: var(--ibd-navy); box-shadow: 0 0 0 2px rgba(50, 74, 124, .15); }
.ibd-form textarea { min-height: 100px; }
.ibd-req, .ibd-opt { margin-left: 8px; padding: 0 6px; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.ibd-req { background: var(--ibd-red); color: #fff; }
.ibd-opt { background: var(--ibd-tint); color: var(--ibd-muted); }
.ibd-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ibd-topic { margin: 0; padding: 3px 12px; border: 1px solid #aab4c1; border-radius: 99px; background: #fff; box-shadow: none; font: inherit; font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ibd-ink); cursor: pointer; }
.ibd-topic.is-on { border-color: var(--ibd-navy); background: var(--ibd-navy); color: #fff; }
.ibd-consent label { display: flex; align-items: center; gap: 8px; margin: 18px 0 16px; font-weight: 500; }
.ibd-consent input { width: 18px; height: 18px; margin: 0; }
.ibd-consent a { color: var(--ibd-navy); text-decoration: underline; }
.ibd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ibd-status { margin-top: 12px; font-size: 14px; font-weight: 700; }
.ibd-status.is-ok { padding: 12px 14px; background: #edf7f0; color: #1f6b3a; }
.ibd-status.is-error { padding: 12px 14px; background: #fff1f1; color: var(--ibd-red-dark); }

/* ---------- 診断ページ: 画面下の追従ボタン（スマホ） ---------- */
.ibd-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--ibd-line); box-shadow: 0 -2px 8px rgba(27, 61, 94, .1); transition: transform .25s; }
.ibd-sticky .ibd-btn { display: flex; max-width: 680px; margin: auto; }
.ibd-sticky.is-off { transform: translateY(120%); }
@media (min-width: 1024px) { .ibd-sticky { display: none !important; } }

/* ---------- 導線: トップページ等の帯 [ibiz_diagnosis_banner] ---------- */
.ibd-banner {
	position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
	padding: clamp(28px, 5vw, 56px); color: #fff; background: linear-gradient(120deg, var(--ibd-navy-deep) 0%, var(--ibd-navy) 100%);
}
.ibd-banner::after {
	content: ""; position: absolute; left: -80px; bottom: -120px; width: 360px; height: 360px; opacity: .10;
	background: linear-gradient(135deg, transparent 50%, #fff 50%) 0 0 / 90px 90px; transform: rotate(-6deg); pointer-events: none;
}
.ibd-banner > * { position: relative; z-index: 1; }
.ibd-banner .ibd-kicker { color: #fff; }
.ibd-banner-title { margin: 12px 0 14px !important; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.35; color: #fff; }
.ibd-banner-title span { color: #fff; background: linear-gradient(transparent 70%, rgba(211, 0, 0, .85) 70%); }
.ibd-banner-lead { margin-bottom: 16px !important; font-size: 15px; color: #dbe3ee; }
.ibd-banner .ibd-meta { margin-bottom: 26px; }
.ibd-banner-start { min-width: 240px; }
.ibd-banner-q { padding: 24px; background: #fff; color: var(--ibd-ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.ibd-banner-qno { font-size: 13px; font-weight: 700; color: var(--ibd-red); }
.ibd-banner-qno small { font-size: 12px; color: var(--ibd-muted); }
.ibd-banner-qtext { margin: 0 0 14px !important; font-size: 20px; font-weight: 800; line-height: 1.5; color: var(--ibd-navy); }
.ibd-banner-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ibd-banner-option { padding: 10px 12px; font-size: 14px; text-decoration: none !important; color: var(--ibd-ink) !important; }
.ibd-banner-option:hover .ibd-dot { border-color: var(--ibd-navy); }
.ibd-banner-note { margin-top: 10px !important; font-size: 12px; color: var(--ibd-muted); }

/* ---------- 導線: 追従ボタン ---------- */
.ibd-float {
	position: fixed; right: 18px; bottom: 96px; z-index: 9990; display: flex; align-items: center; gap: 10px;
	padding: 10px 18px 10px 10px; background: var(--ibd-red); color: #fff !important; text-decoration: none !important;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .22); transform: translateY(20px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s;
}
.ibd-float.is-shown { transform: none; opacity: 1; visibility: visible; }
.ibd-float:hover { background: var(--ibd-red-dark); }
.ibd-float-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ibd-red); font-size: 13px; font-weight: 800; }
.ibd-float-text { display: flex; flex-direction: column; line-height: 1.35; }
.ibd-float-text b { font-size: 15px; }
.ibd-float-text small { font-size: 11px; opacity: .9; }

/* ---------- トップページの最初の画面 [ibiz_diagnosis_hero] ---------- */
/* 写真を全面に敷かず、見出しと診断の Q1 を最初の画面に収める。写真は担当者の顔として小さく使う */
.ibd-ht {
	position: relative; overflow: hidden; color: #fff;
	padding: 48px 0 96px; /* 下は次のカード列（テーマで -2.5em 重なる）の分を空ける */
	background: linear-gradient(120deg, var(--ibd-navy-deep) 0%, var(--ibd-navy) 100%);
}
.ibd-ht::after {
	content: ""; position: absolute; right: -40px; top: -60px; width: 420px; height: 420px; opacity: .10;
	background: linear-gradient(135deg, transparent 50%, #fff 50%) 0 0 / 96px 96px; transform: rotate(8deg); pointer-events: none;
}
.ibd-ht-inner {
	position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px;
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center;
}
.ibd-ht-text { min-width: 0; }
.ibd-ht .ibd-kicker { color: #fff; }
.ibd-ht .ibd-ht-title { margin: 14px 0 14px; font-size: clamp(28px, 3.1vw, 40px); font-weight: 800; line-height: 1.3; color: #fff !important; }
.ibd-ht-title span { background: linear-gradient(transparent 68%, rgba(211, 0, 0, .9) 68%); }
.ibd-ht-lead { max-width: 34em; margin-bottom: 22px !important; font-size: 15px; color: #dbe3ee; }
.ibd-ht-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.ibd-ht-ctas .ibd-btn { min-width: 270px; }
.ibd-ht-sub { color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: underline !important; text-underline-offset: 4px; }
.ibd-ht-sub:hover { opacity: .85; }
.ibd-ht-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 26px !important; font-size: 13px; color: #c9d4e2; }
.ibd-ht-facts li { display: block; }
.ibd-ht .ibd-ht-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 2px; background: var(--ibd-red); }
.ibd-ht-facts b { color: #fff; }
.ibd-ht-card { min-width: 0; padding: 22px 24px; background: #fff; color: var(--ibd-ink); box-shadow: 0 14px 40px rgba(0, 0, 0, .25); }
.ibd-ht-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ibd-line); }
.ibd-ht-photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 68% 22%; border: 3px solid var(--ibd-tint); }
.ibd-ht-card-kicker { font-size: 15px; font-weight: 800; line-height: 1.5; color: var(--ibd-navy); }
.ibd-ht-card-kicker span { display: inline-block; white-space: nowrap; margin-left: 4px; padding: 1px 7px; background: var(--ibd-red); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.ibd-ht-card-note { font-size: 12px; line-height: 1.6; color: var(--ibd-muted); }
.ibd-ht-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 11px; font-weight: 700; color: var(--ibd-muted); }
.ibd-ht-progress i { flex: 1; height: 3px; background: linear-gradient(90deg, var(--ibd-red) 10%, var(--ibd-line) 10%); }
.ibd-ht .ibd-ht-q { margin: 0 0 12px; font-size: 19px; font-weight: 800; line-height: 1.5; color: var(--ibd-navy); }

/* ---------- タブレット: 帯と最初の画面は1列に（2列だと設問の枠が狭く、業種名が折り返す） ---------- */
@media (max-width: 1023px) {
	.ibd-banner { grid-template-columns: 1fr; }
	.ibd-ht { padding: 36px 0 84px; }
	.ibd-ht-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.ibd-ht-card { max-width: 680px; }
}

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
	.ibd-dash { grid-template-columns: 1fr; }
	.ibd-r-head { flex-direction: column; align-items: flex-start; }
	.ibd-form-grid, .ibd-form-grid.ibd-form-grid3 { grid-template-columns: 1fr; }
	.ibd-inq-steps li { padding-left: 30px; font-size: 12px; }
	.ibd-days { grid-template-columns: repeat(3, 1fr); }
	.ibd-done { padding: 18px 16px; }
	.ibd-done-up .ibd-btn { width: 100%; }
	.ibd-actions .ibd-btn { flex: 1 1 140px; }
	.ibd-banner { grid-template-columns: 1fr; }
	.ibd-banner-start { width: 100%; }
	.ibd-banner-q { padding: 18px; }
	/* 幅が狭いと2列では文字が折り返すため、文字幅なりのボタンを折り返して並べる */
	.ibd-banner-options { display: flex; flex-wrap: wrap; }
	.ibd-banner-option { width: auto; gap: 8px; padding: 9px 12px; font-size: 14px; }
	.ibd-banner-option .ibd-dot { width: 14px; height: 14px; }
	.ibd-hero { padding: 28px 20px 26px; margin-bottom: 18px; }
	.ibd-hero-lead { font-size: 14px; }
	/* 最初の画面: 見出し → Q1 → 相談の順にして、Q1 を最初の画面に入れる */
	.ibd-ht { padding: 24px 0 72px; }
	.ibd-ht-inner { padding: 0 20px; gap: 18px; }
	.ibd-ht-text { display: contents; }
	.ibd-ht .ibd-kicker { order: 1; }
	.ibd-ht .ibd-ht-title { order: 2; margin: 0; font-size: 26px; }
	.ibd-ht-lead { order: 3; margin: 0 !important; font-size: 14px; }
	.ibd-ht-card { order: 4; padding: 16px; }
	.ibd-ht-ctas { order: 5; }
	.ibd-ht-ctas .ibd-btn { display: none; } /* Q1 のすぐ上にあるので重複を避ける */
	.ibd-ht-facts { order: 6; margin-top: 0 !important; }
	.ibd-ht-photo { width: 52px; height: 52px; }
	.ibd-ht .ibd-ht-q { font-size: 17px; }
	.ibd-float { left: 12px; right: 12px; bottom: 12px; justify-content: center; padding: 8px 14px; }
	.ibd-float-badge { width: 36px; height: 36px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.ibd *, .ibd-banner *, .ibd-float { animation: none !important; transition: none !important; }
}

/* ---------- 印刷（PDF 保存）: 診断レポート部分だけを出す ---------- */
@media print {
	body.ibd-has-diagnosis * { visibility: hidden !important; }
	body.ibd-has-diagnosis .ibd-print-area, body.ibd-has-diagnosis .ibd-print-area * { visibility: visible !important; }
	body.ibd-has-diagnosis .ibd-print-area { position: absolute; left: 0; top: 0; width: 100%; }
	.ibd-mini, .ibd-sticky { display: none !important; }
	.ibd-report, .ibd-advice, .ibd-point { break-inside: avoid; }
	.ibd-rpoly { animation: none; }
	.ibd, .ibd-r-head, .ibd-advice-action, .ibd-mf { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
