/* =========================
  共通
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  background: #d9e6f2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 20px;
}

.site-logo a {
  color: #6b8ba4;
  text-decoration: none;
}

/* =========================
  PC表示
========================= */
.pc-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center; 
}

.pc-nav a {
  color: #6b8ba4;
  text-decoration: none;
  font-size: 18px;
}

/* 区切り線 */
.pc-nav > ul > li:not(:last-child)::after {
  content: "|";
  margin-left: 15px;
  color: #9fb3c8;
}

/* 親を基準にする */
.pc-nav li {
  position: relative;
}

/* 子メニュー（初期は非表示） */
.pc-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(99% + 2px);
  left: 0;
  z-index: 9999;
  background: #ffffff;
  padding: 10px 0;
  list-style: none;

  width: max-content;
  white-space: nowrap;

  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* ホバーで表示 */
.pc-nav li:hover .sub-menu {
  display: block;
}

/* 子メニューの中 */
.pc-nav .sub-menu li {
  padding: 0; /* liの余白リセット */
}

/* サブメニューの文字 */
.pc-nav .sub-menu a {
  font-size: 16px;        /* 好きなサイズに調整 */
  color: #6b8ba4;         /* 通常文字色 */
  display: block;
  padding: 10px 15px; /* クリックしやすく */
  transition: 0.2s;
}

/* ホバー時（背景色変更） */
.pc-nav .sub-menu a:hover {
  background-color: #7ca3ce;
  color: #ffffff;         /* 背景が濃いので白文字推奨 */
}

/* CONTACTボタン */
.contact-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #7fa0c0;
  padding: 10px 20px 10px 50px;
  border-radius: 0 0 0 20px;
}

.contact-btn::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url("../images/icon/letter.png") no-repeat center / contain;
  background-color: #7fa0c0
}

.contact-btn a {
  display: flex;
  align-items: center;
  background: none;
  color: #fff;
  text-decoration: none;
  padding: 0;
}
/* =========================
  スマホ表示
========================= */
/* PCではスマホ系非表示 */
.sp-nav,
.menu-btn {
  display: none;
}

/* スマホ用ナビ */
@media (max-width: 767px) {

  .pc-nav {
    display: none;
  }
  .contact-btn {
    display: none;
  }

  .menu-btn {
    display: flex;

    position: absolute;
    top: 0;
    right: 0;
    width: 90px;

    background: #7fa0c0;
    border-radius: 0 0 0 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

  /* ハンバーガー線 */
  .menu-btn span {
    width: 30px;
    height: 3px;
    background: white;
    margin: 4px 0;
  }

  /* MENU文字 */
  .menu-btn p {
    color: white;
    font-size: 16px;
    margin-top: 10px;
  }

  .sp-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #9fb3c8;
    transition: 0.3s;
    padding: 100px 20px 20px;
    z-index: 1001;
  }

  .sp-nav.active {
    right: 0;
  }

/* サブメニューは閉じる */
.sp-nav .sub-menu {
  display: none;
}

/* 開いた時 */
.sp-nav .menu-item.open > .sub-menu {
  display: block;
}

.sp-nav .menu-item-has-children > a::after {
  content: "▼";
  float: right;
  font-size: 10px;
}

.sp-nav .menu-item.open > a::after {
  transform: rotate(180deg);
}

}