* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #082b61;
  background: #fff;
  line-height: 1.8;
}

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

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

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.header {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid #dce7f5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  width: min(1180px, 94%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #004296;
  font-weight: 800;
}

.logo-mark {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 800;
}

.nav a:hover {
  color: #005bd3;
}

.nav-contact {
  background: #003f91;
  color: #fff;
  padding: 25px 26px;
}

.section {
  padding: 74px 0;
}

.section-light {
  background: #f4f7fb;
}

.section-title {
  text-align: center;
  font-size: 28px;
  color: #003f91;
  font-weight: 900;
  margin-bottom: 38px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 42px;
  height: 3px;
  background: #003f91;
  display: block;
  margin: 12px auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #003f91;
  color: #fff;
  padding: 14px 34px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid #003f91;
  transition: 0.25s;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-outline {
  background: #fff;
  color: #003f91;
}

.buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  border: 1px solid #dce7f5;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 50, 120, 0.07);
  overflow: hidden;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.hero {
  min-height: 590px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.78), rgba(255,255,255,0.25)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80") center/cover;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: "UC";
  position: absolute;
  right: 7%;
  top: 14%;
  font-size: clamp(170px, 25vw, 360px);
  font-weight: 900;
  color: rgba(255,255,255,0.58);
  letter-spacing: -18px;
  line-height: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.35;
  color: #003f91;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.hero .lead {
  color: #003f91;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 22px;
}

.hero p {
  max-width: 560px;
  font-weight: 700;
  color: #17365f;
  margin-bottom: 30px;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(0, 60, 143, 0.13);
}

.about h2 {
  font-size: 34px;
  line-height: 1.5;
  color: #082b61;
  margin-bottom: 18px;
}

.about p {
  color: #34506f;
  margin-bottom: 14px;
}

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

.service-body {
  padding: 24px;
  text-align: center;
}

.service-icon {
  width: 62px;
  height: 62px;
  background: #003f91;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin: -55px auto 18px;
  position: relative;
  z-index: 2;
}

.service-card h3 {
  color: #003f91;
  font-size: 21px;
  margin-bottom: 12px;
}

.service-card p {
  color: #405a7a;
  font-size: 14px;
  text-align: left;
  margin-bottom: 18px;
}

.reason-box {
  background: #f4f7fb;
  padding: 54px 40px;
  border-radius: 4px;
}

.reason-card {
  text-align: center;
  padding: 26px 18px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.reason-icon {
  font-size: 38px;
  color: #003f91;
  margin-bottom: 12px;
}

.reason-card h3 {
  color: #003f91;
  margin-bottom: 10px;
  font-size: 18px;
}

.reason-card p {
  color: #405a7a;
  font-size: 14px;
}

.page-hero {
  height: 320px;
  background:
    linear-gradient(90deg, rgba(0, 43, 102, 0.93), rgba(0, 83, 175, 0.55)),
    var(--hero) center/cover;
  color: #fff;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  font-size: 46px;
  line-height: 1.3;
}

.page-hero p {
  font-size: 18px;
  opacity: 0.9;
}

.lead-box {
  background: #f3f7fc;
  border-radius: 14px;
  padding: 38px;
  margin-bottom: 42px;
}

.lead-box h2 {
  color: #003f91;
  font-size: 32px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.lead-box p {
  color: #24466d;
}

.detail-card {
  padding: 30px;
}

.detail-card h3 {
  color: #003f91;
  font-size: 21px;
  margin-bottom: 12px;
}

.detail-card p {
  color: #405a7a;
}

.news-list {
  border-top: 1px solid #dce7f5;
}

.news-item {
  display: grid;
  grid-template-columns: 150px 120px 1fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #dce7f5;
  padding: 18px 0;
}

.tag {
  border: 1px solid #9bb6dc;
  border-radius: 20px;
  text-align: center;
  font-size: 12px;
  color: #004296;
  padding: 4px 10px;
}

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

.form input,
.form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbd9ed;
  border-radius: 6px;
  font: inherit;
}

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

.cta {
  background:
    linear-gradient(90deg, rgba(0,31,88,0.98), rgba(0,64,160,0.88)),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.cta p {
  margin-bottom: 26px;
}

.cta .buttons {
  justify-content: center;
}

.cta .btn {
  min-width: 260px;
  background: #fff;
  color: #003f91;
}

.cta .btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.footer {
  background: #fff;
  color: #6e7d93;
  padding: 24px 0;
  border-top: 1px solid #dce7f5;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.footer-logo {
  color: #004296;
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 520px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .news-item {
    grid-template-columns: 1fr;
  }
}
/* スマホ最適化 */
@media (max-width: 768px) {
  .header {
    height: auto;
    padding: 14px 0;
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .logo-mark {
    font-size: 30px;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
  }

  .nav-contact {
    padding: 10px 16px;
    border-radius: 6px;
  }

  .hero {
    min-height: 520px;
    padding: 60px 0;
    background-position: center;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero .lead {
    font-size: 17px;
  }

  .hero p {
    font-size: 14px;
  }

  .buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: 220px;
  }

  .lead-box {
    padding: 26px;
  }

  .lead-box h2 {
    font-size: 24px;
  }

  .page-hero {
    height: 260px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}