/* 本の表示 */
#floating-image {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 3s, transform 3s;
  transform: translateY(40px);
  pointer-events: none;
}

#floating-image img {
  width: 272px;
  height: auto;
  box-shadow: 4px 4px 12px rgba(32, 72, 98, 0.2);
  border-radius: 50%;
}

#floating-image.is-visible {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ------------------------
   レスポンシブ対応 追加CSS
------------------------- */
/* 1. 画面幅 1024px以下（タブレット） */
@media (max-width: 1024px) {
  #floating-image img {
    width: 100px;
  }
}



/* 2. 画面幅 767px以下（スマホ） */
@media (max-width: 767px) {}

/* ヒーローセクション --------------------------------------------------------------------------------------- */
section.hero-section {
  width: 100vw;
  background-color: #222;
}

.hero {
  display: block;
  max-width: 1680px;
  aspect-ratio: 16 / 9;
  /* 画像に合わせて変更 */
  margin: 46px auto 0;
  background-color: #222;
  position: relative;
  overflow: hidden;
}

.hero-img-layer,
.hero-blackout-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s cubic-bezier(.85, .01, .43, 1.02);
  z-index: 2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-blackout-layer {
  background: #222;
  z-index: 99;
}

/* ------------------------
   レスポンシブ対応 追加CSS
------------------------- */
/* 1. 画面幅 1024px以下（タブレット） */
@media (max-width: 1024px) {
  .hero {
    margin-top: 14px;
  }
}

@media (max-width: 767px) {
  .hero {
    margin-top: 89px;
    aspect-ratio: 9 / 16;
  }
}


/* プロフィールセクション ---------------------------------------------------------------- */
.profile {
  height: auto;
  background-color: #fff;
  border-top: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.profile h2::after {
  content: "プロフィール";
  right: -70px;
}

.profile .container {
  height: auto;
}

.profile-content {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.profile-image {
  width: 50%;
  padding-top: 19px;
}

.profile-image img {
  padding-left: 150px;
  width: 72%;
}

.profile-image img:hover {
  filter: brightness(0.9); /* 80%の明るさに設定 */
}

#profilePhoto {
  transition: opacity .5s ease;
}
#profilePhoto.is-fading {
  opacity: 0.8;
}

.profile-text {
  width: 50%;
  padding-right: 200px;
  padding-left: 100px;
}

.profile-name {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 40px;
  background: linear-gradient(to right, #204862 0%, #2C5C1F 30%, #B69D79 50%, #B69D79 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  /* --- ここから追加・修正 --- */
  /* グラデーションの幅を要素の2倍に設定 */
  background-size: 200% 100%;
  /* グラデーションの初期位置を左端に設定 */
  background-position: 100% 0;
  /* JSで位置を変更する際のアニメーションを滑らかにする（任意） */
  transition: background-position 0.2s ease-out;
}

.profile-text h3 span {
  margin-bottom: 5px;
  font-size: 22px;
  font-weight: 400;
}

.profile-text h4 {
  position: relative;
  display: inline-block;
  /* テキスト幅だけにする場合 */
  font-weight: bold;
  font-size: 22px;
}

/* 画像をkyou-textの上に重ねて表示する */
#kyou-text {
  position: relative;
  display: inline-block;
  width: 24px;
  vertical-align: middle;
}

#kyou-text .swap-img {
  position: absolute;
  top: 8px;
  left: 0;
  width: 24px;
  height: 1em;
  display: none;
  vertical-align: middle;
}

#kyou-text.show-img .swap-img {
  display: block;
}

#kyou-text.show-img .kyou-char {
  visibility: hidden;
}

.profile-text h4::before {
  content: "“";
  /* お好みで『 や “ などに変更可 */
  margin-right: 0.4em;
  color: #5D86A1;
  /* 引用マークの色。好みで調整 */
  font-size: 1.2em;
  vertical-align: middle;
  opacity: 0.7;
}

.profile-text h4::after {
  content: "”";
  /* お好みで 』 や ” などに変更可 */
  margin-left: 0.4em;
  color: #5D86A1;
  font-size: 1.2em;
  vertical-align: middle;
  opacity: 0.7;
}

.profile-text span {
  margin-bottom: 7px;
  font-size: 22px;
}

.profile-description p {
  font-size: 20px;
  line-height: 2.1;
  margin-bottom: 40px;
}

/* ------------------------
   レスポンシブ対応 追加CSS
------------------------- */

/* 1. 画面幅 1024px以下（タブレット） */
@media (max-width: 1024px) {
  .profile {
    height: auto;
  }

  .profile .container {
    background-color: #fff;
  }

  .profile h2::before {
    display: none;
  }

  /* profile: 2カラム→1カラム */
  .profile-content {
    flex-direction: column;
    align-items: center;
  }

  h3.profile-name {
    margin: 20px auto 45px;
    text-align: center;
  }

  .profile-text h4 {
    display: block;
    text-align: center;
  }

  .profile-image,
  .profile-text {
    width: 92%;
    padding: 0;
  }

  .profile-image img {
    padding-left: 0;
    width: 100%;
    margin: 0 auto;
    display: block;
  }

  .profile-text {
    padding-top: 25px;
  }
}

/* 2. 画面幅 767px以下（スマホ） */
@media (max-width: 767px) {
  .profile {
    padding-bottom: 40px;
  }

  .profile .container {
    height: auto;
    text-align: center;
  }

  .profile h2::after {
    right: -88px;
  }

  .profile-content {
    margin-top: 12px;
    flex-direction: column;
    align-items: center;
  }

  .profile-image,
  .profile-text {
    width: 100%;
    padding: 0;
  }

  .profile-image img {
    width: 100%;
    padding-left: 0;
  }

  .profile-text {
    padding-top: 18px;
    padding-right: 0;
    padding-left: 0;
  }

  .profile-name {
    font-size: 22px;
  }

  .profile-description p {
    font-size: 15px;
    margin-bottom: 20px;
    text-align: left;
  }
}

/* レクチャーセクション -------------------------------------------------- */
.lecture {
  min-height: 1120px;
  /* padding: 80px 0; */
  background-color: #fff;
  /* background-color: #222; */
  color: var(--sub-color-text);
}

.lecture h2 {
  margin: 125px auto 135px 180px;
}

.lecture h2::after {
  content: "講演";
  right: -27px;
}

.lecture .container {
  padding-bottom: 60px;
  background-color: var(--color-header-bg);
}

.lecture .container h3 {
  padding: 60px 0;
  text-align: center;
  font-weight: 400;
  font-size: 22px;
}

.lecture-grid-3 {
  display: flex;
  justify-content: space-around;
  padding-bottom: 55px;
  border-bottom: 1px solid #666666;
}

.lecture-card {
  position: relative;
  width: 320px;
  height: 240px;
  /* background: linear-gradient(211deg,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(255, 255, 255, 1.0) 49%,
      rgba(32, 72, 98, 0.6) 51%,
      rgba(32, 72, 98, 0.6) 100%); */

  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    /* 黒40%の透明度 */
    conic-gradient(from 125deg at 77% 77%, rgba(32, 72, 98, 1) 0deg, rgba(38, 77, 104, 1) 57deg 133deg, rgba(74, 114, 141, 1) 160deg, rgba(92, 133, 160, 1) 288deg, rgba(94, 135, 162, 1) 303deg, rgba(122, 157, 180, 1) 317deg, rgba(177, 202, 218, 1) 346deg, rgba(186, 209, 224, 1) 360deg);
  padding: 0 24px;
  text-align: center;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/*
.lecture-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(32, 78, 92, 1) 0%,
      rgba(32, 78, 92, 1) 70%,
      rgba(32, 78, 92, 0.6) 90%,
      rgba(32, 78, 92, 0) 100%);
  pointer-events: none;
  border-radius: 7px;
}
  */

.lecture-card-description {
  position: relative;
  font-size: 24px;
  line-height: 2;
  z-index: 5;
}

.lecture-card span {
  font-size: 40px;
}

.lecture-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
  padding: 0 50px;
}

.lecture-item {
  cursor: pointer;
  margin-bottom: 1em;
  filter: brightness(0.8);
}

.lecture-head {
  position: relative;
  z-index: 5;
}

.lecture-item h4 {
  font-size: 20px;
  text-align: left;
  margin-bottom: 5px;

}

.lecture-head img {
  position: absolute;
  bottom: 1px;
  left: -15px;
  width: 50px;
  z-index: 1;
  transform-origin: center center;
}

/* --------------------------------
* 1. アニメーションの定義
* -------------------------------- */

/* ① 揺れるだけのアニメーション (ホバー用) */
@keyframes sway-only {
  0% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(45deg);
  }

  40% {
    transform: rotate(-45deg);
  }

  60% {
    transform: rotate(45deg);
  }

  80% {
    transform: rotate(-45deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* ② 揺れながら大きくなるアニメーション (クリック用) */
@keyframes sway-and-scale {
  0% {
    transform: scale(1.2) rotate(0deg);
  }

  25% {
    transform: scale(1.2) rotate(45deg);
  }

  75% {
    transform: scale(1.2) rotate(-45deg);
  }

  100% {
    transform: scale(1.2) rotate(0deg);
  }
}

.lecture-item:hover {
  filter: brightness(1.7);
}

/* lecture-itemをホバーした時にアニメーションを適用 */
.lecture-item:hover .lecture-head img {
  animation: sway-only 4.5s ease-in-out infinite;
}

.lecture-item:active .lecture-head img {
  animation: sway-and-scale 3.0s ease-in-out infinite;
}

.lecture-item .lecture-accordion {
  font-size: 15px;
  line-height: 2;
  max-height: 8.5em;
  /* 5行程度。行間により調整 */
  overflow: hidden;
  transition: max-height 0.8s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lecture-accordion.open {
  max-height: 100em;
  text-align: left;
  /* 十分大きな値に */
  -webkit-line-clamp: unset;
  overflow: visible;
  transition: max-height 0.5s cubic-bezier(.46, .03, .52, .96);
}

/* ------------------------
   レスポンシブ対応 追加CSS
------------------------- */
/* 1. 画面幅 1024px以下（タブレット） */
@media (max-width: 1024px) {

  .lecture h2 {
    margin-left: 5%;
  }

  .lecture h2::before {
    display: none;
  }

  .lecture-grid-3 {
    display: flex;
    justify-content: space-around;
    padding-bottom: 35px;
    padding: 0 15px;
    gap: 25px;
    border-bottom: none;
  }

  .lecture-card-description {
    font-size: 18px;
    line-height: 1.7;
  }
}

/* 2. 画面幅 767px以下（スマホ） */
@media (max-width: 767px) {
  section#lecture {
    text-align: center;
  }

  .lecture h2.section-title {
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .lecture .container {
    padding: 5px;
  }

  .lecture-grid-3 {
    padding: 5px;
    gap: 15px;
  }

  .lecture-card {
    height: 250px;
    padding: 0 9px;
  }

  .lecture-card span {
    font-size: 31px;
  }

  /* lecture: 2カラム→1カラム */
  .lecture-grid-2 {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 24px;
    padding: 0 7px;
  }

  .lecture .container h3 {
    font-size: 19px;
    padding: 30px 0;
  }

  .lecture-head {
    display: inline-block;
  }

  .lecture-item h4 {
    text-align: center;
  }

  .lecture-head img {
    bottom: 7px;
    left: -28px;
    width: 30px;
  }

  .lecture-item.lecture-item-1 {
    margin-top: 30px;
  }

  .lecture-item.lecture-item-4 {
    margin-bottom: 30px;
  }
}

/* テーマセクション ----------------------------------------------------------- */
.theme {
  min-height: 900px;
  padding: 30px 0 80px;
  background-color: #fff;
}

.theme h3 {
  margin-bottom: 45px;
  font-size: 25px;
  text-align: center;
}

.theme .container {
  padding: 0 8%;
  background-color: #fff;
}

.theme-grid {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 390px;
}

.theme-grid.second-row {
  margin-top: 30px;
}

.theme-item {
  width: 28%;
  height: 360px;
  padding: 15px 30px;
  background-color: var(--color-background-2);
}

.theme-item-image {
  width: 95%;
  height: 200px;
  margin: 0 auto;
}

.theme-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-item-text {
  width: 95%;
  margin: 0 auto;
}

.theme-item h4 {
    position: relative;
    margin-top: 14px;
    margin-bottom: 18px;
    font-family: var(--font-h2);
    font-size: 40px;
    font-weight: 400;
    color: #B69D79;
    line-height: 0.7;
}

.theme-item h4::before {
  content: "#";
  position: absolute;
  left: -2px;
  top: 12px;
  font-size: 14px;
}

.theme-item span {
  position: relative;
  /* margin-right: 0px; */
  left: 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.theme-item span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  /* 親要素の底に配置 */
  width: 100%;
  height: 2px;
  /* 下線の太さ */
  /* ここでグラデーションを設定 */
  background: linear-gradient(to right, #B69D79 0%, #B69D79 1%, rgba(182, 157, 121, 0) 100%);
}

.theme-item p {
  font-size: 15px;
}

p.theme-price {
    margin-top: 25px;
    text-align: center;
    font-weight: 700;
}

.theme-item-price {
    display: block;
    max-width: 95%;
    margin: 50px auto 30px;
    text-align: center;
}

.theme-item-price img {
    width: 100%;
}

/* ------------------------
   レスポンシブ対応 追加CSS
------------------------- */
/* 1. 画面幅 1024px以下（タブレット） */
@media (max-width: 1024px) {
  .theme {
    min-height: 900px;
    padding: 30px 30px 80px;
  }

  .theme h3 {
    margin-bottom: 95px;
  }

  .theme .container {
    padding: 0;
  }

  .theme-grid {
    display: block;
    height: auto;
    /* gap: 30px; */
  }

  .theme-item {
    width: 82%;
    height: auto;
    margin: 0 auto 40px;
  }

  .theme-item h4 {
    margin-top: 0;
  }

  .theme-item p {
    font-size: 17px;
  }
	
.theme-item-price {
    max-width: 80%;
    margin-top: 30px;
}
}

/* 2. 画面幅 767px以下（スマホ） */
@media (max-width: 767px) {
  section#theme {
    padding: 0;
  }

  .lecture h2::after {
    right: -38px;
  }

  .theme h3.section-title {
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 22px;
  }

  /* theme: 3カラム→1カラム */
  .theme-grid {
    flex-direction: column;
    gap: 18px;
    height: auto;
  }

  .theme-item {
    width: 79%;
    margin-bottom: 22px;
    height: auto;
    padding: 15px 23px 32px;
  }

  .theme-item-image {
    height: 120px;
    width: 100%;
  }

  .theme-item h4 {
    margin-top: 5px;
    font-size: 32px;
  }

  .theme-item h4::before {
    left: -4px;
    top: 8px;
  }

  .theme-item span {
    font-size: 16px;
  }

  .theme-item p {
    font-size: 14px;
    text-align: justify;
  }

}

/* アクティビティセクション ---------------------------------------------------------- */
.activity {
  min-height: 750px;
  padding: 50px 0;
}

.activity .container {
  padding-bottom: 155px;
}

.activity h2 {
  margin-top: 40px;
  margin-bottom: 40px;
  padding-right: 50px;
}

.activity h2::after {
  content: "活動";
}

.activity-item {
  display: flex;
  align-items: center;
  background-color: var(--color-text);
  cursor: pointer;
}

.activity-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.activity-image-1:hover h3,
.activity-image-2:hover h3,
.activity-image-3:hover h3,
.activity-image-4:hover h3 {
  transform: scale(1.1);
  /* テキストを1.2倍に拡大 */
  transition: transform 0.3s;
}

.activity-image {
  width: 50%;
  height: 250px;
  background-color: #333;
  /* 画像の代わりの背景色 */
  flex-shrink: 0;
  cursor: pointer;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.activity-image:hover {
  filter: brightness(1.25);
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-text {
  padding: 40px;
  width: 50%;
}

.activity-text h3 {
  font-size: 22px;
  text-align: center;
  color: var(--sub-color-text);
}

.activity-text p {
  font-size: 15px;
  line-height: 1.8;
}

/* モーダル基本スタイル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  margin: auto;
  padding: 50px 40px;
  max-width: 472px;
  position: relative;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.2);
  animation: modalFlipIn 0.6s;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.modal h2 {
  display: block;
  font-size: 27px;
  margin: 20px 20px 30px;
  padding: 0;
  text-align: center;
}

.modal h2::after {
  display: none;
}

.modal h2::before {
  display: none;
}

p.modal-small-text {
    margin-top: 15px;
    font-size: 13px;
}

@keyframes modalFlipIn {
  from {
    transform: rotateY(180deg) scale(0.95);
    opacity: 0;
  }

  to {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  transition: color .2s;
}

.modal-close:hover {
  color: #e74c3c;
}

/* ------------------------
   レスポンシブ対応 追加CSS
------------------------- */
/* 1. 画面幅 1024px以下（タブレット） */
@media (max-width: 1024px) {
  .activity .container {
    padding-bottom: 0;
    background-color: #fff;
  }

  .activity h2::before {
    display: none;
  }

  .activity-item {
    flex-direction: column !important;
    width: 100%;
    margin-bottom: 0;
  }

  .activity-image,
  .activity-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    padding: 0;
  }

  .activity-text h3 {
    font-size: 28px;
    text-align: center;
    color: var(--sub-color-text);
  }

  .activity-image {
    height: 200px;
  }
}

/* 2. 画面幅 767px以下（スマホ） */
@media (max-width: 767px) {
  section#activity {
    text-align: center;
  }

  .activity .container {
    padding: 0;
  }

  .activity h2 {
    margin-top: 0px;
    margin-right: 3%;
    margin-bottom: 10px;
    padding-right: 56px;
  }

  .activity-image,
  .activity-text {
    width: 100%;
    padding: 0;
  }

  .activity-image {
    height: 150px;
  }

  .activity-image,
  .activity-text {
    height: 140px;
  }

  .activity-text h3 {
    font-size: 23px;
  }

  .modal h2 {
    font-size: 24px;
  }
}


/* ニュースセクション ------------------------------------------------------------------------------------- */
.news {
  min-height: 760px;
  margin-bottom: 30px;
  padding: 60px 0;
}

.news .container {
  background-color: #fff;
}

.news h2 {
  margin-bottom: 68px;
  padding-right: 70px;
}

.news h2::after {
  content: "お知らせ";
}

.news-area {
  max-width: 1260px;
  margin: 0 auto;
}

.news h3 {
  position: relative;
  margin-bottom: 30px;
  font-size: 20px;
}

.news h3::before {
  content: "";
  position: absolute;
  top: 2px;
  left: -13px;
  width: 5px;
  height: 80%;
  background-color: var(--color-text);
  border-radius: 2px;
}

.announcement-link {
  position: relative;
}

a.announcement-link-point {
  position: absolute;
  top: 30px;
  right: 0;
  color: var(--text-color);
}

.news span.right-icon {
  margin-left: 3px;
  color: #808080;
  opacity: 0.7;
}

.news-list {
  list-style: none;
  border-top: 1px solid #eee;
}

.news-item {
  display: flex;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

/* お知らせリスト全体のコンテナ */
.news-list-container ul {
  width: 90%;
  list-style: none;
  margin: 0 auto;
}

/* お知らせリストの各項目 */
.news-list-container li {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #4d4d4d;
}

/* 各項目へのリンク */
.news-list-container li a {
  display: flex;
  /* Flexboxで横並びにする */
  align-items: center;
  /* 上下中央揃え */
  padding: 15px 10px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s;
}

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

/* 投稿日 */
.news-list-container .post-date {
  font-size: 0.9em;
  color: #666;
  margin-right: 15px;
  /* 右側に余白 */
  flex-shrink: 0;
  /* 日付が縮まないようにする */
}

/* カテゴリーラベルの共通スタイル */
.news-list-container .category-label {
  display: block;
  width: 130px;
  text-align: center;
  font-size: 0.8em;
  color: #fff;
  padding: 3px 8px;
  margin-right: 15px;
  margin-left: 15px;
  flex-shrink: 0;
}

/* --- カテゴリーごとの背景色 --- */

/* お知らせ (news) */
.news-list-container .cat-news {
  /* background-color: #e67e22; */
  /* 例: オレンジ系 */
  background-color: #333;

}

/* インストラクト (instructions) */
.news-list-container .cat-instructions {
  /* background-color: #3498db; */
  /* 例: ブルー系 */
  background-color: #333;

}

/* 講演 (lectures) */
.news-list-container .cat-lectures {
  /* background-color: #9b59b6; */
  /* 例: パープル系 */
  background-color: #333;

}

/* --- 絞り込み機能用のCSS（ここから追記） --- */

/* プルダウンメニューのコンテナ */
.news-filter-form {
  margin-bottom: 20px;
  border-bottom: 2px solid #4c4c4c;
}

/* プルダウンメニュー本体 */
.news-filter-form select {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  margin-bottom: 50px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.news-filter-form select {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  margin-bottom: 50px;
  color: #222 !important;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  font-size: 16px;
  cursor: pointer;
}

select#category-filter-select option {
  color: #222 !important;
}

/* リスト部分のラッパー（Ajaxで中身が入れ替わる部分）*/
#news-list-wrapper {
  transition: opacity 0.3s ease-in-out;
}

.news-date {
  width: 150px;
  flex-shrink: 0;
  font-size: 15px;
}

.news-title {
  font-size: 16px;
}

/* ------------------------
   レスポンシブ対応 追加CSS
------------------------- */
/* 1. 画面幅 1024px以下（タブレット） */
@media (max-width: 1024px) {
  .news h2 {
    margin-left: 0;
  }

  .news h2::before {
    display: none;
  }

  .news .container {
    padding: 0 30px;
  }
}

/* 2. 画面幅 767px以下（スマホ） */
@media (max-width: 767px) {
  .news .container {
    text-align: center;
  }

  .news h2 {
    padding-right: 85px;
    margin-top: 0;
    margin-right: 2%;
    margin-bottom: 23px;
  }

  .news-area {
    text-align: left;
  }

  .news h3 {
    margin-left: 15px;
  }

  .news-filter-form {
    width: 80%;
    margin: 0 auto 20px;
    border-bottom: 3px solid #4d4d4d;
  }

  .news-filter-form select {
    margin-bottom: 120px;
  }

  a.announcement-link-point {
    left: 50%;
    transform: translateX(-50%);
    top: 100px;
    text-align: center;
    font-size: 18px;
  }

  .news-list-container li {
    position: relative;
    flex-direction: column;
    border-bottom: none;
  }

  .news-list-container li::after {
    position: absolute;
    content: "";
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 89%;
    border-bottom: 1px solid #d4d4d4;
  }


  .news-lists-mp {
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
    margin-top: 15px;
  }

  .news-lists-mp-date {
    display: block;
    width: 50%;
  }

  a.category-label.cat-news,
  a.category-label.cat-instructions,
  a.category-label.cat-lectures {
    padding: 7px 8px;
  }

  .news-list-container .post-date {
    color: #222;
  }

  .news-lists-mp-title {
    display: block;
    width: 100%;
  }

  a.post-title {
    display: inline-block;
    width: fit-content;
    font-size: 19px;
    color: #222;
  }

}


/* ブログセクション ----------------------------------------------------------------- */
.blog {
  min-height: 610px;
  padding: 80px 0 0;
}

.blog .container {
  height: 820px;
}

.blog h2 {
  margin-bottom: 60px;
  padding-right: 70px;
}

.blog h2::after {
  content: "ブログ";
}

a.blog-all {
  display: block;
  text-align: right;
  margin-right: 10%;
  margin-bottom: 33px;
  color: var(--text-color);
}

.blog-area {
  padding: 0 20px;
}

.blog-latest-grid {
  display: flex;
  gap: 5px;
  justify-content: space-around
}

.blog-card {
  width: 440px;
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-6px) scale(1.03);
}

.blog-card-inner {
    width: 100%;
    padding: 0 96px;
    color: #efefef;
    text-align: left;
    background-color: rgba(34, 34, 34, 0.4);
}

.blog-card-date {
  margin-bottom: 20px;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.blog-card-title {
  font-size: 20px;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* ------------------------
   レスポンシブ対応 追加CSS
------------------------- */
/* 1. 画面幅 1024px以下（タブレット） */
@media (max-width: 1024px) {

  .blog .container {
    height: auto;
    margin-bottom: 100px;
  }

  .blog h2::before {
    display: none;
  }

  .blog-latest-grid {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .blog-card {
    width: 100%;
    max-width: 500px;
  }
}

/* 2. 画面幅 767px以下（スマホ） */
@media (max-width: 767px) {
  .blog h2 {
    margin-top: 30px;
    margin-right: 1%;
    margin-bottom: 20px;
    padding-right: 75px;
  }

  .blog .container {
    margin-bottom: 0;
    padding-bottom: 50px;
    text-align: center;
  }

  a.blog-all {
    text-align: center;
    margin-right: 0;
    margin-bottom: 33px;
    font-size: 18px;
  }


  .blog span.right-icon {
    margin-left: 3px;
    color: #808080;
    opacity: 0.7;
  }

  .blog-latest-grid {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }

  .blog-card {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    padding: 0;
  }
}