/* ===== 全体共通 ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
}

.logo img {
  height: 40px;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: #356CB6;
  font-weight: bold;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px 0;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  z-index: 998;
}

.mobile-menu a {
  color: #356CB6;
  font-weight: bold;
  text-decoration: none;
  margin: 10px 0;
}

.mobile-menu.show {
  display: flex;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 769px) {
  .mobile-menu,
  .hamburger {
    display: none !important;
  }

  .nav {
    display: flex;
  }
}

/* ===== メインビジュアル ===== */
.visual {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.visual a {
  display: block;
}

.first-visual {
  padding-top: 40px;
}

.mt40 {
    margin-top: 20px !important;
}

a.link-block {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.link-block:hover .contents-inner {
  background-color: #356CB6;
  color: #fff;
}

.content-area {
    position: relative;
}

#contact {
    background-color: #fff;
    text-align: center;
}

#contact .contents-inner {
    padding: 40px;
}

#partner {
    background: #f0f0f0;
}

#partner .contents-inner {
    text-align: center;
    padding: 30px;
}

#partner .logo-list {
    width: 1050px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

#partner .contents-inner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}

#partner .contents-inner-logos img {
  height: auto;
  width: auto;
  max-height: 60px;
}

#partner .contents-inner-logos .logo02 {
    width: 110px;
}

#partner .contents-inner-logos .logo03 {
    width: 170px;
}

.h2 {
    font-size: 1.5rem;
	color: #8C8C8C;
    letter-spacing: 0.12em;
    margin-bottom: 50px;
}

.footer {
  text-align: center;
  padding: 40px 0;
  background: #727171;;
}

/* ===== モバイル表示 ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }

  .mobile-menu a {
    text-decoration: none;
    color: #356CB6;
    font-weight: bold;
  }

  .mobile-menu.show {
    display: flex;
  }

  .visual {
    height: auto;
  } 
	
  .first-visual {
    padding-top: 40px;
  }

  .visual img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
	display: block;
  }
	
  .content-area p,
  .content-area h2 {
    font-size: 16px;
  }

  .contents-inner-logos img {
    height: 30px;
  }
	
  .contents-inner-logos img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
	display: block;
  } 
	
	#partner .contents-inner-logos {
    flex-direction: column;
    gap: 20px; /* 上下の間隔を少しあける */
  }

    #partner .contents-inner-logos .logo02,
    #partner .contents-inner-logos .logo03 {
    width: 140px; /* スマホサイズ用の幅 */
  }

  .footer p {
    font-size: 12px;
  }
}

