body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background-color: #fff;
}

header {
  background-color: #0a2a4a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  background: linear-gradient(to bottom, #0a2a4a, #1f3f5f);
  color: #fff;
  text-align: center;
  padding: 2rem 2rem;
}

.hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.buttons .btn {
  padding: 0.8rem 1.5rem;
  margin: 0 0.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.btn.light {
  background-color: #eee;
  color: #333;
}

.btn.dark {
  background-color: #1f3f5f;
  color: #fff;
}

section {
  padding: 3rem 2rem;
}

.about, .services .contact {
  background-color: #f9f9f9;
}

.kaisha {
width: 100%;
}

.kaisha th,
.kaisha td {
border: 1px solid #ccc;
padding: 20px;
}

.kaisha th {
font-weight: bold;
background-color: #dedede; 
}

.services .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3.8rem;
}

.service-item {
    position: relative;
    border: 1px solid #999;
    background-color: white;
    color: #333;
}

.service-item-title {
	
  position: absolute;
  display: inline-block;
  top: -2.6rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0rem 1rem;
  background-color: white;
  font-weight: 600;
  text-align:center;
  width:75%;
  border-radius: 20px 20px 20px 20px;
  background:#0a2a4a; 
}

.service-item h3 {
  font-family: 'Noto Serif JP', serif;
  color: #ffffff;
}

.service-item-body {
    padding: 1rem;
    line-height: 1.5;
}

.apology {
	font-weight: bold;
	color:#ff0000;
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

footer a {
  color: #ccc;
  text-decoration: none;
  margin: 0 0.5rem;
}
/* 既存スタイルはそのまま */

@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .buttons .btn {
    display: block;
    margin: 0.5rem auto;
    width: 80%;
    text-align: center;
  }

	.kaisha,
	.kaisha tr,
	.kaisha td,
	.kaisha th {display:block;}
	.kaisha th {width:auto;}
	
  .services .service-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 2rem 1rem;
  }

  footer {
    font-size: 0.9rem;
    padding: 1.5rem;
  }
}
