* {
  /*outline: 1px solid red; /* はみ出し箇所を視覚化できる */
}


/***************header ここから***************/

.header {
  background: linear-gradient(to bottom,
          rgba(255, 255, 255, 0.8) 0%,
          rgba(255, 255, 255, 0.5) 50%,
          rgba(255, 255, 255, 0.0) 100%);

  /*-webkit-backdrop-filter: blur(10px);*/
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;

}

.header__logo img {
  height: auto; /* 高さをautoに設定 */
  max-height: 70px; /* 最大高さを設定 */
  width: auto; /* 幅をautoに設定 */
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}
   
.header__nav-list {
  display: flex;
  list-style-type: none;
}

.header__nav-item {
  margin-left: 30px;
}

.header__nav-item:first-child {
  margin-left: 0;
}

.header__nav-item a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header__nav-item a:hover {
  color: #007bff;
}



.has-submenu {
  position: relative; /* サブメニューの基準にする */
}

.submenu {
  display: none;
  position: absolute;
}

.has-submenu .submenu a {
  white-space: nowrap;
  display: block;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .submenu {
      flex-direction: column;
  }
}
/***************header ここまで***************/


/***************footer ここから***************/
.footer {
  width: 100%;
}

.footer__inner {
  margin: 0 auto;

}

.footer__logo-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.footer__logo {
  margin-bottom: 20px;
}

.footer__logo img {
  height: auto;
  max-height: 250px;
  width: auto;
  margin: 80px 0 0 80px;
}

.footer__nav-list {
  list-style-type: none;
  display: flex;
  justify-content: center;
  margin-right: 80px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer__nav-item a {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer__nav-item a:hover {
  color: #00b0ff;
}

.footer__address {
  font-size: 0.9rem;
  margin:0 0 50px 80px;
}

.footer__end {
  background-color: #333;
  color: #fff;
}

.footer__end-inner {
  max-width: 1280px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.footer__copyright {
  font-size: 0.8rem;
  margin: 30px 60px;
}

.footer__privacy {
  list-style-type: none;
}

.footer__privacy-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer__privacy-item a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  margin: 30px 60px;
}

.footer__privacy-item a:hover {
  color: #00b0ff;
}

/***************footer ここまで***************/


/*ハンバーガーメニュー*/
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  display: block;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .header__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  .header__logo {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .hamburger {
    display: flex;
  }

  .header__nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: rgb(250, 250, 250);
    position: absolute;
    top: 80px;
    left: 0;
    right: 0; /* ← 追加して画面右まで広げる */
    width: 100vw; /* ← 明示的に画面幅に制限 */

    z-index: 999;
  }

  .header__nav.active {
    display: block;
    max-height: 500px; /* 適当に十分な高さにしておく */
    padding: 20px 0;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: center;

  }

  .header__nav-item {
    margin: 10px 0;
  }

  .footer__logo {
    margin-bottom: 0;
  }

  .footer__logo img {
    margin: 3em auto 0 auto;
  }

  .footer__logo-nav {
    flex-direction: column;
  }

  .footer__address {
    font-size: 0.9rem;
    margin:0;
    text-align: center;
  }

  .footer__nav {
    margin: 0 auto;
  }

  .footer__nav-list {
    margin: 3em 0;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .footer__nav-item {
    margin: 10px 0;
  }
  
  .footer__nav-item a {
    font-size: 1.5rem;
  }

  .footer__privacy-list {
    flex-direction: column;
  }
  
  .footer__privacy-item {
    margin: 10px 0 30px 0;
  }

  .footer__end-inner {
    flex-direction: column;
  }

  .footer__copyright {
    margin:30px 0 0 0;
    font-size: 1.2em;
  }
}
