/* ==========================================================================
   NORTH AKITA TECHNO PLAZA — Joomla site template
   Design tokens
   Color   : leaf #6FB92C / forest #35692A / ink #26301F / paper #F6F8F1
             teal #1E9C8B / coral #E15A4A (from header logo mark)
   Type    : display "Zen Kaku Gothic New", body "Noto Sans JP",
             utility "Roboto Mono" (labels, numbers, dates)
   Layout  : fixed 1140px, two-column (main + sidebar), dot-fade signature
             motif borrowed from the header's circle pattern
   ========================================================================== */

:root{
	--leaf: #6FB92C;
	--leaf-dark: #35692A;
	--leaf-pale: #E7F3DA;
	--teal: #1E9C8B;
	--coral: #E15A4A;
	--ink: #26301F;
	--ink-soft: #5B6455;
	--paper: #F6F8F1;
	--paper-deep: #EEF3E5;
	--white: #FFFFFF;
	--line: #DCE6CE;
	--radius: 6px;
	--container: 1140px;
	--shadow: 0 2px 14px rgba(38, 48, 31, 0.08);
}

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

html{ scroll-behavior: smooth; }

body{
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	font-size: 15px;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
	font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
	color: var(--leaf-dark);
	line-height: 1.5;
	margin: 0 0 .6em;
	font-weight: 700;
}

a{ color: var(--teal); text-decoration: none; }
a:hover{ color: var(--coral); text-decoration: underline; }

img{ max-width: 100%; height: auto; display: block; }

.container{
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

/* Skip link for keyboard users */
.skip-link{
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--leaf-dark);
	color: #fff;
	padding: 10px 16px;
	z-index: 999;
}
.skip-link:focus{ left: 10px; top: 10px; }

/* --------------------------------------------------------------------
   Signature motif: dot-fade — echoes the header's shrinking green
   circles. Used as a section divider throughout the site.
   -------------------------------------------------------------------- */
.dot-fade{
	display: flex;
	align-items: center;
	gap: 6px;
	height: 14px;
	margin: 0 0 28px;
	list-style: none;
	padding: 0;
}
.dot-fade li{
	border-radius: 50%;
	background: var(--leaf);
	flex: 0 0 auto;
}
.dot-fade li:nth-child(1){ width: 14px; height: 14px; background: var(--leaf-dark); }
.dot-fade li:nth-child(2){ width: 11px; height: 11px; }
.dot-fade li:nth-child(3){ width: 9px;  height: 9px; opacity: .8; }
.dot-fade li:nth-child(4){ width: 7px;  height: 7px; opacity: .6; }
.dot-fade li:nth-child(5){ width: 5px;  height: 5px; opacity: .4; }
.dot-fade li:nth-child(6){ width: 3px;  height: 3px; opacity: .25; }
.dot-fade.reverse{ flex-direction: row-reverse; }

/* Section heading with leaf-vein underline */
.section-title{
	position: relative;
	padding-bottom: 14px;
	margin-bottom: 22px;
}
.section-title::after{
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 64px; height: 3px;
	background: var(--leaf);
	border-radius: 3px;
}
.section-title::before{
	content: "";
	position: absolute;
	left: 68px; bottom: 0;
	width: 18px; height: 3px;
	background: var(--line);
	border-radius: 3px;
}

/* ==========================================================================
   Skip-to-top / accessibility helpers
   ========================================================================== */
.visually-hidden{
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
	background: var(--white);
	border-bottom: 4px solid var(--leaf);
}

.site-header__banner{
	background: var(--ink);
	overflow: hidden;
	position: relative;
	line-height: 0;
}
.site-header__banner img{
	width: 100%;
	height: auto;
	display: block;
}

/* Fallback text logo (shown if the banner image module is empty) */
.site-header__textlogo{
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 22px 0;
	flex-wrap: wrap;
}
.site-header__textlogo .en{
	font-family: "Zen Kaku Gothic New", sans-serif;
	font-weight: 700;
	font-size: 26px;
	color: var(--leaf-dark);
	letter-spacing: .02em;
}
.site-header__textlogo .jp{
	font-size: 13px;
	color: var(--ink-soft);
	font-family: "Roboto Mono", monospace;
}

/* Primary navigation */
.site-nav{
	background: var(--leaf-dark);
}
.site-nav .container{ display: flex; align-items: center; }
.site-nav ul{
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-wrap: wrap;
}
.site-nav ul ul{ display: none; } /* nested menus collapse; expand via JS if needed */
.site-nav li{ position: relative; }
.site-nav a{
	display: block;
	color: #fff;
	padding: 14px 18px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .02em;
	border-left: 1px solid rgba(255,255,255,.12);
	text-decoration: none;
}
.site-nav li:first-child a{ border-left: none; }
.site-nav a:hover,
.site-nav a:focus{
	background: var(--leaf);
	color: #fff;
}

.nav-toggle{
	display: none;
	background: var(--leaf-dark);
	color: #fff;
	border: none;
	padding: 14px 18px;
	font-size: 14px;
	width: 100%;
	text-align: left;
	font-family: inherit;
	cursor: pointer;
}

/* Search module in header */
.site-header__search{
	padding: 10px 0;
	background: var(--paper-deep);
	border-bottom: 1px solid var(--line);
}
.site-header__search .container{
	display: flex;
	justify-content: flex-end;
}
.site-header__search input[type="text"]{
	border: 1px solid var(--line);
	border-radius: var(--radius) 0 0 var(--radius);
	padding: 7px 12px;
	font-family: inherit;
	font-size: 13px;
	width: 200px;
}
.site-header__search button{
	border: none;
	background: var(--leaf);
	color: #fff;
	padding: 7px 16px;
	border-radius: 0 var(--radius) var(--radius) 0;
	cursor: pointer;
	font-size: 13px;
}
.site-header__search button:hover{ background: var(--leaf-dark); }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb-bar{
	background: var(--paper-deep);
	border-bottom: 1px solid var(--line);
	font-size: 12.5px;
	color: var(--ink-soft);
}
.breadcrumb-bar .container{ padding-top: 10px; padding-bottom: 10px; }
.breadcrumb-bar ol{
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	margin: 0; padding: 0;
}
.breadcrumb-bar li:not(:last-child)::after{
	content: "›";
	margin: 0 8px;
	color: var(--leaf);
}
.breadcrumb-bar a{ color: var(--ink-soft); }
.breadcrumb-bar a:hover{ color: var(--coral); }

/* ==========================================================================
   Banner top / bottom (promo modules)
   ========================================================================== */
.banner-strip{ padding: 22px 0 0; }
.banner-strip .container{
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Main layout: content + sidebar
   ========================================================================== */
.layout{
	display: flex;
	gap: 36px;
	align-items: flex-start;
	padding: 32px 0 48px;
}
.layout .main{ flex: 1 1 0; min-width: 0; }
.layout .sidebar{
	flex: 0 0 280px;
}
.layout.no-sidebar .main{ flex: 1 1 100%; }

/* Content card */
.content-card{
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 28px 30px;
	margin-bottom: 24px;
}

/* Sidebar modules */
.sidebar .moduletable{
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 3px solid var(--leaf);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin-bottom: 20px;
}
.sidebar .moduletable h3{
	font-size: 15px;
	margin-bottom: 12px;
	color: var(--leaf-dark);
}
.sidebar .moduletable ul{
	list-style: none;
	margin: 0; padding: 0;
}
.sidebar .moduletable li{
	border-bottom: 1px dashed var(--line);
}
.sidebar .moduletable li:last-child{ border-bottom: none; }
.sidebar .moduletable a{
	display: block;
	padding: 9px 0 9px 16px;
	position: relative;
	color: var(--ink);
	font-size: 13.5px;
}
.sidebar .moduletable a::before{
	content: "";
	position: absolute;
	left: 0; top: 16px;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--leaf);
}
.sidebar .moduletable a:hover{ color: var(--coral); text-decoration: none; }

/* Main-top / main-bottom module positions (full width strips inside main) */
.module-strip{ margin-bottom: 24px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
	background: var(--ink);
	color: #C9D2BE;
	margin-top: 20px;
}
.site-footer .dot-fade li{ background: var(--leaf); }
.site-footer__top{ padding: 34px 0 10px; }
.site-footer__cols{
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
	padding-bottom: 20px;
}
.site-footer__cols .moduletable{ flex: 1 1 220px; }
.site-footer__cols h3{
	color: #fff;
	font-size: 14px;
	border-left: 3px solid var(--leaf);
	padding-left: 10px;
	margin-bottom: 14px;
}
.site-footer__cols ul{ list-style: none; margin: 0; padding: 0; }
.site-footer__cols a{ color: #C9D2BE; font-size: 13px; line-height: 2.2; }
.site-footer__cols a:hover{ color: #fff; }

.site-footer__bottom{
	border-top: 1px solid rgba(255,255,255,.12);
	padding: 16px 0;
	font-size: 12px;
	font-family: "Roboto Mono", monospace;
	color: #8C9A80;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

/* ==========================================================================
   Typography helpers for Joomla content
   ========================================================================== */
.content-card table{ width: 100%; border-collapse: collapse; margin: 1em 0; }
.content-card table th,
.content-card table td{
	border: 1px solid var(--line);
	padding: 8px 12px;
	text-align: left;
}
.content-card table th{ background: var(--paper-deep); }
.content-card blockquote{
	border-left: 3px solid var(--leaf);
	margin: 1em 0;
	padding: 4px 18px;
	color: var(--ink-soft);
	background: var(--paper-deep);
}
.content-card pre, .content-card code{
	font-family: "Roboto Mono", monospace;
	background: var(--paper-deep);
	border-radius: 4px;
}
.content-card pre{ padding: 14px; overflow-x: auto; }

.pagination{ list-style: none; display: flex; gap: 6px; padding: 0; margin-top: 20px; }
.pagination a, .pagination span{
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 4px;
	font-size: 13px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px){
	.layout{ flex-direction: column; }
	.layout .sidebar{ flex: 1 1 auto; width: 100%; }

	.site-nav .container{ flex-direction: column; align-items: stretch; }
	.nav-toggle{ display: block; }
	.site-nav ul{
		display: none;
		flex-direction: column;
		width: 100%;
	}
	.site-nav ul.is-open{ display: flex; }
	.site-nav a{ border-left: none; border-top: 1px solid rgba(255,255,255,.12); }
	.site-nav li:first-child a{ border-top: none; }

	.site-header__search .container{ justify-content: center; }
	.site-header__search input[type="text"]{ width: 60%; }
}

@media (max-width: 560px){
	.container{ padding: 0 14px; }
	.content-card{ padding: 20px 18px; }
	.site-header__textlogo .en{ font-size: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
	html{ scroll-behavior: auto; }
	*{ transition: none !important; animation: none !important; }
}

/* Print */
@media print{
	.site-nav, .site-header__search, .sidebar, .site-footer, .banner-strip{ display: none; }
}
