:root {
  --primary-color: #5B1269;
  --secondary-color: #B6358F;
  --accent-color: #E4C269;
  --text-color: #3D3D3D;
  --text-color-sub: #777;
  --text-color-link: #17458F;

  --font-size-small: 13px;
  --font-size-medium: 16px;
  --font-size-large: 21px;
  --font-size-xlarge: 22px;
  --font-size-xxlarge: 24px;
  --font-size-xxxlarge: 32px;
  --font-size-xxxxlarge: 36px;

  --font-type-title: "Noto Serif JP";
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-size: var(--font-size-medium);
  color: var(--text-color);
}

h1 {
    font-size: var(--font-size-xxxxlarge);
    font-family: var(--font-type-title);
    color: var(--accent-color);
    font-weight: bold;
}

.header-top {
  width: 90vw;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  padding: 0;
}

.header-logo-area {
  display: flex;
  align-items: center;
}

.bunka-logo {
  height: 80px;
  margin-right: 0.5rem;
}

.geijustusai-logo {
  height: 65px;
  margin-left: 10px;
}

@media (max-width: 1024px) {
  .geijustusai-logo {
    height: 50px;
    margin-left: 10px;
  }
}

.bunka-title {
  font-weight: bold;
  font-size: 1.2rem;
  color: #5B1269;
}

.bunka-subtitle {
  font-size: 0.8rem;
  color: #333;
  margin-left: 0.5rem;
}

.header-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.header-controls-fontsize {
  display: flex;
  align-items: center;
  margin-right: 2.5rem;
}

.header-controls-sns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fontsize-label {
  font-size: var(--font-size-large);
  font-weight: bold;
  margin-right: 1rem;
}

.fontsize-btn {
  margin-right: 0.5rem;
  padding: 0.5rem 1.2rem;
  font-size: var(--font-size-large);
  border-radius: 0.4rem;
}

.fontsize-btn:last-child {
  margin-right: 0;
}

.fontsize-btn.active {
  background: #3D3D3D !important;
  color: #fff !important;
  border: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.sns-btn.facebook {
  background: #1877F2;
  color: #ffffff;
}

.sns-btn.youtube {
  background: #FF0000;
  color: #ffffff;
}

.sns-btn.twitter-x {
  background: #000000;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .header-top {
    width: 100vw;
    padding: 1rem 0.5rem;
    flex-direction: column;
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .header-logo-area {
    justify-content: center;
    margin-bottom: 1rem;
  }

  .bunka-logo {
    width: 120px;
    height: auto;
  }

  .header-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .header-controls-fontsize {
    margin-right: 0;
  }

  .fontsize-label {
    font-size: var(--font-size-medium);
  }

  .fontsize-btn {
    padding: 0.3rem 0.8rem;
    font-size: var(--font-size-medium);
  }

  .header-controls-sns {
    display: none;
  }

  .nav-inner {
    width: 100vw;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .nav-list {
    display: none!important;
  }

  .hamburger-menu {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
  }

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

  .hamburger-menu span:nth-child(1) {
    top: 0;
  }

  .hamburger-menu span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .hamburger-menu span:nth-child(3) {
    bottom: 0;
  }

  .first-view-links {
    display: none;
  }

  .first-view-main-img {
    width: 100%;
    max-width: 800px;
    margin: 40px auto 100px;
  }

  .section-row {
    flex-direction: column;
    gap: 24px;
  }

  .section-img-col,
  .section-txt-col {
    flex: 1 1 100%;
    max-width: 100%;
  }

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

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

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

  .nav-list.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 86px;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    padding: 20px;
    z-index: 1000;
  }

  .nav-list.active li {
    margin: 10px 0;
  }
}

.main-nav {
  background: var(--primary-color);
  width: 100%;
  min-height: 86px;
  height: 86px;
}

.nav-inner {
  width: 90vw;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 86px;
}

.nav-title {
  color: #fff;
  font-size: var(--font-size-large);
  font-weight: 500;
  letter-spacing: 0.03em;
  font-family: var(--font-type-title);
}

.nav-title-text-large {
  margin-left: 16px;
  font-weight: bold;
  font-size: var(--font-size-xxxlarge);
}

.nav-inner > a {
  text-decoration: none;
  color: inherit;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-list li a:hover {
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .nav-title {
    font-size: var(--font-size-medium);
  }

  .nav-title-text-large {
    margin-left: 8px;
    font-size: 18px;
  }
}

.first-view {
  background-image: url("../img/background.png");
  background-repeat: repeat;
  width: 100%;
  position: relative;
  &::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 80%;
    pointer-events: none;
    background: 
      url("../img/main/main-left.png") no-repeat left bottom,
      url("../img/main/main-right.png") no-repeat right bottom;
    background-size: 274px auto, 444px auto;
    z-index: 2;
  }
  &::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vw;
    background: url("../img/bg-fv.svg");
    background-size: cover;
    background-position: bottom right;
    background-repeat: no-repeat;
    z-index: 1;
  }
}

.first-view .container {
  max-width: 1124px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.first-view-main-img {
  width: 800px;
  margin: 40px auto;
  height: auto;
  display: block;
}

.first-view-decoration-date {
  z-index: 30;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
}

.first-view-decoration-img-date {
  display: block;
  width: 618px;
  height: auto;
  margin-left: auto;
}

.first-view-curve {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.first-view-links {
  position: absolute;
  top: 147px;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  z-index: 10;
}

.first-view-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.first-view-link-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 0.3rem;
}

.first-view-link-img {
  width: 50%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .first-view-links {
    display: none;
  }

  .first-view-main-img {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .first-view-decoration-img-date {
    width: 80%;
    max-width: 618px;
  }

  .first-view {
    &::before {
      background-size: 25% auto, 40% auto;
    }
  }
}

.gallery {
  background: var(--primary-color);
  padding: 72px 0;
}

.gallery-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.gallery-slide {
  flex: 0 0 auto;
  margin: 0 32px;
}

.gallery-img {
  width: 322px;
  height: 197px;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .gallery {
    padding: 36px 0;
  }
  
  .gallery-img {
    width: 100%;
    max-width: 161px;
    height: auto;
  }

  .gallery-slide {
    margin: 0 16px;
  }

  .gallery-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.section-block {
  background: var(--primary-color);
  color: #fff;
  padding-bottom: 64px;
}

.section-bg-primary {
  background: var(--primary-color);
}

.section-container {
  max-width: 1024px;
  margin: 0 auto;
  padding-top: 32px;
}

.section-title-col {
  margin-bottom: 24px;
}

.section-title {
  color: var(--accent-color);
  font-size: var(--font-size-xxxlarge);
  font-family: var(--font-type-title);
  font-weight: bold;
  margin-bottom: 0;
}

.text-muted {
  color: var(--text-color-sub);
  font-size: var(--font-size-small);
}

.section-title-h2 {
  color: var(--primary-color);
  font-size: var(--font-size-xxlarge);
  font-family: var(--font-type-title);
  font-weight: bold;
  margin-bottom: 0;
}

.section-title-h3 {
  font-size: var(--font-size-xxlarge);
  font-weight: bold;
  margin-bottom: 0;
}

.section-title-h4 {
  color: var(--primary-color);
  font-size: var(--font-size-xlarge);
  font-weight: bold;
  margin-bottom: 0;
  margin-bottom: 10px;
  border-left: 3px solid var(--primary-color);
  padding-left: 12px;
}

.section-text-col {
  margin-bottom: 40px;
}

.section-lead-col {
    margin-bottom: 40px;
}

.section-lead {
    line-height: 39px;
    font-size: var(--font-size-large);
}

.section-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.section-img-col {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-txt-col {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
}

.section-img {
  width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .section-container {
    width: 90%;
  }

  .section-title {
    font-size: var(--font-size-xxlarge);
  }
}

.menu-overlay {
  display: none;
  position: fixed;
  z-index: 998;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4);
  transition: opacity 0.3s;
}

.menu-overlay.active {
  display: block;
}

.side-menu {
  position: fixed;
  top: 0; right: -320px;
  width: 320px; max-width: 80vw;
  height: 100vh;
  background: #fff;
  z-index: 999;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  transition: right 0.3s;
  padding: 32px 24px 24px 24px;
  overflow-y: auto;
  font-family: var(--font-type-title);
}

.side-menu.active {
  right: 0;
}

.side-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 16px; right: 16px;
  cursor: pointer;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 48px 0 0 0;
}

.side-menu li {
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid #D9D9D9;
}

.side-menu a {
  color: #5a2d6d;
  font-size: 1.4rem;
  text-decoration: none;
  font-weight: bold;
}

.site-footer {
  background-image: url("../img/background.png");
  background-repeat: repeat;
  width: 100%;
  padding: 20px 0;
}

.footer-top {
  width: 90vw;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  min-height: 80px;
  max-height: 80px;
  padding: 0;
}

.footer-logo-area {
  display: flex;
  align-items: center;
}

.footer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copyright {
  color: var(--primary-color);
  font-size: var(--font-size-medium);
}

.footer-copyright .copyright {
  font-size: 0.8rem;
  color: #a0a0a0;
  margin: 0;
}

@media (max-width: 1024px) {
  .footer-top {
    width: 100vw;
    padding: 1rem 0.5rem;
    flex-direction: column;
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .footer-logo-area {
    justify-content: center;
    margin-bottom: 1rem;
  }

  .footer-controls {
    flex-direction: column;
    gap: 1rem;
  }
}

/* --------------------------------
 sub Page
-------------------------------- */
.section-title-sub{
  font-size: var(--font-size-xxlarge);
  font-weight: bold;
  margin-bottom: 0;
  color: var(--primary-color);
}

.nav-list > li.active > a {
  font-weight: bold;
  color: #fff;
  border-bottom: 2px solid #fff;
}

.archives {
  background-image: url(../img/bg_archives.png);
}

.lineup {
  background-image: url(../img/bg_lineup.png);
}

.news {
  background-image: url(../img/bg_news.png);
}

.page-hero {
  position: relative;
  height: 300px;
  max-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
  max-width: 1024px;
}

.page-hero-title {
  letter-spacing: .1em;
  text-align: left;
  color: #fff;
  display: flex;
  align-items: center;
}

.page-hero-subtitle {
  font-size: var(--font-size-large);
  font-weight: normal;
  color: #fff;
  padding-left: 15px;
  margin-left: 15px;
  border-left: 1px solid #fff;
}

.main-content {
  padding: 80px 0;
  background-color: #fff;
}

.page-lead {
  text-align: center;
  max-width: 1024px;
  padding: 0 15px;
}

.page-lead .section-title {
  font-size: var(--font-size-xxlarge);
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.page-lead p {
  font-size: var(--font-size-medium);
  line-height: 2;
  text-align: left;
}

.side-title {
  position: relative;
  padding-left: 1.25rem; /* 20px */
}

.side-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 4px;
  background-color: var(--primary-color, #5B1269);
}

/* On smaller screens, the side-title will be above the content. */
/* We'll change the vertical line to a border. */
@media (max-width: 767.98px) {
  .side-title {
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color, #5B1269);
  }

  .side-title::before {
    display: none;
  }
}

.section-bg-lightgray {
  background-color: #f8f9fa;
}

.stat-item {
  text-align: left;
}

.stat-label {
  font-size: var(--font-size-medium);
  color: var(--text-color-sub);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: var(--font-size-xxxxlarge);
  font-weight: bold;
  line-height: 1;
  color: var(--text-color);
}

.stat-unit {
  font-size: var(--font-size-large);
  margin-left: 0.5rem;
  font-weight: normal;
}

.donut-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.donut-chart {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(
    #D3B8D8 calc(var(--chart-progress1) * 1%),
    #F7E4A0 calc(var(--chart-progress1) * 1%) calc(var(--chart-progress2) * 1%),
    #E9ECEF calc(var(--chart-progress2) * 1%) 100%
  );
  display: flex;
  justify-content: center;
  align-items: center;
}

.donut-chart::before {
  content: '';
  position: absolute;
  width: 75%;
  height: 75%;
  background: #f8f9fa;
  border-radius: 50%;
}

.donut-chart-center {
  position: relative;
  text-align: center;
  font-size: var(--font-size-small);
  color: var(--text-color-sub);
}

.donut-chart-labels {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: var(--font-size-small);
}

.donut-chart-labels p {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.label-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.contact-box {
  background-color: #F2F2F2;
  padding: 1.5rem;
}

.contact-box-title {
  font-size: var(--font-size-large);
  font-weight: bold;
  margin-bottom: 1rem;
}

.contact-box-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-box-item {
  background-color: #f8f9fa;
  padding: 0.75rem 1.25rem;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .contact-box-body {
    flex-wrap: nowrap;
  }
}

.lineup-link {
  text-decoration: none;
  position: relative; /* 下線のアニメーションのために必要 */
  padding-left: 1em; /* 三角と文字の間隔を調整 */
  display: inline-block; /* positionを有効にするため */
  color: var(--text-color);
  font-size: var(--font-size-large);
  margin-right: 1.6rem;
  margin-bottom: 20px;
}

/* 三角の作成（サイズを小さく調整） */
.lineup-link::before {
  color: var(--primary-color);
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-top: 0.3em solid transparent;
  border-bottom: 0.3em solid transparent;
  border-left: 0.45em solid var(--primary-color);
}

/* 下線の初期状態 */
.lineup-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  /* ホバー時のみアニメーションを適用 */
  transition: transform 0.3s ease-in-out;
}

/* ホバー時の下線 */
.lineup-link:hover::after {
  transform: scaleX(1);
}

/* ホバーが外れた後の下線のスタイル（アニメーションを無効化） */
.lineup-link:not(:hover)::after {
  transition: none;
}

.lineup-list {
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 20px;
}

.lineup-title {
  background-color: #c46ea9;
  color: #FFF!important;
  padding: 20px 0;
}

.lineup-title-eng {
  color: #FFF;
  font-size: var(--font-size-medium);
}

#lineups {
  a {
    overflow-wrap: anywhere; /* 強制的に折り返す */
    word-break: break-all;   /* 単語の途中でもOK */
  }
}

/* お知らせリスト全体 (ul) */
.news-list-ul {
    list-style: none; /* liの先頭にある「・」を消す */
    padding: 0;
    margin: 0;
    font-size: 20px;
}

/* お知らせの各行 (li) */
.news-list-ul li {
    display: flex; /* この中で日付とリンクを横並びにする */
    align-items: center;
    padding: 12px 0;
}
  
/* 日付 (span) */
.news-list-ul .date {
    width: 180px;
    margin-right: 20px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0; /* 縮まないようにする */
}

/* リンク (span) */
.news-list-ul .link {
    flex-grow: 1; /* 残りの幅をすべて使う */
}

/* aタグとアイコンのスタイル (変更なし) */
.news-list-ul .link a {
    text-decoration: none;
    color: #0056b3;
}
.news-list-ul .link a:hover {
    text-decoration: underline;
}
.news-list-ul .link a .bi-box-arrow-up-right {
    font-size: 0.9em;
    margin-right: 4px;
    vertical-align: text-top;
}

@media (max-width: 1024px) {
    .news-list-ul li {
      flex-direction: column; /* 要素を縦並びにする */
      align-items: flex-start; /* 左寄せにする */
    }

    .news-list-ul .date {
      width: auto; /* 日付の固定幅を解除 */
      margin-right: 0; /* 右側の余白をなくす */
      margin-bottom: 5px; /* 日付の下に少し余白を追加 */
    }

    .news-list-ul .link {
      width: 100%; /* リンクが全幅を使うようにする */
    }
}