/* 全体の基本設定 */
body {
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

/* ヘッダー */
header {
  background-image: url('head.png'); /* 画像のパスを指定 */
  background-size: cover; /* 画像をヘッダー全体にフィットさせる */
  background-position: center;
  color: white;
  padding: 10px;
}

header h1 {
  margin: 0;
  font-size: 2em;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  gap: 20px;
  padding: 0;
  margin-top: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: large;
}

nav a:hover {
  text-decoration: underline;
}

/* メインセクション */
main {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 20px;
}

section {
  margin-bottom: 40px;
}

h2 {
  border-bottom: 2px solid #004080;
  padding-bottom: 5px;
  margin-bottom: 15px;
  color: #004080;
}

/* お問い合わせフォーム */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

button {
  background-color: #004080;
  color: white;
  border: none;
  padding: 10px;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #003060;
}

/* フッター */
footer {
  background-color: #eee;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
  color: #666;
}
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu li {
  position: relative;
  cursor: pointer;
    color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: large;
  text-decoration: underline;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  color: #333;
  background-color: #f0f0f0;
  list-style: none;
  padding: 10px;
  border: 1px solid #ccc;
  min-width: 160px; /* 👈 ここで幅を指定 */
  white-space: nowrap; /* 👈 折り返しを防ぐ */
  z-index: 1000;
}

.submenu li {
  margin: 5px 0;
}

.dropdown.active .submenu {
  display: block;
}
.submenu li a {
  color: #333; /* ここで文字色を指定 */
  text-decoration: none;
  display: block;
  padding: 8px 12px;
}

.submenu li a:hover {
  color: #fff; /* ホバー時の文字色 */
  background-color: #007acc; /* ホバー時の背景色 */
}
