/* ============================================================
   Barbie — K-POP Bar.  Brand pink #ff0082 on white.
   ============================================================ */
:root {
  --pink: #ff0082;
  --pink-dark: #d10069;
  --pink-soft: #fff0f7;
  --pink-line: #ffd4e9;
  --ink: #1a1a1a;
  --muted: #777;
  --bg: #ffffff;
  --maxw: 1040px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(255, 0, 130, 0.10);
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
          "Apple SD Gothic Neo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
iframe { max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------- Top info bar ---------------- */
.infobar { background: #bf416f; color: #fff; font-size: 13px; }
.infobar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 34px; padding: 5px 20px;
}
.infobar__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.infobar__contact { display: flex; align-items: center; gap: 16px; white-space: nowrap; flex-shrink: 0; }
.infobar__link { color: #fff; font-weight: 600; text-decoration: none; }
.infobar__link:hover { text-decoration: underline; color: #fff; }
.infobar__tel { color: #fff; font-weight: 700; white-space: nowrap; text-decoration: none; }
.infobar__tel:hover { text-decoration: underline; color: #fff; }
@media (max-width: 600px) {
  .infobar__text { font-size: 12px; }
  .infobar__contact { gap: 12px; }
}

/* ---------------- Footer CTA banner ---------------- */
.cta {
  position: relative; background-size: cover; background-position: center;
  color: #fff; margin-top: 40px;
}
.cta__overlay { position: absolute; inset: 0; background: rgba(25,25,25,.62); }
.cta__inner {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 36px;
  padding: 54px 20px;
}
.cta__text { flex: 1 1 60%; }
.cta__heading { font-size: 28px; margin: 0 0 16px; color: #fff; line-height: 1.4; }
.cta__body { font-size: 15px; line-height: 2; margin: 0 0 22px; }
.cta__btn { background: #bf416f; }
.cta__btn:hover { background: #a3325b; }
.cta__photo { flex: 0 0 320px; }
.cta__photo img { width: 100%; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
@media (max-width: 760px) {
  .cta__inner { flex-direction: column; text-align: center; padding: 40px 20px; }
  .cta__photo { flex-basis: auto; max-width: 360px; }
  .cta__heading { font-size: 22px; }
}

/* ---------------- Header / nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--pink);
}
.site-header .header-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 0 12px;
}
.brand {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 84px; width: auto; display: block; max-width: 90vw; }
.brand-sub { color: #d9d9d9; font-weight: 600; font-size: 12px; letter-spacing: .5px; }
@media (max-width: 600px) { .brand-logo { height: 56px; } }
.nav { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: #fff; padding: 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: var(--pink); color: #fff; }
.nav a.cta {
  background: var(--pink); color: #fff;
}
.nav a.cta:hover { background: var(--pink-dark); color: #fff; }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.25); }
.lang-switch .lang-link {
  color: #cfcfcf; font-size: 12px; font-weight: 700; padding: 4px 7px; border-radius: 6px; text-decoration: none;
}
.lang-switch .lang-link:hover { background: var(--pink); color: #fff; }
.lang-switch .lang-link.is-active { background: var(--pink); color: #fff; }
@media (max-width: 860px) {
  .lang-switch { justify-content: center; border-left: 0; border-top: 1px solid var(--pink); margin: 6px 0 0; padding: 8px 0 0; }
  .lang-switch .lang-link { font-size: 14px; padding: 8px 12px; }
}

.nav-toggle {
  display: none; position: absolute; right: 16px; top: 18px;
  background: none; border: 0;
  font-size: 28px; color: var(--pink); cursor: pointer; line-height: 1;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--pink); margin-top: 6px; padding-top: 6px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 8px; text-align: center; }
}

/* ---------------- Hero slider ---------------- */
.hero-slider {
  position: relative; width: 100%; height: 70vh; max-height: 620px; min-height: 380px;
  overflow: hidden; background: #000;
}
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; justify-content: center;
}
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(255,0,130,.35));
}
.hero-slide.is-active { opacity: 1; }
.hero-slide__inner { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 20px; }
.hero-slide__title {
  font-size: 46px; font-weight: 800; letter-spacing: 2px; margin: 0 0 10px;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
}
.hero-slide__title span { color: #ffd0e8; }
.hero-slide__sub {
  font-size: 20px; font-weight: 700; margin: 0; letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
@media (max-width: 600px) { .hero-slide__title { font-size: 30px; } .hero-slide__sub { font-size: 16px; } }

.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: rgba(255,255,255,.25); color: #fff; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 18px; line-height: 44px;
  backdrop-filter: blur(2px);
}
.hero-nav:hover { background: var(--pink); }
.hero-nav.prev { left: 18px; }
.hero-nav.next { right: 18px; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; z-index: 5; text-align: center; }
.hero-dot {
  width: 11px; height: 11px; border-radius: 50%; border: 0; margin: 0 5px; cursor: pointer;
  background: rgba(255,255,255,.55);
}
.hero-dot.is-active { background: var(--pink); transform: scale(1.2); }

/* ---------------- Scrolling marquee ---------------- */
.marquee {
  background: #bf416f; color: #fff; overflow: hidden; white-space: nowrap;
  padding: 9px 0; font-weight: 700; letter-spacing: .5px;
  /* The home page leads with this full-bleed marquee; cancel <main>'s top
     padding so it sits flush against the header (no white gap before scroll). */
  margin-top: -40px;
}
.marquee__track { display: inline-block; padding-left: 100%; animation: marquee 26s linear infinite; }
.marquee__track span { padding: 0 40px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------------- "Barbie with K-POP" heading + carousel ---------------- */
.kpop-heading { text-align: center; margin-bottom: 26px; }
.kpop-heading h2 {
  display: inline-block; margin: 0; font-size: 30px; color: var(--pink); letter-spacing: 1px;
  position: relative; padding-bottom: 10px;
}
.kpop-heading h2 span { color: var(--ink); }
.kpop-heading h2::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 60px; height: 3px; background: var(--pink); border-radius: 2px;
}
.carousel { position: relative; overflow: hidden; }
.carousel__track {
  display: flex; gap: 16px; transition: transform .5s ease; will-change: transform;
}
.carousel__item { flex: 0 0 calc((100% - 32px) / 3); }
.carousel__item img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--pink-line); box-shadow: var(--shadow);
}
@media (max-width: 760px) { .carousel__item { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 480px) { .carousel__item { flex-basis: 100%; } }
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: var(--pink); color: #fff; border: 0; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer; font-size: 16px; box-shadow: var(--shadow);
}
.carousel__nav:hover { background: var(--pink-dark); }
.carousel__nav.prev { left: 6px; }
.carousel__nav.next { right: 6px; }

/* keep old .hero for any other usage */
.hero { text-align: center; padding: 40px 20px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; background: var(--pink); color: #fff;
  padding: 11px 22px; border-radius: 999px; font-weight: 700;
  border: 0; cursor: pointer; font-size: 15px; text-decoration: none;
}
.btn:hover { background: var(--pink-dark); color: #fff; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--pink-dark); border: 2px solid var(--pink); }
.btn.ghost:hover { background: var(--pink-soft); }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn.gray { background: #eee; color: #444; }
.btn.danger { background: #fff; color: #c0392b; border: 1px solid #e3b6b1; }

/* ---------------- Sections ---------------- */
main { padding: 40px 0 64px; }
.section { margin-bottom: 56px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--pink); padding-bottom: 8px; margin-bottom: 24px;
}
.section-head h2 { margin: 0; color: var(--pink); font-size: 24px; letter-spacing: 1px; }
.section-head a { font-size: 13px; font-weight: 700; }

.page-title { color: var(--pink); font-size: 30px; margin: 0 0 8px; letter-spacing: 1px; }
.lead { color: var(--muted); margin-top: 0; }

/* ---------------- Cards ---------------- */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--pink-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease;
}
.card:hover { transform: translateY(-3px); }
.card .thumb { aspect-ratio: 16/10; background: var(--pink-soft); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px 18px 20px; }
.card .body h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.4; }
.card .meta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.card .excerpt { color: #555; font-size: 14px; }

.tag {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 10px;
  border-radius: 999px; background: var(--pink-soft); color: var(--pink-dark);
  text-transform: uppercase; letter-spacing: .5px;
}

/* ---------------- Cast grid ---------------- */
.cast-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 760px) { .cast-grid { grid-template-columns: repeat(2, 1fr); } }
.cast-card { text-align: center; }
.cast-card .photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius);
  background: var(--pink-soft); border: 1px solid var(--pink-line);
}
.cast-card .name { font-weight: 700; margin-top: 8px; }
.cast-card .name small { display: block; color: var(--muted); font-weight: 500; }

/* ---------------- Article / page content ---------------- */
.content { max-width: 820px; margin: 0 auto; }
.content img { border-radius: 10px; margin: 0 auto; }
.content figure { margin: 18px 0; }
.content h2 { color: var(--pink-dark); border-left: 5px solid var(--pink); padding-left: 12px; margin-top: 40px; }
.content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.content table td, .content table th { border: 1px solid var(--pink-line); padding: 10px 12px; }
.content .wp-block-columns { display: flex; gap: 22px; flex-wrap: wrap; }
.content .wp-block-column { flex: 1 1 240px; }
.content .wp-block-spacer { display: block; }
.content mark { padding: 1px 4px; border-radius: 3px; }
.related-card {
  display: inline-block; margin: 8px 0; padding: 12px 20px;
  background: var(--pink-soft); border: 1px solid var(--pink-line); border-left: 4px solid var(--pink);
  border-radius: 10px; color: var(--pink-dark); font-weight: 700; text-decoration: none;
}
.related-card:hover { background: #ffe3f1; text-decoration: none; }

/* ---------------- Forms ---------------- */
.form { max-width: 520px; }
.form.wide { max-width: 820px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=url], .field input[type=number], .field input[type=datetime-local],
.field input[type=file], .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #ddd; border-radius: 10px;
  font: inherit; background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft);
}
.field .hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }

/* ---------------- Comments / guestbook ---------------- */
.comment, .gb-entry {
  border: 1px solid var(--pink-line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 14px; background: #fff;
}
.comment .who, .gb-entry .who { font-weight: 700; }
.comment .when, .gb-entry .when { color: var(--muted); font-size: 12px; }
.gb-reply {
  margin-top: 12px; margin-left: 18px; padding: 12px 16px;
  background: var(--pink-soft); border-radius: 10px; border-left: 3px solid var(--pink);
}
.gb-reply .who { color: var(--pink-dark); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  background: var(--pink-soft); border: 1px solid var(--pink-line); vertical-align: middle;
}

/* ---------------- Flash ---------------- */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.flash.success { background: #e9f9ef; color: #1b7a43; }
.flash.error   { background: #fdecea; color: #c0392b; }
.flash.info    { background: var(--pink-soft); color: var(--pink-dark); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink); color: #ddd; padding: 40px 0 28px; font-size: 14px;
}
.site-footer a { color: #ffb3d9; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer .brand-f { color: var(--pink); font-weight: 800; font-size: 22px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.copyright { text-align: center; color: #888; margin-top: 28px; font-size: 12px; }

/* ---------------- Admin ---------------- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
@media (max-width: 860px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-side { background: var(--ink); color: #eee; padding: 20px 14px; }
.admin-side .brand { color: var(--pink); font-size: 20px; display: block; margin-bottom: 18px; }
.admin-side a { display: block; color: #ddd; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,0,130,.25); color: #fff; }
.admin-side .group { color: #888; font-size: 11px; text-transform: uppercase; margin: 16px 0 4px; padding-left: 12px; letter-spacing: 1px; }
.admin-main { padding: 26px 30px; background: #faf7f9; }
.admin-main h1 { margin-top: 0; color: var(--pink-dark); }

.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid #f0e4ec; font-size: 14px; vertical-align: middle; }
.table th { background: var(--pink-soft); color: var(--pink-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.table tr:last-child td { border-bottom: 0; }
.badge { font-size: 11px; padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.badge.green { background: #e9f9ef; color: #1b7a43; }
.badge.amber { background: #fff7e6; color: #ad6800; }
.badge.gray  { background: #eee; color: #666; }
.badge.pink  { background: var(--pink-soft); color: var(--pink-dark); }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 760px){ .stat-cards { grid-template-columns: repeat(2,1fr);} }
.stat { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat .n { font-size: 30px; font-weight: 800; color: var(--pink); }
.stat .l { color: var(--muted); font-size: 13px; }
.inline-form { display: inline; }
details.i18n { margin-top: 8px; border: 1px dashed var(--pink-line); border-radius: 8px; background: #fff; }
details.i18n > summary { cursor: pointer; padding: 7px 12px; font-size: 12px; font-weight: 700; color: var(--pink-dark); list-style: none; }
details.i18n > summary::-webkit-details-marker { display: none; }
details.i18n[open] > summary { border-bottom: 1px dashed var(--pink-line); }
details.i18n .field { margin: 10px 12px; }
details.i18n .field:last-child { margin-bottom: 12px; }

/* Embedded staff shift schedule on the home page */
.shift-embed { width: 100%; border: 0; display: block; min-height: 380px; background: transparent; }

/* Calendar sync links (shift schedule + per-staff iCal) */
.shift-sync { text-align: center; margin: 12px 0 0; }
.shift-sync a { font-weight: 600; }
.cast-sync { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--pink-dark); text-decoration: none; }
.cast-sync:hover { text-decoration: underline; }

/* Footer Instagram icon */
.footer-social { text-align: center; margin-top: 22px; }
.site-footer .social-ig {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--pink); color: #fff; text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.site-footer .social-ig:hover { background: var(--pink-dark); color: #fff; transform: translateY(-2px); }

/* ---------------- Gallery ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
.gallery-item figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; text-align: center; }
.gallery-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.gallery-admin-item { background: #fff; border: 1px solid #f0e4ec; border-radius: 10px; padding: 10px; text-align: center; }
.gallery-admin-item img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; }
.gallery-admin-item .cap { font-size: 13px; margin: 6px 0 2px; }
.gallery-admin-item .meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

/* ---------------- Memorial ---------------- */
.memorial { max-width: 640px; margin: 20px auto; text-align: center; padding: 10px; }
.memorial-kicker { letter-spacing: 3px; text-transform: uppercase; color: var(--pink-dark); font-size: 13px; margin: 0 0 18px; }
.memorial-photo { width: 220px; height: 264px; object-fit: cover; border-radius: 12px; margin: 0 auto 18px; box-shadow: var(--shadow); border: 4px solid #fff; }
.memorial-name { font-size: 30px; margin: 0 0 4px; color: var(--ink); }
.memorial-years { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.memorial-message { text-align: left; line-height: 2; font-size: 15px; }

/* ---------------- K-POP section ---------------- */
.kpop-events { overflow-x: auto; }
.kpop-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.kpop-table th, .kpop-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #f0e4ec; font-size: 14px; vertical-align: middle; }
.kpop-table th { background: var(--pink-soft); color: var(--pink-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.kpop-table tr:last-child td { border-bottom: 0; }
.kpop-date { white-space: nowrap; font-weight: 700; color: var(--pink-dark); }
.kpop-artist { font-weight: 700; }
.kpop-city { color: var(--muted); font-size: 12px; }
.kpop-kdj { text-align: center; margin: 34px 0 10px; padding-top: 20px; border-top: 1px solid var(--pink-line); }
.kpop-kdj-main { font-weight: 600; margin: 0 0 6px; }
.kpop-kdj-langs { font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .kpop-table th, .kpop-table td { padding: 8px 8px; font-size: 13px; } }
