@charset "UTF-8";
/*
  Template: swell
  Theme Name: SWELL CHILD
  Version: 1.0.0
*/

/* =========================================================
   Fonts
   ========================================================= */
/* 全体のベースフォントを MPLUSRounded1c にする */
body,
button,
input,
select,
textarea {
  font-family: 'MPLUSRounded1c',
    -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

@font-face {
  font-family: 'MPLUSRounded1c';
  src: url('fonts/MPLUSRounded1c-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MPLUSRounded1c';
  src: url('fonts/MPLUSRounded1c-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   Common
   ========================================================= */
.post-thumbnail,
.c-postThumb {
  display: none;
}

/* =========================================================
   Single Cast (個別ページ)
   ========================================================= */
.cast-wrap {
  display: flex;
  justify-content: center;
}

.cast-container {
  width: min(1100px, 92vw);
  margin: 24px auto 48px;
  text-align: center;
}

/* Main Image */
.single-cast .cast-mainimg {
  margin: 18px auto 16px;
  width: 500px;
  max-width: 92vw;
}

.single-cast .cast-mainimg img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

/* Title */
.single-cast .cast-title {
  margin: 28px 0 30px;
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 800;
}

/* 1カラム化 & 不要要素非表示 */
.single-cast :is(.p-pageHeader, .p-pageHeader__inner, .l-contentHeader, .l-contents__header, .l-content__header,
  .p-articleHead, .p-articleHead__inner, .p-articleHead__thumb, .p-archiveHead, .p-hero,
  .p-bigEyecatch, .p-bigeyecatch, .c-eyecatch, .c-pageTitle, .c-postHead, .c-articleInfo,
  .l-breadcrumb, .p-breadcrumb, .c-breadcrumb, nav[aria-label="breadcrumb"],
  #top_title_area, .l-topTitleArea) {
  display: none !important;
}

.single-cast :is(.l-contents__side, .l-sidebar) {
  display: none !important;
}

.single-cast :is(.l-contents, .l-container, .l-contents__main, .l-primary, .l-contents__inner, .l-container__inner, #content) {
  width: 100%;
  max-width: none;
  display: block;
  gap: 0;
  padding-top: 0;
  margin-top: 0;
}

/* Gallery */
.single-cast .cast-gallery-grid {
  margin: 18px auto 40px;
  text-align: center;
}

.single-cast .cast-gallery-grid .gallery-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.single-cast .cast-gallery-grid .gallery-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.single-cast .cast-gallery-grid .gallery-head .count {
  font-size: .9rem;
  color: #666;
  background: #f2f2f7;
  padding: 2px 8px;
  border-radius: 999px;
}

.single-cast .cast-gallery-grid .grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, 120px);
  justify-content: center;
}

.single-cast .cast-gallery-grid .g-item {
  width: 120px;
  aspect-ratio: 1/1;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f8ff;
  outline: none;
}

.single-cast .cast-gallery-grid .g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease, filter .2s ease;
}

.single-cast .cast-gallery-grid .g-item:hover img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.single-cast .cast-gallery-grid .g-item:focus-visible {
  box-shadow: 0 0 0 3px rgba(167, 139, 250, .45);
}

/* SNS */
.single-cast .cast-social {
  margin: 14px auto 48px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.single-cast .cast-social .social-btn {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #f6f3ff;
  color: #5b34ff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}

.single-cast .cast-social .social-btn:hover {
  transform: translateY(-2px);
  background: #eae3ff;
  color: #3f1fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.single-cast .cast-social .social-btn i {
  font-size: 28px;
  line-height: 1;
}

.single-cast .cast-social .social-btn.-x,
.single-cast .cast-social .social-btn.-instagram,
.single-cast .cast-social .social-btn.-tiktok {
  background: #fff;
  border: 1px solid #ededed;
}

.single-cast .cast-social .social-btn.-x,
.single-cast .cast-social .social-btn.-tiktok {
  color: #111;
}

.single-cast .cast-social .social-btn.-instagram {
  color: #c13584;
}

/* Week Cards */
.single-cast .cast-week {
  margin-top: 42px;
  text-align: left;
}

.single-cast .cast-week .section-title {
  text-align: center;
  margin: 0 0 22px;
  font-size: 1.1rem;
}

.single-cast .week-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.single-cast .week-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.single-cast .week-date {
  font-weight: 700;
  margin-bottom: 8px;
}

.single-cast .week-body .week-row {
  padding: 9px 12px;
  background: #f8f8ff;
  border-radius: 10px;
  margin-bottom: 6px;
}

.single-cast .week-body .week-row.empty {
  background: #f4f4f4;
  color: #999;
}

/* Comment */
.single-cast .cast-comment {
  margin: 18px auto 0;
  padding: 14px 16px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.7;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.single-cast .cast-comment__label {
  margin: 0 0 10px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  display: inline-block;
  padding: 4px 10px;
  background: #ffe6f1;
  color: #66334f;
  border-radius: 999px;
}

/* ---------------------------------------------------------
   Mobile tweaks (single-cast)
   --------------------------------------------------------- */
@media (max-width:480px) {
  .single-cast .cast-title {
    margin: 22px 0 14px;
  }

  .single-cast .cast-social {
    gap: 20px;
    margin: 12px auto 40px;
  }

  .single-cast .cast-social .social-btn {
    width: 52px;
    height: 52px;
  }

  .single-cast .cast-social .social-btn i {
    font-size: 24px;
  }

  .single-cast .week-grid {
    gap: 16px;
  }

  .single-cast .week-body .week-row {
    padding: 8px 10px;
  }
}

/* =========================================================
   Lightbox (共通)
   ========================================================= */
.lb[hidden] {
  display: none !important;
}

.lb {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: rgba(0, 0, 0, .82) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2vw !important;
  overflow: hidden !important;
}

#lb-img {
  display: block !important;
  width: 500px !important;
  height: 500px !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4) !important;
  box-sizing: border-box !important;
}

/* close button under image, transparent, white × */
#lb .lb-close {
  position: static !important;
  align-self: center !important;
  display: block !important;
  margin-top: 14px !important;
  padding: 6px 10px !important;
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 28px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

#lb .lb-close:hover {
  transform: scale(1.06);
}

body.no-scroll {
  overflow: hidden !important;
}

@media (max-width:600px) {
  #lb-img {
    width: 88vw !important;
    height: 88vw !important;
  }
}

/* =========================================================
   Cast List (固定ページ: page-cast-list.php)
   ========================================================= */
/* コンテナ幅を広げる */
#castlist.cast-archive__container {
  width: min(1400px, 96vw);
  margin: 32px auto 64px;
}

/* グリッド（PC:4 / Tab:3 / SP:2） */
#castlist .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 24px;
}

@media (max-width:1200px) {
  #castlist .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width:900px) {
  #castlist .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:360px) {
  #castlist .grid {
    grid-template-columns: 1fr;
  }
}

/* カード */
#castlist .card {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}

#castlist .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
}

#castlist .thumb {
  aspect-ratio: 1/1;
  background: #f8f8ff;
  display: block;
}

#castlist .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#castlist .ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: .9rem;
}

#castlist .body {
  padding: 10px 12px 12px;
  text-align: center;
}

#castlist .name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

#castlist .nx-wrap {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

#castlist .nx-badge {
  font-size: .78rem;
  padding: 2px 8px;
  background: #f6f3ff;
  color: #5b34ff;
  border-radius: 999px;
}

/* ページネーション（共通見た目） */
.cast-archive__pager {
  margin: 24px 0 0;
  display: flex;
  justify-content: center;
}

.cast-archive__pager ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 6px;
}

.cast-archive__pager a,
.cast-archive__pager span {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 8px;
  padding: 0 10px;
  background: #f6f3ff;
  color: #5b34ff;
}

.cast-archive__pager .current {
  background: #5b34ff;
  color: #fff;
}
