/* =========================================================
   GLOBAL MENU
   PC : 769px～
   SP : ～768px
========================================================= */


/* =========================================================
   CUSTOM SETTING
   基本的な色・サイズはここで変更
========================================================= */

:root {
  /* ---------------------------------
     COLOR
  --------------------------------- */

  /* PC背景 */
  --menu-bg: #ffffff;
  /* SP背景 */
  --menu-bg-sp: #ffffff;
  /* 文字色 */
  --menu-text: #000000;
  /* ホバー・アクセント */
  --menu-accent: #c1312d;
  /* 区切り線 */
  --menu-line: rgba(0, 0, 0, 0.20);
  /* サブメニュー背景 */
  --submenu-bg: #ffffff;
  /* サブメニューホバー */
  --submenu-hover-bg: rgba(0, 0, 0, 0.05);
  /* ---------------------------------
     SIZE
  --------------------------------- */

  /* PCヘッダー高さ */
  --menu-height: 86px;
  /* PCメニュー文字サイズ */
  --pc-menu-font: 17px;
  /* PCサブメニュー文字サイズ */
  --pc-submenu-font: 14px;
}
/* =========================================================
   COMMON
========================================================= */

.site-header,
.site-header *{
  box-sizing: border-box;
}
/* =========================================================
   HEADER
========================================================= */

.site-header{
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--menu-bg);
  border-bottom: 1px solid var(--menu-line);
}
.header-inner{
  position: relative;
  display: flex;
  align-items: center;
  width: 94%;
  max-width: 1100px;
  height: var(--menu-height);
  margin: 0 auto;
}
/* =========================================================
   LOGO
========================================================= */

.header-logo{
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}
.header-logo a{
  display: block;
}
.header-logo img{
  display: block;
  width: auto;
  max-width: 170px;
  max-height: 62px;
  border: 0;
}
/* =========================================================
   GLOBAL NAV
========================================================= */

.global-nav{
  flex: 1;
  min-width: 0;
}
/* =========================================================
   GLOBAL MENU
========================================================= */

.global-menu{
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* =========================================================
   MENU POSITION
========================================================= */


/* 右寄せ */

.site-header.menu-right .global-menu {
  justify-content: flex-end;
}
/* 中央 */

.site-header.menu-center .global-menu{
  justify-content: center;
}
/* 左寄せ */

.site-header.menu-left .global-menu {
  justify-content: flex-start;
}
/* =========================================================
   MAIN MENU
========================================================= */

.global-menu > li{
  position: relative;
  margin: 0;
  padding: 0;
}
.global-menu > li > a{
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--menu-height);
  margin: 0;
  padding: 0;
  color: var(--menu-text);
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}
/* =========================================================
   MAIN MENU HOVER
========================================================= */

.global-menu > li > a::after{
  content: "";
  position: absolute;
  bottom: 23px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--menu-accent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.global-menu > li > a:hover {
  color: var(--menu-accent);
}
.global-menu > li > a:hover::after{
  width: 100%;
}
/* =========================================================
   SUB MENU
========================================================= */

.submenu{
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  min-width: 200px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--submenu-bg);
  border: 1px solid var(--menu-line);
  opacity: 0;
  visibility: hidden;
  transform:
    translateX(-50%)
    translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}
.submenu li{
  position: relative;
  margin: 0;
  padding: 0;
}
.submenu li a{
  display: block;
  margin: 0;
  padding: 13px 20px;
  color: var(--menu-text);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.submenu li a:hover {
  color: var(--menu-accent);
  background: var(--submenu-hover-bg);
}
/* =========================================================
   SUB MENU ARROW
========================================================= */

.submenu-arrow{
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform:
    rotate(45deg)
    translateY(-2px);
}
/* =========================================================
   SNS
========================================================= */

.menu-sns{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}
.global-menu > .menu-sns > .sns-icon{
  display: block;
  min-height: auto;
  margin: 0;
  padding: 0;
}
/* SNSは通常メニューの下線を非表示 */

.global-menu > .menu-sns > .sns-icon::after{
  display: none;
}
.sns-icon{
  display: block;
  width: 20px;
  height: 20px;
}
.sns-icon img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.sns-icon:hover img {
  opacity: 0.7;
  transform: scale(1.08);
}
/* =========================================================
   HAMBURGER
========================================================= */

.menu-toggle{
  display: none;
}
/* =========================================================
   PC
   769px～
========================================================= */

@media screen and (min-width: 769px) {
  .global-nav{
  display: block !important;
}
/* -----------------------------------------------------
     最大8メニュー＋SNSを想定
     画面幅に合わせて14～20pxの範囲で調整
  ----------------------------------------------------- */

  .global-menu {
  gap: clamp(14px, 1.6vw, 20px);
}
/* -----------------------------------------------------
     PCメインメニュー
  ----------------------------------------------------- */

  .global-menu > li > a{
  font-size: var(--pc-menu-font);
  /*
      17pxでも横幅を使いすぎないよう
      字間は少し控えめ
    */
    letter-spacing: 0.025em;
}
/* -----------------------------------------------------
     PCサブメニュー
  ----------------------------------------------------- */

  .submenu li a {
  font-size: var(--pc-submenu-font);
}
/* =====================================================
     1階層目
  ===================================================== */

  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu{
  opacity: 1;
  visibility: visible;
  transform:
      translateX(-50%)
      translateY(0);
}
/* =====================================================
     2階層目
  ===================================================== */

  .submenu-level2{
  top: 0;
  left: 100%;
  transform: translateX(8px);
}
.submenu .has-submenu:hover > .submenu-level2,
  .submenu .has-submenu:focus-within > .submenu-level2{
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
/* =====================================================
   サブメニュー内リンクをクリックした後は強制的に閉じる
   hover / focus-within より優先
===================================================== */

.has-submenu.submenu-click-closed > .submenu{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
}
/* =========================================================
   SP
   ～768px
========================================================= */

@media screen and (max-width: 768px) {
  :root {
  --menu-height: 70px;
}
.site-header {
  background: var(--menu-bg-sp);
}
.header-inner{
  width: 90%;
  height: var(--menu-height);
}
/* =====================================================
     LOGO
  ===================================================== */

  .header-logo img{
  max-width: 145px;
  max-height: 50px;
}
/* =====================================================
     HAMBURGER
  ===================================================== */

  .menu-toggle{
  position: absolute;
  z-index: 10002;
  top: 50%;
  right: 0;
  display: block;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}
.menu-toggle span{
  position: absolute;
  left: 8px;
  display: block;
  width: 26px;
  height: 1px;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  background: var(--menu-text);
  transition:
      transform 0.35s ease,
      top 0.35s ease,
      opacity 0.25s ease;
}
.menu-toggle span:nth-child(1){
  top: 12px;
}
.menu-toggle span:nth-child(2){
  top: 20px;
}
.menu-toggle span:nth-child(3){
  top: 28px;
}
/* =====================================================
     OPEN → ×
  ===================================================== */

  .menu-toggle.is-open span:nth-child(1){
  top: 20px;
  transform: rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3){
  top: 20px;
  transform: rotate(-45deg);
}
/* =====================================================
     SP NAV
  ===================================================== */

  .global-nav{
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  background: var(--menu-bg-sp);
  opacity: 0;
  visibility: hidden;
  transition:
      opacity 0.35s ease,
      visibility 0.35s ease;
}
.global-nav.is-open{
  opacity: 1;
  visibility: visible;
}
.global-menu{
  display: block;
  width: 90%;
  margin: 0 auto;
  padding: 110px 0 60px;
  text-align: center;
}
.global-menu > li{
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--menu-line);
}
.global-menu > li > a{
  justify-content: center;
  min-height: auto;
  padding: 18px 10px;
  font-size: 15px;
  letter-spacing: 0.10em;
}
.global-menu > li > a::after{
  display: none;
}
/* =====================================================
     SP SUB MENU
  ===================================================== */

  .submenu{
  position: static;
  display: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 10px;
  border: 0;
  background: var(--submenu-hover-bg);
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
}
.has-submenu.is-open > .submenu{
  display: block;
}
.submenu li a{
  padding: 13px 10px;
  font-size: 13px;
  text-align: center;
}
/* =====================================================
     SP 2階層目
  ===================================================== */

  .submenu-level2{
  position: static;
  width: 100%;
  margin: 0;
  transform: none;
}
.submenu-level2 li a{
  font-size: 12px;
  opacity: 0.75;
}
/* =====================================================
     開いた時の矢印
  ===================================================== */

  .has-submenu.is-open
  > .submenu-trigger
  .submenu-arrow {
  transform: rotate(225deg);
}
/* =====================================================
     SNS
  ===================================================== */

  .menu-sns{
  justify-content: center;
  gap: 25px;
  margin-top: 30px !important;
  padding: 10px 0 28px;
  border-bottom: 0 !important;
}
.global-menu > .menu-sns > .sns-icon{
  display: block;
  width: 24px;
  height: 24px;
  min-height: auto;
  padding: 0;
}
/* =====================================================
     メニュー表示中
     背景スクロール禁止
  ===================================================== */

  body.menu-open{
  overflow: hidden;
}
}
.page-top{
  background-color : rgba(0, 0, 0, 0.6);
  padding-top : 5px;
  padding-left : 5px;
  padding-right : 5px;
  padding-bottom : 5px;
  border-width : 0px;
  width : 40px;
  position : fixed;
  bottom : 3px;
  right : 3px;
  z-index : 3;
}

