@charset "UTF-8";
/* CSS Document */

/* ===============================
  共通
=============================== */
.header {
  background: rgba(255, 255, 255, 0.85);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  transition: .5s;
}

.header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  margin: 0 auto;
}

/* ロゴ */
.logo {
  flex-shrink: 0;
}

.title a img {
  height: 50px;
  max-width: 300px;
  width: 100%;
  display: block;
}

/* ボタン */
.header_button {
  background: #172c53;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid #172c53;
  transition: .5s;
}

/* ===============================
  PC（1025px以上）
=============================== */
@media screen and (min-width: 1025px) {

  .nav {
    flex-shrink: 0;
  }

  .nav_list {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
  }

  .nav_list li {
    white-space: nowrap;
    position: relative;
  }

  .nav_list li a {
    color: #000;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1px;
	text-decoration: none;  
  }
	
 .nav_list li a:hover::after {
  width: 100%;
  }
 .nav_list li a::after {
   border-bottom: solid 2px #ab4336;
   bottom: 0;
   content: "";
   display: block;
   transition: all .3s ease;
   -webkit-transition: all .3s ease;
   width: 0;
 }
 .nav_list li a.header_button::after {
   content: none;
 }
 .nav_list li a.header_button::after {
   display: none;
 }
  /* ドロップダウン */
  .nav_item > ul {
    position: absolute;
    display: none;
    left: 0;
  }

  .nav_item:hover > ul {
    display: block;
  }

  .nav_item > ul > li a {
    display: block;
    width: 180px;
    padding: 8px;
    background: #C1995D;
    color: #fff;
  }

  .nav_item > ul > li a:hover {
    background: #FFCA7B;
  }
.header_button:hover {
  background-color: #fff;
  border: 1px solid #172c53;
  border-radius: 4px;
  color: #172c53 !important;
  text-decoration: none;
}
  .hamburger {
    display: none;
  }
}

/* ===============================
  タブレット（768px〜1024px）
=============================== */
@media screen and (min-width: 768px) and (max-width: 1024px) {

  .nav {
    position: fixed;
    right: -320px;
    top: 0;
    width: 300px;
    height: 100vh;
    padding-top: 60px;
    background: #fff;
    transition: .6s;
    z-index: 200;
    overflow-y: auto;
  }

  .nav_list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav_item {
    text-align: center;
    padding: 0 14px;
  }

  .nav_item a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 10px;
    right: 15px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 300;
  }

  .hamburger_border {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 2px;
    background: #333;
  }

  .hamburger_border_top { top: 14px; }
  .hamburger_border_center { top: 20px; }
  .hamburger_border_bottom { top: 26px; }
}

/* ===============================
  スマホ（767px以下）
=============================== */
@media screen and (max-width: 767px) {

  .header_inner {
    padding: 15px 10px;
  }

  .title a img {
    height: 30px;
	max-width: 180px;  
  }

  /* ←これが足りてない！！！！ */
  .nav {
    position: fixed;
    right: -280px;
    top: 0;
    width: 260px;
    height: 100vh;
    padding-top: 60px;
    background: #fff;
    transition: .6s;
    z-index: 200;
    overflow-y: auto;
  }

  .nav_list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav_item {
    text-align: center;
    padding: 0 14px;
  }

  .nav_item a {
    display: block;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 8px;
    right: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 300;
  }

  .hamburger_border {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 2px;
    background: #333;
  }

  .hamburger_border_top { top: 14px; }
  .hamburger_border_center { top: 20px; }
  .hamburger_border_bottom { top: 26px; }
}


/* ===============================
  共通（SP・タブレット用）
=============================== */

/* 背景 */
.black_bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #333;
  opacity: 0;
  visibility: hidden;
  transition: .6s;
  z-index: 100;
}

/* 開いた状態 */
.nav-open .nav {
  right: 0;
}

.nav-open .black_bg {
  opacity: .8;
  visibility: visible;
}

/* ハンバーガー変形 */
.nav-open .hamburger_border_top {
  transform: rotate(45deg);
  top: 20px;
}

.nav-open .hamburger_border_center {
  width: 0;
}

.nav-open .hamburger_border_bottom {
  transform: rotate(-45deg);
  top: 20px;
}

/* ===============================
  SP・タブレット 子メニュー
=============================== */
@media screen and (max-width: 1024px) {

  /* 子メニュー非表示 */
  .has_child .sub {
    display: none;
    margin: 0;
    padding: 0;
  }

  /* 開いた時 */
  .has_child.open .sub {
    display: block;
  }

  /* 子メニュー */
  .nav_item_ch {
    background: #FFCA7B;
    list-style: none;
    padding: 0;
  }

  .nav_item_ch a {
    display: block;
    padding: 12px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
  }

  /* 親メニュー */
  .has_child > a {
    position: relative;
  }

  /* ▼アイコン */
  .has_child > a::after {
    content: "▼";
    font-size: 10px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* 開いた時 */
  .has_child.open > a::after {
    content: "▲";
  }
}