/* ベースレイアウト */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

main.content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

#footer {
  margin-top: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* フォントウェイト設定 */
.fw-bold {
  font-weight: 700 !important;
}

.date.fw-bold {
  font-weight: 700 !important;
}

.year-title.fw-bold {
  font-weight: 700 !important;
}

/* ページタイトルセクション */
.page-title-section {
  width: 100%;
  height: auto !important;
  min-height: 120px !important;
  background-color: transparent; /* 背景色を透明に変更 */
  display: flex;
  align-items: flex-end;
  margin-top: 85px;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
  text-align: right; /* 右寄せを追加 */
}

/* タイトルコンテナ */
.title-container {
  width: 100%;
  padding: 0;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* 右寄せを追加 */
}

/* タイトルテキスト - custom-styles.cssで管理 */

/* 切り欠き装飾 */
.page-title-section::after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: -50px;
  width: 40%;
  height: 50px;
  background-color: rgb(255, 255, 255);
  z-index: 2;
}

/* パンくずリスト */
.breadcrumb {
  font-size: 0.9rem !important;
  font-weight: bold !important;
  margin-top: -2.5em !important;
  position: relative;
  background-color: transparent;
  z-index: 4;
  justify-content: flex-end !important; /* パンくずを右寄せ */
}

.breadcrumb-item a {
  color: navy;
  text-decoration: none;
  margin-top: -1em !important;
}

.breadcrumb-item a:hover {
  color: rgb(27, 156, 255);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: blue;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: navy;
}

/* ローディングアニメーション */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 9999;
  transition: all 0.3s;
}

#loading.loaded {
  opacity: 0;
  visibility: hidden;
}

#loading .center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

#loading .spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border: 4px solid rgba(0, 0, 128, 0.1);
  border-radius: 50%;
  border-top: 4px solid #0000ff;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Cookie同意画面 */
.cookie-consent {
  /* 基本的には非表示 */
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  z-index: 99999;
  width: 100%;
  box-sizing: border-box;
}

/* is-showクラスがついたときだけ表示 */
.cookie-consent.is-show {
  display: block !important;
}

/* 同意・拒否ボタン */

.cookie-text {
  margin-bottom: 8px;
}

.cookie-text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-text a:hover {
  color: #cccccc;
}

/* レスポンシブ対応 - custom-styles.cssで管理 */
@media (max-width: 768px) {
  .page-title-section::after {
    width: 60px;
    height: 60px;
    bottom: -30px;
    left: -30px;
  }

  .cookie-consent {
    padding: 8px;
  }
}
