@charset "utf-8";

/* ===================================
   固定ページ（page）
   =================================== */
.l-contents-detail p {
  line-height: 1.7;
}
.l-contents-detail h6 {
  font-weight: 500;
}
/* 非表示 */
.menu-item-19534 {
  display: none;
}
.archives .c-card-list--col-2 {
  gap: 64px;
}

.archives .c-card__image {
  overflow: hidden;
}

.l-contents-detail h5 {
  /* margin-bottom: 15px; */
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  position: relative;
  padding-left: 23px;
}
.l-contents-detail h5::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 17px;
  height: 17px;
  border: 4px solid var(--preset--color--main);
  border-radius: 50%;
  box-sizing: border-box;
}

.l-contents-detail h4 {
  font-size: 20px;
  font-weight: 400;
  /* margin: 70px 0 40px !important; */
  padding-bottom: 10px;
  padding-left: 40px;
  position: relative;
  border-bottom: 1px solid #000;
  /* vertical-align: bottom; */
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}
.l-contents-detail h4::before {
  content: "";
  width: 25px;
  height: 1px;
  background-color: #000;
  position: absolute;
  top: 17px;
  left: 0;
}
.l-contents-detail h4:first-child {
  margin-top: 0;
}
.l-contents-detail h4 span {
  font-family: "Bodoni Moda", serif;
  font-size: 0.75rem;
  color: #000;
}

.l-contents-detail .center {
  text-align: center;
}

.disc {
  padding-left: 1rem;
  margin: 0 0 1rem 0;
}
.disc li {
  list-style: disc;
}

.no-disc {
  padding-left: 0 !important;
  margin: 0 0 0 0 !important;
}
.no-disc li {
  list-style: none !important;
  padding-left: 0 !important;
}
/* ========================================
   コンテンツボックス（斜線背景パターン）
======================================== */

.l-contents-detail dl {
  background-color: #f3f3f3;
  padding: 55px;
  /* margin: 35px 0; */
  position: relative;
  box-sizing: border-box;
}

.l-contents-detail dl::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  background-color: #f3f3f3;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.6) 0px,
    rgba(255, 255, 255, 0.6) 2px,
    transparent 2px,
    transparent 6px
  );
  pointer-events: none;
}

.l-contents-detail dl::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  bottom: 30px;
  background-color: #f3f3f3;
  z-index: 1;
  pointer-events: none;
}

/* .l-contents-detail div + *,
.l-contents-detail p + *,
.l-contents-detail ul + * {
  margin-top: 30px;
} */

/* 定義リスト内での使用 */
/* .content-box-striped dl {
  margin: 0;
  padding: 0;
} */

.l-contents-detail dl dt {
  color: #000;
  font-weight: 400;
  font-size: 0.875rem;
  margin-bottom: 0.9375rem;
  padding-left: 1rem;
  position: relative;
  z-index: 2;
}

/* ダイヤモンドアイコン */
.l-contents-detail dl dt::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.125rem;
  color: #000;
  font-size: 0.75rem;
}

.l-contents-detail dl dd {
  color: #000;
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 767px) {
  #page .l-contents-inner {
    width: calc(700 * (100vw / 780));
  }
  .l-contents-detail h4 {
    font-size: 1.125rem;
    font-weight: 500;
    margin: calc(120 * (100vw / 780)) auto calc(50 * (100vw / 780));
    width: 100%;
    padding-bottom: calc(13 * (100vw / 780));
    padding-left: calc(50 * (100vw / 780));
  }
  .l-contents-detail h4::before {
    width: calc(26 * (100vw / 780));
    top: calc(30 * (100vw / 780));
  }
  .l-contents-detail h4 span {
    font-size: calc(24 * (100vw / 780));
  }
  .l-contents-detail h5 {
    font-size: calc(34 * (100vw / 780));
    padding-left: calc(40 * (100vw / 780));
  }
  .l-contents-detail h5::before {
    width: calc(32 * (100vw / 780));
    height: calc(32 * (100vw / 780));
    border: calc(8 * (100vw / 780)) solid var(--preset--color--main);
    top: calc(12 * (100vw / 780));
  }
  .l-contents-detail dl {
    margin: calc(35 * (100vw / 780)) 0;
    padding: calc(90 * (100vw / 780)) calc(65 * (100vw / 780));
  }
  .l-contents-detail dl::before {
    top: calc(30 * (100vw / 780));
    left: calc(30 * (100vw / 780));
    right: calc(30 * (100vw / 780));
    bottom: calc(30 * (100vw / 780));
  }
  .l-contents-detail dl::after {
    top: calc(45 * (100vw / 780));
    left: calc(45 * (100vw / 780));
    right: calc(45 * (100vw / 780));
    bottom: calc(45 * (100vw / 780));
  }
  .l-contents__slider .splide__pagination {
    width: 84%;
    height: 0;
    margin: auto !important;
    bottom: calc(-20 * (100vw / 780)) !important;
  }
}

/* テキストサイズのバリエーション */
.txt-l {
  font-size: 1.125rem;
}

.txt-s {
  font-size: 0.875rem;
}

/* 高さが異なる場合のバリエーション */
.content-box-striped.compact {
  padding: 20px 25px;
}

.content-box-striped.large {
  padding: 35px 40px;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .content-box-striped {
    padding: 20px 20px;
    margin: 15px 0;
    background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.5) 8px,
      rgba(255, 255, 255, 0.5) 16px
    );
  }

  .content-box-striped dt {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-left: 18px;
  }

  .content-box-striped dt::before {
    font-size: 0.9rem;
  }

  .content-box-striped dd {
    font-size: 0.85rem;
    padding-left: 18px;
  }
  .tablepress + p {
    font-size: calc(26 * (100vw / 780)) !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .content-box-striped {
    padding: 22px 28px;
    background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 9px,
      rgba(255, 255, 255, 0.5) 9px,
      rgba(255, 255, 255, 0.5) 18px
    );
  }
}

/* 別のパターン（細い斜線） */
.content-box-striped.fine-stripes {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 6px,
    rgba(255, 255, 255, 0.4) 6px,
    rgba(255, 255, 255, 0.4) 12px
  );
}

/* 別のパターン（太い斜線） */
.content-box-striped.thick-stripes {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 15px,
    rgba(255, 255, 255, 0.6) 15px,
    rgba(255, 255, 255, 0.6) 30px
  );
}

@media (max-width: 767px) {
  .archives .c-card-list--col-2 {
    gap: calc(64 * (100vw / 780));
  }
}

/* ========================================
   テーブルスタイル（TablePress対応）
======================================== */
.l-contents-detail .tablepress {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  font-family: inherit;
}

/* キャプション（編集リンク）を非表示 */
.l-contents-detail .tablepress caption {
  display: none;
}

.l-contents-detail .tablepress th,
.l-contents-detail .tablepress td {
  border: 1px solid #e8e5e8;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
}

/* ヘッダー行 */
.l-contents-detail .tablepress thead th {
  background-color: #ceb2ce;
  font-weight: 400;
  color: #000;
}

/* ヘッダーセル（通常のヘッダー色） */
.l-contents-detail .tablepress .header-cell {
  background-color: #ceb2ce;
  font-weight: 400;
}

/* 左列（日付列） */
.tablepress .date-col,
.tablepress .column-1,
.tablepress tbody th {
  background-color: #ceb2ce;
  font-weight: 400;
  color: #000;
}

/* 通常セル */
.l-contents-detail .tablepress tbody td {
  background-color: #fff;
  color: #000;
  vertical-align: middle;
}

/* 空白セル */
.l-contents-detail .tablepress .empty-cell {
  background-color: #e6dde6;
}

/* 金額セル（右寄せ） */
.l-contents-detail .tablepress .price-cell {
  text-align: right;
  padding-right: 1rem;
}

/* 科目セル（白背景、太字） */
.l-contents-detail .tablepress .subject-cell {
  background-color: #fff;
  font-weight: 500;
}

/* 詳細セル（左寄せ） */
.l-contents-detail .tablepress .detail-cell {
  background-color: #fff;
  text-align: left;
  padding-left: 1rem;
}

/* 小さいテキスト（括弧内の説明） */
.l-contents-detail .tablepress tbody td span,
.l-contents-detail .tablepress tbody th span {
  font-size: 0.75rem;
  color: #000;
  display: block;
  margin-top: 2px;
  font-weight: 400;
}

/* ホバー効果（オプション） */
.l-contents-detail .tablepress tbody tr:hover {
  background: #edd7ed;
}

.l-contents-detail .tablepress tbody tr:hover th {
  background: #dfc2df;
}

.l-contents-detail .tablepress tbody tr:hover td {
  background: #f9f6f9;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .l-contents-detail .tablepress {
    width: 100%;
  }

  /* スマホでは横スクロール可能にする */
  .l-contents-detail .tablepress-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .l-contents-detail .tablepress table {
    min-width: 43.125rem;
  }

  .l-contents-detail .tablepress thead th,
  .l-contents-detail .tablepress tbody th,
  .l-contents-detail .tablepress tbody td {
    padding: 0.5rem;
    font-size: 0.75rem;
  }

  .l-contents-detail .tablepress tbody td span,
  .l-contents-detail .tablepress tbody th span {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .l-contents-detail .tablepress thead th,
  .l-contents-detail .tablepress tbody th,
  .l-contents-detail .tablepress tbody td {
    padding: 6px 4px;
    font-size: 0.7rem;
  }
}

/* より大きな画面での最適化 */
@media (min-width: 1200px) {
  .l-contents-detail .tablepress {
    max-width: 100%;
  }

  .l-contents-detail .tablepress thead th,
  .l-contents-detail .tablepress tbody th,
  .l-contents-detail .tablepress tbody td {
    padding: 0.875rem 1rem;
  }
}

/* アクセシビリティ対応 */
.l-contents-detail .tablepress tbody tr:focus-within {
  outline: 2px solid #8b5a8c;
  outline-offset: -2px;
}

/* ===================================
   コンテンツスライダー
   =================================== */
.l-contents__slider {
  position: relative;
  width: 100%;
  margin: 0 auto 60px;
}

.l-contents__slider .splide__track {
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.l-contents__slider .splide__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-contents__slider .splide__slide {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 0;
}

/* スライダーブロック */
.l-contents__slider__block {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #f5f5f5;
}

.l-contents__slider__block img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.l-contents__slider.splide .splide__track {
  height: auto !important;
}

.l-contents__slider.splide .splide__list {
  /* height: auto !important; */
  align-items: flex-start;
}

.l-contents__slider.splide .splide__slide {
  height: auto !important;
}

/* .l-contents__slider__block:hover img {
  transform: scale(1.05);
} */

/* キャプション */
.l-contents__slider__block span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 30px 20px 20px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Splide矢印ボタンのカスタマイズ */
.l-contents__slider .splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 60px;
  border-radius: 0;
  background: rgb(138 96 137 / 90%);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.l-contents__slider .splide__arrow:hover {
  /* background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); */
  opacity: 1 !important;
}

.l-contents__slider .splide__arrow--prev {
  left: 0;
}

.l-contents__slider .splide__arrow--next {
  right: 0;
}

.l-contents__slider .splide__arrow svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  transition: fill 0.3s ease;
}

/* .l-contents__slider .splide__arrow:hover svg {
  fill: var(--preset--color--main, #fff);
} */

.l-contents__slider .splide__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Splideページネーション（ドット）のカスタマイズ */
.l-contents__slider .splide__pagination {
  bottom: -25px;
  padding: 0;
  margin: 0;
}

.l-contents__slider .splide__pagination__page {
  width: 23px;
  height: 3px;
  border-radius: 0;
  background: #8a6089;
  border: none;
  margin: 0 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.l-contents__slider .splide__pagination__page.is-active {
  background: #694868;
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.l-contents .l-contents-inner .icon-jr {
  border: 2px solid #694868;
}
.l-contents .l-contents-inner .icon-jr,
.l-contents .l-contents-inner .icon-sr {
  font-size: 9px;
  margin: 0 5px 0 10px;
  padding: 1px 10px;
  text-align: center;
  line-height: 1.4;
  display: inline-block;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .l-contents__slider__block span {
    font-size: 0.875rem;
    padding: 20px 15px 15px;
  }
  .l-contents__slider .splide__arrow {
    width: calc(36 * (100vw / 780));
    height: calc(120 * (100vw / 780));
  }
  .l-contents__slider .splide__arrow svg {
    width: calc(20 * (100vw / 780));
    height: calc(20 * (100vw / 780));
  }

  /* .l-contents__slider .splide__arrow {
    width: 40px;
    height: 40px;
  }

  .l-contents__slider .splide__arrow--prev {
    left: 10px;
  }

  .l-contents__slider .splide__arrow--next {
    right: 10px;
  }

  .l-contents__slider .splide__arrow svg {
    width: 14px;
    height: 14px;
  }

  .l-contents__slider .splide__pagination {
    bottom: 15px;
  } */

  .l-contents__slider .splide__pagination__page {
    width: calc(40 * (100vw / 780));
    height: calc(8 * (100vw / 780));
    margin: 0 calc(10 * (100vw / 780));
  }
}

@media (max-width: 480px) {
  .l-contents__slider__block span {
    font-size: 13px;
    padding: 15px 10px 12px;
  }
}

/* ===================================
   アンカーナビゲーション
   =================================== */
.m-anchor {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  /* margin: 30px 0; */
  padding: 0;
}

.m-anchor li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-anchor li a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  color: #333;
  text-decoration: none;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  position: relative;
  white-space: nowrap;
}

/* 下向き矢印アイコン - 紫色の正方形に↓矢印 */
.m-anchor li a::before {
  content: "";
  width: 18px;
  height: 18px;
  background: #8b5a8c;
  margin-right: 8px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* V字型の下向き矢印を削除 */
.m-anchor li a::after {
  display: none;
}

/* ホバー効果（アニメーションなし） */
.m-anchor li a:hover {
  color: #8b5a8c;
}

.m-anchor li a:hover::before {
  opacity: 0.7;
}

/* 長いテキスト用のクラス */
.m-anchor li.long-w a {
  font-size: 15px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .m-anchor {
    gap: 10px 20px;
  }
  .m-anchor li {
    width: auto !important;
  }

  .m-anchor li a {
    font-size: 0.9375rem;
  }

  .m-anchor li a::before {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    font-size: 0.5rem;
  }
}

@media (max-width: 480px) {
  .m-anchor li a {
    font-size: 0.8125rem;
  }

  .m-anchor li a::before {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    font-size: 1rem;
  }
}

/* 合格実績カード */
.record-card {
  background-color: #f3f3f3;
  padding: 1.125rem;
  text-align: center;
  position: relative;
}
.record-card-inner {
  padding: 1.5rem 0;
  border: 1px solid #fff;
}

.record-number {
  font-family: "Bodoni Moda", serif;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
}

.record-unit {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* 医歯薬看護系テーブル */
.medical-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
}

.medical-table thead th {
  background: #ceb2ce;
  color: #000;
  font-weight: 500;
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  border-right: 2px solid white;
}

.medical-table thead th:last-child {
  border-right: none;
}

.medical-table tbody td {
  background-color: #e6dde6;
  padding: 1rem;
  text-align: center;
  border-right: 2px solid white;
}

.medical-table tbody td:last-child {
  border-right: none;
}

.medical-number {
  font-family: "Bodoni Moda", serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: #000;
  display: inline-block;
}

.medical-sub {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  color: #000;
  display: inline-block;
}

/* 円グラフ風表示（簡易版） */
.chart-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.chart-item {
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
}

.chart-humanities {
  background: linear-gradient(135deg, #f0e5f0 0%, #e8d5e8 100%);
}

.chart-social {
  background: linear-gradient(135deg, #e8d5e8 0%, #d4a5d4 100%);
}

.chart-home {
  background: linear-gradient(135deg, #d4a5d4 0%, #c08fc0 100%);
}

.chart-natural {
  background: linear-gradient(135deg, #c08fc0 0%, #b080b0 100%);
}

.chart-label {
  font-size: 0.875rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #000;
}

.chart-percentage {
  font-family: "Bodoni Moda", serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #000;
}

/* 海外大学テーブル */
.overseas-table {
  width: 100%;
  max-width: 484px;
  margin: 0;
  border-collapse: collapse;
}
.overseas-table tr {
  border-right: 1px solid #ceb2ce;
}

.overseas-header td {
  background: #ceb2ce;
  color: #000;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.95rem;
}

.overseas-school {
  background-color: #e6dde6;
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid #fff;
}

.overseas-count {
  background-color: #fff;
  padding: 0.75rem 1rem;
  text-align: center;
  width: 142px;
  font-weight: 400;
  border: 1px solid #e8e5e8;
  border-top: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .record-card {
    padding: calc(10 * (100vw / 780));
  }
  .record-card-inner {
    padding: 0;
  }

  .record-number {
    font-size: calc(60 * (100vw / 780));
  }
  .record-card sup {
    font-size: calc(30 * (100vw / 780));
    line-height: 0.2;
  }
  .record-card sup + div {
    font-size: calc(24 * (100vw / 780));
  }

  .medical-number {
    font-size: calc(40 * (100vw / 780));
  }

  .medical-table thead th,
  .medical-table tbody td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  .chart-container {
    grid-template-columns: 1fr;
  }

  .chart-percentage {
    font-size: 2rem;
  }
  .medical-table thead th {
    padding: 1rem;
    font-size: 1rem;
  }

  .medical-table tbody td {
    padding: 1rem;
  }

  .medical-number {
    font-size: 2.5rem;
  }

  .medical-sub {
    font-size: 0.875rem;
  }
}
/* iPadおよび中間サイズ対応 (769px-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .record-card-inner {
    padding: 0;
  }
}
/* 医歯薬看護系グリッド */
.medical-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.medical-item {
  display: flex;
  flex-direction: column;
  border: 1px solid white;
}

.medical-header {
  background: #ceb2ce;
  color: #000;
  font-weight: 500;
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  border-bottom: 2px solid white;
}

.medical-body {
  background-color: #e6dde6;
  padding: 1rem 0.5rem;
  text-align: center;
  display: flex;
  /* flex-direction: column; */
  justify-content: center;
  /* min-height: 100px; */
  align-items: flex-end;
}

.medical-number {
  font-family: "Bodoni Moda", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: #000;
}

.medical-sub {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  color: #000;
}

/* タブレット以上 - 4カラム */
@media (min-width: 768px) {
  .medical-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .medical-header {
    padding: 1rem;
    font-size: 1rem;
  }

  .medical-body {
    padding: 1.5rem 1rem;
    /* min-height: 120px; */
  }

  .medical-number {
    font-size: 2.5rem;
  }

  .medical-sub {
    font-size: 0.875rem;
  }
}
/* イベントテーブル */
.event-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background-color: white;
}

/* ヘッダー */
.event-table thead tr {
  background: #ceb2ce;
}

.event-table thead th {
  padding: 1rem 0.75rem;
  text-align: center;
  font-weight: 500;
  color: #000;
  border: 1px solid #c4a5c4;
  font-size: 0.95rem;
}

.event-table thead th:first-child {
  width: 30%;
}

.event-table thead th:nth-child(2) {
  width: 45%;
}

.event-table thead th:last-child {
  width: 25%;
}

/* ボディ行 */
.event-table tbody tr {
  border-bottom: 1px solid #e0d0e0;
}

.event-table tbody tr:nth-child(even) {
  background-color: #f9f4f9;
}

.event-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.event-table tbody tr:hover {
  background-color: #f0e5f0;
}

.event-table tbody td {
  padding: 1rem 0.75rem;
  border: 1px solid #e8d5e8;
  vertical-align: top;
  line-height: 1.6;
}

.event-table tbody td.event-name {
  font-weight: 500;
  text-align: left;
  vertical-align: middle;
}

.event-table tbody td:not(.event-name) {
  text-align: center;
  vertical-align: middle;
}

/* リンクスタイル */
.event-table a {
  color: #000;
  text-decoration: underline;
  transition: color 0.2s;
}

.event-table a:hover {
  color: #8b4b8c;
  text-decoration: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .event-table {
    font-size: 0.875rem;
  }

  .event-table thead th {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }

  .event-table tbody td {
    padding: 0.75rem 0.5rem;
  }

  .event-table thead th:first-child {
    width: 35%;
  }

  .event-table thead th:nth-child(2) {
    width: 40%;
  }

  .event-table thead th:last-child {
    width: 25%;
  }
}

/* 超小型デバイス対応 */
@media (max-width: 480px) {
  .event-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .event-table thead,
  .event-table tbody,
  .event-table tr,
  .event-table th,
  .event-table td {
    display: block;
  }

  .event-table thead {
    display: none;
  }

  .event-table tbody tr {
    margin-bottom: 1rem;
    border: 1px solid #e8d5e8;
    overflow: hidden;
  }

  .event-table tbody td {
    position: relative;
    padding-left: 40%;
    text-align: left !important;
    white-space: normal;
    border: none;
    border-bottom: 1px solid #f0e5f0;
  }

  .event-table tbody td:last-child {
    border-bottom: none;
  }

  .event-table tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.75rem;
    width: 35%;
    padding-right: 0.5rem;
    font-weight: bold;
    color: #000;
  }

  .event-table tbody td.event-name::before {
    content: "説明会名";
  }

  .event-table tbody td:nth-child(2)::before {
    content: "日にち";
  }

  .event-table tbody td:nth-child(3)::before {
    content: "時間";
  }
}

/* ===================================
   アクセスページ
   =================================== */
.access-page .m-btn.m-btn__l {
  width: 400px;
}
@media (max-width: 767px) {
  .access-page .m-btn.m-btn__l {
    width: calc(640 * (100vw / 780)) !important;
  }
}

/* ========================================
   コンテンツボックス共通スタイル
======================================== */
/* 画像リストのグリッドレイアウト */
.picture-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
}

/* 各画像アイテム */
.picture-list-item {
  display: flex;
  flex-direction: column;
}

.picture-list-item h5 {
  margin-bottom: 15px;
}

/* タイトルがない場合の空スペース確保 */
.picture-list-item:not(:has(h5))::before {
  content: "";
  display: block;
  height: 42px;
}

.picture-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
.picture-head-time {
  position: relative;
}
.picture-head-time::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-image: url(/wp/wp-content/themes/otsuma/assets/images/common/clock-icon.svg);
  background-size: contain;
  background-repeat: no-repeat;
}

/* 画像とキャプション */
.picture-list-item .figure {
  margin: 0;
  position: relative;
  flex: 1;
}

.picture-list-item .figure img {
  width: 100%;
  height: auto;
  display: block;
}

.picture-list-item .figcaption {
  font-size: 16px;
  color: #000;
  margin-top: 10px;
  line-height: 1.6;
}

/* タブレット対応 */
@media (max-width: 1024px) {
  .picture-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 25px;
  }
}

/* スマートフォン対応 */
@media (max-width: 640px) {
  .picture-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .picture-list-item .figcaption {
    font-size: 13px;
  }
  .picture-list-item:not(:has(h5))::before {
    content: none;
  }
}

.back-to-menu {
  margin-top: calc(var(--spacing) * 4);
  text-align: right;
}
.back-to-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #8b5a8c;
  color: white;
  padding: 0.3125rem 0.625rem;
  border-radius: 0.9375rem;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 400;
  transition: background-color 0.3s ease;
}

.back-to-menu-link:hover {
  background-color: #a86fa9;
}

/* 上向き矢印 */
.arrow-up {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid white;
}
