html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #FFF;
    color: #333;
}

.sp {
  display: none;
}

@media (max-width: 1023px) {
  body, html {
    overflow-x: hidden;
  }
.sp {
  display: block;
}
.pc {
  display: none;
}
}

/* --- カラー変数 --- */
:root {
  --gakuen-deepblue: #151751;
  --gakuen-blue: #171958;
  --gakuen-gold: #B48F5D;
}

/* --- Header Section --- */
#header {
  background-color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gakuen-blue, #171958);
  white-space: nowrap;
}

@media (max-width: 1023px) {
#header {
  width: 100%;
  position: fixed;
}
.logo-text {
  font-size: 1.4rem;
}
}

@media (max-width: 560px) {
.header-container {
  padding: 1.15rem 1.0rem;
}
.logo-text {
  font-size: 1.1rem;
  white-space: normal;
}
}

.header-donate-button {
  background-color: var(--gakuen-gold, #B48F5D);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: opacity 0.15s ease-in-out;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.header-donate-button:hover {
  opacity: 0.9;
}

@media (max-width: 560px) {
.header-donate-button {
  padding: 0.35rem 0.9rem;
  font-size: 10pt;
  font-weight: 400;
}
.header-donate-button span {
  display: none;
}
}

/* --- 右側の要素ラッパー --- */
.header-right-items {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- Navigation (PCスタイルがデフォルト) --- */
.main-navigation {
  display: flex;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 1146px) {
.main-navigation {
  gap: 1rem;
}
}

@media (max-width: 1060px) {
.main-navigation {
  gap: 0.75rem;
}
}

@media (max-width: 560px) {
.header-right-items {
  gap: 0.75rem;
}
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  color: #374151;
  transition: color 0.2s ease-in-out;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--gakuen-blue, #171958);
}

/* --- ハンバーガーボタン (PCでは非表示) --- */
.hamburger-button {
  display: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 102;
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--gakuen-blue, #171958);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 1023px) {
  /* --- ナビゲーションをドロワーに変更 --- */
  .main-navigation {
    display: block; 
    position: fixed;
    z-index: 101;
    top: 0;
    right: -310px;
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background-color: #fff;
    padding: 4rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
  }
  
  .nav-link {
    font-size: 0.95rem;
  }

  .hamburger-button {
    display: flex;
  }
 
  .main-navigation.is-active {
    right: 0;
  }
    
  .hamburger-button.is-active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
  }
  .hamburger-button.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .hamburger-button.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
  }
}

@media (min-width: 768px) {
  .main-navigation {
    display: flex; 
  }
}

/* --- Footer Section --- */
#footer {
  background-color: var(--gakuen-deepblue, #151751);
  color: #fff;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.footer-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- フッター上部 --- */
.footer-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2rem;
}

/* ロゴと住所 */
.footer-info {
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-bottom: 2rem;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.footer-logo-text {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 500;
  color: #fff;
}

@media (max-width: 560px) {
#footer {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
} 
.footer-info {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.footer-logo-link {
  justify-content: center;
}
.footer-logo-text {
  font-size: 1.3rem;
  line-height: 1.25rem;
}
}

/* フッターナビゲーション */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  width: 100%;
}

/* ナビゲーションの各列 */
.footer-nav-list {
  display: flex;
  flex-direction: column;
}
.footer-nav-list > * + * {
  margin-top: 0.5rem;
}

.footer-nav-heading {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--gakuen-gold, #B48F5D);
}

.footer-nav-link {
  color: inherit;
  text-decoration: none;
}
.footer-nav-link:hover {
  text-decoration: underline;
}

.footer-divider {
  border-color: #374151;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-top-width: 1px;
}

/* --- フッター下部 --- */
.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #9ca3af;
}

.footer-related-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-related-link {
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-decoration: none;
}
.footer-related-link:hover {
  text-decoration: underline;
}

.footer-copyright {
  margin-top: 1rem; 
}

@media (min-width: 768px) {
  .footer-main {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-info {
    margin-bottom: 0;
  }

  .footer-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: auto;
  }

  .footer-bottom {
    flex-direction: row;
  }
  
  .footer-related-links {
    justify-content: flex-start;
  }

  .footer-copyright {
    margin-top: 0;
  }
}

#main .container a {
    color: #171958;
    text-decoration: underline;
}
#main .container a:hover {
    color: #373978;
}
.bg-gakuen-blue {
    background-color: #171958;
}
.text-gakuen-blue {
    color: #171958;
}
.bg-gakuen-gold {
    background-color: #B48F5D;
}
.text-gakuen-gold {
    color: #B48F5D;
}
.border-gakuen-gold {
    border-color: #B48F5D;
}
.bg-gakuen-deepblue {
    background-color: #151751;
}
.bg-gakuen-light {
    background-color: #f0f1f5;
}

/* 共通のセクションタイトルスタイル（ゴールドの下線付き） */
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #B48F5D;
    margin-top: 1rem;
}
.section-title.center-line::after {
    margin-left: auto;
    margin-right: auto;
}

/* 共通のセクションタイトルスタイル2（ブルーの横線付き） */
.section-title-2.center-line {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
}
.section-title-2.center-line::before,
.section-title-2.center-line::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background-color: #171958;
    margin-top: 3px;
}
@media (max-width: 560px) {
.section-title-2.center-line {
    gap: 0.5rem;
}
.section-title-2.center-line::before,
.section-title-2.center-line::after {
    width: 50px;
    height: 1px;
}
}
/* カードのマウスオーバー */
#type-cards-container .cursor-pointer .material-symbols-outlined {
    transition: all 0.3s;
}
#type-cards-container .cursor-pointer:hover .material-symbols-outlined {
    margin-top: -5px;
}
/* カードのアクティブ状態 */
.card-active {
    border-color: #B48F5D !important;
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
/* 寄付セクションのタブスタイル */
.tab-active {
    color: #333;
    background-color: #FFF;
}
.tab-inactive {
    color: #F8F7F4;
    background-color: #B48F5D;
}
/* アコーディオンスタイル */
.faq-question {
    cursor: pointer;
}
@media (max-width: 768px) {
.faq-question h4 {
    font-size: 12pt !important;
}
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
.faq-button {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
/* ヒーローカルーセルスタイル */
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.carousel-item.active {
    opacity: 1;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 1.0);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}
.carousel-dot.active {
    background-color: #B48F5D;
}
@media (max-width: 768px) {
.carousel-dot {
    width: 10px !important;
    height: 10px !important;
}
}
/* ナビゲーションリンクのホバー効果 */
.nav-link {
    color: #171958;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #171958;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}
.nav-link:hover::after {
    transform: scaleX(1);
}
/* ヒーローセクションの装飾テキスト */
.font-caveat {
    display: block;
    font-family: 'Caveat', cursive;
    line-height: 0.9;
    letter-spacing: -1px;
    transform: rotate(-10deg);
    color: #B48F5D;
}
#top .font-caveat {
    bottom: 35px;
    font-size: 130pt;
}
@media (max-width: 1023px) {
#top .font-caveat {
    bottom: 160px;
    font-size: 96pt;
}
}
@media (max-width: 768px) {
#top .font-caveat {
    bottom: 460px;
    font-size: 64pt;
}
}
@media (max-width: 560px) {
#top .font-caveat {
    top: 300px;
    bottom: auto;
    font-size: 48pt;
    width: 300px;
}
}
/* Aboutセクションの装飾リング */
.ring-bg {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}
.ring-bg-lg {
    width: 460px;
    height: 460px;
    border: 18px solid rgba(180, 143, 93, 0.1);
}
.ring-bg-sm {
    width: 300px;
    height: 300px;
    border: 1px solid rgba(180, 143, 93, 0.4);
}
/* 特定セクションの背景 */
.bg-news-gradient {
    background-image: linear-gradient(to right, #4E86A5, #7EB6D5);
}
.bg-type-gradient {
    background-image: linear-gradient(to right, #e0f2fe, #fff7ed);
}
.bg-donate-pattern {
    background-image: linear-gradient( 90deg,  rgba(255,244,228,1) 7.1%, rgba(240,246,238,1) 67.4% );
}
/* カスタムボタン */
.outline-button {
    border: 1px solid #B48F5D;
    color: #B48F5D !important;
    text-decoration: none !important;
    padding: 0.65rem 1.5rem 0.9rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
    display: inline-block;
}
.outline-button + .outline-button {
    margin-top: 10px !important;
}
.outline-button:hover {
    background-color: #B48F5D;
    color: #F8F7F4 !important;
}
.outline-button-white {
    border: 1px solid #F8F7F4;
    color: #F8F7F4 !important;
    text-decoration: none !important;
    padding: 0.6rem 1.2rem 0.8rem;
    border-radius: 9999px;
    font-weight: 400;
    line-height: 1.0;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}
.outline-button-white:hover {
    background-color: #F8F7F4;
    color: #171958 !important;
}
.outline-button-small {
    background-color: #B48F5D;
    color: #F8F7F4 !important;
    text-decoration: none !important;
    padding: 0.6rem 1.2rem 0.8rem;
    border-radius: 9999px;
    font-weight: 400;
    line-height: 1.0;
    transition: opacity 0.3s;
    white-space: nowrap;
}
.outline-button-small:hover {
    opacity: 0.8;
}
@media (max-width: 560px) {
.outline-button {
    padding: 0.55rem 1.35rem 0.8rem;
    font-size: 12pt;
}
}
/* ご報告セクションのスライドショー */
.slideshow-container {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    height: 460px;
}
.slideshow-track {
    display: flex;
    animation: slide 20s linear infinite;
    width: max-content;
    gap: 2rem;
}
.slideshow-track img {
    width: 460px;
    height: 460px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* お知らせセクション専用のタイトルスタイル */
.news-section-title::after {
    background-color: #F8F7F4;
}
/* 寄付者の声セクションの背景 */
.bg-voice-gradient {
    background-image: linear-gradient(to bottom, rgba(14, 17, 57, 0.7), rgba(14, 17, 57, 0.7));
}
@media (max-width: 768px) {
    .slideshow-container {
height: 200px;
    }
    .slideshow-track img {
width: 200px;
height: 200px;
    }
}
.scholarship-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
@media (min-width: 640px) {
    .scholarship-item {
        grid-template-columns: 180px 1fr;
        gap: 1rem;
    }
}
.school-card {
    border-top-width: 6px;
}
.hover-effect:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* 共通のボタンのスタイル */
.button {
    flex: 1;
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    color: white !important;
    transition: opacity 0.15s ease-in-out;
    text-decoration: none !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0);
    white-space: nowrap;
}

.button-donate {
    background-color: #B48F5D;
}

.button-detail {
    background-color: #171958;
}

.button:hover {
    opacity: 0.9;
}

@media (max-width: 1023px) {
main {
    margin-top: 88px;
}
}

@media (max-width: 560px) {
.button {
    padding: 0.6rem;
    font-size: 0.9rem;
}
main {
    margin-top: 68px;
}
#top p,
#main p,
#main li {
    font-size: 11pt !important;
}
#main li strong.text-lg,
#main .rounded-xl h2.text-2xl,
#main h4.text-xl {
    font-size: 13.5pt !important;
}
}

/* ページタイトルのスタイル */
#page-title {
    width: 91.666667%; /* w-11/12 */
    margin-left: auto;
    margin-right: auto;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Left Box */
.title-box-left {
    width: 100%;
    height: 22vh;
    background-color: #171958;
    color: #fff;
    border-radius: 1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 装飾用テキスト */
.title-flourish {
    position: absolute;
    z-index: 10;
    overflow: visible;
    opacity: 0.8;
    width: 300px;
    right: -5px;
    top: 70px;
    bottom: auto;
    font-size: 48pt;
    line-height: 0.9;
    text-align: right;
    color: #458;
}

/* メインの見出し */
.title-heading {
    font-size: 1.6rem;
    line-height: 1.25;
    font-weight: 700; 
    position: relative;
    z-index: 20;
}

/* パンくずリスト */
.breadcrumbs {
    font-size: 0.75rem;
    line-height: 1rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 20;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration-line: underline;
}

.breadcrumbs .separator {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

/* Right Box (Image) */
.title-box-right {
    width: 100%;
    height: 22vh;
    background-size: cover;
    background-position: center;
    border-radius: 1.25rem;
    margin-top: 1rem;
    position: relative;
}

/* 画像のオーバーレイ */
.image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgb(0 0 0 / 0.4);
    border-radius: 1.5rem;
}

/* --- レスポンシブ (Medium) --- */
@media (min-width: 768px) {
.title-container {
    flex-direction: row;
    gap: 2rem;
}

.title-box-left {
    width: 40%;
    height: 36vh;
    border-radius: 1.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.title-box-right {
    width: 60%;
    height: 36vh;
    border-radius: 1.5rem;
    margin-top: 0;
}
.title-flourish {
    width: auto;
    top: auto;
    bottom: -10px;
    font-size: 66pt;
}
.title-heading {
    font-size: 2.25rem;
}
}
@media (max-width: 560px) {
#news.py-14 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
#news .container {
    text-align: center;
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    display: block;
}
#news .container .news-section-title {
  font-size: 22pt;
}
#news .container .news-section-title::after {
    margin-left: auto;
    margin-right: auto;
    height: 2px;
}
#news .container .bg-white {
  margin-top: 40px;
    padding: 1rem;
    text-align: left;
}
#news .container .bg-white a {
  font-size: 11pt;
}
#type.py-16 {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
}
#type .container.px-6 {
  padding: 1rem;
}
#type p.mt-10 {
  margin-top: 20px;
}
#type .grid.mt-12 {
  margin-top: 25px;
}
#type .grid div {
  padding: 1rem;
}
#type .grid .material-symbols-outlined {
  margin-bottom: 0 !important;
  font-size: 2.5rem;
}
#type .grid h3 {
  font-size: 13pt;
}
#type .text-3xl {
  font-size: 16pt;
  margin-top: 20px;
  text-align: center;
  line-height: 1.4;
}
#type #type-details-container {
  margin-top: 25px;
  padding: 1.25rem;
}
#type #type-details-container .mt-8.text-left {
  text-align: center;
}
#type .items-right {
  margin-top: 25px;
}
#report.py-20 {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
}
#report .text-3xl {
  font-size: 16pt;
  margin-top: 20px;
  text-align: center;
  line-height: 1.4;
}
#report p {
  margin-top: 20px;
}
#report .slideshow-container.my-12 {
  margin-top: 30px;
  margin-bottom: 30px;
}
#how-to-donate.py-20,
#faq.py-20 {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
}
#faq .text-3xl {
  font-size: 16pt;
  text-align: center;
  line-height: 1.4;
}
#how-to-donate .text-5xl {
  font-size: 2.5rem;
}
#how-to-donate .text-2xl {
  font-size: 16pt;
}
}
