/* ヘッダ用css */

a {
  text-decoration: none;
}

ul,
li {
  list-style: none;
  white-space: nowrap;
}

/* ヘッダー */
.header {
    /* 常に最前面にヘッダを表示する */
    background-color: green;
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

@media screen and (min-width: 960px) {
  .header {
      /* 常に最前面にヘッダを表示する */
      background-color: green;
      width: 100%;
      height: 130px;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
  }
}

.header__inner {
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  height: inherit;
  position: relative;
}

@media screen and (min-width: 960px) {
  .header__inner {
    padding: 0 10px;
    display: flex;
    justify-content: unset;
    height: inherit;
    position: relative;
  }
}


/* ヘッダーのロゴ部分 */
.header__title {
  width: 80px;
}

@media screen and (min-width: 960px) {
  .header__title {
    width: 120px;
    margin-top: 10px;
  }
}

.header__title img {
  display: flex;
  width: 90%;
  height: 90%;
}

@media screen and (min-width: 960px) {
  .header__title img {
    display: block;
    width: 100%;
    height: 100%;
  }  
}

.header-title__logo2 {
  transform: translateX(80px) translateY(-38px);
  color: white;
  font-size: 30px;
  width: 120px;
}

@media screen and (min-width: 960px) {
  .header-title__logo2 {
    transform: translateX(130px) translateY(-65px);
    color: white;
    font-size: 46px;
    width: 200px;
  }
}

.header-title__logo3 {
  transform: translateX(200px) translateY(-70px);
}

@media screen and (min-width: 960px) {
  .header-title__logo3 {
    transform: translateX(320px) translateY(-115px);
  }
}



/* ヘッダーのメニュー部分 */
.header__menu {
  position: absolute;
  top: 70px;
  right: 0;
  left: 0;
  width: min(100%, 100svh);
  height: 100svh;
  transform: translateX(1000%);
  background-color: rgb(60, 128, 60);
  transition: ease .4s;
}

@media screen and (min-width: 960px) {
  .header__menu {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    top: 0;
    right: 0;
    left: 0;
/*    width: min(100%, 100svh);  /* 100svh使うと縦方向で縮まる */
    /* 100%指定だと右が少し外に出るので99%指定 */
    width: 99%;
    height: 100%;
    transform: translateX(0);
    background-color: inherit;
    transition: none;

    justify-content: flex-start;
  }
}

@media screen and (min-width: 960px) {
  .menu__items {
    width: 96%;
    height: 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: static;
  }
}

.menu-items {
  /* メニューの位置決めだけ。文字についてはリンクの方で設定 */
  padding-top: 20px;
  padding-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

@media screen and (min-width: 960px) {
  .menu-items {
    /* メニューの位置決めだけ。文字についてはリンクの方で設定 */
    padding-top: 100px;
    padding-bottom: inherit;
    
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  }
}



/* お問い合わせボタン */
@media screen and (min-width: 960px) {
  .menu__btn {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    align-items: center;
    height: 30px;
    justify-content: right;

    position: relative;
    bottom: 90px;
  }
}

.menu-btn {
  padding-top: 20px;
  padding-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}


@media screen and (min-width: 960px) {
  .menu-btn {
    padding: 0px 10px;  /* ボタンの位置 */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  }
}

.menu-btn__contact-btn {
  display: flex;

/*  padding: 8px 15px;    /* 図形のサイズは、リンク側で合わせる */
}

@media screen and (min-width: 960px) {
  .menu-btn__contact-btn {
    display: flex;
    align-items: center;

/*    padding: 15px 50px;  /* 図形のサイズは、リンク側で合わせる */
  }
}

.menu-btn__contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}



/* ハンバーガーメニュー */
.hamburger-menu {
  background-color: transparent;
  border-color: transparent;
  z-index: 9999;
}

/* PCでは非表示にする */
@media screen and (min-width: 960px) {
  .hamburger-menu {
    display: none;
  }
}

/* ハンバーガーメニューの線 */
.hamburger-menu {
  background: white;

  position: fixed;
  top: 12px;
  right: 12px;

  width: 45px;
  height: 45px;
}

.hamburger-menu span {
  width: 100%;
  height: 1px;
  background-color: green;
  position: relative;
  transition: ease .4s; /*ハンバーガーメニュークリック時の三本線の動きを遅延*/
  display: block;
}

.hamburger-menu span:nth-child(1) {
  top: 0;
}

.hamburger-menu span:nth-child(2) {
  margin: 8px 0;
}

.hamburger-menu span:nth-child(3) {
  top: 0;
}

/* ハンバーガーメニュークリック後のスタイル */
.header__menu.active {
  transform: translateX(0);
}

.hamburger-menu.active span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  top: -13px;
  transform: rotate(-45deg);
}




/* メニューのリンク */
.menu-items__item a {
  display: block;
  font-size: 14px;
  margin-bottom: 20px;
  margin-left: 5px;

  background-color: #026149;
  color: white;

  border-radius: 9999px; /* ピル型 */
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media screen and (min-width: 960px) {
  .menu-items__item a {
    font-size: 18px;
    margin-bottom: 20px;
    margin-left: 0;

    width: 100%;

    background-color: green;
    color: white;

    text-align: center;

    border-radius: none;
    text-decoration: none;
    font-weight: none;
    padding: 8px 30px;  /* リンククリック有効範囲の指定(文字付近もOKにするためのサイズ設定) */

    box-shadow: none;
    transition: none;
  }
}

.menu-items__item:last-child a {
  margin-bottom: 0;
}

.menu-btn__contact-btn a {
  display: block;
  font-size: 14px;
  margin-left: 5px;

  width: min(100%, 100svh);

  background-color: #026149;
  color: white;

  border-radius: 9999px;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media screen and (min-width: 960px) {
  .menu-btn__contact-btn a {
  display: block;
  font-size: 18px;
  margin-left: 0;

  width: 100%;

    background-color: #026149;
    color: white;

    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    padding: 15px 50px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
}

@media screen and (min-width: 960px) {
  .menu-items__item a {
    margin-bottom: 0;
  }
}

