:root {
  --bg: #ffffff;
  --bg-soft: #f7f5ef;
  --bg-green: #eef5ef;
  --text: #222624;
  --muted: #6d746f;
  --line: #e7e2d7;
  --main: #4f7f63;
  --main-dark: #365f48;
  --accent: #d6a94a;
  --danger: #b84536;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(42, 45, 42, 0.08);
  --container: 1120px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.75;
  letter-spacing: 0.02em;
}

body.is-fixed {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.logo-text {
  display: grid;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 16px;
  font-weight: 800;
}

.logo-text span {
  color: var(--muted);
  font-size: 12px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #343936;
  font-size: 14px;
  white-space: nowrap;
}

.header-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.header-nav a:hover,
.header-nav a.is-active {
  color: var(--main-dark);
  border-color: var(--main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--main);
  color: #fff;
  box-shadow: 0 12px 26px rgba(79, 127, 99, .22);
}

.btn-secondary {
  background: #fff;
  color: var(--main-dark);
  border-color: rgba(79, 127, 99, .24);
}

.btn-light {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(214,169,74,.16), transparent 26%),
    linear-gradient(180deg, #fbfaf6 0%, #ffffff 100%);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--main-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--main);
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.22;
  letter-spacing: .01em;
}

.hero-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.hero-card {
  position: relative;
  min-height: 430px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center;
}

.photo-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(42, 45, 42, .04);
}

.photo-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.photo-card-body {
  padding: 18px 20px 20px;
}

.photo-card-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.photo-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.image-strip img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.facility-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.hero-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.info-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  font-size: 14px;
}

.info-row + .info-row {
  margin-top: 7px;
}

.info-row dt {
  color: var(--muted);
  font-weight: 700;
}

.info-row dd {
  margin: 0;
  font-weight: 800;
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-title {
  margin: 0;
}

.section-title span {
  display: block;
  color: var(--main-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.35;
}

.section-desc {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 26px rgba(42, 45, 42, .04);
}

.service-card.with-photo {
  padding: 0;
  overflow: hidden;
}

.service-card.with-photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.service-card.with-photo .service-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-kicker {
  color: var(--main-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.service-card h3 {
  margin: 14px 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.service-card p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 14px;
}

.card-link {
  margin-top: auto;
  color: var(--main-dark);
  font-weight: 900;
  font-size: 14px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.work-item {
  padding: 28px 22px;
  min-height: 210px;
  border-right: 1px solid var(--line);
}

.work-item:last-child {
  border-right: none;
}

.work-no {
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
}

.work-item h3 {
  margin: 12px 0 10px;
  font-size: 20px;
}

.work-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 42px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.flow {
  display: grid;
  gap: 14px;
  counter-reset: flow;
}

.flow-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.flow-item::before {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-green);
  color: var(--main-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.flow-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.flow-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.news-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.news-title {
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg-green);
  color: var(--main-dark);
  font-size: 12px;
  font-weight: 900;
}

.cta {
  padding: 58px 0;
  background: var(--main-dark);
  color: #fff;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.cta p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.cta .btn-primary {
  background: #fff;
  color: var(--main-dark);
  box-shadow: none;
}

.site-footer {
  background: #1f2722;
  color: rgba(255,255,255,.78);
  padding: 42px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 34px;
  margin-bottom: 34px;
}

.footer-grid h3,
.footer-grid h4 {
  color: #fff;
  margin-top: 0;
}

.footer-grid p,
.footer-grid li {
  font-size: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 20px;
  font-size: 12px;
}

.page-hero {
  padding: 62px 0 44px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.content-box h2,
.content-box h3 {
  margin-top: 0;
}

.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--main);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
}

.table th {
  width: 220px;
  color: var(--main-dark);
  background: #fbfaf6;
}

.table tr:last-child th,
.table tr:last-child td {
  border-bottom: none;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.faq-item h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.faq-item h2::before {
  content: "Q.";
  color: var(--main-dark);
  margin-right: 8px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 28px;
  align-items: start;
}

.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  font-size: 14px;
}

.form span {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .header-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .header-nav.is-open {
    display: flex;
  }

  .header-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-grid,
  .split,
  .contact-layout,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .work-grid,
  .two-column,
  .footer-grid,
  .image-strip {
    grid-template-columns: 1fr;
  }

  .work-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .work-item:last-child {
    border-bottom: none;
  }

  .section-head {
    display: block;
  }

  .section-desc {
    margin-top: 12px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .table th,
  .table td {
    display: block;
    width: 100%;
  }

  .table th {
    border-bottom: none;
    padding-bottom: 6px;
  }

  .table td {
    padding-top: 6px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    height: 68px;
  }

  .header-nav {
    top: 68px;
  }

  .logo {
    min-width: 0;
  }

  .logo-img {
    width: 44px;
    height: 44px;
  }

  .logo-text span {
    display: none;
  }

  .logo-text strong {
    font-size: 14px;
  }

  .hero {
    padding: 46px 0 38px;
  }

  .section {
    padding: 54px 0;
  }

  .hero-card {
    min-height: 330px;
  }

  .hero-photo {
    height: 330px;
  }

  .hero-info {
    position: static;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cta h2 {
    font-size: 24px;
  }
}

/* --------------------------------
   Subtle motion
-------------------------------- */
@keyframes gentleFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gentleFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes gentleScaleIn {
  from {
    opacity: 0;
    transform: scale(.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero .eyebrow {
  animation: gentleFadeUp .62s ease both;
}

.hero h1 {
  animation: gentleFadeUp .72s ease .08s both;
}

.hero .hero-lead {
  animation: gentleFadeUp .72s ease .16s both;
}

.hero .hero-actions,
.hero .hero-note {
  animation: gentleFadeUp .72s ease .24s both;
}

.hero-card {
  animation: gentleScaleIn .78s ease .16s both;
}

.hero-photo {
  transition: transform 1.2s ease;
}

.hero-card:hover .hero-photo {
  transform: scale(1.025);
}

.logo-img {
  transition: transform .22s ease;
}

.logo:hover .logo-img {
  transform: translateY(-1px) scale(1.03);
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.24) 45%, transparent 75%);
  transform: translateX(-120%);
  transition: transform .56s ease;
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(120%);
}

.service-card,
.photo-card,
.content-box,
.panel,
.flow-item,
.news-item,
.contact-card,
.table,
.image-strip img {
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background-color .22s ease;
}

.service-card:hover,
.photo-card:hover,
.content-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(42, 45, 42, .08);
  border-color: rgba(79, 127, 99, .26);
}

.photo-card img,
.service-card.with-photo img,
.facility-photo,
.image-strip img {
  transition: transform .65s ease, filter .22s ease;
}

.photo-card,
.service-card.with-photo {
  overflow: hidden;
}

.photo-card:hover img,
.service-card.with-photo:hover img {
  transform: scale(1.025);
}

.image-strip img:hover,
.facility-photo:hover {
  transform: translateY(-2px);
}

.header-nav a {
  position: relative;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--main);
  transition: right .22s ease;
}

.header-nav a:hover::after,
.header-nav a.is-active::after {
  right: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  animation: gentleFadeUp .68s ease both;
}

.reveal-group > * {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-group.is-visible > * {
  animation: gentleFadeUp .68s ease both;
}

.reveal-group.is-visible > *:nth-child(1) { animation-delay: .02s; }
.reveal-group.is-visible > *:nth-child(2) { animation-delay: .08s; }
.reveal-group.is-visible > *:nth-child(3) { animation-delay: .14s; }
.reveal-group.is-visible > *:nth-child(4) { animation-delay: .20s; }
.reveal-group.is-visible > *:nth-child(5) { animation-delay: .26s; }

.news-item:hover {
  background: rgba(79, 127, 99, .045);
  padding-left: 12px;
  padding-right: 12px;
}

.flow-item:hover::before {
  animation: softFloat 1.8s ease-in-out infinite;
}

.site-header {
  transition: box-shadow .22s ease, background-color .22s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(35, 39, 36, .08);
  background: rgba(255, 255, 255, .98);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .reveal,
  .reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* --------------------------------
   SEO / accessibility support
-------------------------------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--main-dark);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}


/* --------------------------------
   Public contact / ICT publication
-------------------------------- */
.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: #fff;
}

.contact-method-card {
  min-height: 220px;
}

.contact-value {
  margin: 18px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--main-dark);
}

.contact-email {
  font-size: clamp(18px, 2.2vw, 26px);
  overflow-wrap: anywhere;
}

.ict-hero {
  background:
    radial-gradient(circle at 85% 16%, rgba(214,169,74,.14), transparent 28%),
    var(--bg-soft);
}

.ict-summary {
  border-left: 4px solid var(--main);
}

.ict-summary p:first-child {
  margin-top: 0;
}

.ict-summary p:last-child {
  margin-bottom: 0;
}

.ict-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.ict-facts h3 {
  margin: 8px 0 0;
  font-size: 18px;
}

.ict-document-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(42,45,42,.06);
}

.ict-document-card h3 {
  margin: 14px 0 8px;
  font-size: 24px;
}

.ict-document-card p {
  color: var(--muted);
}

.ict-document-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}

.ict-note {
  background: linear-gradient(135deg, #fff 0%, var(--bg-green) 100%);
}

.cta-actions {
  margin-top: 0;
}

@media (max-width: 980px) {
  .ict-facts,
  .ict-document-card {
    grid-template-columns: 1fr;
  }

  .ict-document-actions {
    min-width: 0;
  }
}


.ict-image-strip {
  margin-top: 22px;
}

.ict-image-note {
  margin: 10px 0 0;
}

.ict-system-grid {
  margin-top: 20px;
}

.ict-achievements-grid {
  margin-top: 0;
}

.ict-extra-achievements {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .ict-system-grid {
    grid-template-columns: 1fr;
  }
}

.ict-subhead {
  margin-top: 28px;
}
