/* header.css - Bug fixes for responsive layout (Brave compatibility) */

/* ❶ グローバル box-sizing を border-box に統一 */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ヘッダー */
header {
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.5s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;           /* 折り返し禁止 */
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  gap: 20px;                  /* 要素間の余裕 */
}

.logo img {
  height: 40px;
}

.menu {
  display: flex;
  flex-wrap: nowrap;           /* 折り返し禁止 */
  align-items: center;
}

.menu ul {
  display: flex;
  flex-wrap: nowrap;           /* 折り返し禁止 */
  list-style: none;
}

.menu li {
  margin-left: 25px;
  flex-shrink: 0;              /* 幅固定 */
}

.menu li a {
  color: #fff;
  font-weight: 500;
  position: relative;
  white-space: nowrap;         /* テキストの折り返し禁止 */
}

.menu li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E17A42;
  transition: width 0.3s ease;
}

.menu li a:hover::after {
  width: 100%;
}

.sns {
  margin-left: 30px;
  display: flex;
  align-items: center;
  flex-shrink: 0;              /* 幅固定 */
}

.sns a {
  color: #fff;
  font-size: 18px;
  margin-left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;   /* 一定サイズ */
}

.sns a:hover {
  color: #E17A42;
}

/* ヘッダー内のSNSアイコン表示用（モバイル時のみ） */
.header-sns {
  display: none;               /* デスクトップでは非表示 */
}

.header-sns a {
  color: #fff;
  font-size: 24px;
  margin-left: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-sns a:hover {
  color: #E17A42;
}

.header-right {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;           /* 折り返し禁止 */
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* モバイル表示用 */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .header-sns {
    display: flex;
    margin-right: 25px;
  }
  
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 30px;
    transition: right 0.5s ease;
    z-index: 1000;
  }
  
  .menu.active {
    right: 0;
  }
  
  .menu ul {
    flex-direction: column;
    width: 100%;
  }
  
  .menu li {
    margin-left: 0;
    margin-bottom: 20px;
  }
  
  /* メニュー内のSNSは非表示に */
  .menu .sns {
    display: none;
  }
}

.sns a .booking-icon,
.header-sns a .booking-icon {
  width: 16px;    /* デスクトップなら 32px、モバイルなら 36px など */
  height: auto;
  display: block;
}

/* モバイルだけ変えたいなら */
@media screen and (max-width: 768px) {
  .header-sns a .booking-icon {
    width: 20px;
  }
}