:root {
  --ink: #1a1a1a;
  --muted: #3d3d3d;
  --green: #0e7a45;
  --green-dark: #0b5e36;
  --paper: #f6f4ef;
  --line: #e4dfd6;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand img { width: 148px; height: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav a:hover { color: var(--green); }
.hero {
  background: var(--paper);
  display: grid;
  gap: 0;
}
.hero-copy { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.35; margin: 0 0 12px; }
.hero p { margin: 0 0 18px; font-size: 1.05rem; max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid var(--green);
}
.btn-main { background: var(--green); color: #fff; }
.btn-sub { background: #fff; color: var(--green-dark); }
.btn:hover { filter: brightness(1.05); }
.hero-photo img { width: 100%; height: auto; object-fit: cover; object-position: center center; }
.section { padding: 48px 0; }
.section h2 { font-size: 1.6rem; margin: 0 0 8px; }
.lead { margin: 0 0 20px; color: var(--muted); }
.cards { display: grid; gap: 16px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.card img { width: 100%; height: 180px; object-fit: cover; }
.card div { padding: 14px 16px 16px; }
.card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.card p { margin: 0; }
.card-main { display: block; color: inherit; text-decoration: none; }
.card-sub { padding: 0 16px 16px; }
.company-grid { display: grid; gap: 16px; align-items: center; }
.company-grid img { width: 100%; height: auto; border-radius: 12px; max-height: 460px; object-fit: cover; object-position: center 28%; }
.mag-carousel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin: 8px 0 18px; }
.mag-carousel button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.mag-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.mag-track::-webkit-scrollbar { display: none; }
.mag-track a { flex: 0 0 168px; scroll-snap-align: start; color: inherit; text-decoration: none; }
.mag-track img {
  width: 168px; height: 238px; max-width: none; object-fit: cover; object-position: top;
  border: 1px solid var(--line); background: #fff;
}
.mag-track span { display: block; margin-top: 6px; font-size: 0.92rem; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-list time { display: inline-block; min-width: 7em; color: var(--muted); }
.site-footer { background: #143326; color: #f3f7f4; padding: 32px 0; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; }
.org-grid { display: grid; gap: 12px; }
.unit { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.unit h3, .unit h4 { margin: 0 0 8px; }
.biz h3 { color: #1F4E8C; }
.admin h3 { color: #2E6B4F; }
.names { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.names li { background: #f3f3f3; border-radius: 6px; padding: 4px 8px; }
.names li.lead { background: #FFF176; font-weight: 700; }
.teams { display: grid; gap: 8px; margin-top: 10px; }
.note { margin: 8px 0 0; }
@media (min-width: 800px) {
  .hero { grid-template-columns: 1fr 1.15fr; align-items: center; }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 32px 28px 32px 0; }
  .hero-photo img { height: auto; min-height: 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .company-grid { grid-template-columns: 0.62fr 1fr; }
  .org-grid, .teams { grid-template-columns: repeat(3, 1fr); }
}
