@charset "UTF-8";
/**
 * YNEXT Material Manager Styles
 * メインのスタイルシート
 */
.ynext-materials-container {
  margin-bottom: 40px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.ynext-materials-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}
.ynext-materials-tabs {
  display: flex;
  flex-wrap: wrap;
}
.ynext-materials-tab {
  padding: 8px 15px;
  margin-left: 5px;
  background-color: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ynext-materials-tab:hover {
  background-color: #e0e0e0;
}
.ynext-materials-tab.active {
  background-color: #0073aa;
  color: white;
}
.ynext-materials-section {
  margin-bottom: 30px;
}
.ynext-materials-section h4 {
  font-size: 20px;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #0073aa;
}

.ynext-current-year h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/**
 * コンポーネントのインデックスファイル
 * このファイルは、すべてのコンポーネントをエクスポートします
 */
/**
 * 研修資料コンテンツのスタイル
 *
 * @package YNEXT_Material_Manager
 */
.movie-image-img {
  width: 100%;
  min-width: 300px;
  max-width: 562px;
  aspect-ratio: 562/317;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.movie-image-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content .movie-images {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 85px;
  /* 初期状態では非表示にしない（JavaScriptで表示制御する場合は別途クラスを追加） */
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content .movie-images.single-movie, body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content .movie-images.single-resource {
  display: block;
  width: 100%;
}
@media (max-width: 768px) {
  body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content .movie-images {
    flex-direction: column;
    gap: 24px;
  }
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content .movie-images.is-hidden {
  display: none;
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content .movie-images > [class^=movie-image-] {
  flex: 0 0 calc((100% - 36px) / 2);
  cursor: pointer;
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content .movie-images:has(> div:only-child) {
  display: flex;
  justify-content: center;
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content .movie-images:has(> div:only-child) > div {
  float: none !important;
  margin: 0 auto;
  max-width: calc(100% - 30px);
}
@media (max-width: 768px) {
  body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content .movie-images:has(> div:only-child) > div {
    max-width: 100%;
  }
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content .movie-images:has(> div:only-child) > div .movie-image-img {
  text-align: center;
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content .movie-images.single-child {
  display: flex;
  justify-content: center;
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content .movie-images.single-child > div {
  float: none !important;
  margin: 0 auto;
  max-width: calc(100% - 30px);
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content .movie-images.single-child > div .movie-image-img {
  text-align: center;
}
@media (max-width: 768px) {
  body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content .movie-images .movie-title {
    padding: 0;
    margin-top: 6px;
  }
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content.single-child .flex-container-3col {
  display: flex;
  justify-content: center;
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-year-content.single-child .flex-container-3col .flex-item {
  margin: 0 auto;
  max-width: calc((100% - 72px) / 3);
}

/**
 * タブコンポーネントのスタイル
 *
 * @package YNEXT_Material_Manager
 */
/* ===== 共通タブスタイル ===== */
.ynext-materials-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}
.ynext-materials-tabs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .ynext-materials-tabs ul {
    flex-direction: column;
  }
}
.ynext-materials-tabs li {
  margin-left: 38px;
  margin-bottom: 10px;
}
.ynext-materials-tabs li:first-child {
  margin-left: 0;
}
@media (max-width: 768px) {
  .ynext-materials-tabs li:first-child {
    margin: 0 5px 10px;
  }
}
.ynext-materials-tabs .ynext-materials-tab-item {
  position: relative;
  padding: 6px 0 6px 20px;
}
.ynext-materials-tabs .ynext-materials-tab-item::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 12px;
  background: url("../images/material-link-burette.svg") no-repeat center center/contain;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.ynext-materials-tabs .ynext-materials-tab-item:hover, .ynext-materials-tabs .ynext-materials-tab-item.active {
  border-bottom: 1px solid #8FC231;
}

.ynext-materials-tab {
  display: block;
  cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.ynext-materials-tab:hover {
  text-decoration: none;
}

/* ===== ページ固有のスタイル ===== */
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container {
  width: 100%;
  padding: 0;
  /* 現在選択されている年度の表示 */
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-wrapper h3.ynext-materials-heading {
  text-align: center;
  border-left: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 13px;
  font-family: Noto Sans JP;
  font-weight: 500;
  font-size: 18px;
  line-height: 32px;
  letter-spacing: 0%;
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-materials-header {
  display: block;
  background-color: #ffffff;
  padding: 24px 0;
  margin-bottom: 24px;
  text-align: center;
  font-family: Noto Sans JP;
  font-weight: 500;
  font-size: 18px;
  line-height: 32px;
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-current-year {
  margin: 36px 0;
  text-align: center;
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-current-year .ynext-current-year-heading {
  border: none;
  padding: 0;
  margin: 0;
  font-family: Noto Sans JP;
  font-weight: 500;
  font-size: 22px;
  line-height: 36px;
  position: relative;
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-current-year .ynext-current-year-heading::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #8FC231;
  position: absolute;
  bottom: 0;
  top: calc(50% - 1px);
  left: 0;
}
body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container .ynext-current-year .ynext-current-year-heading .current-year-display {
  display: inline-block;
  background-color: #f3f3f3;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.ynext-materials-wrapper {
  background-color: #ffffff;
  padding: 20px 0 25px 0;
}

/* ===== 年度タブのスタイル ===== */
.year-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.year-tabs .year-tab {
  padding: 8px 15px;
  margin-right: 10px;
  margin-bottom: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.year-tabs .year-tab:hover {
  background-color: #e0e0e0;
}

/* ===== タイトル表示 ===== */
.ynext-materials-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #333;
  text-align: center;
}
.ynext-materials-title .selected-year-display {
  font-size: 0.9em;
  color: #0073aa;
  font-weight: 500;
}

/* ===== タブタイトル ===== */
.tab-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 13px;
  font-family: Noto Sans JP;
  font-weight: 500;
  font-size: 18px;
  line-height: 32px;
}
@media (max-width: 768px) {
  .tab-title {
    font-family: Noto Sans JP;
    font-weight: 500;
    font-size: 16px;
    line-height: 28px;
  }
}

/* ===== レスポンシブスタイル ===== */
@media (max-width: 768px) {
  .ynext-materials-tabs ul {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }
}
@media (max-width: 768px) and (max-width: 768px) {
  .ynext-materials-tabs ul {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .ynext-materials-tabs li {
    margin: 0 5px 10px;
  }
  .ynext-materials-tab {
    padding: 8px 12px;
    font-size: 14px;
  }
  .year-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .year-tabs .year-tab {
    flex: 0 0 auto;
  }
}
/**
* 資料コンポーネントのスタイル
*
* @package YNEXT_Material_Manager
*/
/* 資料コンポーネント */
.ynext-materials-year-content {
  animation: fadeIn 0.5s ease;
}

/* ローディングアニメーション */
.ynext-materials-loading {
  text-align: center;
  padding: 30px 0;
}
.ynext-materials-loading .ynext-loading-spinner {
  display: block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 115, 170, 0.3);
  border-radius: 50%;
  border-top-color: #0073aa;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 15px;
}
.ynext-materials-loading p {
  color: #333;
  font-size: 16px;
  margin: 0;
}

.ynext-materials-section {
  margin-bottom: 30px;
}
.ynext-materials-section:last-child {
  margin-bottom: 0;
}

.ynext-materials-section-title {
  font-size: 20px;
  color: #0073aa;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0073aa;
  position: relative;
}
.ynext-materials-section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: #0073aa;
}

.ynext-materials-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.ynext-material-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.ynext-material-content {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.ynext-material-meta {
  display: flex;
  align-items: center;
  color: #999;
  font-size: 14px;
}
.ynext-material-meta .meta-item {
  margin-right: 15px;
}
.ynext-material-meta .meta-item:last-child {
  margin-right: 0;
}

.ynext-material-thumbnail {
  position: relative;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 3px;
}
.ynext-material-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* サムネイル付きの動画アイテム */
.ynext-material-item.video-item .ynext-material-thumbnail {
  cursor: pointer;
}
.ynext-material-item.video-item .ynext-material-thumbnail:hover img {
  transform: scale(1.05);
}
.ynext-material-item.video-item .ynext-material-thumbnail:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: rgba(0, 115, 170, 0.9);
}
.ynext-material-item.video-item .ynext-material-thumbnail .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 115, 170, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
.ynext-material-item.video-item .ynext-material-thumbnail .play-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}

/* 1つだけの場合は中央に配置 */
.ynext-materials-single-centered .ynext-material-item {
  margin: 0 auto;
  max-width: 600px;
}

/* 資料映像が1つしかない場合の中央配置 */
.movie-images:has(> div:only-child) {
  display: flex;
  justify-content: center;
}
.movie-images:has(> div:only-child) > div {
  float: none;
  margin: 0 auto;
  max-width: calc(100% - 30px);
  width: auto !important;
}
.movie-images:has(> div:only-child) > div .movie-image-img {
  text-align: center;
}
.movie-images:has(> div:only-child) > div .movie-image-img img {
  max-width: 100%;
  height: auto;
}
.movie-images.only-one-movie {
  display: flex;
  justify-content: center;
}
.movie-images.only-one-movie .movie-image-left,
.movie-images.only-one-movie .movie-image-right {
  float: none;
  margin: 0 auto;
  max-width: calc(100% - 30px);
  width: auto !important;
}
.movie-images.only-one-movie .movie-image-left .movie-image-img,
.movie-images.only-one-movie .movie-image-right .movie-image-img {
  text-align: center;
}
.movie-images.only-one-movie .movie-image-left .movie-image-img img,
.movie-images.only-one-movie .movie-image-right .movie-image-img img {
  max-width: 100%;
  height: auto;
}
.movie-images.single-movie {
  display: flex;
  justify-content: center;
}
.movie-images.single-movie .movie-image-left,
.movie-images.single-movie .movie-image-right,
.movie-images.single-movie .centered-movie {
  float: none;
  margin: 0 auto;
  max-width: calc(100% - 30px);
  width: auto !important;
}
.movie-images.single-movie .movie-image-left .movie-image-img,
.movie-images.single-movie .movie-image-right .movie-image-img,
.movie-images.single-movie .centered-movie .movie-image-img {
  text-align: center;
}
.movie-images.single-movie .movie-image-left .movie-image-img img,
.movie-images.single-movie .movie-image-right .movie-image-img img,
.movie-images.single-movie .centered-movie .movie-image-img img {
  max-width: 100%;
  height: auto;
}
.movie-images .movie-image-left.centered-movie,
.movie-images .movie-image-right.centered-movie {
  float: none;
  margin: 0 auto;
  max-width: calc(100% - 30px);
  width: auto !important;
}

body.page-template-page-amed .sub-color-block .ynext-materials-year-content .flex-container-3col {
  gap: 35px;
  flex-wrap: wrap;
}
body.page-template-page-amed .sub-color-block .ynext-materials-year-content .flex-container-3col.single-child {
  justify-content: center;
}
body.page-template-page-amed .sub-color-block .ynext-materials-year-content .flex-container-3col.single-child .flex-item {
  flex: 0 0 calc((100% - 72px) / 3);
}
body.page-template-page-amed .sub-color-block .ynext-materials-year-content .flex-container-3col .flex-item {
  flex: 0 0 calc((100% - 72px) / 3);
}
body.page-template-page-amed .sub-color-block .ynext-materials-year-content .flex-container-3col .flex-item a {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 363px;
  max-width: 363px;
  aspect-ratio: 363/276;
  overflow: hidden;
  margin: 0 auto;
}
@media (max-width: 768px) {
  body.page-template-page-amed .sub-color-block .ynext-materials-year-content .flex-container-3col .flex-item a {
    min-width: 327px;
    max-width: 489px;
  }
}
body.page-template-page-amed .sub-color-block .ynext-materials-year-content .flex-container-3col .flex-item a img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
body.page-template-page-amed .sub-color-block .ynext-materials-year-content .flex-container-3col .movie-title {
  font-family: Noto Sans JP;
  font-weight: 500;
  font-size: 18px;
  line-height: 32px;
}
@media (max-width: 768px) {
  body.page-template-page-amed .sub-color-block .ynext-materials-year-content .flex-container-3col .movie-title {
    font-family: Noto Sans JP;
    font-weight: 500;
    font-size: 16px;
    line-height: 28px;
  }
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* アクションボタン */
.ynext-material-actions {
  display: flex;
  align-items: center;
  margin-top: 15px;
}
.ynext-material-actions .ynext-material-button {
  display: inline-block;
  padding: 8px 15px;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
  margin-right: 10px;
}
.ynext-material-actions .ynext-material-button:hover {
  background-color: rgb(0, 80.5, 119);
}
.ynext-material-actions .ynext-material-button:last-child {
  margin-right: 0;
}
.ynext-material-actions .ynext-material-button.secondary {
  background-color: #f5f5f5;
  color: #333;
}
.ynext-material-actions .ynext-material-button.secondary:hover {
  background-color: #e0e0e0;
}

/* レスポンシブスタイル */
@media (max-width: 768px) {
  .ynext-materials-items {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}
@media (max-width: 480px) {
  .ynext-materials-items {
    grid-template-columns: 1fr;
  }
}
/**
 * ローディングコンポーネントのスタイル
 *
 * @package YNEXT_Material_Manager
 */
.ynext-materials-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
.ynext-materials-loading .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 115, 170, 0.3);
  border-radius: 50%;
  border-top-color: #0073aa;
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ローディングアニメーション */
.ynext-materials-loading {
  text-align: center;
  padding: 30px 0;
}
.ynext-materials-loading-spinner {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 15px;
}
.ynext-materials-loading p {
  color: #333;
  font-size: 16px;
  margin: 0;
}

/* アニメーション */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/**
 * モーダルコンポーネントのスタイル
 *
 * @package YNEXT_Material_Manager
 */
body.page-template-page-amed .sub-color-block .sub-color-block-inner h2.modal-title-placeholder::before {
  content: none;
}

@media (max-width: 768px) {
  .modal-content .modal-description-placeholder {
    padding: 0 20px;
  }
}

/* body要素に特定のクラスがある場合のh2::beforeを無効化 */
body.page-template-page-amed .sub-color-block .sub-color-block-inner h2.no-before::before,
body.page-template-page-amed .sub-color-block .sub-color-block-inner .no-before h2::before {
  content: none !important;
  display: none !important;
}

/**
 * YNEXT Material Manager Styles
 * メインのスタイルシート
 */
/* レスポンシブスタイル */
@media (max-width: 768px) {
  .ynext-materials-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .ynext-materials-tabs {
    margin-top: 10px;
  }
  .ynext-materials-tab {
    margin-top: 5px;
  }
  .movie-image {
    width: calc(50% - 10px);
  }
}
@media (max-width: 480px) {
  .movie-image {
    width: 100%;
  }
  .ynext-materials-tab {
    margin-bottom: 5px;
  }
}
@media (max-width: 768px) {
  .ynext-materials-container {
    margin: 20px 0;
  }
  .ynext-materials-tabs {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .ynext-materials-tab {
    flex: 0 0 auto;
    margin-bottom: 10px;
    font-size: 14px;
    padding: 5px 10px;
  }
  .ynext-materials-content {
    /* padding: v.$spacing-md; */
  }
  .ynext-materials-section-title {
    font-size: 18px;
    margin-bottom: 15px;
  }
  .ynext-material-title {
    font-size: 18px;
  }
}
@media (max-width: 576px) {
  .ynext-materials-container {
    margin: 15px 0;
  }
  .ynext-materials-tabs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  .ynext-materials-tab {
    flex: 0 0 auto;
    margin: 0 5px 5px;
    font-size: 14px;
    padding: 5px 10px;
    text-align: center;
  }
  /* .ynext-materials-content {
  	padding: v.$spacing-sm;
  } */
  .ynext-materials-section {
    margin-bottom: 20px;
  }
  .ynext-materials-section-title {
    font-size: 18px;
    margin-bottom: 15px;
  }
  .ynext-materials-items {
    gap: 15px;
  }
  /* .ynext-material-item {
  	padding: v.$spacing-sm;
  } */
  .ynext-material-title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .ynext-material-content {
    font-size: 14px;
  }
  /* .ynext-material-item.video-item {
  	.ynext-material-thumbnail {
  		.play-button {
  			width: 40px;
  			height: 40px;

  			&::before {
  				border-width: 8px 0 8px 16px;
  			}
  		}
  	}
  } */
}
@media (max-width: 768px) {
  .ynext-materials-container {
    margin: 20px 0;
  }
}

@media (max-width: 768px) {
  .ynext-materials-title {
    margin-bottom: 15px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .ynext-materials-tabs {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
}

@media (max-width: 768px) {
  .ynext-materials-items {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}
@media (max-width: 576px) {
  .ynext-materials-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .movie-container .movie-image {
    width: calc(50% - 20px);
  }
}
@media (max-width: 576px) {
  .movie-container .movie-image {
    width: calc(100% - 20px);
  }
}

@media (max-width: 768px) {
  body.page-template-page-amed #contents .sub-color-block .sub-color-block-inner {
    padding: 0 24px;
  }
}

body.page-template-page-amed .sub-color-block .sub-color-block-inner .ynext-materials-container h3 {
  padding-left: 0;
  border-left: none;
}

.ynext-materials-container {
  margin: 30px 0;
}

.ynext-materials-header {
  display: block;
}

.ynext-materials-title {
  font-family: Noto Sans JP;
  font-weight: 500;
  font-size: 22px;
  line-height: 36px;
  padding-left: 0;
  position: relative;
  margin-bottom: 24px;
}
.ynext-materials-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #8FC231;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.ynext-materials-title .selected-year-display {
  font-family: Noto Sans JP;
  font-weight: 500;
  font-size: 22px;
  line-height: 36px;
  border-left: none !important;
  color: #24313C;
  padding: 0 24px;
  background-color: #f3f3f3;
  position: relative;
  z-index: 1;
}

.ynext-materials-tabs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}
.ynext-materials-tabs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.ynext-materials-tabs a {
  font-family: Noto Sans JP;
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
}
@media (max-width: 768px) {
  .ynext-materials-tabs a {
    font-family: Noto Sans JP;
    font-weight: 500;
    font-size: 14px;
    line-height: 26px;
  }
}

.ynext-materials-tab {
  display: block;
  padding: 10px 15px;
  background-color: #f1f1f1;
  color: #23282d;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}
.ynext-materials-tab:hover {
  text-decoration: none;
}

.ynext-materials-content {
  position: relative;
  min-height: 200px;
}

.ynext-materials-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  z-index: 10;
}
.ynext-materials-loading .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 115, 170, 0.3);
  border-radius: 50%;
  border-top-color: #0073aa;
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ynext-materials-section {
  margin-bottom: 30px;
}
.ynext-materials-section:last-child {
  margin-bottom: 0;
}

.ynext-materials-section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #23282d;
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 10px;
}

.ynext-materials-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.ynext-material-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 15px;
  color: #23282d;
}

.ynext-material-content {
  color: #32373c;
  line-height: 1.6;
  margin-bottom: 15px;
}

.ynext-material-meta {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  color: #32373c;
  font-size: 14px;
}
.ynext-material-meta .meta-item {
  margin-right: 15px;
}
.ynext-material-meta .meta-item:last-child {
  margin-right: 0;
}

.ynext-material-thumbnail {
  position: relative;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 3px;
}
.ynext-material-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

.ynext-material-item.video-item .ynext-material-thumbnail {
  cursor: pointer;
}
.ynext-material-item.video-item .ynext-material-thumbnail .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 115, 170, 0.8);
  border-radius: 50%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  transition: all 0.3s ease;
}
.ynext-material-item.video-item .ynext-material-thumbnail .play-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 5px;
}

.ynext-material-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  margin-top: 15px;
}
.ynext-material-actions .ynext-material-button {
  display: inline-block;
  padding: 10px 15px;
  background-color: #0073aa;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  transition: all 0.3s ease;
  margin-right: 15px;
}
.ynext-material-actions .ynext-material-button:hover, .ynext-material-actions .ynext-material-button:focus {
  background-color: rgb(0, 80.5, 119);
  color: #ffffff;
  text-decoration: none;
}
.ynext-material-actions .ynext-material-button:last-child {
  margin-right: 0;
}
.ynext-material-actions .ynext-material-button.secondary {
  display: inline-block;
  padding: 10px 15px;
  background-color: #f1f1f1;
  color: #23282d;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  transition: all 0.3s ease;
}
.ynext-material-actions .ynext-material-button.secondary:hover, .ynext-material-actions .ynext-material-button.secondary:focus {
  background-color: rgb(215.5, 215.5, 215.5);
  color: #23282d;
  text-decoration: none;
}

.year-tabs {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.year-tabs .year-tab {
  padding: 10px 15px;
  margin-right: 10px;
  margin-bottom: 10px;
  background-color: #f1f1f1;
  color: #23282d;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}
.year-tabs .year-tab:hover {
  background-color: rgb(228.25, 228.25, 228.25);
}
.year-tabs .year-tab.active {
  background-color: #0073aa;
  color: #ffffff;
}
.year-tabs .year-tab.active:hover {
  background-color: rgb(0, 97.75, 144.5);
}

.movie-container {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.movie-image {
  width: calc(33.333% - 20px);
  margin: 10px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
}
.movie-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}
.movie-image:hover img {
  transform: scale(1.05);
}
.movie-image:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: rgba(0, 115, 170, 0.9);
}
.movie-image .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 115, 170, 0.8);
  border-radius: 50%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  transition: all 0.3s ease;
}
.movie-image .play-icon::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 5px;
}

.movie-image.col-2 {
  width: calc(50% - 20px);
}

.movie-image.col-1 {
  width: calc(100% - 20px);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

/**
 * モーダルのスタイル
 *
 * @package YNEXT_Material_Manager
 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}
.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 800px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.modal-content h2 {
  margin-top: 0;
  color: #333;
  font-size: 24px;
  margin-bottom: 15px;
}
.modal-content .description {
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: left;
}
.modal-content .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
}
.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.movie-image {
  width: calc(33.333% - 20px);
  margin-bottom: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
}
.movie-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.movie-thumbnail {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
}
.movie-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-title {
  padding: 10px;
  font-family: Noto Sans JP;
  font-weight: 500;
  font-size: 18px;
  line-height: 32px;
}
@media (max-width: 768px) {
  .movie-title {
    padding: 0;
    margin-top: 6px;
    font-family: Noto Sans JP;
    font-weight: 500;
    font-size: 16px;
    line-height: 28px;
  }
}

.movie-description {
  padding: 10px;
  font-size: 14px;
  color: #666;
}

body.page-template-page-amed .sub-color-block .sub-color-block-inner h2.no-before::before,
body.page-template-page-amed .sub-color-block .sub-color-block-inner .no-before h2::before {
  content: none !important;
  display: none !important;
}

.ynext-materials-list {
  border: 1px solid #eee;
  border-radius: 5px;
  overflow: hidden;
}

/* .ynext-material-item {
	padding: 15px;
	border-bottom: 1px solid #eee;

	&:last-child {
		border-bottom: none;
	}
} */
.ynext-material-title {
  font-weight: bold;
  margin-bottom: 5px;
}
.ynext-material-title a {
  color: #0073aa;
  text-decoration: none;
}
.ynext-material-title a:hover {
  text-decoration: underline;
}

.ynext-material-description {
  font-size: 14px;
  color: #666;
}

/*# sourceMappingURL=ynext-material-manager.css.map */
