@charset "utf-8";

/* ===================================
   コンポーネント（Components）
   再利用可能なUIパーツ
   =================================== */

/* -----------------------------------
   セクションタイトル
   ----------------------------------- */
.c-section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
}

.c-section-title__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #7e457c;
}

.c-section-title__icon img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.c-section-title__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.c-section-title__main {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
  color: #7e457c;
  letter-spacing: 0.05em;
}

.c-section-title__sub {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: 0.75rem;
  font-weight: normal;
  color: #7e457c;
  letter-spacing: 0.1em;
}

.c-heading-line {
  border-bottom: 1px solid #000;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
}

.c-heading-line__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
}

.c-heading-line__border {
  width: 27px;
  border-top: 1px solid #000;
}

.c-heading-line__text {
  font-size: 1.125rem;
  font-weight: 500;
  background-color: #fff;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .c-heading-line__text {
    font-size: 1.25rem;
  }
}

/* -----------------------------------
   カードリスト
   ----------------------------------- */
.c-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* カラム数バリエーション */
.c-card-list--col-2 {
  grid-template-columns: repeat(2, 1fr);
}

.c-card-list--col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.c-card-list--col-4 {
  grid-template-columns: repeat(4, 1fr);
}

.c-card-list--col-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* -----------------------------------
   カード
   ----------------------------------- */
.c-card {
  background: #fff;
  border-radius: 10px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: block;
}

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

.c-card__image {
  width: 100%;
  aspect-ratio: 308 / 191;
  background: #8a6d89;
  position: relative;
  border-radius: 10px 10px 0 0;
}

.c-card__bg-image {
  width: 37%;
  height: 61%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url(/wp/wp-content/themes/otsuma/assets/images/common/emblem-icon.svg);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.c-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
  border-radius: 10px 10px 0 0;
}

/* 日付ラベル（左上） */
.c-card__date {
  position: absolute;
  top: 0;
  left: 0;
  background: #6e506d;
  color: #fff;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 400;
  border-radius: 10px 0 0 0;
  z-index: 2;
  line-height: 1.4;
  text-align: center;
}

/* リボン風の帯 */
.c-card-ribbon {
  position: absolute;
  bottom: 18px;
  left: -8px;
}

.c-card-ribbon-inner {
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  padding: 0;
  color: white;
  background: #6e506d;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.6));
  clip-path: polygon(
    0 0,
    100% 0,
    calc(100% - 12px) 50%,
    100% 100%,
    0 100%,
    0 50%
  );
}

.c-card-ribbon-inner h3 {
  margin: 0;
  padding: 0 20px 0 10px;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 26px;
}

/* リボンの左側の折り返し（暗い三角形） */
.c-card-ribbon::before {
  position: absolute;
  content: "";
  bottom: -6px;
  left: 0;
  border: none;
  border-bottom: solid 7px transparent;
  border-right: solid 8px #74628a;
}

.c-card__content {
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1px;
}

.c-card__title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #55416e;
  margin-top: 0;
  margin-bottom: 5px;
  line-height: 1.2;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-heading-underline {
  padding-bottom: 2px;
  border-bottom: 1px solid #000;
  position: relative;
  display: inline-block;
}

.c-heading-underline::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 0px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  transform: skewY(320deg);
  transform-origin: bottom right;
}

.c-card__meta {
  margin: 0;
  font-size: 0.875rem;
  color: #000;
}

.c-card__description {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
}

/* -----------------------------------
   ボタン
   ----------------------------------- */
.c-btn {
  width: 100%;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  color: #fff;
}

/* SVG矢印 */
.c-btn::after {
  content: "";
  width: 24px;
  height: 13px;
  background-image: url("/wp/wp-content/themes/otsuma/assets/images/common/btn-arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  right: 15px;
  transition: transform 0.3s ease;
}

/* ボタンバリエーション */
.c-btn-outline {
  border: 5px solid white;
}
/* PDFボタン専用スタイル */
/* .c-btn-pdf {
  padding-right: 80px;
} */

.c-btn-pdf::before {
  content: "";
  position: absolute;
  right: 50px;
  width: 25px;
  height: 31px;
  background-image: url(/wp/wp-content/themes/otsuma/assets/images/common/pdf-icon.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
  z-index: 1;
}
/* カラーバリエーション */
.c-btn-purple {
  background-color: #835e82;
  border: 5px solid white;
  box-shadow: 0 0 0 1px #835e82;
}

.c-btn-pink {
  background-color: #f39296;
  border: 5px solid white;
  box-shadow: 0 0 0 1px #f3c4c6;
}
.c-btn-blue {
  background-color: #5a8fb8;
  border: 5px solid white;
  box-shadow: 0 0 0 1px #5a8fb8;
}

.c-btn-green {
  background-color: #7ba881;
  border: 5px solid white;
  box-shadow: 0 0 0 1px #7ba881;
}

.c-btn-orange {
  background-color: #e89556;
  border: 5px solid white;
  box-shadow: 0 0 0 1px #e89556;
}

.c-btn-gray {
  background-color: #888888;
  border: 5px solid white;
  box-shadow: 0 0 0 1px #888888;
}

.c-btn-lavender {
  background-color: #b09ac0;
  border: 5px solid white;
  box-shadow: 0 0 0 1px #b09ac0;
}

.c-btn-rose {
  background-color: #d88ba8;
  border: 5px solid white;
  box-shadow: 0 0 0 1px #d88ba8;
}

.c-btn-list {
  height: 74px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0 60px 0 16px;
  background-color: #f5f5f5;
  border-left: 10px solid #b9b9b9;
  margin-bottom: 12px;
  transition: background-color 0.3s;
  overflow: hidden;
}

.c-btn-list:hover {
  background-color: #ebebeb;
}

.c-btn-list::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-bottom: 20px solid #d0d0d0;
}

.c-btn-list time {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.c-btn-list p {
  font-size: 16px;
  color: #000;
  line-height: 1.5;
}

.c-btn-list.c-btn-pdf::before {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  filter: none;
  opacity: 1;
}
@media (max-width: 767px) {
  .c-btn.c-btn-list {
    height: calc(140 * (100vw / 780));
  }
  .c-btn-list.c-btn-pdf::after {
    right: 0;
  }
  .c-btn-pdf::before {
    right: calc(70 * (100vw / 780));
  }
}

/* PC版のみのホバー効果 */
@media (min-width: 768px) {
  .c-btn:hover::after {
    transform: translateX(5px);
  }

  .c-btn-purple:hover {
    background-color: #6a3a68;
  }

  .c-btn-pink:hover {
    background-color: #f07a7f;
  }
  .c-btn-blue:hover {
    background-color: #4a7a9e;
  }

  .c-btn-green:hover {
    background-color: #6a956f;
  }

  .c-btn-orange:hover {
    background-color: #d77e42;
  }

  .c-btn-gray:hover {
    background-color: #707070;
  }

  .c-btn-lavender:hover {
    background-color: #9b84ad;
  }

  .c-btn-rose:hover {
    background-color: #c67492;
  }
}

.c-btn-group {
  display: flex;
  justify-content: center;
  gap: 40px;
}

/* ページのボタン */
.m-btn {
  font-size: 15px;
  width: 45%;
  margin: 20px auto 0;
}

.m-btn a {
  display: flex;
  color: #fff;
  text-align: center;
  /* padding: 20px 0; */
  position: relative;
  height: 67px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 5px solid white;
  background-color: #f39296;
  box-shadow: 0 0 0 1px #f3c4c6;
}

.m-btn a:after {
  content: "";
  position: absolute;
  width: 19px;
  height: 11px;
  background-image: url(/wp/wp-content/themes/otsuma/assets/images/common/arrow-white.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  right: 15px;
  transition: transform 0.3s ease;
}

.m-btn.m-btn__l,
.m-btn.m-btn__s {
  font-size: 16px;
  margin: 10px;
  text-indent: 0 !important;
  padding-left: 0 !important;
  display: inline-block;
  vertical-align: top;
}

.m-btn.m-btn__l a,
.m-btn.m-btn__s a {
  background-color: #d88ba8;
  color: #fff;
  line-height: 1.5;
}

.m-btn.m-btn__l {
  font-size: 16px;
  max-width: 460px;
  width: 90%;
  margin: 30px auto 0;
  display: block;
}

.m-btn.m-btn__l--purple a::after {
  background-image: url(/wp/wp-content/themes/otsuma/assets/images/common/arrow-white.png);
}
.m-btn.m-btn__l--purple a {
  color: #fff;
  background-color: #af8db3;
}

.m-btn a[href$=".pdf"] {
  background-image: url(../../assets/images/common/pdf-icon.svg);
  background-repeat: no-repeat;
  background-size: 25px 31px;
  background-position: right 50px center;
}

/* フッター用ボタン */
.c-btn-contact {
  background-color: #d8c2d8;
  box-shadow: 0 0 0 1px #ab7eab;
  color: #000;
}

.c-btn-contact::after {
  width: 23px;
  height: 11px;
  background-image: url(/wp/wp-content/themes/otsuma/assets/images/common/btn-footer-arrow.png);
}

.c-btn-access {
  background-color: #f3d9d9;
  box-shadow: 0 0 0 1px #f0abab;
  color: #000;
}

.c-btn-access::after {
  width: 23px;
  height: 11px;
  background-image: url(/wp/wp-content/themes/otsuma/assets/images/common/btn-footer-arrow.png);
}

.c-label {
  min-width: 145px;
  display: inline-block;
  color: #fff;
  padding: 5px 10px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  text-align: center;
}
.c-label-purple {
  background: #8b6090;
}
.c-label-gray {
  background: #605b5b;
}
.c-label-pink {
  background: #f39296;
}

/* -----------------------------------
   レスポンシブ（コンポーネント）
   ----------------------------------- */
@media (max-width: 767px) {
  .c-card-list,
  .c-card-list--col-2,
  .c-card-list--col-3,
  .c-card-list--col-4,
  .c-card-list--col-5 {
    grid-template-columns: 1fr;
    gap: calc(50 * (100vw / 780));
  }

  .c-btn {
    width: 100%;
    height: calc(115 * (100vw / 780));
    font-size: calc(30 * (100vw / 780));
  }

  .c-btn::after {
    width: calc(38 * (100vw / 780));
    height: calc(18 * (100vw / 780));
    right: calc(20 * (100vw / 780));
  }

  .c-section-title__icon {
    width: calc(70 * (100vw / 780));
    height: calc(70 * (100vw / 780));
  }

  .c-section-title {
    gap: calc(15 * (100vw / 780));
    margin-bottom: calc(50 * (100vw / 780));
  }

  .c-section-title__sub {
    font-size: calc(21 * (100vw / 780));
    margin: 0;
  }

  .c-section-title__icon img {
    width: calc(32 * (100vw / 780));
    height: calc(32 * (100vw / 780));
  }

  .c-section-title__main {
    margin: 0;
    padding: 0 calc(109 * (100vw / 780));
    text-align: center;
    font-size: calc(48 * (100vw / 780));
  }
  .m-btn a,
  .m-btn.m-btn__l,
  .m-btn.m-btn__s {
    height: calc(115 * (100vw / 780));
    font-size: calc(30 * (100vw / 780));
    width: calc(640 * (100vw / 780));
  }
  .m-btn a[href$=".pdf"] {
    background-position: right calc(96 * (100vw / 780)) center;
  }
}

/* PC版専用のボタンホバー効果 */
@media (min-width: 768px) {
  .m-btn a:hover {
    background-color: #f59a95 !important;
    /* transform: translateX(5px); */
  }
  .m-btn a:hover:after {
    transform: translateX(5px);
  }

  .c-btn-contact:hover {
    background-color: #d8b6d8;
  }

  .c-btn-access:hover {
    background-color: #f1cccc;
  }
}

/* ニュースリストのスタイル */
.c-news {
  list-style: none;
  padding: 0;
  margin: 0;
}

.c-news > li {
  background-color: #f5f5f5;
  margin-bottom: 16px;
  transition: background-color 0.3s ease;
}

.c-news > li:hover {
  background-color: #e8e8e8;
}

.c-news > li > a {
  display: block;
  padding: 20px 24px;
  text-decoration: none;
  color: #000;
}

/* 日付とカテゴリーの行 */
.c-news time {
  display: inline-block;
  font-size: 0.875rem;
  color: #55416e;
  margin-right: 12px;
}

.c-category {
  display: inline-block;
  margin-right: 16px;
}

.c-category span {
  display: inline-block;
  padding: 3px 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background-color: #c396c8;
}

/* カテゴリー別の背景色 */
.c-news__gomokumeshi .c-category span {
  background-color: #c396c8; /* 紫色 */
}

.c-news__tsumasei .c-category span {
  background-color: #c396c8; /* 紫色 */
}

.c-news__topics .c-category span {
  background-color: #c396c8; /* 紫色 */
}

.c-news__letter .c-category span {
  background-color: #c396c8; /* 紫色 */
}

/* 重要マークがある場合（画像の2番目の例） */
.c-news__important .c-category::after {
  content: "重要";
  display: inline-block;
  background-color: #f19ca7; /* ピンク色 */
  color: white;
  padding: 3px 12px;
  font-size: 14px;
  font-weight: 500;
  margin-left: 8px;
}

/* ターゲット（受験生、在校生・保護者など） */
.c-target {
  list-style: none;
  padding: 0;
  margin: 12px 0 8px 0 !important;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c-target li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #55416e;
  margin-right: 5px;
  text-indent: 0;
}

.c-target li::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  /* 人物アイコンに直接色を付ける */
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239686b0"><circle cx="12" cy="8" r="4"/><path d="M12 14c-6 0-8 3-8 5v1h16v-1c0-2-2-5-8-5z"/></svg>');
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
}

/* タイトル */
.c-news p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  line-height: 1.5;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .c-news > li > a {
    padding: 16px 18px;
  }

  .c-news time {
    font-size: 13px;
  }

  .c-category span {
    font-size: 12px;
    padding: 3px 12px;
  }

  .c-target li {
    font-size: 12px;
  }

  .c-news p {
    font-size: 15px;
  }
}

/* ページャーのスタイル */
.c-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.c-pager .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 2px solid #9e85a0;
  background-color: #fff;
  color: #9e85a0;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* 現在のページ */
.c-pager .page-numbers.current {
  background-color: #9686b0;
  color: #fff;
  border-color: #9686b0;
  font-weight: 400;
}

/* ホバー効果（現在のページ以外） */
.c-pager .page-numbers:not(.current):not(.dots):hover {
  background-color: #f5f5f5;
  border-color: #9686b0;
}

/* ドット（...） */
.c-pager .page-numbers.dots {
  border: 2px solid #9e85a0;
  background-color: #fff;
  cursor: default;
  pointer-events: none;
}

/* 前へ・次へボタン */
.c-pager .prev.page-numbers,
.c-pager .next.page-numbers {
  position: relative;
  min-width: 40px;
}

/* 前へボタン（|<と<） */
.c-pager .prev.page-numbers::before {
  content: "<";
  font-size: 13px;
}

/* 次へボタン（>と>|） */
.c-pager .next.page-numbers::after {
  content: ">";
  font-size: 13px;
}

/* 最初のページへ（|<） */
.c-pager .page-numbers.first::before {
  content: "|<";
  font-size: 13px;
}

/* 最後のページへ（>|） */
.c-pager .page-numbers.last::after {
  content: ">|";
  font-size: 13px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .c-pager {
    gap: 6px;
  }

  .c-pager .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}
/* -----------------------------------
   サイトマップ
   ----------------------------------- */
.c-sitemap__section:first-of-type {
  padding-top: 0;
}
.c-sitemap__section {
  border-bottom: 1px solid #ddd;
  padding: 40px 0;
}

.c-sitemap__section:last-child {
  border-bottom: none;
}

/* PC版：横並びレイアウト */
@media (min-width: 769px) {
  .c-sitemap__section {
    display: flex;
    gap: 60px;
  }

  .c-sitemap__title {
    min-width: 180px;
    padding-left: 20px;
    flex-shrink: 0;
  }

  .c-sitemap__content {
    flex: 1;
  }
}

.c-sitemap__title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: #000;
}

@media (min-width: 769px) {
  .c-sitemap__title {
    margin-bottom: 0;
  }
}

.c-sitemap__content {
  width: 100%;
}

.c-sitemap__items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-bottom: 1.25rem;
}

.c-sitemap__items:last-child {
  margin-bottom: 0;
}

.c-sitemap__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  position: relative;
}

.c-sitemap__item:hover {
  color: #9b8aa3;
}

/* 背景ありの紫アイコン（▶） - 白抜き */
.c-sitemap__item--arrow::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #c4acc4;
  border-radius: 2px;
  flex-shrink: 0;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
  position: relative;
}

.c-sitemap__item--arrow::before {
  background-color: #c4acc4;
  mask-image: none;
  -webkit-mask-image: none;
}

.c-sitemap__item--arrow::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* 背景なしの紫アイコン（›） */
.c-sitemap__item--chevron::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c5b8cf' d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* サブセクション */
.c-sitemap__subsection {
  margin: 0 0 1.25rem;
}

.c-sitemap__subtitle {
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 1.25rem;
  color: #000;
  position: relative;
  padding-left: 1.875rem;
}

.c-sitemap__subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background-color: #c4acc4;
}

/* グリッドレイアウト */
.c-sitemap__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  row-gap: 15px;
}

@media (min-width: 769px) {
  .c-sitemap__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.c-committee {
  margin-top: 2rem;
  position: relative;
}

.c-committee__title {
  display: inline-block;
  background-color: #8a6089;
  color: white;
  font-size: 1rem !important;
  font-weight: 400 !important;
  padding: 12px 40px !important;
  margin: 0 auto 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.c-committee__title::before {
  content: none !important;
}

.c-committee__box {
  border: 2px solid #dac3dd;
  padding: 30px;
  margin-top: 40px;
  position: relative;
}
.c-committee__box::before {
  content: "";
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background-color: #dac3dd;
  z-index: 1;
}

.c-committee__item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.c-committee__item:last-child {
  margin-bottom: 0;
}

.c-committee__label {
  background-color: #8a6089;
  color: white;
  font-weight: 400;
  font-size: 1rem;
  padding: 4px 8px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 140px;
  text-align: center;
}

.c-committee__description {
  color: #000;
  line-height: 1.3;
  flex: 1;
}

@media (max-width: 768px) {
  .c-committee__box {
    padding: 40px 16px 16px;
  }

  .c-committee__item {
    flex-direction: column;
    gap: 8px;
    padding-left: 10px;
  }

  .c-committee__label {
    min-width: 100%;
    width: 100%;
  }

  .c-committee__description {
    padding-top: 0;
  }
}

.c-list-purple {
  list-style: none;
  padding-left: 0.9375rem;
}

.c-list-purple li {
  position: relative;
  padding-left: 0.7em;
}

.c-list-purple li::before {
  content: "●";
  color: #9a7999;
  position: absolute;
  left: 0;
  font-size: 0.5em;
}
.c-title-bar {
  position: relative;
  padding-left: 20px;
  font-size: 18px;
  font-weight: 500;
  color: #000;
  display: block;
}

.c-title-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 0;
  width: 10px;
  background-color: #a670a4;
  border-radius: 10px;
}

.l-contents-detail .c-title-icon {
  position: relative;
  padding-left: 30px;
  padding-bottom: 10px;
  font-size: 18px;
  font-weight: 500;
  color: #000;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
}

.l-contents-detail .c-title-icon::before {
  content: "" !important;
  position: absolute;
  left: 0;
  top: 38%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
}

/* 研修先アイコン */
.l-contents-detail .c-title-icon.training::before {
  background-image: url("/wp/wp-content/themes/otsuma/assets/images/education/training-icon.svg");
}

/* 期間アイコン */
.l-contents-detail .c-title-icon.period::before {
  background-image: url("/wp/wp-content/themes/otsuma/assets/images/education/period-icon.svg");
}

/* 参加人数アイコン */
.l-contents-detail .c-title-icon.people::before {
  background-image: url("/wp/wp-content/themes/otsuma/assets/images/education/people-icon.svg");
}

/* プログラムアイコン */
.l-contents-detail .c-title-icon.program::before {
  background-image: url("/wp/wp-content/themes/otsuma/assets/images/education/program-icon.svg");
}

/* モデルスケジュールアイコン */
.l-contents-detail .c-title-icon.model::before {
  background-image: url("/wp/wp-content/themes/otsuma/assets/images/education/model-schedule-icon.svg");
}

@media (max-width: 768px) {
  .l-contents-detail .c-title-icon {
    font-size: 1.125rem;
    padding-left: 40px;
  }

  .l-contents-detail .c-title-icon::before {
    width: 28px;
    height: 28px;
  }
  .l-contents-detail .c-title-icon {
    align-items: flex-start;
  }
  .l-contents-detail .c-title-flag {
    padding: calc(15 * (100vw / 780)) !important;
    margin-bottom: calc(40 * (100vw / 780)) !important;
  }
  .l-contents-detail .c-title-flag::before {
    content: "" !important;
    width: calc(155 * (100vw / 780)) !important;
    height: calc(100 * (100vw / 780)) !important;
    left: calc(-34 * (100vw / 780)) !important;
  }
  .l-contents-detail .c-title-flag span {
    font-size: calc(33 * (100vw / 780)) !important;
  }
  .l-contents-detail .c-title-flag.flag-uk::before {
    left: calc(-56 * (100vw / 780)) !important;
  }
}
.l-contents-detail .c-title-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #7e457c;
  padding: 16px 24px;
  margin-bottom: 1.5rem;
  border: none;
  overflow: hidden;
}
.l-contents-detail .c-title-flag::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 50%;
  width: 150px;
  height: 100px;
  background-size: contain;
  transform: translateY(-50%) rotate(347deg); /* 回転角度を指定 */
  transform-origin: center;
}
.l-contents-detail .c-title-flag.flag-uk::before {
  background: url(/wp/wp-content/themes/otsuma/assets/images/education/uk-icon.svg)
    no-repeat center;
}
.l-contents-detail .c-title-flag.flag-ag::before {
  background: url(/wp/wp-content/themes/otsuma/assets/images/education/ag-icon.svg)
    no-repeat center;
}
.l-contents-detail .c-title-flag span {
  font-family: "Noto Sans JP", sans-serif;
  color: white;
  font-size: 1.25rem;
  font-weight: 500;
}

.l-contents-detail .c-list-icon {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.l-contents-detail .c-list-icon li {
  padding-left: 0;
  text-indent: 0;
}
.l-contents-detail .c-list-icon li a {
  position: relative;
  display: flex;
  align-items: center;
}
.l-contents-detail .c-list-icon li a:hover {
  color: #8b5a8c;
}
.l-contents-detail .c-list-icon li a::before {
  content: "";
  width: 38px;
  height: 22px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 5px;
}
.l-contents-detail .c-list-icon li a.uk::before {
  background-image: url("/wp/wp-content/themes/otsuma/assets/images/education/uk-icon.svg");
}
.l-contents-detail .c-list-icon li a.ag::before {
  background-image: url("/wp/wp-content/themes/otsuma/assets/images/education/ag-icon.svg");
}

/* バッジ　中高アイコン */
.badge-type {
  display: flex;
  gap: 5px;
}
.badge {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
  color: #fff;
}
.badge.school {
  background-color: #eca2c2;
}
.badge.grade {
  background-color: #aa80af;
}
