body {
  font-family: 'Segoe UI', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f8f8;
  color: #222;
}

header {
  background: #005bac;
  color: #fff;
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
  margin: 0 2rem;
}

.header-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.header-nav li {
  margin: 0;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.header-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-nav a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: flex;
  align-items: center;
}

.phone-number {
  font-size: 1.2rem;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-contact {
  display: flex;
  align-items: center;
}

.contact-button {
  background: #ff6b35;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background: #e55a2b;
}

.container {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  padding: 0 1rem;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow-wrap: break-word;
  word-break: break-all;
  white-space: normal;
}

/* 右サイドバーは廃止 */
 /* .right-sidebar { display: none; } */

section {
  margin-bottom: 3rem;
}

.main-content p,
.main-content li {
  overflow-wrap: break-word;
  word-break: break-all;
  max-width: 100%;
  white-space: normal;
}

.company-table {
  width: 90%;
  max-width: 600px;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.company-table th,
.company-table td {
  padding: 1rem 0.5rem;
  border-bottom: 1px solid #eee;
}

.company-table th {
  background: #f8f9fa;
  text-align: left;
  vertical-align: top;
  font-weight: bold;
  color: #333;
  width: 20%;
  white-space: nowrap;
}

.company-table td {
  vertical-align: top;
  color: #555;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.plans-table {
  width: 100%;
  max-width: 1000px;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.plans-table th {
  background: #f8f9fa;
  text-align: left;
  vertical-align: top;
  font-weight: bold;
  color: #333;
  width: 20%;
  white-space: nowrap;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #ddd;
}

.plans-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #ddd;
  vertical-align: top;
  color: #555;
}

.plans-table tr:last-child th,
.plans-table tr:last-child td {
  border-bottom: none;
}

.header-logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-top: -8px;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #eee;
  color: #555;
  font-size: 0.9rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 0.5rem;
  }

  .header-nav {
    margin: 0.5rem 0;
    order: 3;
    width: 100%;
  }

  .header-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-nav a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .header-logo-title h1 {
    font-size: 1.5rem;
  }

  .main-content {
    padding: 1rem;
  }

  .phone-number {
    font-size: 1rem;
  }

  .contact-button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}
