/* =========================================================
   長崎県農林水産業担い手育成基金  main.css
   ========================================================= */
:root {
	--c-primary: #1f7a35;
	--c-primary-dark: #145225;
	--c-primary-light: #eef6ea;
	--c-leaf: #7cbf3a;
	--c-sea: #2a74c4;
	--c-orange: #e9a23b;
	--c-text: #333;
	--c-muted: #6b6b6b;
	--c-line: #e3e8e1;
	--c-bg: #f6f9f4;
	--c-white: #fff;
	--f-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	--f-round: "Zen Maru Gothic", var(--f-base);
	--f-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--radius: 14px;
	--shadow: 0 6px 24px rgba(20, 60, 30, .08);
	--container: 1200px;
	--header-h: 100px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--f-base);
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: .04em;
	color: var(--c-text);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { line-height: 1.5; margin: 0; }
button { font: inherit; }
.icon { width: 1em; height: 1em; flex-shrink: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: #fff; padding: 8px 16px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--c-leaf); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .8em 1.8em; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--f-round); font-weight: 700; text-decoration: none; line-height: 1.4;
	transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 1.25em; height: 1.25em; }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 4px 14px rgba(31, 122, 53, .25); }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--c-primary); border-color: #fff; }
.btn--white:hover { background: var(--c-primary-light); color: var(--c-primary-dark); }
.btn--lg { font-size: 1.05rem; padding: 1em 2.2em; }
.btn--block { display: flex; width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .97);
	backdrop-filter: blur(6px);
	box-shadow: 0 1px 0 var(--c-line);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	max-width: 1440px; margin-inline: auto; padding: 14px 40px; min-height: var(--header-h);
}
.site-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--c-text); }
.site-logo__mark, .site-logo__img { width: 52px; height: 52px; flex-shrink: 0; object-fit: contain; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.3; }
.site-logo__type { font-family: var(--f-round); font-weight: 700; font-size: .9rem; }
.site-logo__name { font-family: var(--f-round); font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; margin: 0; }
.site-logo__en { font-size: .62rem; letter-spacing: .02em; color: var(--c-muted); max-width: 300px; line-height: 1.35; margin-top: 3px; }

.gnav { display: flex; align-items: center; gap: 28px; }
.gnav__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.gnav__list a {
	position: relative; display: block; padding: 12px 14px;
	font-family: var(--f-round); font-weight: 700; font-size: .95rem; color: var(--c-text); text-decoration: none;
}
.gnav__list a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px;
	background: var(--c-primary); transform: scaleX(0); transition: transform .25s;
}
.gnav__list a:hover, .gnav__list .current-menu-item > a, .gnav__list .current_page_parent > a { color: var(--c-primary); }
.gnav__list a:hover::after, .gnav__list .current-menu-item > a::after, .gnav__list .current_page_parent > a::after { transform: scaleX(1); }
.gnav__tel { display: none; }
.menu-toggle { display: none; }

/* =========================================================
   Hero (front page)
   ========================================================= */
.hero { position: relative; height: clamp(460px, 42vw, 640px); overflow: hidden; background: #cfe6f2; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__veil {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(100deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .72) 30%, rgba(255, 255, 255, 0) 58%);
}
.hero__content { position: absolute; z-index: 2; left: max(40px, calc((100% - 1440px) / 2 + 80px)); top: 50%; transform: translateY(-54%); max-width: 680px; }
.hero__copy { margin: 0; font-family: var(--f-mincho); font-weight: 800; color: #2a2a2a; letter-spacing: .08em; line-height: 1.35; }
.hero__copy-line1 { display: block; font-size: clamp(1.6rem, 3.2vw, 2.9rem); }
.hero__copy-line2 { display: block; font-size: clamp(1.8rem, 3.6vw, 3.3rem); padding-left: 1.6em; }
.hero__copy em { font-style: normal; color: var(--c-primary); font-size: 1.7em; line-height: 1; text-shadow: 0 2px 0 rgba(255, 255, 255, .6); }
.hero__swash { display: block; width: min(620px, 92%); height: 26px; color: var(--c-leaf); margin: 4px 0 14px; }
.hero__lead span { display: block; }
.hero__lead { margin: 0; font-family: var(--f-round); font-weight: 500; font-size: clamp(.92rem, 1.2vw, 1.08rem); line-height: 2.1; color: #333; padding-left: 1.2em; }
.hero__badge {
	position: absolute; z-index: 2; right: max(80px, calc((100% - 1440px) / 2 + 100px)); top: 13%;
	width: 210px; height: 210px; border-radius: 50%;
	display: grid; place-items: center; text-align: center;
	background: rgba(255, 255, 255, .78); border: 2px dashed rgba(124, 191, 58, .7);
	box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}
.hero__badge p { margin: 0; font-family: var(--f-round); font-weight: 700; font-size: 1.05rem; line-height: 1.85; color: var(--c-primary-dark); letter-spacing: .12em; }
.hero__badge-icon { position: absolute; top: 18px; right: 34px; width: 34px; height: 34px; color: var(--c-primary); }
.hero__arrow {
	position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
	width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(40, 40, 40, .45); color: #fff; display: grid; place-items: center; transition: background .2s;
}
.hero__arrow:hover { background: rgba(31, 122, 53, .85); }
.hero__arrow .icon { width: 24px; height: 24px; }
.hero__arrow--prev { left: 18px; }
.hero__arrow--prev .icon { transform: scaleX(-1); }
.hero__arrow--next { right: 18px; }
.hero__dots { position: absolute; z-index: 3; left: 50%; bottom: 74px; transform: translateX(-50%); display: flex; gap: 10px; }
.hero__dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; box-shadow: 0 0 4px rgba(0, 0, 0, .25); }
.hero__dot.is-active { background: #fff; }

/* =========================================================
   Cards
   ========================================================= */
.cards { position: relative; z-index: 4; margin-top: -48px; }
.cards__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1360px; }
.card {
	display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); text-decoration: none; color: var(--c-text); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(20, 60, 30, .14); color: var(--c-text); }
.card__img { display: block; aspect-ratio: 800 / 330; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { position: relative; display: grid; grid-template-columns: 1fr 28px; grid-template-rows: auto auto; column-gap: 10px; padding: 14px 18px 22px 96px; min-height: 120px; }
.card__icon {
	position: absolute; left: 16px; top: -30px; width: 68px; height: 68px; border-radius: 50%;
	background: var(--c-primary); color: #fff; display: grid; place-items: center; border: 4px solid #fff;
}
.card__icon .icon { width: 30px; height: 30px; }
.card__title { font-family: var(--f-round); font-weight: 700; font-size: 1.3rem; letter-spacing: .1em; }
.card__text { grid-column: 1; font-size: .84rem; line-height: 1.75; color: var(--c-muted); }
.card__arrow {
	grid-column: 2; grid-row: 1 / 3; align-self: center;
	width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #555; display: grid; place-items: center; transition: background .2s, border-color .2s, color .2s;
}
.card__arrow .icon { width: 14px; height: 14px; }
.card:hover .card__arrow { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* =========================================================
   Top news
   ========================================================= */
.top-news { background: linear-gradient(180deg, #fff 0, var(--c-bg) 120px, var(--c-bg) 100%); padding: 32px 0 80px; margin-top: -1px; }
.top-news__panel {
	display: grid; grid-template-columns: 1fr 460px; gap: 36px; align-items: stretch;
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 22px 28px 26px; max-width: 1312px; margin-inline: auto;
}
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.sec-head__title { display: flex; align-items: center; gap: 12px; font-family: var(--f-round); font-size: 1.5rem; letter-spacing: .12em; }
.sec-head__icon { width: 32px; height: 32px; color: var(--c-primary); }
.sec-head__en { font-family: var(--f-base); font-size: .85rem; font-weight: 400; color: #9aa59a; letter-spacing: .06em; margin-left: 8px; }
.more-link { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text); text-decoration: none; font-size: .9rem; }
.more-link__circle { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-grid; place-items: center; transition: background .2s, color .2s; }
.more-link__circle .icon { width: 14px; height: 14px; }
.more-link:hover { color: var(--c-primary); }
.more-link:hover .more-link__circle { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list__item a {
	display: grid; grid-template-columns: 110px 96px 1fr 20px; align-items: center; gap: 16px;
	padding: 14px 10px 14px 18px; border-bottom: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; transition: background .2s;
}
.news-list__item a:hover { background: var(--c-primary-light); }
.news-list__item time { font-size: .95rem; letter-spacing: .05em; }
.news-list__title { font-size: .98rem; }
.news-list__arrow { width: 18px; height: 18px; color: #444; }
.news-list__item a:hover .news-list__title { color: var(--c-primary); }
.news-empty { padding: 24px 0; color: var(--c-muted); }

.cat-label {
	display: inline-block; min-width: 78px; text-align: center; padding: 2px 10px; border-radius: 4px;
	font-size: .78rem; font-weight: 700; color: #fff; background: #8a8a8a; line-height: 1.7; letter-spacing: .08em;
}
.cat-label--boshu { background: #8cbf6a; }
.cat-label--soudankai { background: #f3c47c; color: #6b4300; }
.cat-label--oshirase { background: var(--c-sea); }

.promo {
	position: relative; display: flex; flex-direction: column; justify-content: center; gap: 22px;
	min-height: 210px; border-radius: 10px; overflow: hidden; padding: 30px; text-decoration: none; color: var(--c-primary-dark);
	background: linear-gradient(90deg, rgba(240, 248, 225, .96) 0%, rgba(240, 248, 225, .88) 40%, rgba(240, 248, 225, 0) 72%), var(--promo-img) right center / cover no-repeat, #e8f3d8;
}
.promo__title { position: relative; font-family: var(--f-round); font-weight: 700; font-size: 1.35rem; line-height: 1.6; letter-spacing: .12em; width: fit-content; padding-right: 40px; }
.promo__icon { position: absolute; right: 0; top: 4px; width: 30px; height: 30px; color: var(--c-primary); }
.promo__btn {
	display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 8px 10px 8px 18px; border-radius: 999px;
	background: #fff; color: var(--c-text); font-size: .9rem; box-shadow: 0 3px 10px rgba(0, 0, 0, .08); transition: background .2s;
}
.promo:hover .promo__btn { background: var(--c-primary); color: #fff; }

/* contact strip */
.top-contact { background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary) 60%, #3d9a3a); color: #fff; padding: 52px 0; }
.top-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.top-contact__title { font-family: var(--f-round); font-size: 1.5rem; letter-spacing: .1em; }
.top-contact__text { margin: 6px 0 0; opacity: .92; }
.top-contact__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.top-contact__tel { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.top-contact__tel .icon { width: 38px; height: 38px; }
.top-contact__tel strong { display: block; font-size: 2rem; line-height: 1.2; letter-spacing: .06em; font-family: var(--f-round); }
.top-contact__tel small { font-size: .8rem; opacity: .9; }
.top-contact__tel:hover { color: #fff; opacity: .9; }

/* =========================================================
   Sub pages
   ========================================================= */
.page-hero {
	position: relative; padding: 56px 0 52px; color: #fff; text-align: center;
	background: linear-gradient(rgba(16, 70, 32, .78), rgba(16, 70, 32, .78)), var(--page-hero-img) center 60% / cover no-repeat, var(--c-primary-dark);
}
.page-hero__title { margin: 0; font-family: var(--f-round); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .16em; line-height: 1.4; }
.page-hero__en { margin: 4px 0 0; font-size: .85rem; letter-spacing: .2em; opacity: .85; text-transform: uppercase; }
.breadcrumb { font-size: .8rem; border-bottom: 1px solid var(--c-line); padding: 10px 0; color: var(--c-muted); }
.breadcrumb a { color: var(--c-muted); display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb__sep { margin: 0 8px; color: #bbb; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; padding-top: 48px; padding-bottom: 96px; }
.layout--single { grid-template-columns: 1fr; max-width: 860px; }

/* ---------- entry content ---------- */
.entry__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--c-muted); }
.entry__updated { font-size: .8rem; }
.entry__title { font-family: var(--f-round); font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 10px 0 28px; padding-bottom: 14px; border-bottom: 2px solid var(--c-line); position: relative; letter-spacing: .06em; }
.entry__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 120px; height: 2px; background: var(--c-primary); }
.entry__content > * + * { margin-top: 1.1em; }
.entry__content p { margin: 0; }
.entry__content p + p { margin-top: 1em; }
.entry__content h2 {
	position: relative; margin: 2.6em 0 1em; padding: 14px 20px 14px 56px;
	font-family: var(--f-round); font-size: 1.35rem; letter-spacing: .08em;
	background: var(--c-primary-light); border-radius: 10px; color: var(--c-primary-dark);
}
.entry__content h2::before {
	content: ""; position: absolute; left: 20px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%);
	background: var(--c-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-8.2'/%3E%3Cpath d='M12 13c0-4.3-3-7-8-7 0 4.5 3 7 8 7z'/%3E%3Cpath d='M12 11.2c0-4 2.8-6.7 8-6.7 0 4.2-2.9 6.7-8 6.7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-8.2'/%3E%3Cpath d='M12 13c0-4.3-3-7-8-7 0 4.5 3 7 8 7z'/%3E%3Cpath d='M12 11.2c0-4 2.8-6.7 8-6.7 0 4.2-2.9 6.7-8 6.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.entry__content > h2:first-child { margin-top: 0; }
.entry__content h3 {
	margin: 2em 0 .8em; padding: 0 0 8px 14px; font-family: var(--f-round); font-size: 1.15rem;
	border-left: 5px solid var(--c-primary); border-bottom: 1px dashed #c9d8c4; line-height: 1.5;
}
.entry__content h4 { margin: 1.6em 0 .6em; font-size: 1.05rem; color: var(--c-primary-dark); }
.entry__content ul, .entry__content ol { padding-left: 1.4em; }
.entry__content li + li { margin-top: .3em; }
.entry__content .wp-block-table { margin-left: 0; margin-right: 0; overflow-x: auto; }
.entry__content table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.7; }
.entry__content th, .entry__content td { border: 1px solid #dfe6dc; padding: 12px 14px; text-align: left; vertical-align: top; }
.entry__content table th:first-child:nth-last-child(2) { width: 32%; }
.entry__content thead th, .entry__content thead td { background: var(--c-primary); color: #fff; font-weight: 700; border-color: var(--c-primary); white-space: nowrap; }
.entry__content tbody tr:nth-child(even) { background: #f8fbf6; }
.entry__content .wp-block-table thead { border-bottom: 0; }
.entry__content .wp-block-table figcaption { font-size: .85rem; color: var(--c-muted); }
.entry__content .wp-block-image img { border-radius: 8px; }
.entry__content .is-style-lead, .entry__content .lead { font-size: 1.08rem; font-weight: 500; }

/* timeline (沿革) */
.entry__content .history { list-style: none; padding: 0; border-left: 2px solid #cfe2c6; margin-left: 8px; }
.entry__content .history li { position: relative; padding: 0 0 14px 24px; margin: 0; }
.entry__content .history li::before { content: ""; position: absolute; left: -7px; top: .65em; width: 12px; height: 12px; border-radius: 50%; background: var(--c-primary); border: 2px solid #fff; box-shadow: 0 0 0 2px #cfe2c6; }

/* PDF links */
.entry__content .pdf-link a, .entry__content a[href$=".pdf"] { }
.entry__content p.pdf-link { margin: 0; }
.entry__content p.pdf-link + p.pdf-link { margin-top: 10px; }
.entry__content p.pdf-link a {
	display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 10px;
	background: #f4f7f2; border: 1px solid #e1e9dc; color: var(--c-text); text-decoration: none; font-weight: 700; transition: background .2s, border-color .2s;
}
.entry__content p.pdf-link a::before {
	content: "PDF"; flex-shrink: 0; font-size: .7rem; font-weight: 700; letter-spacing: .05em; color: #fff; background: #d0453a; border-radius: 4px; padding: 2px 7px; line-height: 1.6;
}
.entry__content p.pdf-link a::after { content: "›"; margin-left: auto; font-size: 1.4rem; line-height: 1; color: var(--c-primary); }
.entry__content p.pdf-link a:hover { background: var(--c-primary-light); border-color: #bcd8b0; color: var(--c-primary-dark); }
.entry__content p:not(.pdf-link) a[href$=".pdf"]::after, .entry__content li a[href$=".pdf"]::after {
	content: "PDF"; display: inline-block; margin-left: 6px; font-size: .65rem; font-weight: 700; color: #fff; background: #d0453a; border-radius: 3px; padding: 0 5px; line-height: 1.6; vertical-align: 2px;
}

/* info box */
.entry__content .info-box { background: var(--c-bg); border: 1px solid #dde8d6; border-radius: 12px; padding: 20px 24px; }
.entry__content .info-box p + p { margin-top: .4em; }
.entry__content .note { font-size: .88rem; color: var(--c-muted); }
.entry__content .wp-block-image.qr img { width: 140px; border: 1px solid #ddd; border-radius: 6px; padding: 6px; background: #fff; }
.entry__content .wp-block-image.qr figcaption { font-size: .8rem; color: var(--c-muted); }

/* map */
.map-embed { position: relative; width: 100%; height: var(--map-h, 420px); border-radius: 12px; overflow: hidden; background: #e8ece6; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* post nav */
.post-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--c-line); font-size: .9rem; }
.post-nav a { color: var(--c-text); text-decoration: none; }
.post-nav span { display: block; font-size: .75rem; color: var(--c-muted); }
.post-nav__next { text-align: right; }
.post-nav__list { padding: 8px 22px; border-radius: 999px; border: 1px solid var(--c-primary); color: var(--c-primary) !important; }
.post-nav__list:hover { background: var(--c-primary); color: #fff !important; }

/* archive */
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.cat-filter a { display: block; padding: 6px 18px; border-radius: 999px; border: 1px solid #cfdcca; color: var(--c-text); text-decoration: none; font-size: .9rem; }
.cat-filter a.is-current, .cat-filter a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.news-list--archive { border-top: 1px solid var(--c-line); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-text); }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.notfound { text-align: center; margin: 24px 0; }

/* sidebar */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.side-widget__title {
	font-family: var(--f-round); font-size: 1rem; letter-spacing: .16em; padding: 0 0 10px; margin-bottom: 10px;
	border-bottom: 2px solid var(--c-primary); color: var(--c-primary-dark);
}
.side-nav, .side-news, .side-widget ul { list-style: none; margin: 0; padding: 0; }
.side-nav a {
	display: flex; align-items: center; gap: 8px; padding: 10px 6px; border-bottom: 1px solid var(--c-line);
	color: var(--c-text); text-decoration: none; font-size: .95rem;
}
.side-nav a::before { content: ""; width: 6px; height: 6px; border-top: 2px solid var(--c-primary); border-right: 2px solid var(--c-primary); transform: rotate(45deg); flex-shrink: 0; }
.side-nav a:hover, .side-nav .current-menu-item > a, .side-nav .current_page_parent > a { color: var(--c-primary); background: var(--c-primary-light); }
.side-news a { display: block; padding: 10px 2px; border-bottom: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-size: .88rem; line-height: 1.6; }
.side-news time { display: block; font-size: .75rem; color: var(--c-muted); }
.side-news a:hover { color: var(--c-primary); }
.side-contact { background: var(--c-bg); border-radius: 12px; padding: 18px; }
.side-contact__tel { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--f-round); font-weight: 700; font-size: 1.35rem; }
.side-contact__tel .icon { color: var(--c-primary); }
.side-contact__tel a { color: var(--c-text); text-decoration: none; }
.side-contact__hours { margin: 2px 0 14px; font-size: .75rem; color: var(--c-muted); line-height: 1.6; }

/* =========================================================
   Contact form
   ========================================================= */
.cf { background: var(--c-bg); border-radius: 14px; padding: 32px; margin-top: 8px; }
.cf-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid #dfe7da; }
.cf-label { font-weight: 700; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-top: 10px; }
.cf-badge { font-size: .7rem; padding: 1px 8px; border-radius: 3px; color: #fff; white-space: nowrap; line-height: 1.8; }
.cf-badge.is-req { background: #d0453a; }
.cf-badge.is-opt { background: #9a9a9a; }
.cf input[type="text"], .cf input[type="email"], .cf input[type="tel"], .cf select, .cf textarea {
	width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; border: 1px solid #cdd8c7; border-radius: 8px; background: #fff; color: var(--c-text);
}
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(31, 122, 53, .15); }
.cf .has-error input, .cf .has-error select, .cf .has-error textarea { border-color: #d0453a; background: #fff6f5; }
.cf-error { color: #c0392b; font-size: .85rem; margin: 6px 0 0 !important; }
.cf-error-box { background: #fdecea; color: #b03a2e; border-radius: 8px; padding: 12px 16px; margin-bottom: 8px; font-weight: 700; }
.cf-privacy { margin-top: 24px; background: #fff; border-radius: 8px; padding: 16px 20px; font-size: .85rem; line-height: 1.8; }
.cf-privacy__title { font-weight: 700; margin-bottom: 4px !important; }
.cf-agree { text-align: center; margin-top: 18px; }
.cf-agree label { cursor: pointer; font-weight: 700; }
.cf-agree input { width: 18px; height: 18px; vertical-align: -3px; accent-color: var(--c-primary); }
.cf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cf-submit { text-align: center; margin-top: 24px; }
.cf-submit .btn { border: 0; cursor: pointer; min-width: 300px; }
.cf-thanks { text-align: center; background: var(--c-primary-light); border-radius: 14px; padding: 40px 24px; }
.cf-thanks .icon { width: 48px; height: 48px; color: var(--c-primary); }
.cf-thanks__title { font-family: var(--f-round); font-weight: 700; font-size: 1.3rem; color: var(--c-primary-dark); margin: 10px 0 !important; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { position: relative; background: #f1f6ee; border-top: 4px solid var(--c-primary); }
.site-footer__main { padding: 48px 0 40px; }
.site-footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-logo--footer .site-logo__name { font-size: 1.2rem; }
.footer-info { margin: 18px 0 0; font-size: .9rem; line-height: 1.7; }
.footer-info div { display: flex; gap: 14px; }
.footer-info dt { font-weight: 700; width: 3em; flex-shrink: 0; color: var(--c-primary-dark); }
.footer-info dd { margin: 0; }
.footer-info a { color: var(--c-text); text-decoration: none; }
.site-footer__nav { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--c-text); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--c-primary); }
.site-footer .btn--white { border-color: var(--c-primary); }
.site-footer__copy { background: var(--c-primary-dark); color: #fff; text-align: center; padding: 14px 16px; }
.site-footer__copy small { font-size: .75rem; letter-spacing: .06em; }
.pagetop {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
	background: var(--c-primary); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
	opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.pagetop.is-show { opacity: 1; visibility: visible; }
.pagetop .icon { width: 22px; height: 22px; transform: rotate(-90deg); }
.pagetop:hover { background: var(--c-primary-dark); color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
	.site-header__inner { padding-inline: 24px; }
	.gnav { gap: 16px; }
	.gnav__list a { padding-inline: 10px; font-size: .9rem; }
	.gnav__list a::after { left: 10px; right: 10px; }
	.site-logo__en { display: none; }
	.top-news__panel { grid-template-columns: 1fr 380px; }
	.hero__badge { width: 180px; height: 180px; right: 80px; }
	.hero__badge p { font-size: .95rem; }
}

@media (max-width: 1080px) {
	:root { --header-h: 72px; }
	.site-header__inner { padding: 10px 20px; min-height: var(--header-h); }
	.site-logo__mark, .site-logo__img { width: 42px; height: 42px; }
	.site-logo__name { font-size: 1.15rem; }
	.site-logo__type { font-size: .78rem; }
	.menu-toggle {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
		width: 56px; height: 56px; border: 0; border-radius: 10px; background: var(--c-primary); color: #fff; cursor: pointer; padding: 0; z-index: 102;
	}
	.menu-toggle__bar { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
	.menu-toggle__label { font-size: .55rem; letter-spacing: .1em; line-height: 1; margin-top: 2px; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.gnav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 101; flex-direction: column; align-items: stretch; gap: 20px;
		background: #fff; padding: 20px 24px 40px; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s, visibility .3s;
	}
	.admin-bar .gnav { top: calc(var(--header-h) + 46px); }
	.gnav.is-open { opacity: 1; visibility: visible; transform: none; }
	.gnav__list { flex-direction: column; gap: 0; }
	.gnav__list a { padding: 16px 8px; border-bottom: 1px solid var(--c-line); font-size: 1.05rem; }
	.gnav__list a::after { display: none; }
	.gnav__cta { padding: 1em; }
	.gnav__tel { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin: 0; font-family: var(--f-round); font-weight: 700; font-size: 1.4rem; }
	.gnav__tel .icon { color: var(--c-primary); }
	.gnav__tel a { color: var(--c-text); text-decoration: none; }
	.gnav__tel small { width: 100%; text-align: center; font-size: .75rem; font-weight: 400; color: var(--c-muted); }
	body.menu-open { overflow: hidden; }

	.cards__grid { grid-template-columns: repeat(2, 1fr); }
	.top-news__panel { grid-template-columns: 1fr; }
	.promo { min-height: 200px; }
	.layout { grid-template-columns: 1fr; gap: 48px; }
	.sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 768px) {
	body { font-size: 15px; }
	.container { padding-inline: 16px; }
	.site-logo { gap: 10px; }
	.site-logo__name { font-size: clamp(.78rem, 3.5vw, .95rem); letter-spacing: 0; }
	.site-logo__mark, .site-logo__img { width: 36px; height: 36px; }
	.site-logo__type { font-size: .7rem; }
	.hero { height: auto; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-start; }
	.hero__veil { background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .75) 46%, rgba(255, 255, 255, 0) 72%); }
	.hero__content { position: relative; left: auto; top: auto; transform: none; padding: 36px 20px 0; max-width: none; }
	.hero__copy-line2 { padding-left: .4em; }
	.hero__lead { padding-left: 0; font-size: .9rem; line-height: 1.95; }
	.hero__lead span { display: inline; }
	.hero__badge { width: 128px; height: 128px; right: 14px; top: auto; bottom: 86px; }
	.hero__badge p { font-size: .72rem; line-height: 1.7; letter-spacing: .06em; }
	.hero__badge-icon { width: 22px; height: 22px; top: 10px; right: 22px; }
	.hero__arrow { width: 38px; height: 38px; top: auto; bottom: 64px; transform: none; }
	.hero__arrow--prev { left: 12px; }
	.hero__arrow--next { right: auto; left: 58px; }
	.hero__dots { bottom: 76px; left: auto; right: 160px; transform: none; }
	.hero__dots { display: none; }
	.cards { margin-top: -40px; }
	.cards__grid { gap: 14px; }
	.card__body { grid-template-columns: 1fr 24px; padding: 32px 14px 16px; min-height: 0; }
	.card__icon { left: 12px; top: -28px; width: 52px; height: 52px; }
	.card__icon .icon { width: 24px; height: 24px; }
	.card__title { grid-column: 1; font-size: 1.05rem; letter-spacing: .04em; margin-top: 4px; }
	.card__text { grid-column: 1 / -1; font-size: .78rem; }
	.card__arrow { grid-column: 2; grid-row: 2; width: 22px; height: 22px; }
	.top-news { padding: 24px 0 56px; }
	.top-news__panel { padding: 20px 16px; gap: 24px; }
	.sec-head__title { font-size: 1.25rem; }
	.sec-head__en { display: none; }
	.news-list__item a { grid-template-columns: auto 1fr 16px; grid-template-areas: "date cat arrow" "title title arrow"; gap: 6px 12px; padding: 14px 4px; }
	.news-list__item time { grid-area: date; font-size: .85rem; }
	.news-list__item .cat-label { grid-area: cat; justify-self: start; min-width: 0; font-size: .7rem; }
	.news-list__title { grid-area: title; font-size: .95rem; }
	.news-list__arrow { grid-area: arrow; }
	.promo { padding: 22px; background-position: center, 70% center; }
	.promo__title { font-size: 1.15rem; }
	.top-contact { padding: 40px 0; }
	.top-contact__title { font-size: 1.2rem; }
	.top-contact__tel strong { font-size: 1.6rem; }
	.top-contact__actions { width: 100%; flex-direction: column; align-items: stretch; gap: 18px; }
	.page-hero { padding: 36px 0 32px; }
	.layout { padding-top: 32px; padding-bottom: 64px; }
	.entry__content h2 { font-size: 1.15rem; padding: 12px 14px 12px 46px; }
	.entry__content h2::before { left: 14px; width: 20px; height: 20px; }
	.entry__content table { font-size: .85rem; }
	.entry__content th, .entry__content td { padding: 9px 10px; }
	.entry__content thead th { white-space: normal; }
	.cf { padding: 20px 16px; }
	.cf-row { grid-template-columns: 1fr; gap: 6px; }
	.cf-label { justify-content: flex-start; padding-top: 0; }
	.cf-submit .btn { min-width: 0; width: 100%; }
	.site-footer__nav { align-items: flex-start; }
	.footer-nav { justify-content: flex-start; }
	.post-nav { grid-template-columns: 1fr 1fr; }
	.post-nav__list { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

@media (max-width: 480px) {
	.site-logo__en { display: none; }
	.cards__grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .hero__arrow, .hero__dots, .pagetop, .sidebar, .menu-toggle { display: none !important; }
	.layout { grid-template-columns: 1fr; }
}
