/* ==========================================================
  変数・グローバル設定
========================================================== */
@import url("https://fonts.googleapis.com/css2?family=Spartan:wght@400;700&display=swap");

:root {
  --easing: cubic-bezier(.2, 1, .2, 1);
  --transition: .8s var(--easing);
  --color-base: #f8f8f8;
  --color-gray: #ddd;
  --color-theme: #f5695f;
  --color-theme-darken: #f12617;
  --box-shadow: .8rem .8rem 1.2rem rgba(0, 0, 0, .05), -.8rem -.8rem 1.2rem #fff;
  --box-shadow-hover: 1rem 1rem 1.5rem rgba(0, 0, 0, .08), -1rem -1rem 1.5rem #fff;
  --box-shadow-inset: inset .8rem .8rem 1.2rem rgba(0, 0, 0, .05), inset -.8rem -.8rem 1.2rem #fff;
  --box-shadow-dark: .8rem .8rem 1.2rem rgba(0, 0, 0, .1), -.8rem -.8rem 1.2rem rgba(#fff, .2);
}

:root {
  --font-family-NotoSansJP: "Noto Sans JP", sans-serif;
  --max-width-1920px: 1920px;
  --max-width-1200px: 1200px;
  --maincolor: #9383b2;
  font-size: 10px;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-size: 1.6rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: #333;
}

ul,
ol,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
}

a {
  text-decoration: none;
  color: #333;
}

main {
  display: block;
}

/* ==========================================================
  レスポンシブ表示制御
========================================================== */
/* PCのみ表示 */
.pc {
  display: block;
}

@media screen and (max-width:768px) {
  .pc {
    display: none;
  }
}

/* SPのみ表示 */
.sp {
  display: none;
}

@media screen and (max-width:768px) {
  .sp {
    display: block;
  }
}

/* ==========================================================
  ヘッダー
========================================================== */
.header-top {
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 10;
}

.header-top-contents {
  max-width: var(--max-width-1920px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  padding: 0 2rem;
  min-height: 60px;
  height: 60px;
}

@media only screen and (max-width: 768px) {
  .header-top-contents {
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    min-height: 60px;
    height: 60px;
  }
}

.header-logo {
  width: auto;
  height: 6rem;
}

@media only screen and (max-width:1280px) {
  .header-logo {
    height: 4rem;
  }
}

@media only screen and (max-width: 480px) {
  .header-top-contents {
    min-height: 60px;
    height: 60px;
    padding: 0 0.8rem;
  }
  
  .header-logo {
    height: 3.5rem;
  }
}

@media only screen and (max-width: 375px) {
  .header-top-contents {
    min-height: 60px;
    height: 60px;
    padding: 0 0.6rem;
  }
}

.nav-desktop-container {
  margin-right: 0rem;
  position: relative;
}

/* ハンバーガーメニューボタン */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  margin-right: 10px;
  margin-top: 8px;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #000;
  margin: 3px 0;
  transition: 0.3s;
}

/* ハンバーガーメニューアイコンのホバー効果 */
.nav-toggle:hover {
  background: #9383b2 !important;
  border-radius: 4px;
}

.nav-toggle:hover span {
  background-color: #fff !important;
}

/* スマホ用のタッチ効果（JavaScriptで制御） */
.nav-toggle.touch-active {
  background: #9383b2 !important;
  border-radius: 4px;
}

.nav-toggle.touch-active span {
  background-color: #fff !important;
}

/* スマホサイズでのハンバーガーメニュー調整 */
@media only screen and (max-width: 480px) {
  .nav-toggle {
    width: 35px;
    height: 35px;
    padding: 8px;
    margin-right: 8px;
    margin-top: 6px;
  }
  
  .nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 2px 0;
  }
  
  /* スマホでのタップ効果（:activeと:focusを使用） */
  .nav-toggle:active,
  .nav-toggle:focus {
    background: #9383b2 !important;
    border-radius: 4px;
    outline: none;
  }
  
  .nav-toggle:active span,
  .nav-toggle:focus span {
    background-color: #fff !important;
  }
  
  /* タッチデバイス用のhover効果も追加 */
  @media (hover: hover) {
    .nav-toggle:hover {
      background: #9383b2 !important;
      border-radius: 4px;
    }
    
    .nav-toggle:hover span {
      background-color: #fff !important;
    }
  }
}

/* スマホ・タブレット専用の強制適用（768px以下） */
@media only screen and (max-width: 768px) {
  .nav-toggle:hover,
  .nav-toggle:active,
  .nav-toggle:focus,
  .nav-toggle.touch-active {
    background: #9383b2 !important;
    border-radius: 4px !important;
    outline: none;
  }
  
  .nav-toggle:hover span,
  .nav-toggle:active span,
  .nav-toggle:focus span,
  .nav-toggle.touch-active span {
    background-color: #fff !important;
  }
}

/* 中サイズ画面以下でハンバーガーメニューを表示 */
@media only screen and (max-width:1024px) {
  .nav-toggle {
    display: flex;
  }
  
  /* タブレット・スマホでのタップ効果 */
  .nav-toggle:active,
  .nav-toggle:focus {
    background: #9383b2 !important;
    border-radius: 4px;
    outline: none;
  }
  
  .nav-toggle:active span,
  .nav-toggle:focus span {
    background-color: #fff !important;
  }
  
  .nav-desktop {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    flex-direction: column;
    min-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    white-space: normal;
  }
  
  .nav-desktop.active {
    display: flex !important;
  }
  
  .nav-desktop.active a {
    padding: 8px 16px !important;
    height: auto !important;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
  }
  
  .nav-desktop a {
    padding: 8px 16px !important;
    height: auto !important;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
  }
  
  .nav-desktop a:last-child {
    border-bottom: none;
  }
  
  /* 従来のモバイルナビゲーションを確実に非表示 */
  .nav-mobile-container {
    display: none !important;
  }
  
  .nav-mobile {
    display: none !important;
  }
}

/* スマホサイズでのドロップダウンメニュー調整 */
@media only screen and (max-width: 480px) {
  .nav-desktop {
    min-width: 160px;
    right: 5px;
  }
  
  .nav-desktop.active a {
    padding: 6px 12px !important;
  }
  
  .nav-desktop a {
    padding: 6px 12px !important;
  }
}

@media only screen and (max-width:768px) {
  .nav-mobile-container {
    display: none;
  }
}

.nav-desktop {
  display: flex;
  color: #000;
  font-family: serif;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: bold;
  line-height: normal;
  white-space: nowrap;
}

/* スマホサイズで通常のナビゲーションを非表示 */
@media only screen and (max-width: 480px) {
  .nav-desktop {
    display: none !important;
  }
  
  .nav-desktop:not(.active) {
    display: none !important;
  }
}

.nav-desktop a {
  display: block;
  padding: 1.8rem 1.8rem;
  color: #000;
  font-family: serif;
  font-size: 1.5rem;
  font-weight: bold;
  font-style: normal;
  line-height: normal;
  height: 6rem;
  box-sizing: border-box;
}

@media only screen and (max-width:1280px) {
  .nav-desktop a {
    padding: 1.8rem 1.2rem;
    font-size: 1.5rem;
  }
}

.nav-desktop a:hover {
  color: #fff;
  background: var(--maincolor);
}

.nav-mobile-container {
  width: 100%;
  display: none;
}

@media only screen and (max-width:768px) {
  .nav-mobile-container {
    display: none;
  }
}

.nav-mobile {
  display: none;
}

@media only screen and (max-width:768px) {
  .nav-mobile {
    display: none;
  }
}

.nav-mobile li {
  margin: auto;
  white-space: nowrap;
}

.nav-mobile a {
  display: block;
  color: #000;
  padding: 1rem 0.5rem;
  font-family: serif;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: bold;
  line-height: normal;
  box-sizing: border-box;
}

@media only screen and (max-width:1280px) {
  .nav-mobile a {
    padding: 1.8rem;
    font-size: 1.2rem;
  }
}

@media only screen and (max-width:375px) {
  .nav-mobile a {
    padding: 0.2rem;
    font-size: 1.2rem;
  }
}

.nav-mobile a:hover {
  color: #fff;
  background: #9383b2;
}

.header-main {
  padding-top: 6rem;
  display: flex;
  align-items: center;
  margin: auto;
  justify-content: space-between;
}

@media only screen and (max-width:768px),
only screen and (max-width:375px) {
  .header-main {
    flex-direction: column-reverse;
    align-items: baseline;
    flex-wrap: nowrap;
  }
}

.header-main-message {
  position: absolute;
  left: 4vw;
  bottom: 2vw;
  color: #fff;
  padding: 2rem 3rem;
  font-family: serif;
  font-size: 2.2rem;
  line-height: 1.5;
  white-space: nowrap;
  font-weight: bold;
  width: 60vw;
  max-width: 100vw;
}

.header-main-message span {
  position: absolute;
  left: 0vw;
  bottom: 100px;
  color: #fff;
  font-family: serif;
  font-size: 4.5rem;
  line-height: 1.25;
}

/* ヘッダーリンク */
.header-links {
  position: fixed;
  top: 80px;
  left: 20px;
  display: flex;
  gap: 15px;
  z-index: 1000;
}

.header-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  width: 50px;
  height: 50px;
  position: relative;
  flex-direction: column;
}

.header-link:hover {
  background-color: #9383b2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(147, 131, 178, 0.3);
}

.header-link svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin-bottom: -2px;
  margin-top: -3px;
  stroke: #250e62;
}

.header-link.university svg {
  stroke: #250e62;
}

.header-link.department svg {
  stroke: #250e62;
}

.header-link.library svg {
  stroke: #250e62;
}

.header-link.research svg {
  stroke: #250e62;
}

.header-link:hover svg {
  stroke: white;
}

.header-link.university::after {
  content: "大学HP";
  position: absolute;
  bottom: 2px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: #250e62;
}

.header-link.department::after {
  content: "学科紹介";
  position: absolute;
  bottom: 2px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: #250e62;
}

.header-link.library::after {
  content: "司書課程";
  position: absolute;
  bottom: 2px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: #250e62;
}

.header-link.research::after {
  content: "国文研究会";
  position: absolute;
  bottom: 2px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: #250e62;
}

.header-link:hover::after {
  color: white;
}

@media only screen and (max-width:768px) {
  .header-main-message {
    font-size: 1.5rem;
  }

  .header-main-message span {
    font-size: 3rem;
    left: 0;
    bottom: 72px;
    white-space: pre-line;
  }

  .header-links {
    top: 70px;
    left: 15px;
    gap: 8px;
  }

  .header-link {
    padding: 3px;
    font-size: 8px;
    gap: 2px;
    width: 40px;
    height: 40px;
  }

  .header-link svg {
    width: 26px;
    height: 26px;
    margin-top: -2px;
    margin-bottom: -1px;
    stroke: #250e62;
  }

  .header-link.university::after,
  .header-link.department::after,
  .header-link.library::after,
  .header-link.research::after {
    font-size: 7px;
    bottom: 2px;
  }
}

@media only screen and (max-width: 375px) {
  .header-links {
    top: 60px;
    left: 10px;
    gap: 6px;
    flex-direction: row;
  }

  .header-link {
    padding: 2px;
    font-size: 7px;
    gap: 1px;
    width: 35px;
    height: 35px;
  }

  .header-link svg {
    width: 22px;
    height: 22px;
    margin-top: -2px;
    margin-bottom: -1px;
    stroke: #250e62;
  }

  .header-link.university::after,
  .header-link.department::after,
  .header-link.library::after,
  .header-link.research::after {
    font-size: 6px;
    bottom: 1px;
  }
}

.header-main-fv-img {
  width: 100vw;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media only screen and (max-width:768px) {
  .header-main-fv-img {
    padding: 0;
    width: 100%;
    margin: auto;
  }

  .header-main-fv-img img {
    margin: auto;
    object-fit: cover;
    height: 40rem;
  }
}

@media only screen and (max-width:375px) {
  .header-main-fv-img {
    padding: 7rem 1rem 3rem 1rem;
    width: 100%;
    margin: auto;
    object-fit: cover;
  }

  .header-main-fv-img img {
    margin: auto;
    object-fit: cover;
    height: 35rem;
  }
}

.header-main-fv-img img {
  width: cover;
  height: 960px;
  object-fit: cover;
  margin: 0;
  padding: 0;
  display: block;
}

.news-home {
  display: flex;
  flex-direction: column;
}

.news-home-content {
  padding: 0rem 10rem 5rem 10rem;
  display: flex;
  flex-direction: column;
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .news-home-content {
    margin: 0rem 5rem 5rem 5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
}

@media only screen and (max-width: 375px) {
  .news-home-content {
    margin: 5rem 1rem 3rem 1rem;
    padding: 0;
    margin-bottom: 3rem;
    /* フッターとの間に余白を追加 */
    min-height: calc(100vh - 10rem - 5rem - 8rem);
    /* スマ�E用の調整 */
  }
}

.news-home-header {
  max-width: var(--max-width-1920px);
  margin: 0 auto;
  text-align: center;
}

.news-home::before {
  display: block;
  height: 2rem;
  margin-top: -2rem;
  content: "";
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .news-home::before {
    height: 6rem;
    margin-top: -6rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .news-home::before {
    height: 9rem;
    margin-top: -9rem;
  }
}

@media only screen and (max-width: 375px) {
  .news-home::before {
    height: 6rem;
    margin-top: -6rem;
  }
}

.news-home-header h1 {
  color: #000;
  font-family: var(--font-family-RocknRollOne);
  font-size: 4rem;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  padding: 10rem 5rem 3rem 5rem;
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .news-home-header h1 {
    font-size: 3rem;
    padding: 5rem 3rem 3rem 3rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .news-home-header h1 {
    font-size: 2.8rem;
    padding: 3rem 2rem 3rem 2rem;
  }
}

@media only screen and (max-width: 375px) {
  .news-home-header h1 {
    font-size: 2.8rem;
    padding: 3rem 1rem 3rem 1rem;
  }
}

.news-home-header p {
  color: #242424;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 0 5rem;
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .news-home-title p {
    font-size: 1.4rem;
    padding: 0 3rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .news-home-title p {
    font-size: 1.2rem;
    padding: 0 2rem;
  }
}

@media only screen and (max-width: 375px) {
  .news-home-title p {
    font-size: 1.2rem;
    padding: 0 1rem;
  }
}

/* ==========================================================
  スワイパー
========================================================== */
.slider-inner {
  position: relative;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10rem;
}

.slider-section {
  border-top: 1px solid #eee;
}

.slider-section .slider-inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

[class*=swiper]:focus {
  outline: none;
}

.slide-image,
.thumb-media {
  position: relative;
  overflow: hidden;
}

.slide-image img,
.thumb-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}


.swiper-button-prev,
.swiper-button-next {
  display: grid;
  place-content: center;
  width: 6.4rem;
  height: 6.4rem;
  cursor: pointer;
  -webkit-transition: var(--transition);
  transition: var(--transition);
}

.swiper-button-prev::before,
.swiper-button-next::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
  border-radius: 50%;
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  width: 1.2rem;
  height: 1.2rem;
  content: "";
  border: solid var(--color-gray);
  border-width: 3px 3px 0 0;
}

.swiper-button-prev::after {
  margin-left: 0.4rem;
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

.swiper-button-next::after {
  margin-right: 0.4rem;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.swiper-button-disabled {
  pointer-events: none;
  opacity: 0;
}

.slider-container {
  overflow: hidden;
}

.slider-container .swiper {
  overflow: visible;
}

.slider-container .swiper-button-prev,
.slider-container .swiper-button-next {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  margin: auto;
}

.slider-container .swiper-button-prev::before,
.slider-container .swiper-button-next::before {
  background-color: rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: var(--box-shadow-dark);
  box-shadow: var(--box-shadow-dark);
}

.slider-container .swiper-button-prev::after,
.slider-container .swiper-button-next::after {
  border-color: #fff;
}

.slider-container .swiper-button-prev {
  right: calc(100% - 1.6rem);
}

.slider-container .swiper-button-next {
  left: calc(100% - 1.6rem);
}

.slider-container .swiper-main:not(.swiper-initialized) {
  padding: 0;
}

.slider-container .swiper-main:not(.swiper-initialized) .swiper-button-prev,
.slider-container .swiper-main:not(.swiper-initialized) .swiper-button-next {
  display: none;
}

.slider-container .swiper-main:not(.swiper-initialized) .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.slider-container .swiper-b:not(.swiper-initialized) {
  padding: 0;
}

.slider-container .swiper-b:not(.swiper-initialized) .swiper-button-prev,
.slider-container .swiper-b:not(.swiper-initialized) .swiper-button-next {
  display: none;
}

.slider-container .swiper-b:not(.swiper-initialized) .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.slider-container .slide-item {
  overflow: hidden;
  border-radius: 0;
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.slider-container .slide-image {
  padding-top: 62.5%;
}

.slider-container .slide-image img {
  height: calc(100% + 16px);
  -webkit-transform: translateY(-16px);
  transform: translateY(-16px);
}

.slider-container .slide-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.slider-container .slide-date {
  font-size: 1.2rem;
  line-height: 1;
  display: block;
  color: var(--color-theme);
}

.slider-container .slide-title {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 1.6rem;
}

@media only screen and (max-width: 1024px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  .slider-inner {
    padding: 0 4rem;
  }

  .pc {
    display: none !important;
  }

  .slider-container .swiper {
    padding: 0 3.2rem;
  }

  .slider-container .swiper-button-prev {
    right: calc(100% - 5.2rem);
  }

  .slider-container .swiper-button-next {
    left: calc(100% - 5.2rem);
  }

  .swiper-slide {
    min-height: 300px;
  }
}

@media only screen and (max-width: 599px) {
  html {
    font-size: 50%;
  }

  .slider-container .swiper-b:not(.swiper-initialized) .swiper-wrapper {
    grid-template-columns: repeat(1, 1fr);
  }

  .swiper-slide {
    min-height: 300px;
  }
}

@media only screen and (min-width: 1025px) {
  .swiper-button-prev::before,
  .swiper-button-next::before {
    -webkit-transition: var(--transition);
    transition: var(--transition);
  }

  .swiper-button-prev:hover::before,
  .swiper-button-next:hover::before {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }

  .slider-container .slide-item {
    -webkit-transition: var(--transition);
    transition: var(--transition);
  }

  .slider-container .slide-item img {
    -webkit-transition: var(--transition);
    transition: var(--transition);
  }

  .slider-container .slide-item:hover {
    -webkit-transform: translateY(-16px);
    transform: translateY(-16px);
    -webkit-box-shadow: var(--box-shadow-hover);
    box-shadow: var(--box-shadow-hover);
  }

  .slider-container .slide-item:hover img {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@media only screen and (min-width: 600px) {
  .sp {
    display: none !important;
  }
}

@media only screen and (max-width: 1024px) and (min-width: 600px) {
  .slider-container .swiper-b:not(.swiper-initialized) .swiper-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* ==========================================================
  ニュース
========================================================== */
.news {
  flex: 1;
  /* フッターを下に押し下げめE*/
  display: flex;
  flex-direction: column;
}

.news::before {
  display: block;
  height: 2rem;
  margin-top: -2rem;
  content: "";
}

.news-header {
  color: #000;
  text-align: center;
  font-family: var(--font-family-NotoSansJP);
  font-size: 4rem;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  padding: 8rem 0 5rem 0;
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .news-header {
    font-size: 3rem;
    padding: 8rem 0 5rem 0;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .news-header {
    font-size: 2.8rem;
    padding: 8rem 0 5rem 0;
  }
}

@media only screen and (max-width: 375px) {
  .news-header {
    font-size: 2.8rem;
    padding: 8rem 0 5rem 0;
  }
}

/* ニュース本佁E*/
.news-content {
  padding: 5rem 3rem 0 3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* 利用可能なスペ�Eスを占朁E*/
  margin-bottom: 0;
  /* フッターとの間に余白を追加 */
  /* ブラウザの高さに満たなぁE�E��E�合�E最下部に配置 */
  /* ヘッダー、タイトル、フチE�E��E�ーの高さを差し引く */
  justify-content: flex-start;
}

/* ブラウザの高さを趁E�E��E�る場合�E調整 */
@media screen and (min-height: calc(100vh + 1px)) {
  .news-content {
    flex: 1;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .news-content {
    margin: 5rem 3rem 0 3rem;
    padding: 0;
    margin-bottom: 0;
    /* フッターとの間に余白を追加 */
    /* タブレチE�E��E�用の調整 */
    display: flex;
    flex-direction: column;
    flex: 1;
    /* 利用可能なスペ�Eスを占朁E*/
  }
}

@media only screen and (max-width: 375px) {
  .news-content {
    margin: 5rem 1rem 0 1rem;
    padding: 0;
    margin-bottom: 0;
    /* フッターとの間に余白を追加 */
    /* スマ�E用の調整 */
  }
}

/* ニュース一覧ペ�Eジへのリンクボタン */
.news-link {
  color: #fff;
  background: var(--maincolor);
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: auto;
  margin-top: 2rem;
  width: fit-content;
  padding: 0.4em 1.2em;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  text-align: center;
  display: block;
  border: 1.5px solid var(--maincolor);
}

.news-link a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.news-link u {
  text-decoration: none;
}

.news-link:hover {
  background: #fff;
  color: var(--maincolor);
  border-color: var(--maincolor);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media only screen and (max-width: 640px) {
  .news-link {
    margin-right: 2rem;
    margin-left: auto;
  }

  .news-list-content {
    padding-right: 2rem;
    padding-left: 2rem;
  }
}

/* ニュースリスト�E個別ボックス余白 */
.news-list-content {
  padding: 1rem 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .news-list-content {
    margin-bottom: 2rem;
  }
}

@media only screen and (max-width: 375px) {
  .news-list-content {
    margin-bottom: 1rem;
  }
}

/* ニュースリストを横並びにする */
.news-list-items {
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-list-items li {
  background: #fff;
  border: 2px solid var(--maincolor);
  border-radius: 4px;
  padding: 8px 12px;
  min-width: 260px;
  box-shadow: none;
  transition: border-color 0.2s, background 0.2s;
  flex: 1 1 0;
}

.news-list-items li:hover {
  background: var(--maincolor);
  color: #fff;
  border-color: var(--maincolor);
}

.news-list-items li:hover .news-item-date,
.news-list-items li:hover .news-item-text,
.news-list-items li:hover .news-item-text a,
.news-list-items li:hover .news-item-text u {
  color: #fff !important;
}

@media only screen and (max-width: 640px) {
  .news-list-items {
    width: 90%;
    flex-direction: column;
    gap: 16px;
  }

  .news-list-items li {
    min-width: 0;
    width: 100%;
  }
}

/* ニュース日付�E本斁E*/
.news-item-date {
  color: #000;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.news-item-text {
  color: #242424;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6rem;
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .news-item-date {
    font-size: 1.4rem;
  }

  .news-item-text {
    font-size: 1.4rem;
    line-height: 2.8rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px),
only screen and (max-width: 375px) {

  .news-item-date,
  .news-item-text {
    font-size: 1.2rem;
    line-height: 1.8rem;
  }
}

/* アコーチE�E��E�オンレイアウチE*/
.news-accordion {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-content: start;
  align-items: start;
  justify-items: center;
  width: auto;
  margin: 0 auto 4rem auto;
}

@media only screen and (max-width: 1160px) {
  .news-accordion {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 auto 4rem auto;
  }
}

@media only screen and (max-width: 768px),
only screen and (max-width: 375px) {
  .news-accordion {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
    align-content: start;
    align-items: start;
    margin: 0 auto 4rem auto;
  }
}

/* アコーチE�E��E�オンコンチE�E��E� */
.news-accordion-item {
  display: flex;
  flex-direction: column;
  width: 360px;
  max-width: 360px;
  min-width: 0;
  box-sizing: border-box;
  border: 2px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: #fff;
  transition: box-shadow 0.2s;
  justify-self: stretch;
}

@media only screen and (min-width: 376px) and (max-width: 768px),
only screen and (max-width: 375px) {
  .news-accordion-item {
    align-self: start;
    width: 100%;
    max-width: 350px;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* アコーチE�E��E�オンタイトル */
.news-accordion-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
  border-radius: 0;
  background: #f8f9fa;
  font-family: var(--font-family-NotoSansJP);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  min-height: 120px;
  box-sizing: border-box;
  border-bottom: 1px solid #eee;
  justify-content: center;
  padding: 20px 5%;
  text-align: left;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  color: #242424;
  width: 100%;
  box-sizing: border-box;
}

.news-accordion-header:hover {
  background: #9383b2;
  color: #fff;
}

.news-accordion-header.open {
  background: #9383b2;
  color: #fff;
  border-bottom: none;
}

.news-accordion-header,
.news-accordion-header.open {
  border-bottom: 1px solid transparent;
  width: 100%;
}

.news-accordion-header:hover .news-date,
.news-accordion-header.open .news-date,
.news-accordion-header:hover .news-text,
.news-accordion-header.open .news-text {
  color: #fff;
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .news-accordion-header {
    min-height: 100px;
    padding: 15px 5%;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
  }
}

@media only screen and (max-width: 375px) {
  .news-accordion-header {
    min-height: 90px;
    padding: 12px 5%;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
  }
}

/* アコーチE�E��E�オン冁E�E��E� */
.news-accordion-content {
  display: none;
  background: #fff;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.news-accordion-header.open+.news-accordion-content {
  display: block;
  animation: slideDown 0.3s ease-out;
  width: 100%;
  box-sizing: border-box;
}

@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }

  to {
    max-height: 500px;
    opacity: 1;
  }
}

.news-accordion-wrapper,
.news-accordion-content_wrapper {
  padding: 20px 5%;
  background: #f9f9f9;
  width: 100%;
  box-sizing: border-box;
}

.news .news-date {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #666;
  font-family: monospace;
  min-width: 100px;
}

.news .news-text {
  font-size: 1.6rem;
  line-height: 1.5;
  color: #333;
  text-align: left;
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .news .news-date {
    font-size: 1.2rem;
  }

  .news .news-text {
    font-size: 1.4rem;
  }
}

@media only screen and (max-width: 375px) {
  .news .news-date {
    font-size: 1.1rem;
  }

  .news .news-text {
    font-size: 1.3rem;
  }
}

.news-accordion-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}




/* ==========================================================
  ABOUT
========================================================== */
.about {
  background-color: #E9E5EF;
  padding: 100px 0 50px 0;
  display: flex;
  align-items: center;
  min-height: 350px;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.about-main-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  padding: 0;
  margin-bottom: 0;
}

.about-image {
  flex: 0 0 650px;
  max-width: 650px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-text {
  flex: 1;
  max-width: 500px;
}

.about-text > p {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2d2d2d;
  margin: 0 0 30px 0;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: left;
}

.about-details {
  margin-top: 30px;
}

.about-details p {
  font-size: 1.3rem;
  color: #4a4a4a;
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: left;
}

.about-details p:last-child {
  margin-bottom: 0;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .about {
    padding: 35px 0;
    min-height: 300px;
    padding-top: 60px;
  }
  
  .about-content {
    padding: 0 25px;
  }
  
  .about-main-container {
    flex-direction: column;
    gap: 30px;
    padding: 0;
    margin-bottom: 0;
    align-items: center;
  }
  
  .about-image {
    flex: none;
    max-width: 500px;
  }
  
  .about-text {
    max-width: none;
  }
  
  .about-text > p {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 25px;
  }
  
  .about-details p {
    font-size: 1.15rem;
    margin-bottom: 18px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .about {
    padding: 25px 0;
    min-height: auto;
    align-items: flex-start;
    padding-top: 80px;
  }
  
  .about-content {
    padding: 0 20px;
  }
  
  .about-main-container {
    padding: 0;
    gap: 25px;
  }
  
  .about-image {
    max-width: 380px;
  }
  
  .about-text > p {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 20px;
  }
  
  .about-details p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
  }
}

/* ==========================================================
  受賞発表
========================================================== */
.award-announcement {
  background: linear-gradient(135deg, #fdf2f2 0%, #fef5f5 100%);
  padding: 30px 0;
  border-left: 5px solid #dc3545;
  position: relative;
}

.award-text {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.award-text::before {
  content: '🏆';
  flex-shrink: 0;
  font-size: 3.2rem;
  line-height: 1;
}

.award-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.award-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.award-text p {
  font-size: 1.4rem;
  color: #8b2635;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
  text-align: left;
  letter-spacing: 0.02em;
  max-width: 800px;
  flex: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .award-announcement {
    padding: 25px 0;
  }
  
  .award-text {
    gap: 8px;
  }
  
  .award-text::before {
    font-size: 2.6rem;
  }
  
  .award-content {
    padding: 0 50px;
  }
  
  .award-text p {
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  .award-announcement {
    padding: 20px 0;
    border-left: 3px solid #dc3545;
  }
  
  .award-text {
    gap: 6px;
  }
  
  .award-text::before {
    font-size: 2.2rem;
  }
  
  .award-content {
    padding: 0 40px;
  }
  
  .award-text p {
    font-size: 1.1rem;
    line-height: 1.4;
    max-width: 500px;
  }
}


/* ==========================================================
  ギャラリー
========================================================== */
.gallery-header {
  max-width: var(--max-width-1920px);
  margin: 0 auto;
  text-align: center;
}

.gallery::before {
  display: block;
  height: 2rem;
  margin-top: -2rem;
  content: "";
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .gallery::before {
    height: 6rem;
    margin-top: -6rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .gallery::before {
    height: 9rem;
    margin-top: -9rem;
  }
}

@media only screen and (max-width: 375px) {
  .gallery::before {
    height: 6rem;
    margin-top: -6rem;
  }
}

.gallery-header h1 {
  color: #000;
  font-family: var(--font-family-RocknRollOne);
  font-size: 4rem;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  padding: 5rem 5rem 2rem 5rem;
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .gallery-header h1 {
    font-size: 3rem;
    padding: 3rem 3rem 2rem 3rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .gallery-header h1 {
    font-size: 2.8rem;
    padding: 2rem 2rem 2rem 2rem;
  }
}

@media only screen and (max-width: 375px) {
  .gallery-header h1 {
    font-size: 2.8rem;
    padding: 2rem 1rem 2rem 1rem;
  }
}

.gallery-header p {
  color: #242424;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 0 5rem;
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .gallery-header p {
    font-size: 1.4rem;
    padding: 0 3rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .gallery-header p {
    font-size: 1.2rem;
    padding: 0 2rem;
  }
}

@media only screen and (max-width: 375px) {
  .gallery-header p {
    font-size: 1.2rem;
    padding: 0 1rem;
  }
}

.swiper-slide {
  padding: 1rem 0;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.swiper-slide img {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
}

@media only screen and (max-width: 375px) {
  .gallery-form p {
    padding-top: 4rem;
    padding-bottom: 10rem;
    font-size: 1.2rem;
  }
}

/* フォトギャラリー */
.photo-box {
  max-width: var(--max-width-1920px);
  margin: auto;
  padding: 0 5rem;
}

/* ==========================================================
  FAQ
========================================================== */
.faq {
  flex: 1;
  /* フッターを下に押し下げめE*/
  display: flex;
  flex-direction: column;
}

.faq::before {
  display: block;
  height: 2rem;
  margin-top: -2rem;
  content: "";
}

.faq-header {
  color: #000;
  text-align: center;
  font-family: var(--font-family-NotoSansJP);
  font-size: 4rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 8rem 0 5rem 0;
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .faq-header {
    font-size: 3rem;
    padding: 8rem 0 5rem 0;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .faq-header {
    font-size: 2.8rem;
    padding: 8rem 0 5rem 0;
  }
}

@media only screen and (max-width: 375px) {
  .faq-header {
    font-size: 2.8rem;
    padding: 8rem 0 5rem 0;
  }
}

.faq-question-label {
  color: #000;
  text-align: center;
  font-family: var(--font-family-RocknRollOne);
  font-size: 3rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 0 2rem 0 0;
}

.faq-answer-label {
  color: #000;
  text-align: center;
  font-family: var(--font-family-RocknRollOne);
  font-size: 3rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 0 2rem 0 0;
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .faq-question-label {
    font-size: 2.5rem;
  }

  .faq-answer-label {
    font-size: 2.5rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .faq-question-label {
    font-size: 2rem;
  }

  .faq-answer-label {
    font-size: 2rem;
  }
}

@media only screen and (max-width: 375px) {
  .faq-question-label {
    font-size: 2rem;
  }

  .faq-answer-label {
    font-size: 2rem;
  }
}

.faq-content {
  padding: 5rem 3rem 5rem 3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* 利用可能なスペ�Eスを占朁E*/
  margin-bottom: 5rem;
  /* フッターとの間に余白を追加 */
  /* ブラウザの高さに満たなぁE�E��E�合�E最下部に配置 */
  min-height: calc(100vh - 8rem - 5rem - 10rem);
  /* ヘッダー、タイトル、フチE�E��E�ーの高さを差し引く */
  justify-content: flex-start;
}

/* ブラウザの高さを趁E�E��E�る場合�E調整 */
@media screen and (min-height: calc(100vh + 1px)) {
  .faq-content {
    min-height: auto;
    flex: 1;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .faq-content {
    margin: 5rem 3rem 5rem 3rem;
    padding: 0;
    margin-bottom: 11rem;
    /* フッターとの間に余白を追加 */
    min-height: calc(100vh - 11rem - 5rem - 8rem);
    /* タブレチE�E��E�用の調整 */
    display: flex;
    flex-direction: column;
    flex: 1;
    /* 利用可能なスペ�Eスを占朁E*/
  }
}

@media only screen and (max-width: 375px) {
  .faq-content {
    margin: 5rem 1rem 3rem 1rem;
    padding: 0;
    margin-bottom: 3rem;
    /* フッターとの間に余白を追加 */
    min-height: calc(100vh - 10rem - 5rem - 8rem);
    /* スマ�E用の調整 */
  }
}

/* ==========================================================
  アコーディオンメニュー
========================================================== */
.accordion-item {
  max-width: var(--max-width-1200px);
  margin: 0 auto;
}

.accordion-header {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  border-radius: 4px;
  background: #f4f4f4;
  font-size: 26px;
  font-weight: bold;
  padding: 10px 5%;
  text-align: left;
  position: relative;
  z-index: +1;
  cursor: pointer;
  transition-duration: 0.2s;
  color: #242424;
  font-family: var(--font-family-NotoSansJP);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  /* 175% */
}

.accordion-header:hover {
  background: #9383b2;
  color: #fff;
}

.accordion-header:hover .faq-question-label {
  color: #fff;
}

.accordion-header:hover .accordion-icon,
.accordion-header:hover .accordion-icon:before,
.accordion-header:hover .accordion-icon:after {
  background-color: #fff;
}

.accordion-header.open {
  background: #9383b2;
  color: #fff;
  border-radius: 4px 4px 0 0;
}

.accordion-header.open .faq-question-label {
  color: #fff;
}

.accordion-header.open .accordion-icon,
.accordion-header.open .accordion-icon:before,
.accordion-header.open .accordion-icon:after {
  background-color: #fff;
}

.accordion-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  right: 5%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  box-sizing: border-box;
}

.accordion-icon {
  display: block;
  width: 20px;
  height: 16px;
  position: relative;
  transition: all 0.3s ease;
}

.accordion-icon {
  display: block;
  width: 20px;
  height: 2px;
  position: relative;
  background-color: #242424;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.accordion-icon:before,
.accordion-icon:after {
  display: block;
  content: "";
  background-color: #242424;
  border-radius: 2px;
  width: 20px;
  height: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-sizing: border-box;
}

.accordion-icon:before {
  top: -7px;
  transform: translateY(0);
}

.accordion-icon:after {
  top: 7px;
  transform: translateY(0);
}

.accordion-header.open .accordion-icon {
  background-color: transparent;
}

.accordion-header.open .accordion-icon:before {
  transform: translateY(7px) rotate(45deg);
}

.accordion-header.open .accordion-icon:after {
  transform: translateY(-7px) rotate(-45deg);
}

.accordion-content {
  display: none;
  box-sizing: border-box;
}

.accordion-wrapper {
  height: fit-content;
  display: flex;
  padding: 20px 5%;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background-color: #fff;
  box-sizing: border-box;
}

@media screen and (max-width: 1024px) {
  .accordion-wrapper {
    height: fit-content;
    display: flex;
    padding: 15px 5%;
  }
}

@media screen and (max-width: 767px) {
  .accordion-wrapper {
    height: fit-content;
    display: flex;
    padding: 15px 60px 15px 15px;
  }
}

p.news-description,
p.faq-description {
  margin: 0;
  color: #242424;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
}

@media screen and (max-width: 1024px) {
  .accordion-header {
    font-size: 18px;
  }

  .accordion-icon-wrapper {
    width: 30px;
    height: 30px;
    margin-top: -15px;
  }

  p.news-description,
  p.faq-description {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 767px) {
  .accordion-header {
    font-size: 14px;
    text-align: left;
    padding: 15px 60px 15px 15px;
    line-height: 1.8rem;
  }

  p.news-description {
    font-size: 1.4rem;
  }
}

@media only screen and (max-width: 375px) {
  .accordion-header {
    font-size: 12px;
    text-align: left;
    padding: 15px 60px 15px 15px;
    line-height: 1.8rem;
  }

  p.news-description,
  p.faq-description {
    font-size: 1.2rem;
  }
}

/* ==========================================================
  GoogleマッチE
========================================================== */
.location-map::before {
  display: block;
  height: 4rem;
  margin-top: -4rem;
  content: "";
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .location-map::before {
    height: 6rem;
    margin-top: -6rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .location-map::before {
    height: 8rem;
    margin-top: -8rem;
  }
}

@media only screen and (max-width: 375px) {
  .location-map::before {
    height: 10rem;
    margin-top: -10rem;
  }
}

.location-header {
  color: #000;
  text-align: center;
  font-family: var(--font-family-NotoSansJP);
  font-size: 4rem;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  padding: 13rem 0 5rem 0;
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .location-header {
    font-size: 3rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .location-header {
    padding: 13rem 0 5rem 0;
    font-size: 3rem;
  }
}

@media only screen and (max-width: 375px) {
  .location-header {
    font-size: 2.8rem;
    padding: 13rem 0 5rem 0;
  }
}

.location-content {
  margin: 0 auto;
  padding: 2vw 5rem 5vw 5rem;
  max-width: var(--max-width-1200px);
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .location-content {
    padding: 2vw 5rem 5vw 5rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .location-content {
    padding: 2vw 3rem 5vw 3rem;
  }
}

@media only screen and (max-width: 375px) {
  .location-content {
    padding: 2vw 1rem 5vw 1rem;
  }
}

iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  iframe {
    aspect-ratio: 4/3;
  }
}

@media only screen and (max-width: 375px) {
  iframe {
    aspect-ratio: 4/3;
  }
}

.location-details {
  margin: 0 auto;
  padding: 2vw 5rem 5vw 5rem;
  max-width: var(--max-width-1200px);
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .location-details {
    padding: 2vw 5rem 5vw 5rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .location-details {
    padding: 2vw 3rem 3vw 3rem;
  }
}

@media only screen and (max-width: 375px) {
  .location-details {
    padding: 2vw 1rem 3vw 1rem;
  }
}

.location-details h3 {
  color: #242424;
  font-family: var(--font-family-NotoSansJP);
  font-size: 2.4rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .location-details h3 {
    font-size: 2rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .location-details h3 {
    font-size: 1.8rem;
  }
}

@media only screen and (max-width: 375px) {
  .location-details h3 {
    font-size: 1.6rem;
  }
}

.location-details p {
  color: #242424;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.8rem;
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .location-details p {
    font-size: 1.6rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .location-details p {
    font-size: 1.4rem;
  }
}

@media only screen and (max-width: 375px) {
  .location-details p {
    font-size: 1.2rem;
  }
}

.location-text-bold {
  font-weight: 700;
  color: #242424;
}

.location-map-text-bold {
  margin-top: 5rem;
  margin-bottom: 1.5rem;
  color: #242424;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .location-map-text-bold {
    font-size: 1.6rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .location-map-text-bold {
    font-size: 1.4rem;
  }
}

@media only screen and (max-width: 375px) {
  .location-map-text-bold {
    font-size: 1.2rem;
  }
}

.highlighted {
  background: linear-gradient(transparent 65%, #c9c1db 65%);
}

/* ==========================================================
  フッター
========================================================== */
.footer {
  background: #d9d9d9;
  padding: 1rem 0;
  margin-top: auto;
  flex-shrink: 0;
  /* フッターの縮小を防ぁE*/
}

.footer-content {
  margin: 0 auto;
  max-width: var(--max-width-1920px);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 6rem;
  margin: 0 2rem;
}

.footer-logo {
  width: 14rem;
  height: 6rem;
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .footer-logo {
    width: 12rem;
    height: 6rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .footer-logo {
    width: 10rem;
    height: 6rem;
  }
}

@media only screen and (max-width: 375px) {
  .footer-logo {
    width: 8rem;
    height: 6rem;
  }
}

.footer-logo img {
  width: 100%;
  height: 100%;
}

.footer-text {
  color: #242424;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.5rem;
  font-style: bold;
  font-weight: 400;
  line-height: normal;
}

@media only screen and (min-width: 769px) and (max-width: 1280px) {
  .footer-text {
    font-size: 1.6rem;
  }
}

@media only screen and (min-width: 376px) and (max-width: 768px) {
  .footer-text {
    font-size: 1.4rem;
  }
}

@media only screen and (max-width: 375px) {
  .footer-text {
    font-size: 1.2rem;
  }
}

/* ==========================================================
  フォーム
========================================================== */
.contact {
  margin-top: 8rem;
  flex: 1;
  /* フッターを下に押し下げめE*/
  display: flex;
  flex-direction: column;
}

.contact-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.success-message-text {
  display: none;
}

.contact-header {
  text-align: center;
}

.contact-header h1 {
  color: #000;
  text-align: center;
  font-family: var(--font-family-NotoSansJP);
  font-size: 4rem;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  padding: 5rem 0 5rem 0;
}

.contact-header p,
.contact-description,
.contact-note {
  margin: 2rem 0;
  color: #242424;
  text-align: center;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: normal;
}

@media only screen and (min-width: 391px) and (max-width: 919px) {
  .contact-header h1 {
    margin-bottom: 5rem;
    font-size: 3rem;
  }

  .contact-header p,
  .contact-description,
  .contact-note {
    margin: 2rem 0;
    font-size: 1.4rem;
  }
}

@media only screen and (max-width: 390px) {
  .contact-header h1 {
    margin-bottom: 4rem;
    font-size: 3rem;
  }

  .contact-header p,
  .contact-description,
  .contact-note {
    margin: 2rem 0;
    font-size: 1.4rem;
  }
}

.required {
  color: #f00;
  text-align: center;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.4rem;
}

.form {
  margin-top: 5rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
  padding: 0 3vw;
  margin-bottom: 5rem;
  /* フッターとの間に余白を追加 */
}

@media screen and (max-width: 480px) {
  .form {
    margin-top: 40px;
    margin-bottom: 3rem;
  }
}

.form-group {
  padding-top: 24px;
  padding-bottom: 24px;
  width: 100%;
  display: flex;
  align-items: center;
}

@media screen and (max-width: 480px) {
  .form-group {
    padding-left: 0;
    padding-right: 0;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-wrap: wrap;
  }
}

.form-label {
  width: 100%;
  max-width: 130px;
  color: #242424;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

@media screen and (max-width: 480px) {
  .form-label {
    max-width: inherit;
    display: flex;
    align-items: center;
    font-size: 15px;
  }
}

.form-label.isMsg {
  margin-top: 8px;
  margin-bottom: auto;
}

@media screen and (max-width: 480px) {
  .form-label.isMsg {
    margin-top: 0;
  }
}

.form-input {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-left: 40px;
  padding-left: 1em;
  padding-right: 1em;
  height: 48px;
  flex: 1;
  width: 100%;
  background: #eaedf2;
  font-size: 18px;
}

@media screen and (max-width: 480px) {
  .form-input {
    margin-left: 0;
    margin-top: 18px;
    height: 40px;
    flex: inherit;
    font-size: 15px;
  }
}

.form-textarea {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-left: 40px;
  padding-left: 1em;
  padding-right: 1em;
  height: 216px;
  flex: 1;
  width: 100%;
  background: #eaedf2;
  font-size: 18px;
}

@media screen and (max-width: 480px) {
  .form-textarea {
    margin-top: 18px;
    margin-left: 0;
    height: 200px;
    flex: inherit;
    font-size: 15px;
  }
}

.form-submit {
  color: #fff;
  background: var(--maincolor);
  font-family: var(--font-family-NotoSansJP);
  font-size: 2rem;
  font-weight: 700;
  width: fit-content;
  padding: 0.4em 1.2em;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  text-align: center;
  display: block;
  border: 1.5px solid var(--maincolor);
  margin: 10rem auto;
  letter-spacing: 0.05em;
}

@media screen and (max-width: 480px) {
  .form-submit {
    margin: 5rem auto;
    padding-top: 8px;
    padding-bottom: 8px;
    width: 180px;
    font-size: 16px;
  }
}

.form-submit:hover {
  background: #fff;
  color: var(--maincolor);
  border-color: var(--maincolor);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.form-caution {
  margin-top: 5rem;
}

.form-caution-text {
  overflow-y: scroll;
  height: 20rem;
  margin: 1rem;
  border: 1px solid #848484;
  padding: 2rem;
}

.form-cautiontext-2 {
  margin: 20rem 0;
  padding: 2rem;
}

.form-cautiontext-2::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.form-cautiontext-2::-webkit-scrollbar-thumb {
  background: #848484;
  border-radius: 5px;
}

.text-1rem-bottom {
  padding-bottom: 3rem;
}

.form-cautiontext-2 p {
  color: #242424;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.6rem;
}

.form-cautiontext2 {
  margin-top: 1rem;
  color: #242424;
  text-align: center;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: normal;
}

.form-caution-note {
  margin-top: 1rem;
  color: #242424;
  text-align: center;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: normal;
}

.form-caution-text::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.form-caution-text::-webkit-scrollbar-thumb {
  background: #848484;
  border-radius: 5px;
}

.form-text-bold {
  color: #242424;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  padding-top: 1.5rem;
}

.form-caution-text p {
  color: #242424;
  font-family: var(--font-family-NotoSansJP);
  font-size: 1.6rem;
  line-height: 1.5;
}

/* 教員紹介セクション */
.faculty {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faculty-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faculty-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.faculty-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #9383b2;
    margin: 20px auto 0;
}

.faculty-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
}

.faculty-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(20% - 24px);
    min-width: 200px;
    max-width: 280px;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.faculty-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
    min-height: 100%;
}

.faculty-card:hover .faculty-image img {
    transform: scale(1.05);
}

.faculty-info {
    padding: 25px 20px;
    text-align: center;
}

.faculty-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.faculty-specialty {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.faculty-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: #9383b2;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.faculty-link:hover {
    background-color: #7a6b9a;
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .faculty-card {
        width: calc(25% - 22.5px);
    }
}

@media (max-width: 768px) {
    .faculty {
        padding: 60px 0;
    }
    
    .faculty-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .faculty-grid {
        gap: 20px;
    }
    
    .faculty-card {
        width: calc(50% - 10px);
        min-width: 160px;
    }
    
    .faculty-image {
        height: 200px;
        width: 100%;
    }
    
    .faculty-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .faculty-info {
        padding: 20px 15px;
    }
    
    .faculty-name {
        font-size: 1.1rem;
    }
    
    .faculty-specialty {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .faculty-content {
        padding: 0 15px;
    }
    
    .faculty-grid {
        gap: 20px;
    }
    
    .faculty-card {
        width: calc(50% - 10px);
        max-width: none;
    }
    
    .faculty-image {
        height: 220px;
        width: 100%;
    }
    
    .faculty-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .faculty-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 375px) {
    .faculty-grid {
        gap: 16px;
    }
    
    .faculty-card {
        width: calc(50% - 8px);
        max-width: none;
    }
    
    .faculty-image {
        height: 160px;
        width: 100%;
    }
    
    .faculty-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .faculty-info {
        padding: 12px 8px;
    }
    
    .faculty-name {
        font-size: 0.9rem;
    }
    
    .faculty-specialty {
        font-size: 0.75rem;
    }
}

@media (max-width: 375px) {
    .faculty-grid {
        gap: 16px;
    }
    
    .faculty-card {
        width: calc(50% - 8px);
        max-width: none;
    }
    
    .faculty-image {
        height: 240px;
        width: 100%;
    }
    
    .faculty-info {
        padding: 10px 6px;
    }
    
    .faculty-name {
        font-size: 0.85rem;
    }
    
    .faculty-specialty {
        font-size: 0.7rem;
    }
}

/* 教科紹介セクション */
.curriculum {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.curriculum-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.curriculum-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    position: relative;
}

.curriculum-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #9383b2;
    margin: 20px auto 0;
}

.curriculum-intro {
    text-align: center;
    font-size: 1.25rem;
    color: #666;
    margin: 20px 0 30px 0;
    line-height: 1.5;
}

.curriculum-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

.curriculum-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.curriculum-card {
    background: white;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.curriculum-card:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.curriculum-card:last-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.curriculum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: #b5a8c9;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    color: #fff;
    min-height: 40px;
    border-bottom: 1px solid #eee;
}

.curriculum-header:hover {
    background: #9383b2;
    color: #fff;
}

.curriculum-header.open {
    background: #9383b2;
    color: #fff;
    border-bottom: none;
}

.curriculum-header:hover .curriculum-name,
.curriculum-header.open .curriculum-name {
    color: #fff;
}

.curriculum-header:hover .curriculum-icon,
.curriculum-header.open .curriculum-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.curriculum-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.2s;
}

.curriculum-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease, color 0.2s, background 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
}

/* アコーディオンのアイコン回転 */
.curriculum-header.open .curriculum-icon {
    transform: rotate(45deg);
}

.curriculum-description {
    padding: 0;
    background: #f9f9f9;
    display: none;
}

.curriculum-description p {
    margin: 0 0 15px 0;
    line-height: 1.7;
    color: #000;
    font-size: 1.3rem;
}

.curriculum-description p:last-child {
    margin-bottom: 0;
}

.curriculum-teachers {
    font-size: 1.2rem !important;
    color: #666 !important;
    font-style: normal;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    margin-top: 15px !important;
}

.curriculum-wrapper {
    padding: 25px 30px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .curriculum {
        padding: 60px 0;
    }
    
    .curriculum-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .curriculum-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .curriculum-header {
        padding: 12px 20px;
        min-height: 40px;
    }
    
    .curriculum-name {
        font-size: 1.4rem;
    }
    
    .curriculum-wrapper {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .curriculum-content {
        padding: 0 15px;
    }
    
    .curriculum-title {
        font-size: 1.8rem;
    }
    
    .curriculum-header {
        padding: 10px 18px;
        min-height: 35px;
    }
    
    .curriculum-name {
        font-size: 1.3rem;
    }
    
    .curriculum-wrapper {
        padding: 18px;
    }
}

/* ダウンロードセクション */
.download {
    padding: 40px 0 80px 0;
    background: #f8f9fa;
}

.download-container {
    max-width: 1200px;
    min-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

.download-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.download-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 160px;
    width: 220px;
    min-width: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.download-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(147, 131, 178, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-info {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.download-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

/* かわらばんダウンロードセクション（news.html用） */
.download-section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.download-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #9383b2;
    margin: 20px auto 0;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* レスポンシブ対応 - ダウンロードセクション */
/* デスクトップ（大）: flexbox で中央配置 */
@media (max-width: 1200px) {
    .download-content {
        gap: 18px;
    }
    
    .download-container {
        max-width: 950px;
    }
}

/* タブレット（大）: flexbox で中央配置 */
@media (max-width: 950px) {
    .download-content {
        gap: 20px;
    }
    
    .download-container {
        max-width: 700px;
    }
}

/* タブレット（小）: flexbox で中央配置 */
@media (max-width: 720px) {
    .download-content {
        gap: 20px;
    }
    
    .download-container {
        max-width: 480px;
        padding: 0 15px;
    }
    
    .download-card {
        width: 200px;
    }
}

/* スマートフォン（大）: 2列表示を維持 */
@media (max-width: 480px) {
    .download {
        padding: 20px 0 40px 0;
    }
    
    .download-container {
        min-width: 380px;
        max-width: 480px;
        padding: 0 10px;
    }
    
    .download-content {
        gap: 15px;
    }
    
    .download-card {
        width: 180px;
        min-width: 160px;
        padding: 16px 12px;
    }
    
    .download-title {
        font-size: 0.9rem;
    }
    
    .download-description {
        font-size: 0.8rem;
    }
    
    .download-icon {
        width: 45px;
        height: 45px;
    }
    
    .download-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* 非常に小さな画面でも2列表示を維持 */
@media (max-width: 380px) {
    .download-container {
        min-width: 340px;
        padding: 0 5px;
    }
    
    .download-content {
        gap: 10px;
    }
    
    .download-card {
        width: 160px;
        min-width: 150px;
        padding: 14px 10px;
    }
    
    .download-title {
        font-size: 0.85rem;
    }
    
    .download-description {
        font-size: 0.75rem;
    }
    
    .download-icon {
        width: 40px;
        height: 40px;
    }
    
    .download-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* レスポンシブ対応 - かわらばん用 */
@media (max-width: 768px) {
    .download-section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .download-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .download-card {
        min-height: 130px;
        padding: 12px;
        gap: 8px;
    }
    
    .download-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .download-description {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .download-section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .download-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .download-grid {
        gap: 15px;
    }
    
    .download-card {
        min-height: 120px;
        padding: 10px;
        gap: 6px;
    }
    
    .download-icon {
        width: 40px;
        height: 40px;
    }
    
    .download-title {
        font-size: 0.8rem;
        line-height: 1.1;
    }
    
    .download-description {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

@media (max-width: 375px) {
    .download-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 0 15px;
    }
    
    .download-card {
        min-height: 110px;
        padding: 8px;
        gap: 5px;
    }
    
    .download-icon {
        width: 35px;
        height: 35px;
    }
    
    .download-title {
        font-size: 0.75rem;
        line-height: 1.1;
    }
    
    .download-description {
        font-size: 0.65rem;
        line-height: 1.2;
    }
}

/* スマホ表示でダークモードを強制的にライトモードにする */
@media (max-width: 768px) {
    html {
        color-scheme: light only !important;
    }
    
    body {
        background-color: #ffffff !important;
        color: #333333 !important;
    }
    
    /* フォーム要素のみライトモードを強制 */
    input, textarea, select, button {
        color-scheme: light only !important;
    }
    
    /* メタテーマカラーも強制的にライト設定 */
    meta[name="theme-color"] {
        content: "#ffffff" !important;
    }
    
    /* ダークモード関連のCSSカスタムプロパティを上書き */
    :root {
        color-scheme: light only !important;
    }
    
    /* prefers-color-schemeを強制的に上書き（bodyのみ） */
    @media (prefers-color-scheme: dark) {
        html, body {
            background-color: #ffffff !important;
            color: #333333 !important;
            color-scheme: light only !important;
        }
        
        /* フォーム要素のみダークモードを無効化 */
        input, textarea, select, button {
            background-color: #ffffff !important;
            color: #333333 !important;
            color-scheme: light only !important;
        }
    }
}