:root {
  --brand: #0d6efd;
  --brand-dark: #0a58ca;
  --bg: #f7f9fc;
  --text: #1f2a44;
  --muted: #5f6b81;
  --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 110, 253, 0.1);
}
.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
}
.logo::before {
  content: "★";
  color: var(--brand);
  font-size: 18px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--brand-dark);
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0ff 0%, #f5f8ff 50%, #e0ebff 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(13, 110, 253, 0.18), transparent 45%),
              radial-gradient(circle at 80% 30%, rgba(13, 110, 253, 0.14), transparent 45%),
              radial-gradient(circle at 40% 80%, rgba(13, 110, 253, 0.12), transparent 40%);
  opacity: 0.8;
}
.hero::after {
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.0) 35%, rgba(13, 110, 253, 0.16) 100%);
  mix-blend-mode: multiply;
}
.hero-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 20px 92px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(13, 110, 253, 0.12);
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: 999px;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 13px;
}
.hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.35;
  font-weight: 800;
  color: var(--text);
}
.hero p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.3);
}
.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: grid;
  place-items: center;
}
.hero-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 45px rgba(13, 110, 253, 0.12);
  width: min(360px, 90%);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -60% -40% auto auto;
  background: radial-gradient(circle at center, rgba(13, 110, 253, 0.12), transparent 55%);
  transform: rotate(-18deg);
}
.hero-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-dark);
}
.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 52px 20px 70px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.card-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.media-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: 1px solid rgba(13, 110, 253, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 230px;
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13, 110, 253, 0.18);
  border-color: rgba(13, 110, 253, 0.25);
}
.media-visual {
  height: 120px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.18), rgba(13, 110, 253, 0.08)),
              repeating-linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0.12) 12px, rgba(255, 255, 255, 0.5) 12px, rgba(255, 255, 255, 0.5) 24px);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.media-visual::after {
  content: "";
  position: absolute;
  inset: 20% -20% auto auto;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.65);
  filter: blur(24px);
  transform: rotate(18deg);
}
.media-visual.jyutaku {
  background-image:
    linear-gradient(135deg, rgba(13, 110, 253, 0.18), rgba(13, 110, 253, 0.08)),
    url("images/jyutaku.webp");
}
.media-visual.hoken {
  background-image:
    linear-gradient(135deg, rgba(13, 110, 253, 0.18), rgba(13, 110, 253, 0.08)),
    url("images/hoken.webp");
}
.media-visual.jinzai {
  background-image:
    linear-gradient(135deg, rgba(13, 110, 253, 0.18), rgba(13, 110, 253, 0.08)),
    url("images/jinzai.webp");
}
.media-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.media-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.media-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(13, 110, 253, 0.12);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}
.link-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 700;
  margin-top: 4px;
}
footer {
  background: #0d1b2a;
  color: #d8e2f2;
  padding: 36px 20px 46px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.footer-link-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d8e2f2;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.footer-link-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 64px 20px 72px;
  }
  .hero-visual {
    order: -1;
  }
}
@media (max-width: 620px) {
  .nav {
    flex-wrap: wrap;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
  .hero h1 {
    font-size: 26px;
  }
  .media-card {
    min-height: 0;
  }
}

