/**
 * アンカーナビゲーション スタイル
 */

/* ナビゲーション本体 */
.anchor-nav {
  background-color: #fff;
  padding: 16px 0;
  z-index: 100;
}

/* スティッキー状態 */
.anchor-nav.is-sticky {
  position: fixed;
  left: 0;
  right: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* プレースホルダー（レイアウト安定用） */
.anchor-nav-placeholder {
  visibility: hidden;
}

/* リスト */
.anchor-nav__list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
}

/* アイテム */
.anchor-nav__item {
  flex: 1;
  max-width: 250px;
  text-align: center;
  position: relative;
}

/* 斜めボーダー（右斜め） */
.anchor-nav__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 70%;
  background-color: #e0e0e0;
  transform: translateY(-50%) rotate(15deg);
}

/* 右端ボーダー */
.anchor-nav__item:last-child::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 70%;
  background-color: #e0e0e0;
  transform: translateY(-50%) rotate(15deg);
}

/* リンク */
.anchor-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  transition: opacity 0.2s;
  position: relative;
  z-index: 1;
}

.anchor-nav__link:hover {
  opacity: 0.7;
}

/* タイトル（英語） */
.anchor-nav__title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #003366;
  line-height: 1.4;
}

/* サブタイトル（日本語） */
.anchor-nav__subtitle {
  font-size: 1.2rem;
  font-weight: bold;
  color: #00146e;
  margin-top: 2px;
  line-height: 1.4;
}

/* 矢印アイコン */
.anchor-nav__arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-right: 1px solid #00bcfc;
  border-bottom: 1px solid #00bcfc;
  transform: rotate(45deg);
}

/* SP対応（余白を狭める） */
@media (max-width: 767px) {
  .anchor-nav {
    padding: 8px 4px;
  }

  .anchor-nav__item {
    max-width: none;
    min-width: 0; /* flex アイテムのはみ出し防止 */
  }

  .anchor-nav__link {
    padding: 4px 10px;
  }

  .anchor-nav__title {
    font-size: 1.2rem;
  }

  .anchor-nav__title img {
    height: 1rem;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
  }

  .anchor-nav__subtitle {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .anchor-nav__arrow {
    width: 8px;
    height: 8px;
    margin-top: 2px;
  }
}

/**
 * TOPへ戻る
 */
.scroll-to-top {
  position: fixed;
  right: 0;
  bottom: 36px;
  transform: translateY(-50%);
  z-index: 99;
  padding: 16px 24px;
  font-size: 1.4rem;
  font-weight: 600;
  background-color: #00146e;
  color: white;
  border: none;
  border-bottom-left-radius: 12px;
  border-top-left-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.scroll-to-top img {
  width: 28px;
  height: auto;
}