.hamburger {
  display: none;
  width: 50px;
  height: 50px;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10000;
  padding: 12px;
  background-color: #ffffff;
  border: 1px solid #0070be;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: transparent;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}
.hamburger__icon {
  position: relative;
  margin-top: 10px;
  margin-bottom: 10px;
}
.hamburger__icon,
.hamburger__icon:before,
.hamburger__icon:after {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #0070be;
  -moz-transition-property: background-color, -moz-transform;
  -o-transition-property: background-color, -o-transform;
  -webkit-transition-property: background-color, -webkit-transform;
  transition-property: background-color, transform;
  -moz-transition-duration: 0.4s;
  -o-transition-duration: 0.4s;
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
}
.hamburger__icon:before,
.hamburger__icon:after {
  position: absolute;
  content: "";
}
.hamburger__icon:before {
  top: -7px;
}
.hamburger__icon:after {
  top: 7px;
}
.hamburger.active .hamburger__icon {
  background-color: transparent;
}
.hamburger.active .hamburger__icon:before,
.hamburger.active .hamburger__icon:after {
  background-color: #0070be;
}
.hamburger.active .hamburger__icon:before {
  -moz-transform: translateY(7px) rotate(45deg);
  -ms-transform: translateY(7px) rotate(45deg);
  -webkit-transform: translateY(7px) rotate(45deg);
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .hamburger__icon:after {
  -moz-transform: translateY(-7px) rotate(-45deg);
  -ms-transform: translateY(-7px) rotate(-45deg);
  -webkit-transform: translateY(-7px) rotate(-45deg);
  transform: translateY(-7px) rotate(-45deg);
}

.fat-nav {
  top: 0;
  left: 0;
  z-index: 9999;
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  /* iOS Safe Area 対応 */
  padding-top: constant(safe-area-inset-top);
  padding-top: env(safe-area-inset-top);
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -webkit-transform: scale(0);
  transform: scale(0);
  -moz-transition-property: -moz-transform;
  -o-transition-property: -o-transform;
  -webkit-transition-property: -webkit-transform;
  transition-property: transform;
  -moz-transition-duration: 0.4s;
  -o-transition-duration: 0.4s;
  -webkit-transition-duration: 0.4s;
  transition-duration: 0.4s;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /***起点***/
  -webkit-transform-origin: right top 0;
  -moz-transform-origin: right top 0;
  -ms-transform-origin: right top 0;
  -o-transform-origin: right top 0;
  transform-origin: right top 0;
}
.fat-nav__wrapper {
  width: 100%;
  height: 100%;
  display: table;
  table-layout: fixed;
}
.fat-nav.active {
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -webkit-transform: scale(1);
  transform: scale(1);
}
.fat-nav ul {
  display: table-cell;
  vertical-align: middle;
  margin: 60px 0 0 0;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  float: left;
}
.fat-nav li {
  width: 50%;
  list-style-type: none;
  text-align: left;
  padding: 10px;
  font-size: 1em;
  box-sizing: border-box;
  float: left;
}
.fat-nav li,
.fat-nav li a {
  color: #0070be;
}
.fat-nav li a {
  text-decoration: none;
}

/*メニューカスタマイズ*/

.fat-navbox {
  width: 50%;
  text-align: left;
  padding: 10px;
  font-size: 1em;
  box-sizing: border-box;
  float: left;
  color: #333333;
}

.fat-navhome {
  text-align: left;
  width: 100%;
  padding: 20px;
  margin: 10px 0 0 0;
  box-sizing: border-box;
  float: left;
}
.fat-navhome a {
  color: #0070be;
  text-decoration: none;
}
.daimenu {
  width: 100%;
  padding: 10px;
  margin: 0px 0 0 0;
  box-sizing: border-box;
  float: left;
}
.daimenu a {
  color: #0070be;
  text-decoration: none;
}
.daimenuSE {
  width: 100%;
  padding: 10px;
  margin: 0px 0 0 0;
  box-sizing: border-box;
  float: left;
  font-size: 18px;
  text-align: center;
  font-weight: bold;
}
.daimenuSE a {
  color: #0070be;
  text-decoration: none;
}
.syoumenu {
  width: 100%;
  font-size: 0.9em;
  padding: 10px;
  margin: 0px 0 0 0;
  box-sizing: border-box;
  float: left;
}
.syoumenu a {
  color: #0070be;
  text-decoration: none;
}
.fat-navfooter {
  text-align: left;
  width: 100%;
  font-size: 0.9em;
  padding: 20px;
  margin: 0px 0 0 0;
  box-sizing: border-box;
  float: left;
}
.fat-navfooter a {
  color: #0070be;
  text-decoration: none;
}

/* 追加: モバイルメニューのブランドロゴとサブメニュー */
.fat-nav__brand {
  width: 100%;
  text-align: center;
  padding: 24px 0 8px;
}
.fat-nav__brand img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}
.syoumenu--service {
  padding: 0 16px 8px;
  text-align: center;
}
.syoumenu--service a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  margin: 6px 12px;
  border: none;
  background: transparent;
  color: #0070be !important;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.6;
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.syoumenu--service a:hover {
  text-decoration: underline;
  opacity: 0.9;
}
.syoumenu--service a::after {
  content: "›";
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
}

/* モバイルメニュー全体のリンク色を強制（競合対策） */
.fat-nav a,
.fat-nav .daimenuSE a,
.fat-nav .syoumenu a,
.fat-nav .fat-navhome a,
.fat-nav .fat-navfooter a {
  color: #0070be !important;
}
.fat-nav .daimenuSE a:hover,
.fat-nav .syoumenu a:hover,
.fat-nav .fat-navhome a:hover,
.fat-nav .fat-navfooter a:hover {
  opacity: 0.85;
}

/*****スマホ・タブレット対応********/
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
    width: 48px;
    height: 48px;
    position: fixed;
    top: calc(env(safe-area-inset-top) + 8px);
    right: 8px;
    padding: 12px;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid #0070be;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  }
  .hamburger__icon,
  .hamburger__icon:before,
  .hamburger__icon:after {
    width: 24px;
  }
  .hamburger__icon:before {
    top: -7px;
  }
  .hamburger__icon:after {
    top: 7px;
  }
}
