/* 🌈 全体設定 */
html, body {
	font-size: 16px;
	font-family: sans-serif;
	color: #393939;
    margin-top: 45px;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 40px;
	background: #ffffffcc;
}

h1 {
  padding-bottom: 0.3rem;
  margin-bottom: 3rem;
}

h2 {
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

h3{
    margin-left: 0em;
}
div{
    margin-top: 1em;
    margin-left: 3em;
    margin-bottom: 1em;
}
p{
    margin-left: 3em;
}
span.blackback{
    text-indent: 3em;
    background: #393939;
    color: #ffffffcc;
}

/* 🌸 コンテンツ */
main {
  max-width: 900px;
  margin: 2rem auto 4rem; /* footerの分下に余白を取る */
  padding: 1rem;
  box-sizing: border-box;
}

section {
  margin-bottom: 3rem;
}

/* 🌟 固定ナビバー */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffffcc;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.navbar h1 {
  margin: 0;
  font-size: 1.3rem;
  color: #005f73;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: #0077b6;
  font-weight: 500;
  position: relative;
}

.navbar a:hover {
  border-bottom: 2px solid #0077b6;
}


/* 📂 ドロップダウンメニュー */
.dropdown {
  position: relative;
}

/* 初期は非表示 */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  list-style: none;
  min-width: 180px;
  z-index: 200;
}

/* hoverしたら出る */
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: #0077b6;
}

.dropdown-menu a:hover {
  background: #e6f4f1;
  border: none;
}


/* 🎴 カードグリッド */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #0a9396;
  text-align: center;
}

/* ホバーで少し浮く */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 🦶 フッター */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  padding: 0.6rem 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  z-index: 50;
}

/* 📱 スマホ対応 */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .navbar h1 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .navbar ul {
    flex-direction: column;
    gap: 0.6rem;
  }

  main {
    margin-top: 8rem;
  }
}

/* --- 確実にドロップダウンを制御する最終設定 --- */
.dropdown-menu {
  display: none !important;
}

.dropdown:hover .dropdown-menu {
  display: block !important;
}

/*リンクの下線消すやつ*/
a {
  text-decoration: none;
}