* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.main-content {
  width: 100%;
  min-height: 100vh;
  padding: 20px 0 0;
}

/* ボディ全体 */
body {
  font-family: Arial, sans-serif;
  background-color: /*#f4f4f9*/#f0fff0;
}
header {
  position: static;
  top: 0;
  z-index: 10;
  min-height: 90px; /* 最小限の高さにするならこれでOK */
  width: 100%;
  background-color: white;
  border-bottom: #777 2px solid;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.header-inner {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap; /*折り返しを有効にする */
  align-items: center;
  justify-content: left;
  padding: 20px 20px 30px;
  gap: 20px;
  height: 100%;
  color: #222;
}

/* ロゴ画像 */
.logo-img {
  height: 70px;
  transform: translateX(-20px);
  cursor: pointer;
}
/* ナビゲーション */
.header-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.header-nav a,
.other-site a {
  color: #222;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}


.header-nav a:hover,
.other-site a:hover {
  text-decoration: underline;
}

/* 他のサイト */
.other-site {
  display: flex;
  align-items: center;
  padding-left: 20px;
  border-left: 2px solid #222;
  white-space: nowrap;
  height: 70px;
}

.other-site a {
    margin-left: 20px;
}
.other-site h2 {
  color: #222;
}

footer {
  background-color: white;
  color: #222;
  border-top: #777 2px solid;
  padding: 20px 10px;
  font-size: 0.9rem;
  margin-top: 40px;
  text-align: center;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #222;
  margin: 0 12px;
  text-decoration: none;
  font-weight: bold;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-info small {
  color: #222;
}

.footer-info small a {
  color: #222;
  text-decoration: underline;
}

.footer-info small a:hover {
  color: #222;
}

/* ---------- スマホ対応 ---------- */
@media screen and (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .other-site {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #f4f4f9;
    margin-top: 10px;
    padding-top: 10px;
    width: 100%;
  }

  .logo-img {
    height: 60px;
    margin-left: 20px;
  }

  .header-inner h1 {
    font-size: 1.2em;
  }
  .footer-links a {
    display: block;
    margin: 6px 0;
  }
  .main-content {
    padding: 0;
  }
}
