:root {
  --navy: #0d2b4e;
  --navy-2: #16406e;
  --blue: #1565c0;
  --blue-light: #4a90d9;
  --green: #4caf50;
  --green-dark: #2f8f43;
  --ink: #1b2733;
  --muted: #5d6b7a;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 14px;
  --wrap: 1140px;
  --shadow: 0 6px 24px rgba(13, 43, 78, .08);
  --font: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--navy);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--navy);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav a.active { color: var(--green-dark); }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .06em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary,
.nav a.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(21, 101, 192, .28);
}
.btn-primary:hover,
.nav a.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
  line-height: 1;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1000px 480px at 78% 12%, rgba(76, 175, 80, .38), transparent 62%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, transparent 0 62px, rgba(255, 255, 255, .045) 62px 64px);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-top: 108px; padding-bottom: 108px; }
.hero .eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: #9fe0a6;
  margin: 0 0 18px;
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.32;
  letter-spacing: .01em;
}
.hero p.lead {
  margin: 0 0 34px;
  max-width: 660px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, .88);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* page header (sub pages) */
.page-head {
  color: #fff;
  background: linear-gradient(120deg, var(--navy), var(--blue));
  padding: 68px 0 60px;
}
.page-head .eyebrow {
  margin: 0 0 10px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .26em;
  color: #9fe0a6;
}
.page-head h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.page-head p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 700px; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }

.sec-head { margin-bottom: 44px; }
.sec-head .eyebrow {
  margin: 0 0 8px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--green-dark);
}
.sec-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  color: var(--navy);
  line-height: 1.45;
}
.sec-head p { margin: 0; color: var(--muted); max-width: 720px; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.stat .num {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}
.stat .num small { font-size: 1rem; font-weight: 700; color: var(--green-dark); margin-left: 4px; }
.stat .label { font-size: .86rem; color: var(--muted); margin-top: 4px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f2; }
.card .no {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.card h3 { margin: 0 0 10px; font-size: 1.12rem; color: var(--navy); }
.card p { margin: 0 0 14px; color: var(--muted); font-size: .93rem; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .88rem; }
.card ul li { margin-bottom: 4px; }

/* ---------- news ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid;
  grid-template-columns: 120px 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.news-item:hover { background: var(--bg-soft); }
.news-item time { color: var(--muted); font-size: .86rem; letter-spacing: .04em; }
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  background: #e8f2fd;
  color: var(--blue);
  white-space: nowrap;
}
.tag.green { background: #e7f6e9; color: var(--green-dark); }
.tag.navy { background: #e6ebf3; color: var(--navy); }
.news-item h3 { margin: 0; font-size: .98rem; font-weight: 600; color: var(--ink); }
.news-item p { margin: 6px 0 0; font-size: .86rem; color: var(--muted); }

/* ---------- table ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
  font-size: .92rem;
  vertical-align: top;
}
.table th {
  width: 200px;
  color: var(--navy);
  background: var(--bg-soft);
  font-weight: 700;
  white-space: nowrap;
}
.table td { color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll .table th { width: auto; }

.note { font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* ---------- partners ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 12px; }
.partner {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- cta ---------- */
.cta {
  color: #fff;
  background: linear-gradient(115deg, var(--navy), var(--blue) 60%, var(--green));
  padding: 72px 0;
  text-align: center;
}
.cta h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta p { margin: 0 0 28px; color: rgba(255, 255, 255, .88); }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; max-width: 720px; }
.field label { display: block; font-size: .86rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.field .req { color: #c0392b; font-size: .72rem; margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: .94rem;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--blue-light);
  outline-offset: 1px;
  border-color: var(--blue-light);
}
.field textarea { min-height: 150px; resize: vertical; }

/* ---------- footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .74);
  padding: 62px 0 26px;
  font-size: .88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer img.flogo {
  height: 52px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 7px 10px;
  margin-bottom: 16px;
}
.footer h4 {
  margin: 0 0 14px;
  font-size: .74rem;
  letter-spacing: .18em;
  color: #9fe0a6;
  font-weight: 700;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: rgba(255, 255, 255, .74); }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; line-height: 1.9; }
.copy {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: rgba(255, 255, 255, .55);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards, .cards.three { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .tag { justify-self: start; }
  .table th { width: auto; }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
  .header .wrap { position: relative; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .hero .wrap { padding-top: 76px; padding-bottom: 76px; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand span { display: none; }
}

/* ---------- photo slot (A-2: drop a file at the path, no code edit) ---------- */
/* 写真が届いたら assets/img/ 内の指定ファイル名で置き換えるだけで反映されます。
   ファイルが無い間はプレースホルダーが表示されます。 */
.photo-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px dashed #b9c8d9;
  overflow: hidden;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot img.img-missing { display: none; }
.photo-slot .placeholder-label {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}
.photo-slot:has(img.img-missing) .placeholder-label { display: flex; }
/* Safari/older browsers without :has() fallback: JS toggles this class on the slot */
.photo-slot.is-missing .placeholder-label { display: flex; }
