/* =========================================================
   ヘッダー用スタイル
   ========================================================= */

   .header {
    background-image: url(../image/common/header-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    margin-bottom: -10%;
    overflow: hidden;
  }
  
  .header-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding-top: 25px;
    margin-inline: auto;
    padding-bottom: 16%;
    width: 95%;
  }
  
  /* ロゴ部分 */
  .header-left {
    align-items: center;
    display: flex;
    gap: 15px;
  
    & .logo {
      margin: 0;
    }
  
    & .site-title {
      margin: 0;
      width: 176px;
    }
  }
  
  
  /* ヘッダー右コンテンツ */
  .right-area {
    align-items: center;
    display: flex;
    gap: 50px;
    padding-right: 460px;
  }
  
  
  /* グローバルナビ */
  .header-nav {
    & ul {
      display: flex;
      gap: 4px;
      margin: 0;
    }
  
    & a {
      color: #000;
      font-weight: bold;
      transition: .4s;
      padding: 8px 20px 10px 20px;
      border-radius: 30px;
    }
  
    & a:hover {
      background-color: #FF6A30;
      color: #fff;
      text-decoration: none;
    }

    & .nav-link {
      color: #000;
      font-weight: bold;
      transition: .4s;
      padding: 8px 20px 10px 20px;
      border-radius: 30px;
    }
  }
  
  
  /* サイト内検索＋お問い合わせ */
  .header-right {
    position: absolute;
    top: 42px;
    right: 40px;

    & .utility-section {
      align-items: center;
      display: flex;
      gap: 24px;
    }
  
    & .contact-button {
      margin: 0;
    }
  }
  
  
  /* 検索窓 */
  .search-bar {
    & input {
      border: 1px solid #C4D2D5;
      border-radius: 50px;
      padding: 8px 30px 8px 38px;
      width: 210px;
    }
  
    & span {
      position: relative;
    }
  
    & span::before {
      content: "";
      background-image: url(../image/common/search-icon.png);
      background-size: cover;
      width: 20px;
      height: 20px;
      position: absolute;
      top: 54%;
      left: 12px;
      transform: translateY(-50%);
      -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
    }
  
    & input::placeholder {
      color: #4C91EB;
    }
  
    & input:focus-visible {
      outline: none;
    }
  }
  
  
  /* お問い合わせボタン */
  .contact-button {
    & a {
      background: #FFE44F;
      color: #000000;
      font-weight: bold;
      padding: 8px 30px 8px 38px;
      border-radius: 30px;
      width: 210px;
      display: block;
      text-align: center;
      transition: .4s;
    }
  
    & a:hover {
      background-color: #FF6A30;
      color: #fff;
      text-decoration: none;
    }
  
    & a span {
      position: relative;
    }
  
    & a span::before {
      content: "";
      background-image: url(../image/common/mail-icon.png);
      background-size: cover;
      width: 19px;
      height: 15px;
      position: absolute;
      top: 54%;
      left: -1.5em;
      transform: translateY(-50%);
      -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
    }
  
    & a:hover span::before {
      background-image: url(../image/common/mail-icon-white.png);
    }
  }
  
  
  /* サイズ変更＋背景色変更 */
  .accessibility-options {
    font-size: 14px;
    position: absolute;
    top: 10px;
    right: 2.5%;
    display: flex;
    gap: 16px;
  
    & .accessibility-link {
      color: #4C91EB;
    }
  
    & .size-btn::before {
      content: url(../image/common/size-ill.png);
    }
  
    & .bg-btn::before {
      content: url(../image/common/bg-ill.png);
    }
  
  }
  
  
  .sp-btn-block {
    display: none;
    gap: 16px;
    width: fit-content;
    position: absolute;
    top: 27px;
    right: 84px;
  
    & .sp-btn-box {
      margin: 0;
    }
  
    & .sp-btn-box a {
      background: #000;
      border-radius: 50%;
      height: 36px;
      margin: 0;
      width: 36px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  
    & .sp-btn-box img {
      width: 20px;
      height: auto;
    }
  }

  /* メガメニュー */
  /* .header-nav {
    position: relative;
  } */
  
  .nav-list {
    display: flex;
    gap: 30px;
  }
  
  .nav-list li {
    list-style: none;
  }
  
  .nav-link {
    display: block;
    padding: 12px;
    text-decoration: none;
  }

  .nav-link.active {
    background-color: #FF6A30;
    color: #fff;
  }
  
  /* ▼ メガメニュー（画面横幅いっぱい） */
  .mega-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 84px;
    width: 100vw;
    background: #FFE44F;
    padding: 30px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    z-index: 100;
  }
  
  /* 中身は中央寄せ */
  .mega-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
  }
  
  .mega-inner ul {
    display: flex;
    gap: 24px 40px;
    flex-wrap: wrap;
  }
  
  .mega-inner li {
    list-style: none;
  }
  
  .mega-inner a {
    color: #333;
    text-decoration: none;
  }
  .mega-child-inner {
    align-items: center;
    display: flex;
    margin-bottom: 20px;
  }
  .mega-child-inner:last-child {
    margin-bottom: 0;
  }
  .mega-child-head {
    font-weight: bold;
    font-size: 20px;
    margin: 0;
    margin-right: 10px;
    position: relative;
    width: 290px;
    padding-right: 30px;
  }
  .mega-child-head::after {
    content: "";
    width: 1px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #000;
  }


  /* ハンバーガーメニュー */
  .sp_nav {
    display: none;
  }
  .l-sp-header_ham-menu {
    border-radius: 3px;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
  }
  .openbtn1 {
    position: relative;
    cursor: pointer;
    width: 22px;
    height: 24px;
    z-index: 5;
  }
  .openbtn1 span {
    display: inline-block;
    transition: all 0.4s; /*アニメーションの設定*/
    position: absolute;
    left: 0;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    width: 22px;
    /* width: 56%;
    width: 62%; */
  }
  /* 上の線 */
  .openbtn1 span:nth-of-type(1) {
    top: 4px;
    background-color: #fff;
  }
  /* 真ん中の線 */
  .openbtn1 span:nth-of-type(2) {
    top: 12px;
    background-color: #fff;
  }
  /* 下の線 */
  .openbtn1 span:nth-of-type(3) {
    top: 20px;
    background-color: #fff;
  }
  /* ---------------------------- */
  /*activeクラスが付与されると線が回転して×に*/
  .openbtn1.active span:nth-of-type(1) {
    top: 4px;
    left: 4px;
    transform: translateY(6px) rotate(-45deg);
  }
  .openbtn1.active span:nth-of-type(2) {
    opacity: 0; /*真ん中の線は透過*/
  }
  .openbtn1.active span:nth-of-type(3) {
    top: 17px;
    left: 5px;
    transform: translateY(-6px) rotate(45deg);
  }
  .l-sp-header {
    background: #000;
    border-radius: 30px 0 0 30px;
    padding: 10px 22px 10px 16px;
    position: relative;
    z-index: 1;
  }
  .p-sp-nav-bg {
    display: none;
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: rgba(255,255,255,0.6);
    top: 0;
    left: 0;
    transition: all 0.3s;
  }
  .p-sp-nav-bg.bg-active{
    display: block;
    transition: all 0.3s;
  }
  #sp-g-nav {
    visibility: hidden;
    position: fixed;
    z-index: 7;
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.3;
    width: 100%;
    top: 76px;
    opacity: 0;
    left: 0;
    transition: all .7s;
  }
  #sp-g-nav.panel-active {
    visibility: visible;
    width: 100%;
    opacity: 1;
    height: 100%;
    overflow: auto;
  }
  .p-sp-nav_ul {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding-bottom: 100px;
  }
  .p-sp-nav_li {
    /* height: 55px; */
    border-bottom: 1px solid #fff;
  }
  .p-sp-nav_li:last-of-type {
    border-bottom: 0;
  }
  .p-sp-nav_a {
    background-color: #000;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 18px 15px;
  }
  .p-sp-nav_a:hover {
    background-color: #000;
    color: #fff;
    opacity: 1;
    text-decoration: none;
  }
  .sp-nav-child li {
    border-top: 1px solid #fff;
  }
  .sp-nav-child_a {
    background-color: #000;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 18px 15px 18px 32px;
  }
  .p-sp-nav_li.child-link {
    position: relative;
    & .p-sp-nav_a::after {
      content: '';
      position: absolute;
      top: 16px;
      right: 27px;
      width: 16px;
      height: 16px;
      margin: auto;
      border-top: 3px solid #AAAAAA;
      border-right: 3px solid #AAAAAA;
      transform: rotate(135deg);
      transition: .4s;
      box-sizing: border-box;
    }
    & .p-sp-nav_a.child_open.open::after {
      top: 22px;
      transform: rotate(-45deg);
    }
    & .p-sp-nav_a.child_open.open {
      background-color: #616161;
    }
    & .open + .sp-nav-child a {
      background-color: #FF6A30;
    }
  }
  .sp-nav-child {
    display: none;
  }


  /* 検索窓 */
  #seachResult {
    position: absolute;
    top: 40px;
    right: 270px;

    & .keyword {
      background-color: #fff;
      border: 1px solid rgb(196, 210, 213);
      border-radius: 50px;
      align-items: center;
      display: flex;
      gap: 8px;
      padding: 8px 10px 8px 20px;
      width: 210px;
    }
    & input {
      border: none;
      background: initial;
      width: 147px;
    }
    & input::placeholder {
      color: #4C91EB;
    }
    & .submit_img {
      height: 20px;
      width: 20px;
    }
  }
  
  
  /* レスポンシブ */
  @media screen and (max-width: 1500px) {
    .header-nav {
      & a {
        /* padding: 8px 4px 8px 38px; */
        width: 170px;
      }
    }
    .right-area {
      padding-right: 430px;
    }
    #seachResult {
      right: 244px;
    }
    .contact-button {
      & a {
        padding: 8px 10px 8px 38px;
        width: 190px;
      }
    }
    .header-left {
      & .site-title {
        width: 130px;
      }
    }
  }
  
  @media screen and (max-width: 1400px) {
    .header-left {
      & .logo {
        width: 56px;
      }
      & .site-title {
          margin: 0;
          width: 112px;
      }
    }
    .right-area {
      gap: 30px;
    }
    #seachResult,
    .header-right {
      top: 32px;
    }
  }

  @media screen and (max-width: 1350px) {
    .header-container {
      display: block;
    }
    .header-left {
      margin-bottom: 10px;
    }
    .right-area {
      justify-content: center;
      padding: 0;
      margin-top: 40px;
    }
    .mega-menu {
      top: 150px;
    }
    .header-nav {
      & a {
        width: auto;
      }
    }
    
  }
  
  @media screen and (max-width: 1300px) {


  }
  
  @media screen and (max-width: 1100px) {
    .sp-btn-block {
      display: flex;
    }
  
    .right-area {
      display: none;
    }
    .accessibility-options {
      display: none;
    }
    .sp_nav {
      display: block;
      position: fixed;
      z-index: 10;
      top: 22px;
      right: 0;
    }
    #seachResult {
      top: 26px;
      right: 150px;
    }
  }


  @media screen and (max-width: 600px) {
    #seachResult {
      position: relative;
      top: -14px;
      display: flex;
      justify-content: center;
      right: 0;
    }
  }