@import url('https://fonts.googleapis.com/css2?family=BBH+Sans+Hegarty&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body {
  overflow-y: scroll;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  border: none;
}

input, button, textarea, select {
  font: inherit;
}

.full_width {
  width: 100%;
}
div.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 0px;
  display: flex;
  flex-wrap: wrap;
}
div#global_container {
  width: 100%;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 画面の高さを確保 */
}
header {
  position: fixed;
  top: 0;
  left: 0;
  /*background-color: rgba(255, 255, 255, 0.7);*/
  background-color: rgba(255, 255, 255, 0.9); /* 少し濃くして視認性UP */
  backdrop-filter: blur(6px); /* モダンブラウザなら半透明ガラス風 */
  z-index: 50;
}
main {
  flex: 1;
  margin-bottom: 100px;
}
footer {

}
footer div#footer_menu_wrap {
  width: 100%;
  max-width: 1200px;
  height: auto;
  min-height: 250px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 0px auto 50px;
  padding: 0px 20px;
  gap: 30px;
}
@media (min-width: 960px) {
  footer div#footer_menu_wrap div.footer_content_wrap {
    width: calc(100% / 3 - 30px);
  }
}
@media (min-width: 599px) and (max-width: 959px) {
  footer div#footer_menu_wrap div.footer_content_wrap {
    width: calc(100% / 2 - 30px);
  }
}
@media (max-width: 600px) {
  footer div#footer_menu_wrap div.footer_content_wrap {
    width: 100%;
    margin-bottom: 30px;
  }
}
footer div#footer_menu_wrap div.footer_content_wrap h3 {
  width: 100%;
  padding: 5px 10px;
  border-bottom: 1px solid #cccccc;
  font-size: 14px;
}
footer div#footer_menu_wrap div.footer_content_wrap div.group_name {
  font-size: 14px;
  margin: 20px 0px 8px 10px;
  border-left: 5px solid #0A1342;
  padding-left: 5px;
  line-height: 1;
}
footer div#footer_menu_wrap div.footer_content_wrap div.category_name {
  display: block;
  margin: 0 0 8px 20px;
  line-height: 1;
}
footer div#footer_menu_wrap div.footer_content_wrap div.category_name a {
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  line-height: 1;

}

footer div#copyright_wrap {
  background: #0A1342;
  padding: 1em;
  color: #ffffff;
  font-size: 12px;
  width: 100% !important;
  margin: 0;
  text-align: center !important;
}

div.header_wrap {
  display: flex;
  padding: 15px 10px;
  justify-content: flex-start;
  align-items: center;
}
div.header_wrap div#logo_wrap {
  margin-left: 10px;
  flex-grow: 100;
}
div.header_wrap div#logo_wrap h1 {
  height: 50px;
}
div.header_wrap div#logo_wrap h1 a {
    display: inline-block;  
}
div.header_wrap div#logo_wrap h1 a img {
  height: 50px;
}

.header_controls {
  display: flex;
  align-items: center;
  gap: 12px; /* 言語切り替えとハンバーガーの間隔 */
  margin-right: 10px; /* 右端に余白 */
}


.lang_switch {
  font-size: 0.9rem;
  text-decoration: none;
  color: #333;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 20px; /* pill型に */
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}
@media (max-width: 600px) {
  .lang_switch {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
}
.lang_switch:hover {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

div.header_wrap button.hamburger {
  display: inline-block;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  border: none;
  background: none;
  padding: 0;
  margin-right: 10px;

}
div.header_wrap button.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  margin: 6px 0;
  transition: 0.3s;
}



div#menu_container {
  display: none;
  position: fixed;
  top: -100vh;
  left: 0;
  width: 100vw;
  margin: 0;
  height: 100vh;
  background-color: #ffffff;
  padding: 0px 0px 30px;
  z-index: 100;
  transition: top 0.8s ease-in-out;
  overflow-y: scroll;
  border-bottom: 1px solid #666666;
}
div#menu_container.open {
  top: 0;
}
div#menu_container div#menu_header {
  display: flex;
  width: auto;
  max-width: 1200px;
  padding: 15px 10px;
  margin: 0 auto;
  justify-content: flex-start;
  align-items: center;
  position: sticky;
  top: 0;
  /*background-color: rgba(255, 255, 255, 0.7);*/
  background-color: rgba(255, 255, 255, 0.9); /* 少し濃くして視認性UP */
  backdrop-filter: blur(6px); /* モダンブラウザなら半透明ガラス風 */
}
div#menu_container div#menu_header div#logo_wrap {
  flex-grow: 100;
  margin-left: 10px;
}
div#menu_container div#menu_header div#logo_wrap h2 {
  height: 50px;
}
div#menu_container div#menu_header div#logo_wrap h2 a {
  display: inline-block;
}
div#menu_container div#menu_header div#logo_wrap h2 a img {
  height: 50px;
}
div#menu_container div#menu_header .close_button {
  display: inline-block;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
  border: none;
  background: none;
  padding: 0;
  margin-right: 20px;
}

div#menu_container div#menu_header .close_button::before,
div#menu_container div#menu_header .close_button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 3px;
  background-color: #333;
  transform-origin: center;
}

div#menu_container div#menu_header .close_button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

div#menu_container div#menu_header .close_button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

div#menu_container div#menu_body {
  width: auto;
  max-width: 1200px;
  margin: 0px auto;
  padding: 0px;
}
div#menu_container div#menu_body div.group_wrap {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 0px 10px 30px;
  gap: 5px;
}
div#menu_container div#menu_body div.group_wrap h3 {
  width: 100%;
  margin: 10px 0px;
}

@media (min-width: 960px) {
  div#menu_container div#menu_body div.group_wrap a.category_link {
    border: 2px solid #eeeeee;
    border-radius: 10px;
    background-color: #eeeeee;
    width: calc(100% / 5 - 5px);
    height: auto;
    padding: 0 0 10px;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    margin: 0px;
    color: #999999;
  }
}
@media (min-width: 599px) and (max-width: 959px) {
  div#menu_container div#menu_body div.group_wrap a.category_link {
    border: 2px solid #eeeeee;
    border-radius: 10px;
    background-color: #eeeeee;
    width: calc(100% / 3 - 5px);
    height: auto;
    padding: 0 0 10px;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    margin: 0px;
    color: #999999;
  }
}
@media (max-width: 600px) {
  div#menu_container div#menu_body div.group_wrap a.category_link {
    border: 2px solid #eeeeee;
    border-radius: 10px;
    background-color: #eeeeee;
    width: calc(100% / 2 - 5px);
    height: auto;
    padding: 0 0 10px;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    margin: 0px;
    color: #999999;
  }
}

div#menu_container div#menu_body div.group_wrap a.category_link:hover {
  border: 2px solid #666666;
  color: #666666;
}
div#menu_container div#menu_body div.group_wrap a.category_link div.cat_img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  aspect-ratio: 4 / 3;       /* ← ここを 3/4 に修正 */
  overflow: hidden;
  margin: 5% 5% 10px;
  background-color: #f5f5f5;
}
div#menu_container div#menu_body div.group_wrap a.category_link div.cat_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* ← ここに移動 */
  object-position: center;   /* 中央を基準に拡大表示 */
}
div#menu_container div#menu_body div.group_wrap a.category_link div.cat_name {
  line-height: 1.2;
  text-align: center;
}

