/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #ecececf8;
}

/* ヘッダー */
header {
    background-color: #0d1b2a;
    color: #fff;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #4cc9f0;
}

/* メインビジュアル */
.hero {
    background: linear-gradient(rgba(33, 42, 53, 0.521), rgba(33, 42, 53, 0.7)), 
    url("eishoTop2.jpg") center/cover no-repeat;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
}

.cta-button {
    background-color: #4cc9f0;
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s, background 0.3s;
}

.cta-button:hover {
    background-color: #4361ee;
    transform: translateY(-3px);
}

/* セクション共通 */
section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #4cc9f0;
    margin: 15px auto;
}

/* グリッドレイアウト */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: #ffffffec;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    outline: 1px solid rgb(241, 241, 241);
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    margin-bottom: 15px;
    color: #0d1b2a;
}

/* 会社情報テーブル */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th, .info-table td {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.info-table th {
    width: 30%;
    background-color: #f9f9f9;
}

/* フッター */
footer {
    background-color: #0d1b2a;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 20px;
}

/* ===== レスポンシブヘッダー ===== */

/* ハンバーガーボタン（PCでは非表示） */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* スマホサイズ */
@media screen and (max-width: 768px) {

  /* ナビを隠す */
  nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #0d1b2a;
    display: none;
  }

  nav ul {
    flex-direction: column;
    padding: 20px 0;
  }

  nav ul li {
    margin: 15px 0;
    text-align: center;
  }

  /* ハンバーガーを表示 */
  .menu-toggle {
    display: block;
  }

  /* 表示状態 */
  nav.active {
    display: block;
  }
}