body {
    padding-top: 0px !important;
}
/* ================================
   タイトル（共通）
================================ */
.title_sub {
  position: relative;
  text-align: center;
  padding-top: 50px;
  margin-bottom: 20px;
}

.title_sub--double {
  border-top: 1px solid #000;
}

.title_sub--double::before {
  content: "";
  position: absolute;
  right: 0;
  top: -7px;
  width: 100%;
  height: 1px;
  background: #000;
}

.title_sub .title_jp {
  color: #000;
  font-size: 35px;
  font-weight: 700;
  font-family: "Shippori Mincho", serif;
  line-height: 56px;
}

.title_sec {
  font-family: "Shippori Mincho", serif;
  font-size: 26px;
  color: #000;
  display: block;
  font-weight: 400;
  margin-bottom: 30px;
  line-height: 38px;
}

/* ================================
   レイアウト
================================ */
.l-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.column-block {
  padding: 25px 10px;
}

/* ================================
   記事一覧ボタン（各カテゴリ末尾）
================================ */
.more {
  text-align: center;
  margin-top: 24px; /* ドットとの間隔を広めに */
}

.more__link {
  display: inline-block;
  padding: 12px 0;
  min-width: 360px;
  border: none;
  border-radius: 999px;
  background: #a90a0a;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  transition: background .2s;
  position: relative;
  padding-right: 20px;
}

.more__link::after {
  content: "＞";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

.more__link:hover {
  background: #8e0a0a;
  color: #fff;
}

@media (max-width: 560px) {
  .more {
    margin-top: 28px;
  }
  .more__link {
    width: 100%;
    min-width: unset;
    font-size: 16px;
    padding: 14px 0;
    border-radius: 8px;
    box-sizing: border-box;
    padding-right: 20px;
  }
  .more__link::after {
    right: 16px;
    font-size: 20px;
  }
}

/* ================================
   スライダー（Swiper）
================================ */
.swiper {
  width: 100%;
  height: auto;
  padding-bottom: 40px;
  box-sizing: border-box;
  overflow: hidden;
}

/* スライダーの横スク対策（SP） */
@media (max-width: 560px) {
  .swiper {
    overflow: visible;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 561px) {
  .swiper {
    padding-top: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ---------------- Dot（ドット） ---------------- */
.swiper-pagination {
  margin: 20px 0 0 0;
  text-align: center;
}

/* 必ずタグの下の「独立行」に出すための再定義 */
.card-swiper { 
  display: block; 
  position: relative;
}

.card-swiper .swiper-pagination {
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 100%;
  margin: 0px auto 20px; /* タグとの間隔を確保 */
  flex-basis: 100%;       /* 親がflexでも改行を強制 */
  order: 20;              /* 念のため下段優先度 */
  z-index: 2;
}

.card-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #a90a0a;
  opacity: .3;
  cursor: pointer;
  transition: opacity .2s;
}

.card-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

.swiper-wrapper {
  margin: 0 0 0 -5px;
}

/* ================================
   カード
================================ */
.card {
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f6f6f6;
  overflow: hidden;
}

.card__thumb img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.badge-new {
  font-family: sans-serif;
  position: absolute;
  top: -16px;
  left: -98px;
  z-index: 3;
  background: #a90a0a;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 29px 95px 5px;
  transform: rotate(-44deg);
}

@media (max-width: 560px) {
  .badge-new {
    transform: rotate(-18deg);
    padding: 3px 16px;
    font-size: 11px;
  }
}

.card__title-wrap {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  text-align: left;
  line-height: 2.5;
}

.card__title {
  margin: 0;
  line-height: 1.4;
}

.card__title--overlay {
  margin: 0;
  display: inline;
  background: #fff;
  color: #000;
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  word-break: break-word;
}

@media (max-width: 560px) {
  .card__title--overlay { font-size: 16px; }
}

@media (min-width: 561px) {
  .card__title--overlay { font-size: 18px; }
}

.card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-row,
.card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #777;
  font-size: 13px;
}

.meta-icon {
  display: inline-flex;
  align-items: center;
}

.meta-icon img {
  width: 16px;
  height: 16px;
  display: block;
}

.card__date {
  font-size: 14px;
  color: #7a7a7a;
}

.meta-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  background: #ededed;
  color: #666;
  border-radius: 999px;
  padding: 6px 10px;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.meta-tag:hover {
  background: #a90a0a;
  color: #fff;
}

.card__textlink {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card__excerpt {
  color: #333333;
  font-size: 14px;
  line-height: 1.9;
  min-height: 4.8em;
  font-weight: 700;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

/* ================================
   ページネーション（投稿一覧用）
================================ */
.pagination {
  text-align: center;
  margin-top: 28px;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 2px;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.pagination .current {
  background: #111;
  color: #fff;
  border-color: #111;
}

.pagination .prev,
.pagination .next {
  font-weight: 700;
}

/* ================================
   カテゴリータグ（カード下の列）
================================ */
a.category-tag { 
  padding: 0 3px; 
}

/* ================================
   空メッセージ
================================ */
.no-posts {
  color: #666;
  text-align: center;
}

/* ================================
   Columns ヒーロー（上部ビジュアル）
================================ */
.columns-hero {
  position: relative;
  overflow: hidden;
}

.columns-hero__bg img {
  display: block;
  width: 100%;
  height: auto;
}

.columns-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

@media (min-width: 861px) {
  .columns-hero__content {
    display: block;
    padding: 6% 0;
    justify-content: flex-start;
  }
}

.columns-hero__ribbons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ribbon {
  display: inline-block;
  background: #a90a0a;
  color: #fff;
  width: fit-content;
  max-width: min(980px, 92vw);
  font-weight: 700;
  line-height: 1.5;
  padding: 10px 16px;
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.ribbon--em { font-size: 16px; }

@media (min-width: 861px) {
  .ribbon {
    font-size: 26px;
    padding: 12px 12px 12px 8%;
  }
  .ribbon--em {
    padding-right: 50px;
    font-size: 28px;
  }
}

/* ---------------- SP/PC表示切替 ---------------- */
.sp-only { display: block; }
.pc-only { display: none; }

@media (min-width: 861px) {
  .sp-only { display: none; }
  .pc-only { display: block; }
}

/* ---------------- チェックリスト ---------------- */
.columns-hero__checks {
  margin: 18px 0 0;
  padding: 14px 16px;
}

.columns-hero__checks li {
  position: relative;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.9;
  padding-left: 28px;
}

.columns-hero__checks li + li { margin-top: 4px; }

.columns-hero__checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25em;
  width: 18px;
  height: 18px;
  background-image: url('https://tssa.jp/wp-content/themes/sushi_theme/img/column/checkbox_white.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}

@media (min-width: 861px) {
  .columns-hero__checks {
    margin: 5% 8% 0;
    padding: 16px 18px;
  }
  .columns-hero__checks li {
    font-size: 25px;
    padding-left: 40px;
  }
  .columns-hero__checks li::before {
    width: 26px;
    height: 26px;
  }
}

/* ---------------- #mvisual::after の打ち消し ---------------- */
#mvisual::after {
  content: none !important;
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ================================
   CTA（見学・資料請求・入学願書・お問い合わせ）
================================ */
.cta_sec { padding: 10px 0; }

.cta-sec--columns { padding: 24px 0 34px; }

.cta-sec--columns .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0px;
}

.columns-cta {
  text-align: center;
  color: #fff;
}

.columns-cta__lead {
  font-size: 16px;
  margin: 0 0 8px;
}

.columns-cta__note {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .05em;
}

.columns-cta__note .thin { font-weight: 400; }

.columns-cta__note strong {
  font-size: 1.2em;
  font-weight: 800;
}

.columns-cta__note .slash { margin: 0 .2em; }

.columns-cta__note .em { font-weight: 800; }

/* ---- ボタン群 ---- */
.columns-cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  justify-items: center;
}

.columns-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(360px, 94vw);
  height: 74px;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  position: relative;
}

.columns-cta__btn::after {
  content: "›";
  position: absolute;
  right: 14px;
  font-size: 22px;
  line-height: 1;
}

/* 既存クラスの色だけ活用（他ページ影響を避けるため上書き） */
.columns-cta__btn.btn_cta01 { background: #e25a3b; }
.columns-cta__btn.btn_cta04 { background: #4ba672; }
.columns-cta__btn.btn_cta03 { background: #9c1010; }
.columns-cta__btn.btn_cta02 { background: #0b3f86; }

.columns-cta__btn:hover { filter: brightness(.95); }

/* ---- 電話行 ---- */
.columns-cta__tel {
  margin: 14px 0 0;
  font-size: 14px;
}

.columns-cta__tel .tel { 
  font-weight: 700;
  color: #fff;
}

.btn_list_cta a {
   padding: 19px 0;
}

.btn_list_cta a span {
   font-size: 18px; 
}

.tel {
    text-decoration: none !important;
}

/* ---- PC横並び ---- */
@media (min-width: 861px) {
  .columns-cta__lead { font-size: 16px; margin-bottom: 10px; }
  .columns-cta__note { font-size: 26px; margin-bottom: 20px; }
  .columns-cta__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    justify-items: stretch;
    align-items: stretch;
  }
  .columns-cta__btn {
    width: 100%;
    height: 84px;
    font-size: 18px;
  }
  .columns-cta__btn::after { right: 18px; font-size: 24px; }
  .columns-cta__tel { margin-top: 12px; font-size: 14px; }
}

@media screen and (max-width: 768px) {
  .btn_list_cta a {
    min-width: 340px;
    margin: auto;
  }
}

@media screen and (max-width: 980px) {
  .cta_sec p {
    font-size: 16px;
    margin-top: 20px;
  }
}

/* ================================
   スマホ横スク防止（Swiperがはみ出すのを抑止）
================================ */
@media (max-width: 768px) {
  .swiper { overflow: hidden; }
}

/* ================================
   CTA内の横スク対策
================================ */
@media (max-width: 768px) {
  .cta-sec--columns .container,
  .cta-sec--columns .cta_sec .container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* 念のための最終ガード（他の要素がはみ出しても横スクを抑止） */
html, body { overflow-x: hidden; }

/* タグを上段、ドットを下段に固定（Swiperのabsoluteを打ち消す） */
.card-swiper { display: block; position: relative; }

.card-swiper .category-tags {
  display: block;
  width: 100%;
  margin: 12px 0 6px;  /* スライドとの間隔はお好みで */
  clear: both;
  order: 10;
  position: relative;
  z-index: 1;          /* ドットより下でOKなら 1 のまま */
}

/* ←ここが最重要: Swiperの absolute/bottom を無効化 */
.card-swiper .swiper-pagination,
.card-swiper .swiper-pagination-horizontal {
  position: static !important;  /* default: absolute を解除 */
  bottom: auto !important;      /* 念のため */
}

.card-swiper .swiper-pagination {
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 100%;
  margin: 16px 0;  /* タグとの余白 */
  flex-basis: 100%;    /* 親がflexでも改行を強制 */
  order: 20;
  z-index: 2;
}

/* 電話リンクの見た目を統一（全体） */
a[href^="tel"] {
  color: inherit !important;
  text-decoration: none !important;
}
a[href^="tel"]:hover,
a[href^="tel"]:focus {
  color: inherit !important;
  text-decoration: underline; /* 下線要らなければ消してください */
}

/* CTAの電話行だけ個別に指定したい場合 */
.columns-cta__tel a[href^="tel"] {
  color: inherit !important;
  text-decoration: none !important;
  font-weight: 700; /* 既存 .tel に合わせるなら */
}
