@charset "utf-8";
@import url('https://cdn.jsdelivr.net/npm/yakuhanjp@4.0.0/dist/css/yakuhanjp.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;700&display=swap');

/* CSS Document */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Yu Gothic Medium", "Yu Gothic", sans-serif;
}

/* スクロールマージン */
[id^="section-"] {
  scroll-margin-top: 2rem;
}

.brd-green-2 {
  border: 1px solid #CCC;
  border-radius: 0.4em;
}

.t-bg-green-yellow {
  background-color: #05233c;
  color: #FFF;
  padding: 0.8em;
  border-radius: 0.3em;
}

/**/
.snav-scholarship {
  position: sticky;
  left: 0;
  top: 0;
  background-color: #fff;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0.5em 1px;
  z-index: 1;
}

@media (min-width: 768px) {
  .snav-scholarship {
    width: 100%;
    margin-left: 0;
    padding: 0.5em 0;
  }
}

.snav-scholarship ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
}

@media (min-width: 768px) {
  .snav-scholarship ul {
    gap: 0.5em;
  }
}

.snav-scholarship ul li {
  width: auto;
  flex: 1 1 0;
}

.snav-scholarship ul li a {
  display: block;
  font-size: 0.8em;
  text-align: center;
  white-space: nowrap;
  background-color: #EEE;
  border-radius: 0;
}

.snav-scholarship ul li a:hover,
.snav-scholarship ul li a:active,
.snav-scholarship ul li a:focus {
  background-color: hsla(206.5, 100%, 30.6%, 0.1);
}

/* 共通見出し */
.title-underline {
  font-size: 1.3em;
  color: #05233c;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
  border-bottom: 2px solid #05233c;
}

.title-border-left {
  font-size: 1.1em;
  color: #05233c;
  padding-left: 0.8em;
  margin: 1.5em 0 0.5em;
  border-left: 4px solid #05233c;
}

/* Q&A アコーディオン */
.qa-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 0;
}

.qa-question {
  cursor: pointer;
  padding: 1em 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qa-question::-webkit-details-marker {
  display: none;
}

.qa-question::after {
  content: "+";
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 1em;
  flex-shrink: 0;
  color: #05233c;
}

.qa-item[open] .qa-question::after {
  content: "−";
}

.qa-text {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
}

.qa-answer {
  position: relative;
  padding: 0 0 1em 2.5em;
  margin: 0;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qa-answer .qa-label {
  position: absolute;
  left: 0;
  top: 0;
}

.qa-question .qa-label,
.qa-answer .qa-label {
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  flex-shrink: 0;
}

.qa-question .qa-label {
  color: #05233c;
  background-color: rgba(5, 35, 60, 0.1);
}

.qa-answer .qa-label {
  color: #c00;
  background-color: rgba(204, 0, 0, 0.1);
}

/* 会報グリッド */
.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.newsletter-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.newsletter-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.newsletter-card__link {
  display: flex;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}

.newsletter-card__image {
  width: 6rem;
  height: auto;
  flex-shrink: 0;
  margin: 0.8rem;
}

.newsletter-card__body {
  padding: 0.8rem 0.8rem 0.8rem 0;
  flex: 1;
  min-width: 0;
}

.newsletter-card__title {
  font-size: 0.85rem;
  margin: 0 0 0.4rem;
  color: #05233c;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.newsletter-card__list {
  margin: 0;
  padding-left: 1.5em;
  font-size: 0.75rem;
  color: #555;
}

.newsletter-card__list li {
  margin-bottom: 0.2em;
  display: list-item;
  list-style-type: disc;
  line-height: 1.2;
  margin-block: 0.3em;
}

/* 校長メッセージ - 雑誌風レイアウト */
.principal-message {
  background: linear-gradient(180deg, #f9f8f4 0%, #f9f8f400 48rem);
  padding: 2rem 1.5rem;
  border-radius: 0;
  position: relative;
  max-width: 44rem;
  margin-inline: auto;
  border-top: 2px solid #05233c;
}

.principal-message--no-border {
  border-top: none;
}

.principal-message__headline {
  font-size: 1.5rem;
  font-weight: 700;
  color: #05233c;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.principal-message__figure {
  /* float: right; */
  /* margin: 0 -3.5rem 1rem 1.5rem; */
  text-align: center;
  /* width: 38vw; */
}

.principal-message--photo-left .principal-message__figure {
  /* float: left; */
  /* margin: 0 1.5rem 1rem -3.5rem; */
}

@media (min-width: 768px) {
  .principal-message--photo-left .principal-message__figure {
    margin: 0 1.5rem 1rem -8rem;
    float: left;
  }
}

.principal-message__photo {
  /* width: 10rem; */
  /* height: auto; */
  /* border: 1rem solid #fff; */
}

.principal-message__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 1rem;
  font-family: "Noto Serif JP", serif;
  white-space: normal;
  /* padding-inline: 1rem; */
  margin-bottom: 2rem;
}

.principal-message__title {
  font-size: 0.8rem;
  color: #666;
}

@media (min-width: 768px) {
  .principal-message__title {
    font-size: 0.9rem;
  }
}

.principal-message__role {
  font-size: 0.85rem;
  color: #333;
}

.principal-message__name {
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #05233c;
  letter-spacing: 0.1em;
}

.principal-message__content {
  line-height: 1.9;
  color: #333;
}

.principal-message__content p {
  text-indent: 1em;
  margin-bottom: 1em;
  font-size: 0.9em;
}

/* 100周年記念事業募金総額 */
.centennial-fundraising {
  margin-top: 2rem;
  line-height: 1;
  text-align: center;
  border-bottom: 3px solid #333;
  white-space: nowrap;
}

.centennial-fundraising__header {
  background-color: #f9f8f4;
}

.centennial-fundraising__title {
  background-color: #333;
  color: #FFF;
  letter-spacing: 0.1em;
  padding: 0.8rem 0;
}

.centennial-fundraising__total {
  padding: 1rem 0;
  font-family: "roboto", -apple-system, BlinkMacSystemFont, YuGothic, "Yu Gothic Medium", "Yu Gothic", sans-serif;
  font-style: normal;
}

.centennial-fundraising__amount {
  font-weight: 800;
  font-size: 3.4rem;
}

.centennial-fundraising__currency {
  font-weight: bold;
}

.centennial-fundraising__item {
  display: grid;
  width: 100%;
  align-items: center;
  justify-items: center;
  padding: 1rem 0;
  gap: 0.1rem;
}

.centennial-fundraising__item+.centennial-fundraising__item::before {
  content: "";
  background-color: #333;
  width: 62%;
  height: 1px;
  transform: translateY(-1rem);
}

.centennial-fundraising__item-name {
  font-weight: bold;
  background-color: #333;
  color: #FFF;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  padding: 0.4em 1em 0.2em;
  border-radius: 2rem;
  width: fit-content;
}

.centennial-fundraising__item-value {
  font-family: "roboto", -apple-system, BlinkMacSystemFont, YuGothic, "Yu Gothic Medium", "Yu Gothic", sans-serif;
  font-style: normal;
}

.centennial-fundraising__item-amount {
  font-weight: 500;
  font-size: 2.6rem;
}

.centennial-fundraising__item-currency {
  font-weight: 500;
}

.centennial-fundraising__note {
  text-align: right;
  font-size: 0.9em;
}

@media (min-width: 768px) {
  .principal-message__content p {
    font-size: 1em;
  }
}

.principal-message__content p:last-child {
  margin-bottom: 0;
}

/* リードテキスト */
.lead-text {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  margin-top: 1.5rem;
}

.lead-text--lg {
  font-size: 1.2rem;
}

/* プロジェクトカード */
.project-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.project-card {
  --key-color: #05233c;
  background-color: #fff;
  border: 2px solid var(--key-color) !important;
  border-radius: 0.5rem;
  padding: 1.0rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.project-card--green {
  --key-color: #16a147;
}

.project-card--orange {
  --key-color: #f47407;
}

.project-card--blue {
  --key-color: #0e9acc;
}

.project-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #05233c;
  margin-bottom: 1rem;
  background-color: var(--key-color) !important;
  color: #FFF;
  padding: 0.5rem;
  border-radius: 2em;
  position: relative;
  z-index: 1;
  margin-top: -2rem;
}

.project-card__image {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.project-card__goal {
  width: fit-content;
  display: grid;
  margin-bottom: 1rem;
  grid-template-columns: auto auto auto;
  align-items: baseline;
  justify-content: space-evenly;
  justify-items: center;
  gap: 0.1rem;
  margin-inline: auto;
  white-space: nowrap;
}

.project-card__goal-label {
  display: block;
  font-size: 1.0rem;
  color: #666;
  font-weight: 700;
}

.project-card__goal-amount {
  font-size: 2.6rem;
  font-weight: 700;
  font-family: "roboto", -apple-system, BlinkMacSystemFont, YuGothic, "Yu Gothic Medium", "Yu Gothic", sans-serif;
  color: var(--key-color);
  line-height: 1;
  border-bottom: 4px solid;
}

.project-card__goal-unit {
  font-size: 1.2rem;
  font-weight: 700 !important;
  color: var(--key-color) !important;
}

.project-card__description {
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: left;
  margin-bottom: 0.5rem;
}

.project-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  margin-top: auto;
  width: fit-content;
  margin-inline: auto;
}

.project-card__badge-icon {
  width: 3rem;
  height: auto;
}

.project-card__badge-text {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.project-card__badge-accent {
  color: var(--key-color);
}

/* 特徴リスト */
.feature-list {
  margin-top: 1.5rem;
  padding-left: 1.5rem;
}

.feature-list__item {
  display: list-item;
  list-style-type: disc;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* プロジェクトモーダル */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.project-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
}

.project-modal__container {
  position: relative;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 40rem;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(1rem);
  transition: transform 0.3s ease;
}

.project-modal.is-active .project-modal__container {
  transform: translateY(0);
}

/* スクロール防止 */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.project-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background-color: #05233c;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
}

.project-modal__close:hover {
  background-color: #0a3a5e;
}

.project-modal__content {
  padding: 2rem 1.5rem;
}

.project-modal__content p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* 税控除タブ */
.merit-tabs {
  margin-top: 1.5rem;
}

.merit-tabs__nav {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.merit-tabs__nav-item {
  flex: 1;
}

.merit-tabs__nav-link {
  display: block;
  padding: 0.8em 1em;
  text-align: center;
  background-color: #eee;
  color: #05233c;
  text-decoration: none;
  border-radius: 0.3em 0.3em 0 0;
  transition: background-color 0.2s;
}

.merit-tabs__nav-link:hover {
  background-color: #ddd;
}

.merit-tabs__nav-link.active {
  background-color: #05233c;
  color: #fff;
}

.merit-tabs__panel {
  padding: 1rem;
  border: 1px solid #ddd;
  border-top: none;
  background-color: #fff;
}

.merit-tabs__images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.merit-tabs__image {
  /* width: 100%; */
  height: auto;
  /* max-width: 100%; */
  margin-inline: auto;
}

@media (min-width: 768px) {

  /* MARK: DESKTOP */
  /* スマホのみ表示 */
  .sp-only {
    display: none;
  }

  /* リードテキスト デスクトップ */
  .lead-text {
    font-size: 1.2rem;
    color: #05233c;
  }

  .lead-text--lg {
    font-size: 1.6rem;
  }

  /* 100周年記念事業募金総額 デスクトップ */
  .centennial-fundraising__title {
    font-size: 1.4rem;
  }

  .centennial-fundraising__total {
    padding: 1.5rem 0;
  }

  .centennial-fundraising__amount {
    font-size: 4.8rem;
  }

  .centennial-fundraising__breakdown {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .centennial-fundraising__item-amount {
    font-size: 3rem;
  }

  .centennial-fundraising__item-value {
    display: flex;
    align-items: baseline;
  }

  .centennial-fundraising__item {
    position: relative;
  }

  .centennial-fundraising__item+.centennial-fundraising__item::before {
    width: 1px;
    height: 70%;
    transform: unset;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  /* プロジェクトカード デスクトップ */
  .project-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .project-card {
    padding: 1rem;
  }

  .project-card__title {
    font-size: 1.3rem;
  }

  /* 会報グリッド デスクトップ */
  .newsletter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .newsletter-card__title {
    font-size: 0.95rem;
  }

  .newsletter-card__list {
    font-size: 0.8rem;
  }

  /* 税控除タブ デスクトップ */
  .merit-tabs__images {
    grid-template-columns: 2.72fr 1fr;
  }

  /* 校長メッセージ デスクトップ */
  .principal-message {
    padding: 3rem;
  }

  .principal-message__headline {
    font-size: 1.3em;
    margin-bottom: 2rem;
  }

  .principal-message__figure {
    margin: 0 -8rem 1.5rem 2rem;
    width: 19rem;
    float: right;
  }

  .principal-message__photo {
    width: 18rem;
  }

  .principal-message__name {
    font-size: 1.2rem;
  }

  .principal-message__content {
    font-size: 1.05rem;
  }

  .t-bg-green-yellow {
    font-size: 1.2em;
  }

  .snav-scholarship {
    top: 0;
    width: 100%;
    margin: 0;
    z-index: 10;
    box-shadow: none;
  }
}

#secMv {
  position: relative;
  overflow: hidden;
  background: #000;
}

@media (min-width: 768px) {
  #secMv {
    background: #FFF
  }
}

.mv-movie {
  aspect-ratio: 16/10;
  width: 100%;
  height: auto;
  /* background-color: #000; */
  object-fit: cover;
  position: absolute;
  object-position: center;
  inset: 0;
  z-index: 1;
  width: min(1602px, 100%);
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
}

.mv-image {
  position: relative;
  z-index: 2;
  transition: opacity 1s ease-out;
}

.mv-image.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ローディングバー */
.mv-loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #fc0014;
  z-index: 100;
  transition: width 0.2s ease-out, opacity 0.3s ease-out;
}

.mv-loading-bar.is-hidden {
  opacity: 0;
}

/* サウンドトグルボタン */
.mv-sound-toggle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: none;
  border-right: none;
  border-radius: 0 0 0 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mv-sound-toggle:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.mv-sound-toggle .icon-on {
  display: none;
}

.mv-sound-toggle .icon-off {
  display: block;
}

.mv-sound-toggle.is-on .icon-on {
  display: block;
}

.mv-sound-toggle.is-on .icon-off {
  display: none;
}

.mv-sound-toggle .sound-label {
  font-size: 0.625rem;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .mv-sound-toggle {
    position: fixed;
    top: 80px;
    right: 0;
    width: 60px;
    z-index: 2000;
    padding: 0.625rem;
    opacity: 0;
    pointer-events: none;
    transition: background-color 0.2s ease, opacity 0.3s ease;
  }

  .mv-sound-toggle.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .mv-sound-toggle.is-hidden-scroll {
    opacity: 0;
    pointer-events: none;
  }

  .mv-sound-toggle .sound-label {
    font-size: 0.75rem;
  }
}

.bottom-accent {
  width: min(1600px, 100%);
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateY(1px) translateX(-50%) scaleX(1.02);
  z-index: 3;
}

@media (min-width: 768px) {
  .mv-movie {
    aspect-ratio: 1600 / 706;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    /* position: static; */
    /* transform: translateY(0%); */
    top: 0;
    max-width: 1600px;
  }
}

/* ============================================
   寄付者一覧セクション
   ============================================ */
.section-donor {
  color: #05233c;
  background-color: hsl(207.3, 33.6%, 95.7%);
  padding-inline: 1rem;
  padding-block: 2rem;
  margin-top: 4rem;
}

.section-donor h2 {
  margin-bottom: 1rem;
}

#selectYear {
  max-width: 12rem;
  margin: 1em auto;
  display: block;
  text-align: center;
}

/* 年度別記事 */
.art-year {
  display: none;
}

.art-year.active {
  display: block;
}

/* 寄付者リスト（アコーディオン） */
.list-donor {
  margin-top: 0.5em;
  overflow: hidden;
  border-radius: 0.3em;
}

.list-donor-title {
  width: 100%;
  background-color: #05233c;
  display: block;
  color: #fff;
  padding: 0.4em 0.8em;
  background-image: url("../images/expand_more_white_24dp.svg");
  background-repeat: no-repeat;
  background-size: 1em auto;
  background-position: right 0.5em top 50%;
  cursor: pointer;
  font-weight: bold;
}

.list-donor-title.active {
  background-image: url("../images/expand_less_white_24dp.svg");
}

.list-donor-title-body {
  background-color: #fff;
  padding: 0 1em !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transform: translate(0, -1rem);
  transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
}

.list-donor-title-body.active {
  max-height: 5000px !important;
  padding: 1em !important;
  opacity: 1 !important;
  transform: translate(0, 0);
}

/* 寄付者テーブル */
.table-donation {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-donation thead {
  background-color: hsla(207.3, 84.6%, 12.7%, 0.1);
}

.table-donation th,
.table-donation td {
  padding: 0.5em 0.8em;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.table-donation th:first-child,
.table-donation td:first-child {
  /* width: 50px; */
  text-align: center;
}

.table-donation th:nth-child(2),
.table-donation td:nth-child(2) {
  /* width: 60px; */
  text-align: center;
}

.table-donation tbody tr:hover {
  background-color: #fafafa;
}

.table-donation tbody tr:last-child td {
  border-bottom: none;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
  .section-donor {
    padding-inline: 4rem;
  }

  .table-donation {
    width: 62%;
    margin-inline: auto;
    font-size: 0.95rem;
  }

  .table-donation th,
  .table-donation td {
    padding: 0.6em 1em;
  }
}

.t-horizontal-bar {
  text-align: center;
  font-size: 1.4em;
  margin-top: 4rem
}

*>.t-horizontal-bar:first-child {
  margin-top: 0;
}