/* ==========================
   header.css ヘッダー全体
========================== */
.site-header {
  width: 100%;
  height: 80px;
  background: #fff; /* 背景を白に設定 */
  border-bottom: 1px solid #eee; /* 境界線を薄いグレーに */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: flow-root;
  box-sizing: border-box;
}

/* ==========================
   上段 (PC)
========================= */
.header-top {
  background: #fff;
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.header-top.hide {
  max-height: 0;
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
}
.header-inner ul,
.header-inner p,
.header-inner h1 {
  margin: 0;
  padding: 0;
}

/* ==========================
   ロゴ (PC：大型化)
========================== */
.header-brand {
  display: flex;
  align-items: center;
  height: 80px;
}
.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  gap: 10px;
  height: 100%;
}

/* セット縮小用ラッパー（PC時） */
.brand-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 70px;
}
.brand-logo-wrapper img {
  display: block;
  height: 100%;
  width: auto;
  margin: 0;
  padding: 0;
  object-fit: contain;
}

/* ==========================
   PC右側情報 (サブメニュー＋電話)
========================== */
.header-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  gap: 8px;
}

.breadcrumb {
  display: block !important;
}
.breadcrumb ul {
  list-style: none;
  display: flex;
  gap: 10px;
  font-size: 14px;
  padding: 0;
  margin: 0;
}
.breadcrumb li {
  position: relative;
}
.breadcrumb li + li::before {
  content: "›";
  color: #999;
  position: absolute;
  left: -15px;
}
.breadcrumb a {
  color: #0a6a80;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
}
.breadcrumb a:hover {
  background: #d0f0f5;
  text-decoration: underline;
}
.breadcrumb .button-link {
  background: #0a6a80;
  color: #fff !important;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb .button-link:hover {
  background: #0c87a0;
}

.header-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
}
.header-tel strong {
  font-size: 20px;
  line-height: 1;
}
.header-tel a {
  color: #0a6a80;
  text-decoration: none;
}

/* ==========================
   下段ナビ（PC）
========================== */
.header-nav {
  width: 100%;
  background: linear-gradient(to bottom, #30c2c2, #1fa6a6);
}
.header-nav .nav-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.header-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav li {
  flex: 1;
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
}
.header-nav a {
  display: block;
  text-align: center;
  padding: 14px 0;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}
.header-nav a span {
  font-size: 11px;
}
.header-nav a:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* --- 【新規追加】PCナビのご宿泊プラン特別装飾 --- */
.header-nav li.nav-reserve a {
    background: linear-gradient(135deg, #ff9800, #f57c00); /* SPと同じオレンジ */
    color: #fff !important;
    border: none; /* ボタン感を出すため境界線を消去 */
}
.header-nav li.nav-reserve a:hover {
    filter: brightness(1.1);
    background: linear-gradient(135deg, #ff9800, #f57c00); /* ホバー時の背景色を固定 */
}
.header-nav li.nav-reserve a span {
    color: #fff !important;
}

/* ==========================
   SP共通パーツ (ボタン類)
========================== */
.header-sp-controls {
  display: none;
}
.sp-btn,
.sp-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 44px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  line-height: 1.2;
  text-align: center;
}
.sp-tel,
.sp-menu-btn {
  width: 52px;
  background: #24bcbc;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
}
.sp-reserve-accent {
  width: 100px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.sp-menu-btn .line {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}
.sp-menu-btn .line:last-of-type {
  margin-bottom: 0;
}
.sp-menu-btn.is-active .line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.sp-menu-btn.is-active .line:nth-child(2) {
  opacity: 0;
}
.sp-menu-btn.is-active .line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================
   SPメニュー本体
========================== */
.sp-menu {
  display: block;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - 60px); 
  overflow-y: auto;
}
.sp-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sp-menu ul {
  display: flex;
  flex-wrap: wrap; 
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee;
}
.sp-menu li {
  width: 50%; 
  box-sizing: border-box;
  border-bottom: 1px solid #eee;
}
.sp-menu li:nth-child(odd) {
  border-right: 1px solid #eee;
}
.sp-menu a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18px 10px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
  transition: background-color 0.2s;
}
.sp-menu a span {
  display: block;
  font-size: 10px;
  color: #0a6a80; 
  margin-top: 4px;
  font-weight: normal;
}
.sp-menu a:active {
  background-color: #f9f9f9;
}

/* --- SPメニュー内の特定ボタン --- */
.sp-menu-tel {
  background-color: #24bcbc !important;
  color: #fff !important;
}
.sp-menu-tel span {
  color: #fff !important;
}
.sp-menu-reserve {
  background: linear-gradient(135deg, #ff9800, #f57c00) !important;
  color: #fff !important;
}
.sp-menu-reserve span {
  color: #fff !important;
}

/* ==========================
   レスポンシブ (SP)
========================== */
@media (max-width: 768px) {
  .site-header {
    height: 60px;
    padding: 0 10px;
  }
  .header-inner {
    height: 60px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
  }

  .header-brand {
    position: static;
    flex: 0 1 auto; 
    min-width: 0;   
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    z-index: 1;
    transition: opacity 0.3s ease;
  }
  
  .site-header.is-menu-open .header-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    flex: none;
    z-index: 10;
    animation: hotelElegantFade 0.4s ease-out forwards;
  }

  @keyframes hotelElegantFade {
    0% { opacity: 0; transform: translate(-50%, -45%); }
    100% { opacity: 1; transform: translate(-50%, -50%); }
  }

  .brand-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
    height: 100%;
  }

  .brand-logo-wrapper {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
  }
  .brand-logo-wrapper img {
    height: 100%;
    width: auto;
    flex-shrink: 1;
    object-fit: contain;
    min-width: 0;
  }

  .header-sp-controls {
    position: relative;
    flex: 0 0 auto;
    display: flex !important;
    gap: 4px !important;
    z-index: 2;
    margin-left: auto !important;
    padding-left: 10px;
  }

  .sp-menu-btn.is-active ~ .sp-btn {
    display: none !important;
  }

  .pc-only {
    display: none !important;
  }
  
  /* メインビジュアルが潜り込まないように調整 */
  .main-visual {
    margin-top: 60px !important;
  }
}