:root {
 --blue-royal: #4f9657;
 --blue-deep: #3f7e48;
 --blue-darker: #2f5c38;
 --blue-light: #7ab07f;
 --blue-bg: #edf6ec;
 --gray-bg: #f7f7f5;
 --ink: #1e2228;
 --ink-soft: #5b6168;
 --line: #e3e3e0;
 --white: #ffffff;
 --amber: #d98e3d;
 --sans: "Noto Sans JP", sans-serif;
 --serif: "Noto Serif JP", serif;
}
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}
html {
 scroll-behavior: smooth;
}
body {
 font-family: var(--sans);
 color: var(--ink);
 background: var(--white);
 line-height: 1.85;
 font-size: 16px;
 -webkit-font-smoothing: antialiased;
}
img {
 display: block;
 max-width: 100%;
}
a {
 color: inherit;
 text-decoration: none;
}
a:focus-visible,
button:focus-visible {
 outline: 3px solid var(--blue-royal);
 outline-offset: 2px;
}
ul {
 list-style: none;
}
.wrap {
 max-width: 1140px;
 margin: 0 auto;
 padding: 0 24px;
}
.ph-img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 z-index: 1;
}

/* ===== Header (shared) ===== */
header {
 background: var(--white);
 border-bottom: 1px solid var(--line);
 position: sticky;
 top: 0;
 z-index: 50;
}
.header-inner {
 max-width: 1140px;
 margin: 0 auto;
 padding: 0 24px;
 display: flex;
 align-items: center;
 justify-content: space-between;
 height: 84px;
}
.brand {
 display: flex;
 align-items: center;
 gap: 12px;
}
.brand-logo {
 position: relative;
 width: 46px;
 height: 46px;
 border-radius: 8px;
 overflow: hidden;
 display: flex;
 align-items: center;
 justify-content: center;
 color: #fff;
 font-family: var(--serif);
 font-weight: 700;
 font-size: 20px;
 flex-shrink: 0;
}
.brand-text {
 font-size: 17.5px;
 font-weight: 700;
 color: var(--ink);
}
.brand-text small {
 display: block;
 font-size: 11px;
 font-weight: 400;
 color: var(--ink-soft);
 margin-top: 2px;
 letter-spacing: 0.02em;
}
nav.main {
 display: flex;
 align-items: center;
 gap: 32px;
}
.nav-links {
 display: flex;
 gap: 30px;
 font-size: 14.5px;
}
.nav-links a {
 padding: 8px 0;
 border-bottom: 2px solid transparent;
 transition:
  border-color 0.2s ease,
  color 0.2s ease;
}
.nav-links a:hover {
 border-color: var(--blue-royal);
 color: var(--blue-royal);
}
.nav-links a.current {
 color: var(--blue-royal);
 border-color: var(--blue-royal);
}
.header-cta {
 display: flex;
 align-items: center;
 gap: 14px;
}
.header-tel {
 text-align: right;
}
.header-tel .label {
 font-size: 10.5px;
 color: var(--ink-soft);
}
.header-tel .num {
 font-size: 18px;
 font-weight: 700;
 color: var(--blue-royal);
}
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 padding: 13px 26px;
 font-size: 14.5px;
 font-weight: 700;
 letter-spacing: 0.02em;
 border-radius: 7px;
 transition: all 0.2s ease;
 cursor: pointer;
 border: none;
 font-family: inherit;
}
.btn-primary {
 background: var(--blue-royal);
 color: #fff;
}
.btn-primary:hover {
 background: var(--blue-deep);
}

/* ===== Page hero ===== */
.page-hero {
 position: relative;
 min-height: 300px;
 display: flex;
 align-items: center;
 overflow: hidden;
 background: #33414f;
}
.page-hero-img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 z-index: 0;
}
.page-hero-bg {
 position: absolute;
 inset: 0;
 z-index: 1;
 background:
  linear-gradient(
   100deg,
   rgba(47, 92, 56, 0.88) 0%,
   rgba(47, 92, 56, 0.62) 42%,
   rgba(47, 92, 56, 0.28) 70%,
   rgba(47, 92, 56, 0.1) 100%
  ),
  linear-gradient(180deg, #6f8870 0%, #547359 30%, #3f5d44 55%, #283a2b 100%);
}
.page-hero-content {
 position: relative;
 z-index: 2;
 max-width: 1140px;
 margin: 0 auto;
 padding: 0 24px;
 width: 100%;
}
.ph-eyebrow {
 display: inline-flex;
 align-items: center;
 gap: 10px;
 font-size: 13px;
 color: #d7e3d5;
 font-weight: 600;
 margin-bottom: 18px;
 letter-spacing: 0.06em;
}
.ph-eyebrow::before {
 content: "";
 width: 28px;
 height: 2px;
 background: var(--amber);
}
.page-hero h1 {
 font-family: var(--serif);
 font-weight: 700;
 font-size: clamp(28px, 3.6vw, 42px);
 line-height: 1.5;
 color: #fff;
 margin-bottom: 16px;
}
.page-hero p {
 font-size: 15.5px;
 color: rgba(255, 255, 255, 0.88);
 max-width: 560px;
}
.crumbs {
 position: absolute;
 top: 20px;
 left: 0;
 right: 0;
 z-index: 2;
 max-width: 1140px;
 margin: 0 auto;
 padding: 0 24px;
 font-size: 12px;
 color: rgba(255, 255, 255, 0.7);
}
.crumbs a:hover {
 color: #fff;
}

/* ===== Section ===== */
.section {
 padding: 80px 0 96px;
}
.news-wrap {
 max-width: 880px;
 margin: 0 auto;
}

/* ===== Filter tabs ===== */
.filter-bar {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
 margin-bottom: 8px;
 padding-bottom: 30px;
 border-bottom: 1px solid var(--line);
}
.filter-btn {
 font-family: inherit;
 font-size: 13.5px;
 font-weight: 700;
 color: var(--ink-soft);
 background: var(--white);
 border: 1.5px solid var(--line);
 border-radius: 999px;
 padding: 9px 20px;
 cursor: pointer;
 transition: all 0.18s ease;
}
.filter-btn:hover {
 border-color: var(--blue-light);
 color: var(--blue-deep);
}
.filter-btn.active {
 color: #fff;
 background: var(--blue-royal);
 border-color: var(--blue-royal);
}
.filter-count {
 font-size: 13.5px;
 color: var(--ink-soft);
 margin: 22px 2px 4px;
}
.filter-count b {
 color: var(--ink);
 font-weight: 700;
}

/* ===== News list ===== */
.news-list {
 margin-top: 6px;
}
.news-item {
 display: grid;
 grid-template-columns: 128px 92px 1fr 20px;
 gap: 22px;
 align-items: center;
 padding: 24px 8px;
 border-bottom: 1px solid var(--line);
 transition: background 0.18s ease;
}
.news-item:first-child {
 border-top: 1px solid var(--line);
}
.news-item:hover {
 background: var(--gray-bg);
}
.news-date {
 font-size: 13.5px;
 color: var(--ink-soft);
 font-family: var(--serif);
}
.news-tag {
 font-size: 11.5px;
 font-weight: 700;
 border-radius: 999px;
 padding: 3px 12px;
 text-align: center;
 width: fit-content;
 border: 1px solid var(--blue-royal);
 color: var(--blue-royal);
}
.news-tag.t-koji {
 border-color: var(--amber);
 color: var(--amber);
}
.news-tag.t-saiyo {
 border-color: var(--blue-light);
 color: var(--blue-deep);
 background: var(--blue-bg);
}
.news-title {
 font-size: 15px;
 color: var(--ink);
 font-weight: 500;
}
.news-item:hover .news-title {
 color: var(--blue-deep);
}
.news-arrow {
 justify-self: end;
 color: var(--line);
 transition:
  color 0.18s ease,
  transform 0.18s ease;
}
.news-item:hover .news-arrow {
 color: var(--blue-royal);
 transform: translateX(2px);
}
.news-arrow svg {
 width: 18px;
 height: 18px;
 stroke: currentColor;
 fill: none;
 stroke-width: 2;
 stroke-linecap: round;
 stroke-linejoin: round;
 display: block;
}
.news-empty {
 text-align: center;
 padding: 60px 20px;
 color: var(--ink-soft);
 font-size: 14.5px;
}

/* ===== Pagination ===== */
.pagination {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 margin-top: 48px;
}
.page-btn {
 font-family: inherit;
 min-width: 42px;
 height: 42px;
 padding: 0 12px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 6px;
 font-size: 14px;
 font-weight: 700;
 color: var(--ink);
 background: var(--white);
 border: 1.5px solid var(--line);
 border-radius: 9px;
 cursor: pointer;
 transition: all 0.18s ease;
}
.page-btn:hover:not(:disabled):not(.active) {
 border-color: var(--blue-light);
 color: var(--blue-deep);
 background: var(--blue-bg);
}
.page-btn.active {
 background: var(--blue-royal);
 border-color: var(--blue-royal);
 color: #fff;
 cursor: default;
}
.page-btn:disabled {
 opacity: 0.4;
 cursor: not-allowed;
}
.page-btn svg {
 width: 15px;
 height: 15px;
 stroke: currentColor;
 fill: none;
 stroke-width: 2.2;
 stroke-linecap: round;
 stroke-linejoin: round;
}

/* ===== Footer (shared) ===== */
footer {
 background: var(--blue-darker);
 color: rgba(255, 255, 255, 0.82);
 padding: 52px 0 26px;
}
.footer-grid {
 display: grid;
 grid-template-columns: 1.3fr 1fr 1fr;
 gap: 40px;
 padding-bottom: 32px;
 border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.footer-brand .fb-name {
 font-size: 17.5px;
 font-weight: 700;
 color: #fff;
 margin-bottom: 14px;
}
.footer-brand p {
 font-size: 13.3px;
 color: rgba(255, 255, 255, 0.6);
 max-width: 300px;
}
.footer-col h6 {
 font-size: 12px;
 letter-spacing: 0.08em;
 color: rgba(255, 255, 255, 0.5);
 margin-bottom: 14px;
}
.footer-col ul {
 display: flex;
 flex-direction: column;
 gap: 9px;
 font-size: 13.3px;
}
.footer-col a:hover {
 color: #fff;
}
.footer-bottom {
 display: flex;
 justify-content: space-between;
 padding-top: 20px;
 font-size: 11.5px;
 color: rgba(255, 255, 255, 0.45);
 flex-wrap: wrap;
 gap: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
 nav.main {
  display: none;
 }
 .footer-grid {
  grid-template-columns: 1fr;
  gap: 26px;
 }
}
@media (max-width: 640px) {
 .header-inner {
  height: auto;
  min-height: 72px;
  padding: 14px 18px;
  flex-wrap: wrap;
  row-gap: 10px;
 }
 .brand-text {
  font-size: 14.5px;
 }
 .brand-text small {
  display: none;
 }
 .header-cta {
  width: 100%;
  justify-content: space-between;
 }
 .header-tel .label {
  display: none;
 }
 .header-tel .num {
  font-size: 15px;
 }
 .btn-primary {
  padding: 10px 18px;
  font-size: 13.5px;
 }
 .section {
  padding: 48px 0 64px;
 }
 .news-item {
  grid-template-columns: 1fr 20px;
  gap: 6px 16px;
  align-items: start;
  padding: 20px 6px;
 }
 .news-date {
  grid-row: 1;
  grid-column: 1;
 }
 .news-tag {
  grid-row: 2;
  grid-column: 1;
 }
 .news-title {
  grid-row: 3;
  grid-column: 1 / -1;
  margin-top: 4px;
 }
 .news-arrow {
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
 }
}
@media (prefers-reduced-motion: reduce) {
 html {
  scroll-behavior: auto;
 }
 * {
  transition: none !important;
 }
}

/* WordPress integration additions */
.filter-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
}
.pagination-wrap,
.pagination {
 margin-top: 40px;
}
.nav-links .page-numbers,
.pagination .page-numbers {
 display: inline-flex;
}
.navigation.pagination .nav-links {
 display: flex;
 justify-content: center;
 gap: 8px;
}
.navigation.pagination .page-numbers {
 min-width: 40px;
 height: 40px;
 align-items: center;
 justify-content: center;
 border: 1px solid var(--line);
 border-radius: 7px;
}
.navigation.pagination .page-numbers.current {
 color: #fff;
 background: var(--blue-royal);
 border-color: var(--blue-royal);
}
.is-demo {
 cursor: default;
}
.contact-form-preview button[type="button"],
.recruit-form-preview button[type="button"] {
 cursor: not-allowed;
}
