/* nagoya-setsuritsu theme.css / ver managed by NST_ASSET_VER in functions.php */

:root {
	--nst-navy: #16305a;
	--nst-navy-deep: #0e2040;
	--nst-red: #c8442c;
	--nst-gold: #d4a017;
	--nst-bg: #f6f7fb;
	--nst-card-bg: #ffffff;
	--nst-text: #23283a;
	--nst-muted: #64708a;
	--nst-border: #e1e5ef;
	--nst-cta-h: 96px;
}

* , *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
	color: var(--nst-text);
	background: var(--nst-bg);
	line-height: 1.85;
	overflow-x: hidden;
	padding-bottom: var(--nst-cta-h);
}

img { max-width: 100%; height: auto; display: block; }
table { max-width: 100%; }
a { color: var(--nst-navy); text-decoration: none; }
a:hover { text-decoration: underline; }

.nst-skip-link {
	position: absolute; left: -999px; top: 0; background: #fff; padding: .5em 1em; z-index: 1000;
}
.nst-skip-link:focus { left: 8px; top: 8px; }

/* ===== header ===== */
.nst-header {
	background: var(--nst-navy-deep);
	color: #fff;
	padding: 1.2rem 1rem;
}
.nst-header-inner { max-width: 1080px; margin: 0 auto; }
.nst-site-title { margin: 0; font-size: 1.3rem; font-weight: 700; }
.nst-site-title a { color: #fff; }
.nst-site-desc { margin: .3rem 0 .8rem; font-size: .85rem; color: #cfd8ee; }
.nst-primary-nav, .nst-fallback-menu { display: flex; flex-wrap: wrap; gap: .4rem .8rem; list-style: none; padding: 0; margin: 0; }
.nst-primary-nav ul { display: flex; flex-wrap: wrap; gap: .4rem .8rem; list-style: none; padding: 0; margin: 0; }
.nst-primary-nav a, .nst-fallback-menu a { color: #e7ecfb; font-size: .85rem; white-space: nowrap; }

/* ===== main container ===== */
.nst-main { max-width: 1080px; margin: 0 auto; padding: 1.2rem 1rem 3rem; width: 100%; }

/* ===== breadcrumb ===== */
.nst-breadcrumb { font-size: .8rem; color: var(--nst-muted); margin: .5rem 0 1rem; overflow-x: auto; }
.nst-breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: .3rem; }
.nst-breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .3rem; color: var(--nst-muted); }

/* ===== hero ===== */
.nst-hero { background: linear-gradient(135deg, var(--nst-navy), var(--nst-navy-deep)); color: #fff; padding: 2.4rem 1rem; }
.nst-hero-inner { max-width: 1080px; margin: 0 auto; }
.nst-hero-title { font-size: clamp(1.4rem, 4vw, 2.2rem); line-height: 1.5; margin: 0 0 1rem; }
.nst-hero-lead { color: #dbe3f7; max-width: 760px; }
.nst-hero-routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.nst-route-card {
	display: flex; flex-direction: column; gap: .3rem;
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
	border-radius: 12px; padding: 1.1rem 1.2rem; color: #fff;
}
.nst-route-card:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.nst-route-tag { font-size: .72rem; letter-spacing: .05em; color: var(--nst-gold); font-weight: 700; }
.nst-route-title { font-size: 1.05rem; font-weight: 700; }
.nst-route-desc { font-size: .82rem; color: #cfd8ee; }

/* ===== section heading ===== */
.nst-section { margin: 2.4rem 0; }
.nst-section-title {
	font-size: 1.3rem; font-weight: 700; margin: 0 0 1rem;
	padding-left: .7rem; border-left: 5px solid var(--nst-red);
}

/* ===== category grid (top page) ===== */
.nst-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.nst-cat-card {
	display: flex; flex-direction: column; gap: .5rem;
	background: var(--nst-card-bg); border: 1px solid var(--nst-border); border-radius: 12px;
	padding: 1.2rem; color: var(--nst-text);
}
.nst-cat-card:hover { border-color: var(--nst-navy); text-decoration: none; box-shadow: 0 4px 14px rgba(22,48,90,.1); }
.nst-cat-icon { width: 40px; height: 40px; color: var(--nst-navy); }
.nst-cat-icon svg { width: 100%; height: 100%; }
.nst-cat-name { font-weight: 700; }
.nst-cat-desc { font-size: .82rem; color: var(--nst-muted); }

/* ===== article grid & cards (list layouts vary: rule10) ===== */
.nst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.nst-grid--related { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.nst-card {
	background: var(--nst-card-bg); border: 1px solid var(--nst-border); border-radius: 12px; overflow: hidden;
	display: flex; flex-direction: column;
}
.nst-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.nst-card-cat { font-size: .72rem; color: var(--nst-red); font-weight: 700; }
.nst-card-title { margin: 0; font-size: 1.02rem; line-height: 1.5; }
.nst-card-excerpt { font-size: .84rem; color: var(--nst-muted); margin: 0; }
.nst-card-img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.nst-card-band { height: 8px; background: linear-gradient(90deg, var(--nst-navy), var(--nst-red)); }

/* variant: image on top, large 1-col (default block flow already matches) */
.nst-card--img-top { }

/* variant: image left / right (row layout on wide screens) */
.nst-card--img-left, .nst-card--img-right { flex-direction: row; }
.nst-card--img-left .nst-card-media, .nst-card--img-right .nst-card-media { flex: 0 0 42%; }
.nst-card--img-left .nst-card-media img, .nst-card--img-right .nst-card-media img { height: 100%; aspect-ratio: auto; }
.nst-card--img-right { flex-direction: row-reverse; }
.nst-card--img-left .nst-card-body, .nst-card--img-right .nst-card-body { flex: 1 1 auto; min-width: 0; }

/* variant: flat = no image, color band */
.nst-card--flat .nst-card-body { padding-top: 1.2rem; }

@media (max-width: 640px) {
	.nst-card--img-left, .nst-card--img-right { flex-direction: column; }
	.nst-card--img-left .nst-card-media, .nst-card--img-right .nst-card-media { flex: none; }
	.nst-card--img-left .nst-card-media img, .nst-card--img-right .nst-card-media img { height: auto; aspect-ratio: 16/10; }
}

/* ===== article ===== */
.nst-article-header { margin-bottom: 1rem; }
.nst-article-cat { display: inline-block; font-size: .78rem; color: var(--nst-red); font-weight: 700; margin-bottom: .4rem; }
.nst-article-title { font-size: clamp(1.35rem, 4vw, 1.9rem); line-height: 1.5; margin: .2rem 0 .8rem; }
.nst-article-meta { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .78rem; color: var(--nst-muted); margin-bottom: 1rem; }
.nst-article-thumb img { border-radius: 12px; }
.nst-article-body { max-width: 100%; word-break: break-word; overflow-wrap: break-word; }
.nst-article-body h2 { font-size: 1.35rem; margin: 2.2rem 0 1rem; padding-bottom: .5rem; border-bottom: 3px solid var(--nst-navy); }
.nst-article-body h3 { font-size: 1.1rem; margin: 1.6rem 0 .8rem; }
.nst-article-body img { border-radius: 8px; margin: .8rem auto; }
.nst-article-body figure { margin: 1rem 0; text-align: center; }
.nst-article-body figcaption { font-size: .78rem; color: var(--nst-muted); margin-top: .3rem; }

/* ===== toc ===== */
.nst-toc { background: #fff; border: 1px solid var(--nst-border); border-radius: 10px; padding: 1rem 1.2rem; margin: 1.4rem 0; }
.nst-toc-title { font-weight: 700; margin: 0 0 .5rem; }
.nst-toc ol { margin: 0; padding-left: 1.2rem; }
.nst-toc li { font-size: .88rem; margin-bottom: .3rem; }

/* ===== source link ===== */
.nst-source { font-size: .8rem; color: var(--nst-muted); background: #eef1f8; padding: .5rem .8rem; border-radius: 8px; margin: .6rem 0 1.6rem; }
.nst-source-tag { font-weight: 700; color: var(--nst-navy); margin-right: .4rem; }

/* ===== table wrap (rule9) ===== */
.nst-table-wrap { overflow-x: auto; margin: 1rem 0; -webkit-overflow-scrolling: touch; }
.nst-table-wrap table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .88rem; }
.nst-table-wrap th, .nst-table-wrap td { border: 1px solid var(--nst-border); padding: .5rem .7rem; text-align: left; }
.nst-table-wrap th { background: #eef1f8; }

/* ===== helpful button ===== */
.nst-helpful { text-align: center; margin: 2rem 0; padding: 1.2rem; background: #fff; border: 1px dashed var(--nst-border); border-radius: 12px; }
.nst-helpful-text { margin: 0 0 .6rem; font-weight: 700; }
.nst-helpful-btn { border: none; background: var(--nst-navy); color: #fff; padding: .6rem 1.4rem; border-radius: 999px; font-size: .95rem; cursor: pointer; }
.nst-helpful-btn:hover { background: var(--nst-navy-deep); }
.nst-helpful-btn.is-done { background: var(--nst-gold); cursor: default; }

/* ===== recommend list ===== */
.nst-recommend { margin: 2.4rem 0; }
.nst-recommend-note { font-size: .78rem; color: var(--nst-muted); margin-top: -.4rem; }
.nst-recommend-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.nst-recommend-list li { background: #fff; border: 1px solid var(--nst-border); border-radius: 10px; padding: .8rem 1rem; }
.nst-recommend-list a { font-weight: 700; }
.nst-recommend-list p { margin: .3rem 0 0; font-size: .82rem; color: var(--nst-muted); }

/* ===== related ===== */
.nst-related { margin: 2.4rem 0; }

/* ===== tags chip ===== */
.nst-article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.nst-tag-chip { background: #eef1f8; color: var(--nst-navy); padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; }

/* ===== fixed CTA bar (rule8) ===== */
.nst-cta-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
	background: var(--nst-navy-deep); color: #fff;
	padding: .6rem 1rem .5rem;
	box-shadow: 0 -4px 14px rgba(0,0,0,.2);
}
.nst-cta-bar-inner {
	max-width: 1080px; margin: 0 auto;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.nst-cta-label { font-size: .82rem; color: #dbe3f7; flex: 1 1 220px; }
.nst-cta-btn {
	background: var(--nst-red); color: #fff; font-weight: 700; padding: .55rem 1.3rem; border-radius: 999px;
	white-space: nowrap; flex: 0 0 auto;
}
.nst-cta-btn:hover { background: #a83a26; text-decoration: none; }
.nst-cta-note { max-width: 1080px; margin: .3rem auto 0; font-size: .64rem; color: #aab4d1; line-height: 1.5; }

@media (max-width: 480px) {
	.nst-cta-label { display: none; }
	:root { --nst-cta-h: 78px; }
}

/* ===== footer ===== */
.nst-footer { background: #101a2f; color: #cfd8ee; padding: 2.2rem 1rem calc(var(--nst-cta-h) + 1.2rem); }
.nst-footer-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; }
.nst-footer-title { font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.nst-footer-desc { font-size: .82rem; }
.nst-footer-heading { font-weight: 700; color: #fff; margin: 0 0 .6rem; }
.nst-footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.nst-footer-list a { color: #cfd8ee; font-size: .84rem; }
.nst-footer-runner { font-size: .8rem; margin-top: .8rem; }
.nst-footer-copyright { text-align: center; font-size: .74rem; color: #7c88ab; margin: 1.6rem 0 0; }

/* ===== 404 / search ===== */
.nst-404, .nst-empty { text-align: center; padding: 2rem 1rem; }
.nst-404-title { font-size: 1.6rem; }

/* ===== archive header ===== */
.nst-archive-header { margin: 1rem 0 1.6rem; }
.nst-archive-title { font-size: 1.6rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.nst-archive-icon { width: 36px; height: 36px; color: var(--nst-navy); }
.nst-archive-icon svg { width: 100%; height: 100%; }
.nst-archive-eyebrow { display: block; font-size: .78rem; color: var(--nst-muted); }
.nst-archive-desc { color: var(--nst-muted); margin-top: .5rem; }

/* ===== sns row ===== */
.nst-sns-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.nst-sns-link { font-size: .8rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--nst-border); }

/* ===== stats section ===== */
.nst-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.nst-stat-card { background: #fff; border: 1px solid var(--nst-border); border-radius: 12px; padding: 1.2rem; display: flex; flex-direction: column; gap: .3rem; }
.nst-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--nst-navy); }
.nst-stat-label { font-size: .82rem; color: var(--nst-muted); }
.nst-stat-card .nst-source { margin: .4rem 0 0; padding: .3rem .5rem; font-size: .68rem; }

/* safety net: nothing should ever force horizontal scroll on the page itself */
.nst-main, .nst-header-inner, .nst-hero-inner, .nst-footer-inner { max-width: 100%; }
