/* 日本語 */
/* ヘッダーPC */
/* ===== ヘッダーのスタイル ===== */
header {
  /* padding: 10px 0; 20250312変更 */
  background-color: #fff;
  position: fixed;
  top: 0;
  z-index: 9999;
  width: 100%;
  box-shadow: 0px 1px 2px #888888;
  /* 下記3行 20250312追加 */
  align-items: center;
  display: flex;
  height: 80px;
}

.inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.al-center {
    align-items: center;
}
.sb {
    justify-content: space-between;
}
.-flex {
    display: flex;
}
header .logo {
    max-height: 60px;
    max-width: 100%;
    z-index: 9999;
}
header img {
    image-rendering: auto;
}

/* エントリーボタン */
.header_entry_btn img {
    display: block;
    max-width: 100%;
}
.sp-none {
    display: block;
}

.navigation {
  display: flex;
  gap: 60px;
  align-items: center;
}
.header_entry_btn {/* 20250124追加 */
  width: 180px;
}
/* 言語切り替え */
.language {
  display: flex;
  align-items: center;
  gap: 12px;
}
.language .line {
  font-size: 16px;
  font-weight: 900;
  color: #888888;
}
.language a .blue {
  font-size: 16px;
  font-weight: 700;
  color: #1162ad;
}
.language a .grey {
  font-size: 16px;
  font-weight: 700;
  color: #888888;
}

/* ===== ハンバーガーメニュー ===== */
.hamburger {
  cursor: pointer;
}
.hamburger div {
  width: 40px;
  height: 3px;
  background-color: black;
  margin: 5px 0;
  transition: all 0.3s;
}
.menu-open .hamburger div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.menu-open .hamburger div:nth-child(2) {
  opacity: 0;
}
.menu-open .hamburger div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -7px);
}

.overlay {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景 */
  /* backdrop-filter: blur(0.5px); */
  z-index: 10;
}
/* ハンバーガーメニューが開いたときにオーバーレイを表示 */
.menu-open .overlay {
  display: block;
}

/* ===== メニュー全体 ===== */
.menu {
  position: fixed;
  top: 18vh;
  right: -50vw; /* 画面の右半分からスライドイン */
  width: 40vw; /* 画面の半分だけ */
  height: 72vh;
  background-color: #fff;
  transition: right 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* ハンバーガーより1つ下げる */
  box-shadow: -12px 12px 8px rgba(0, 0, 0, 0.2); /* 左端に影を追加 */
  border-radius: 20px 0 0 20px;
}
.menu-open .menu {
  right: 0;
}
/* ===== モーダルレイアウト ===== */
.menu-grid {
  display: grid;
  grid-template-columns: 2fr 3fr; /* 2列 */
  gap: 20px;
  width: 100%;
  max-width: 800px;
  margin-top: -36vh;
  height: 172px;
}
/* 左側メニュー */
.menu-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* 右側メニュー（動的に切り替え） */
.menu-right {
  display: flex;
  flex-direction: column;
  margin-left: 32px;
  margin-right: auto;
  /* gap: 10px; */
}
.menu-item {
  padding: 16px 16px 16px 16px;
  /* background-color: #f8f8f8; */
  border: 1px solid #ddd;
  /* text-align: center; */
  cursor: pointer;
  border-radius: 0 16px 16px 0;
  font-weight: 500;
  font-size: 18px;
  box-shadow: 2px 2px 8px #d4d4d4;
  position: relative;
}
.menu-item.active {
  background-color: #e0edff;
  /* color: white; */
}
.menu-item::after {
  content: "▶";  /* 右矢印 */
  font-size: 14px;
  color: #555;
  position: absolute;
  right: 12px; /* 右端に配置 */
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease-in-out;
}
/* アクティブなメニューの矢印を下向きに回転 */
.menu-item.active::after {
  transform: translateY(-50%) rotate(180deg);
}
.menu-detail {
  padding-top: 8px;
}
.item-center {
  /* text-align: center; */
  padding: 8px 0px;
  /* padding: 8px 20px; */
  /* border: 1px solid #ddd; */
  font-size: 16px;
  font-weight: 500;
  color: #474747;
}
.item-center:hover {
  color: #0055b6;  /* 紺色（濃い青）に変更 */
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}
.menu-entry {
  width: 140px;
}
/* 初期非表示 */
.hidden {
  display: none;
}



/* アニメーション */
@keyframes fade-in-from-right {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.fade-in-from-right {
  animation: fade-in-from-right 0.4s ease-in-out;
  opacity: 1;
}
@keyframes fade-in-from-bottom {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-from-bottom {
  animation: fade-in-from-bottom 0.4s ease-in-out;
  opacity: 1;
}










/* 英語PC */
.en-menu {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s;
}
.en-menu li {
  margin: 12px 0;
  text-align: center;
}
.en-menu a {
  text-decoration: none;
  color: black;
  font-size: 24px;
  font-weight: 500;
  cursor: pointer;
}
.en-menu .sm {
  font-size: 16px;
}
/* ↓ 追加 */
/* 子メニューのスタイル */
/* 子メニューのデフォルト状態 */
/* .en-menu .submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}
.en-menu .submenu.open {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0); 
} */

/* 子メニューのデフォルト状態 */
.en-menu .submenu {
  max-height: 0; /* 初期は高さを0に */
  overflow: hidden; /* 内容がはみ出ないように */
  opacity: 0; /* 不透明度 */
  transform: translateY(-10px); /* 少し上にずらす */
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}
/* 子メニューが開いた状態 */
.en-menu .submenu.open {
  opacity: 1; /* 不透明度 */
  transform: translateY(0); /* 元の位置に戻す */
}
.en-menu .submenu a {
  text-decoration: none;
  color: #777777;
  font-size: 16px;
  font-weight: 500;
}
.en-menu .submenu a:hover {
  color: #1162ad;
}
/* ↑ 追加 */
.en-overlay {
  display: none;
  position: fixed;
  top:79px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 1);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.5s;
}
.en-menu-open .en-menu {
  display: block;
  opacity: 1;
}
.en-menu-open .en-overlay {
  display: block;
  opacity: 1;
}
.en-menu-open .hamburger div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.en-menu-open .hamburger div:nth-child(2) {
  opacity: 0;
}
.en-menu-open .hamburger div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -7px);
}

.en-menu .submenu .entry-button {
  display: flex;
  justify-content: center;
}





/* レスポンシブ：横幅768px以下 */
@media screen and (max-width: 768px) {
  /* ヘッダー */
  /* 日本語SP */
  header {
    /* padding: 16px 0; 20250124変更 */
    padding: 22px 0;
    height: 70px;
  }
  header .logo {
    /* width: 160px; 20250124変更 */
    width: 120px;
  }
  .navigation {
    display: flex;
    flex-direction: row;
    /* gap: 28px;; 20250124変更 */
    gap: 14px;
    justify-content: center;
    align-items: center;
  }
  .header_entry_btn {/* 20250124追加 */
    width: 80px;
  }
  .language {
    /* gap: 10px; 20250124変更 */
    gap: 6px;
    margin-right: 4vw;
  }
  .language .line {
    font-size: 12px;
    font-weight: 900;
    color: #888888;
  }
  .language a .blue {
    /* font-size: 18px; 20250124変更 */
    font-size: 16px;
    font-weight: 700;
    color: #1162ad;
  }
  .language a .grey {
    /* font-size: 18px; 20250124変更 */
    font-size: 16px;
    font-weight: 700;
    color: #888888;
  }
  .sp-none {
    display: none;
  }



  /* ===== ハンバーガーメニュー ===== */
  .hamburger {
    cursor: pointer;
  }
  .hamburger div {
    width: 40px;
    height: 3px;
    background-color: black;
    margin: 5px 0;
    transition: all 0.3s;
  }
  .menu-open .hamburger div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .menu-open .hamburger div:nth-child(2) {
    opacity: 0;
  }
  .menu-open .hamburger div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
  }

  .overlay {
    display: none;
    position: fixed;
    top: 71px;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景 */
    z-index: 10;
  }
  /* ハンバーガーメニューが開いたときにオーバーレイを表示 */
  .menu-open .overlay {
    display: block;
  }

  /* ===== メニュー全体 ===== */
  .menu {
    position: fixed;
    top: 18vh;
    right: -100vw; /* 画面の右半分からスライドイン */
    width: 90vw; /* 画面の半分だけ */
    height: 72vh;
    background-color: #fff;
    transition: right 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* ハンバーガーより1つ下げる */
    box-shadow: -12px 12px 8px rgba(0, 0, 0, 0.2); /* 左端に影を追加 */
    border-radius: 20px 0 0 20px;
  }
  .menu-open .menu {
    right: 0;
  }
  /* ===== モーダルレイアウト ===== */
  .menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列 */
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin-top: -36vh;
    height: 172px;
  }
  /* 左側メニュー */
  .menu-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  /* 右側メニュー（動的に切り替え） */
  .menu-right {
    display: flex;
    flex-direction: column;
    margin-left: 0px;
    margin-right: auto;
    /* gap: 10px; */
  }
  .menu-item {
    padding: 12px 12px 12px 12px;
    /* background-color: #f8f8f8; */
    border: 1px solid #ddd;
    /* text-align: center; */
    cursor: pointer;
    border-radius: 0 16px 16px 0;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 2px 2px 8px #d4d4d4;
    position: relative;
  }
  .menu-item.active {
    background-color: #e0edff;
    /* color: white; */
  }
  .menu-item::after {
    content: "▶";  /* 右矢印 */
    font-size: 14px;
    color: #555;
    position: absolute;
    right: 12px; /* 右端に配置 */
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease-in-out;
  }
  /* アクティブなメニューの矢印を下向きに回転 */
  .menu-item.active::after {
    transform: translateY(-50%) rotate(180deg);
  }
  .menu-detail {
    padding-top: 8px;
  }
  .item-center {
    /* text-align: center; */
    padding: 8px 0px;
    /* padding: 8px 20px; */
    /* border: 1px solid #ddd; */
    font-size: 14px;
    font-weight: 500;
    color: #474747;
  }
  .item-center:hover {
    color: #0055b6;  /* 紺色（濃い青）に変更 */
    font-weight: 600;
    transition: color 0.2s ease-in-out;
  }
  .menu-entry {
    width: 120px;
  }
  /* 初期非表示 */
  .hidden {
    display: none;
  }








  /* 英語SP */
  .en-serif {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400!important;
  }
  .en-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 33%;
    transform: translate(-50%, -50%);
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s;
  }
  .en-menu li {
    margin: 8px 0;
    text-align: left;
  }
  .en-menu a {
    text-decoration: none;
    color: black;
    font-size: 20px;
    cursor: pointer;
  }
  .en-menu .sm {
    font-size: 14px;
  }
  /* ↓ 追加 */
  /* 子メニューのスタイル */
  /* 子メニューのデフォルト状態 */
  /* .en-menu .submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
  } */
  /* 子メニューが開いた状態 */
  /* .en-menu .submenu.open {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
  } */
  .en-menu .submenu a {
    text-decoration: none;
    color: #777777;
    font-size: 16px;
    font-weight: 500;
  }
  .en-overlay {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.5s;
  }
  .en-menu-open .en-menu {
    display: block;
    opacity: 1;
  }
  .en-menu-open .en-overlay {
    display: block;
    opacity: 1;
  }
  .en-menu-open .hamburger div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .en-menu-open .hamburger div:nth-child(2) {
    opacity: 0;
  }
  .en-menu-open .hamburger div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
  }

  .en-menu .submenu .entry-button {
    display: flex;
    justify-content: left;
  }
}





/* レスポンシブ：横幅360px以下 */
@media screen and (max-width: 360px) {
  /* ヘッダー */
  /* 日本語SP */
  header {
    /* padding: 16px 0; 20250124変更 */
    /* padding: 22px 0; 20250312変更 */
    height: 60px;
  }
  header .logo {
    /* width: 160px; 20250124変更 */
    width: 120px;
  }
  .navigation {
    display: flex;
    flex-direction: row;
    /* gap: 28px;; 20250124変更 */
    gap: 14px;
    justify-content: center;
    align-items: center;
  }
  .header_entry_btn {/* 20250124追加 */
    width: 80px;
  }
  .language {
    /* gap: 10px; 20250124変更 */
    gap: 6px;
  }
  .language .line {
    font-size: 12px;
    font-weight: 900;
    color: #888888;
  }
  .language a .blue {
    /* font-size: 18px; 20250124変更 */
    font-size: 16px;
    font-weight: 700;
    color: #1162ad;
  }
  .language a .grey {
    /* font-size: 18px; 20250124変更 */
    font-size: 16px;
    font-weight: 700;
    color: #888888;
  }
  




  /* ===== ハンバーガーメニュー ===== */
  .hamburger {
    cursor: pointer;
  }
  .hamburger div {
    width: 40px;
    height: 3px;
    background-color: black;
    margin: 5px 0;
    transition: all 0.3s;
  }
  .menu-open .hamburger div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .menu-open .hamburger div:nth-child(2) {
    opacity: 0;
  }
  .menu-open .hamburger div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
  }
  
  .overlay {
    display: none;
    position: fixed;
    top: 61px;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景 */
    z-index: 10;
  }
  /* ハンバーガーメニューが開いたときにオーバーレイを表示 */
  .menu-open .overlay {
    display: block;
  }

  /* ===== メニュー全体 ===== */
  .menu {
    position: fixed;
    top: 18vh;
    right: -100vw; /* 画面の右半分からスライドイン */
    width: 90vw; /* 画面の半分だけ */
    height: 72vh;
    background-color: #fff;
    transition: right 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* ハンバーガーより1つ下げる */
    box-shadow: -12px 12px 8px rgba(0, 0, 0, 0.2); /* 左端に影を追加 */
    border-radius: 20px 0 0 20px;
  }
  .menu-open .menu {
    right: 0;
  }
  /* ===== モーダルレイアウト ===== */
  .menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列 */
    gap: 18px;
    width: 100%;
    max-width: 800px;
    margin-top: -36vh;
    height: 172px;
  }
  /* 左側メニュー */
  .menu-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  /* 右側メニュー（動的に切り替え） */
  .menu-right {
    display: flex;
    flex-direction: column;
    margin-left: 0px;
    margin-right: auto;
    /* gap: 10px; */
  }
  .menu-item {
    padding: 12px 12px 12px 12px;
    /* background-color: #f8f8f8; */
    border: .5px solid #ddd;
    /* text-align: center; */
    cursor: pointer;
    border-radius: 0 16px 16px 0;
    font-weight: 500;
    font-size: 12px;
    box-shadow: 2px 2px 8px #d4d4d4;
    position: relative;
  }
  .menu-item.active {
    background-color: #e0edff;
    /* color: white; */
  }
  .menu-item::after {
    content: "▶";  /* 右矢印 */
    font-size: 12px;
    color: #555;
    position: absolute;
    right: 12px; /* 右端に配置 */
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease-in-out;
  }
  /* アクティブなメニューの矢印を下向きに回転 */
  .menu-item.active::after {
    transform: translateY(-50%) rotate(180deg);
  }
  .menu-detail {
    padding-top: 8px;
  }
  .item-center {
    /* text-align: center; */
    padding: 8px 0px;
    /* padding: 8px 20px; */
    /* border: 1px solid #ddd; */
    font-size: 12px;
    font-weight: 500;
    color: #474747;
  }
  .item-center:hover {
    color: #0055b6;  /* 紺色（濃い青）に変更 */
    font-weight: 600;
    transition: color 0.2s ease-in-out;
  }
  .menu-entry {
    width: 100px;
  }
  /* 初期非表示 */
  .hidden {
    display: none;
  }









  /* 英語SP */
  .en-serif {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400!important;
  }
  .en-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 33%;
    transform: translate(-50%, -50%);
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s;
  }
  .en-menu li {
    margin: 8px 0;
    text-align: left;
  }
  .en-menu a {
    text-decoration: none;
    color: black;
    font-size: 20px;
    cursor: pointer;
  }
  .en-menu .sm {
    font-size: 14px;
  }
  /* ↓ 追加 */
  /* 子メニューのスタイル */
  /* 子メニューのデフォルト状態 */
  /* .en-menu .submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
  } */
  /* 子メニューが開いた状態 */
  /* .en-menu .submenu.open {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
  } */
  .en-menu .submenu a {
    text-decoration: none;
    color: #777777;
    font-size: 16px;
    font-weight: 500;
  }
  .en-overlay {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.5s;
  }
  .en-menu-open .en-menu {
    display: block;
    opacity: 1;
  }
  .en-menu-open .en-overlay {
    display: block;
    opacity: 1;
  }
  .en-menu-open .hamburger div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .en-menu-open .hamburger div:nth-child(2) {
    opacity: 0;
  }
  .en-menu-open .hamburger div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
  }

  .en-menu .submenu .entry-button {
    display: flex;
    justify-content: left;
  }
}