@charset "utf-8";

/* トクニゴ建設（/tokunigo/construction/）専用。style.css の後に読み込む。
   分野色はイエロー #F6BE00（アプリの ic_launcher_background と hub.css の --soon-color と同じ値）。
   黄色は明るいため、文字色には使わず、文字には濃い黄土色 #8A6500 を使う。
   配信中ページ。 */

.hero--construction {
	color: var(--ink);
	background: linear-gradient(180deg, #fffdf2 0%, #fbe9a6 100%);
}
.hero--construction::before {
	opacity: .5;
	background-image: linear-gradient(rgba(18,33,43,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(18,33,43,.05) 1px, transparent 1px);
}
.hero--construction::after { border-color: #F6BE00; opacity: .7; }
.hero--construction .badge { border-color: rgba(138,101,0,.6); color: #8A6500; }
.hero--construction .tagline em { color: #8A6500; }
.hero--construction h1 span { color: var(--teal-dark); }
.hero--construction .desc { color: var(--muted); }
.hero--construction .app-icon { box-shadow: 0 10px 28px rgba(24,36,38,.22); }

/* 区分カード：土木・建築・ライフライン／設備 */
#topics .section-head { margin-bottom: 24px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 18px; }
.cat-card {
	display: grid;
	grid-template-rows: auto 1fr;
	background: #fffdf8;
	border: 1px solid rgba(24,36,38,.12);
	border-top: 4px solid #F6BE00;
}
.cat-photo { position: relative; aspect-ratio: 1.65; background: var(--paper-2); }
.cat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-photo--building img { object-position: center 43%; }
.cat-copy { display: flex; flex-direction: column; padding: 16px 18px; }
.cat-copy h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.cat-description { margin: 4px 0 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cat-count { margin: auto 0 0; color: #8A6500; font-size: 13px; font-weight: 800; white-space: nowrap; }
.cat-note { margin: 0; color: var(--muted); font-size: 13.5px; }

@media (max-width: 800px) {
	.cat-grid { grid-template-columns: 1fr; gap: 10px; }
	.cat-card {
		grid-template: auto / clamp(76px, 23vw, 132px) minmax(0, 1fr);
		border-top-width: 1px;
		border-top-color: rgba(24,36,38,.12);
		border-left: 4px solid #F6BE00;
	}
	.cat-photo { aspect-ratio: auto; min-height: 86px; }
	.cat-copy {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-content: center;
		align-items: baseline;
		gap: 3px 8px;
		padding: 10px 12px;
	}
	.cat-copy h3 { font-size: 16px; }
	.cat-description { grid-area: 2 / 1 / 3 / -1; margin: 0; }
	.cat-count { grid-area: 1 / 2; margin: 0; }
}

@media (max-width: 360px) {
	.cat-copy { grid-template-columns: minmax(0, 1fr); }
	.cat-count { grid-area: 3 / 1; }
}

/* ヒーロー画像：影は分野色（黄）にする（style.css の既定はティール） */
.hero--construction .hero-graphic { box-shadow: 18px 18px 0 #F6BE00; }
.hero--construction .hero-graphic img { border-color: rgba(24,36,38,.15); }
