body {
  margin: 0;
  font-family: sans-serif;
  color: #222;
  background: #fff;
  padding-top: 60px;
}

.container {
  width: 100%;        /* ← 90%やめる */
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;    /* ← 余白はpaddingで管理 */
  box-sizing: border-box; /* ← 追加 */
}

/* header */
header {
  border-bottom: 1px solid #eee;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: 1100px;  /* 任意 */
  margin: 0 auto;     /* ← 中央寄せ */
  padding: 15px 20px; /* ← スマホ余白 */
  display: flex;              /* ← これも必要 */
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* ← これが超重要 */
}

.nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

/* ハンバーガー非表示（PC） */
.menu-toggle {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 30px;
}

.nav {
  margin-left: auto; /* ← これで右端へ */
  display: flex;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: #333;
  position: relative;
  padding: 4px 0;
}

/* ホバーで下線アニメ */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #007BFF;
  transition: width 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

/* カーソル */
.nav a:hover {
  color: #007BFF;
  cursor: pointer;
  transform: translateY(-1px);
}

/* アニメーション滑らかに */
.nav a {
  transition: all 0.2s ease;
}

/* 現在ページ表示（将来用） */
.nav a.active {
  font-weight: bold;
  border-bottom: 2px solid #007BFF;
}

/* hero */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.hero-left {
  text-align: center;
  flex: 1 1 300px;
}

.hero-left img {
  width: 160px;
  max-width: 100%;
}

.hero-right {
  flex: 2 1 400px;
  padding-top: 10px;
}

.hero-right h1 {
  font-size: 28px;
}

.hero-right .cloud-list h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.hero-right .cloud-list ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #2f6fed;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

/* section */
.section {
  padding: 60px 0;
  text-align: center;
}

/* Services cards */
.card-wrap {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 16px; /* ← 追加（重要） */
}

.card {
  text-align: center;
  padding: 16px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex: 1 1 250px;
  max-width: 300px;
  transition: transform 0.2s;
}

.card img {
  width: 30%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.card h3 {
  margin: 8px 0;
  font-size: 18px;
}

.card p {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.card:hover {
  transform: translateY(-5px);
}

/* Strengths - 縦並びで幅広く */
.strengths {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px; /* 600px → 720px (120%) */
  margin: 0 auto;
}

.strength-card {
  padding: 16px;
  border-radius: 8px;
  width: 100%;
  text-align: left; /* ← ここを left → center に変更 */
}

.strength-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: #133d5f; /* 青系統 */
}

.strength-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Company */
.company-table-wrapper {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  margin: 0 auto;
  padding: 20px 0; /* wrapper に上下余白を追加 */
}

.company-table {
  display: inline-table;
  max-width: 800px;
  width: 90%;       /* 親幅の90%まで広がる */
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.company-table th {
  background-color: #faf9f9;
  padding: 16px;
  text-align: left;
  border: 1px solid #ddd;
}

.company-table td {
  background-color: #fff;
  padding: 16px;
  border: 1px solid #eee;
}

/* Contact */
.mail {
  font-size: 20px;
  color: #2f6fed;
}

/* Footer */
footer {
  padding: 30px;
  text-align: center;
  font-size: 12px;
  color: #777;
}

/* responsive */
@media screen and (max-width: 768px) {
  .hero {
    padding: 40px 0;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-right h1 {
    font-size: 24px;
    text-align: center;
  }

  .card img {
    width: 50%;
  }

  .strength-card {
    text-align: center;
  }

  .menu-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.6); 
    backdrop-filter: blur(10px);
    display: none !important;
    flex-direction: column;
    margin-left: 0; 
    box-sizing: border-box; 
  }

  .nav.active {
    display: flex !important;
  }

  .nav ul {
    flex-direction: column;
    padding: 16px;
  }

  .nav li {
    padding: 12px 0;
  }
}


@media screen and (max-width: 480px) {
  .hero-right h1 {
    font-size: 20px;
  }

  .card-wrap {
    justify-content: center;
    gap: 10px;
  }

  .card {
    margin: 0 auto; /* ← 念のため中央 */
    flex: 1 1 100%;
    max-width: 100%;
  }

  .strength-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .company-table {
    font-size: 14px;
  }
}