@charset "UTF-8";

/*!
Theme Name: namazumiki2025
Description: namazumikiのテーマ2025
Author: nobu
Template:   cocoon-master
Version:    1.0
*/

.grecaptcha-badge {
  visibility: hidden;
}

/*************************/
/* Header */
#header-container {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding-inline: 1em;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  transition: all 0.3s ease-in-out;
}
#header-container:hover,
#header-container:has(.navi-in ul li:hover),
#header-container:has(.navi-in ul li .submenu_wrap:hover) {
  background-color: rgba(255, 255, 255, 1);
}
#header-container .header-container-in {
  width: fit-content;
}
.header-container-in.hlt-top-menu #header {
  padding-inline: 18px;
}
.header-container-in.hlt-top-menu .logo-header a.site-name {
  display: block;
  padding: 0;
  transition: all 0.3s ease;
}
.header-container-in.hlt-top-menu .logo-header a.site-name:hover {
  opacity: 0.5;
}
.header-container-in.hlt-top-menu .logo-header a.site-name span.site-name-text {
  display: block;
}
@media screen and (min-width: 1024px) {
  .header-container-in.hlt-top-menu .logo-header img {
    animation: stylebChat1Ani 10000ms linear infinite;
    max-height: 26px;
    display: block;
  }
  @keyframes stylebChat1Ani {
    0% {
      filter: hue-rotate(0deg) saturate(150%);
    }
    5% {
      filter: hue-rotate(0deg) saturate(150%);
    }
    10% {
      filter: hue-rotate(15deg) saturate(200%);
    }
    15% {
      filter: hue-rotate(20deg) saturate(300%);
    }
    25% {
      filter: hue-rotate(50deg) saturate(2000%);
    }
    40% {
      filter: hue-rotate(59deg) saturate(2800%);
    }
    50% {
      filter: hue-rotate(59deg) saturate(2800%);
    }
    55% {
      filter: hue-rotate(66deg) saturate(1500%);
    }
    60% {
      filter: hue-rotate(76deg) saturate(300%);
    }
    70% {
      filter: hue-rotate(170deg) saturate(200%);
    }
    100% {
      filter: hue-rotate(360deg) saturate(150%);
    }
  }
}

.header-container-in.hlt-top-menu .navi {
  background-color: transparent;
}
#navi .navi-in > ul > li {
  height: 50px;
  position: static;
}
#navi .navi-in > ul > li > a {
  padding-inline: 16px;
}
#navi .navi-in a {
  font-size: 15px;
  line-height: 1;
  color: #555;
}
#navi .navi-in a:hover {
  background-color: transparent;
  color: #000;
}
#navi .navi-in a::before {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 50%;
  width: 0%;
  height: 1px;
  background-color: #777;
  transition: all 0.3s ease-in-out;
}
#navi .navi-in a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0%;
  height: 1px;
  background-color: #777;
  transition: all 0.3s ease-in-out;
}
#navi .navi-in a:hover::before {
  width: 40%;
}
#navi .navi-in a:hover::after {
  width: 40%;
}
#navi .navi-in > ul > li.menu-item-has-children > a {
  padding-right: 26px;
}
#navi .navi-in > ul > li.menu-item-has-children > a .has-icon {
  right: 12px;
  font-size: 13px;
  top: 1px;
}

/* ===== 元のサブメニューは非表示（共通パネルに移すため） ===== */
#navi .sub-menu {
  display: none !important;
}

/* ===== 共通パネルの基準（ヘッダー直下に出す） ===== */
#header-container-in {
  position: static;
}

/* ===== ページ全体を覆うオーバーレイ（header-containerの兄弟） ===== */
.submenu_open_bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9; /* ヘッダーより下にしたいので低め */
  background-color: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

/* 開いたら表示（submenu_panel表示時） */
.submenu_open_bg.submenu_wrap_open,
.submenu_open_bg.submenu_bg_hover {
  opacity: 1;
  pointer-events: auto; /* クリックで閉じたい場合 */
}

/* ===== 共通ドロップダウンパネル ===== */
#header-container-in .submenu_panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1002;
  background-color: #fff;

  overflow: hidden;
  max-height: 0; /* 高さ計測なしで、最大値で開閉 */
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;

  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* 開いた状態 */
#header-container-in.is-submenu-open .submenu_panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 400px; /* サブメニューの最大高さ想定で調整（例） */
}

/* 中央寄せ（必要に応じて） */
#header-container-in .submenu_panel .submenu_inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 20px;
}

/* wrap本体 */
#header-container-in .submenu_panel .submenu_wrap {
  width: 100%;
}

/* sub-menu を flex に */
#header-container-in .submenu_panel ul.sub-menu {
  display: flex !important;
  justify-content: center;
  column-gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

#header-container-in .submenu_panel ul.sub-menu li a {
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  color: #555;
  display: block;
  position: relative;
  padding-block: 10px;
}
#header-container-in .submenu_panel ul.sub-menu li a:hover {
  color: #000;
}
#header-container-in .submenu_panel ul.sub-menu li a::before {
  content: '';
  position: absolute;
  bottom: 6px;
  right: 50%;
  width: 0%;
  height: 1px;
  background-color: #777;
  transition: all 0.3s ease-in-out;
}
#header-container-in .submenu_panel ul.sub-menu li a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0%;
  height: 1px;
  background-color: #777;
  transition: all 0.3s ease-in-out;
}
#header-container-in .submenu_panel ul.sub-menu li a:hover::before {
  width: 50%;
}
#header-container-in .submenu_panel ul.sub-menu li a:hover::after {
  width: 50%;
}
/* /Header */

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
@media screen and (max-width: 1023px) {
  .logo-menu-button img {
    animation: stylebChat1AniMb 10000ms linear infinite;
    max-height: 20px;
  }
  @keyframes stylebChat1AniMb {
    0% {
      filter: hue-rotate(0deg) saturate(150%);
    }
    5% {
      filter: hue-rotate(0deg) saturate(150%);
    }
    10% {
      filter: hue-rotate(15deg) saturate(200%);
    }
    15% {
      filter: hue-rotate(20deg) saturate(300%);
    }
    25% {
      filter: hue-rotate(50deg) saturate(2000%);
    }
    40% {
      filter: hue-rotate(59deg) saturate(2800%);
    }
    50% {
      filter: hue-rotate(59deg) saturate(2800%);
    }
    55% {
      filter: hue-rotate(66deg) saturate(1500%);
    }
    60% {
      filter: hue-rotate(76deg) saturate(300%);
    }
    70% {
      filter: hue-rotate(170deg) saturate(200%);
    }
    100% {
      filter: hue-rotate(360deg) saturate(150%);
    }
  }
  .mobile-header-menu-buttons {
    box-shadow: 0 0 3px darkgrey;
  }
  .mobile-menu-buttons .search-menu-button.menu-button {
    display: none;
  }
  .mobile-menu-buttons .logo-menu-button.menu-button {
    margin-right: 50px;
  }
  .mobile-menu-buttons .menu-caption {
    display: none;
  }
  .mobile-menu-buttons .navi-menu-button.menu-button {
    width: 54px;
  }
  .menu-icon .fa-bars:before,
  .menu-close-button .fa-times:before {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'wght' 200;
  }
  .menu-icon .fa-bars:before {
    content: 'menu';
    font-size: 40px;
    color: #555;
    padding-top: 4px;
  }
  .menu-close-button .fa-times:before {
    content: 'close';
    font-size: 48px;
    color: #000;
  }
  .menu-close-button {
    text-align: left;
    padding-left: 0.3em;
    padding-top: 0.2em;
    opacity: 0.3;
  }
  #navi-menu-input:checked ~ #navi-menu-close {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px) {
  /*必要ならばここにコードを書く*/
}
