/* barabara */
.barabara-journal {
    border-top: 1px solid var(--nc-red);
    border-bottom: 1px solid var(--nc-red);
    grid-column: 1 / 4;
    position: relative;
    overflow: hidden;
    background: url("../images/bk_barabara.jpg") no-repeat center center/cover;

    .section-title-large,
    .journal-main-image,
    .btn-more-center {
        position: relative;
        z-index: 1;
    }

    .journal-main-image {
        width: 100%;
        aspect-ratio: 4 / 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        img {
            width: 300px;
            height: 168px;
            object-fit: contain;
            z-index: 3;
        }
        &.slim {
            aspect-ratio: 8 / 1;
        }
    }
}

/* page-barbara */
#barabara {
  --base: #fff83f;
  --gold: #b48a2c;
  --gold-deep: #8a661c;
  --gold-soft: #fff;
  --paper: var(--base);
  --line: #e0d428;
  --ink: #2c2720;
  --ash: #675c4b;
  --max: 1180px;
  --r-sm: 10px;
  --r-md: 14px;
}

#barabara,
#barabara *::before,
#barabara *::after {
  box-sizing: border-box;
}

#barabara * {
  margin: 0;
  padding: 0;
}

#barabara,
#barabara > main {
  display: block;
  grid-template-columns: none;
  grid-template-rows: none;
}

#barabara {
  font-family: "Inter", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

#barabara a {
  color: inherit;
  text-decoration: none;
}

#barabara .container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

#barabara .container--narrow {
  max-width: 780px;
}

#barabara .nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 78px;
  background: rgba(255, 248, 63, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
}

#barabara .nav__inner {
  max-width: var(--max);
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

#barabara .nav__logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-deep);
  white-space: nowrap;
}

#barabara .nav__links {
  list-style: none;
  display: flex;
  gap: 26px;
  flex: 1;
}

#barabara .nav__links a {
  font-size: 14px;
  color: var(--ash);
}

#barabara .nav__links a:hover {
  color: var(--gold-deep);
}

#barabara .hero {
  display: block;
  grid-column: 1 / -1;
  margin: 0;
  background: var(--base);
  padding: 112px 24px 96px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#barabara .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--base);
}

#barabara .hero__collage {
  --cols: 6;
  --rows: 3;
  position: absolute;
  inset: -4%;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr));
  gap: clamp(6px, 1.2vw, 12px);
  padding: clamp(12px, 2vw, 24px);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  filter: none;
}

#barabara .hero__collage.is-active {
  opacity: 1;
}

#barabara .hero__collage-item {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(44, 39, 32, 0.12);
  transform: rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  background: #fff;
}

#barabara .hero__collage-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#barabara .hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 50% 45% at 50% 44%,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 248, 63, 0.25) 55%,
    transparent 75%
  );
  pointer-events: none;
}

#barabara .hero__inner {
  max-width: 760px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 12px 40px rgba(44, 39, 32, 0.12);
}

#barabara .hero .eyebrow {
  color: var(--gold-deep);
}

#barabara .hero .hero__h1,
#barabara .hero .hero__tagline,
#barabara .hero .hero__desc {
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

#barabara .hero .hero__h1 {
  color: var(--ink);
}

#barabara .hero .hero__tagline {
  color: var(--ash);
}

#barabara .hero .hero__desc {
  color: var(--ink);
}

#barabara .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
}

#barabara .hero__h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

#barabara .hero__tagline {
  font-size: 20px;
  color: var(--ash);
  margin-bottom: 24px;
}

#barabara .hero__desc {
  font-size: 16px;
  line-height: 1.9;
  max-width: 680px;
  margin-bottom: 36px;
}

#barabara .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#barabara .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

#barabara .btn:active {
  transform: scale(0.97);
}

#barabara .btn--primary {
  background: var(--gold-deep);
  color: #fff;
  padding: 12px 24px;
}

#barabara .btn--primary:hover {
  background: #735114;
}

#barabara .btn--outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 11px 22px;
}

#barabara .btn--outline:hover {
  border-color: var(--gold);
}

#barabara .divider {
  border: none;
  border-top: 1px solid var(--line);
}

#barabara .section {
  padding: 76px 24px;
}

#barabara .section--alt {
  background: var(--gold-soft);
}

#barabara .section__header {
  margin-bottom: 34px;
}

#barabara .section__h2 {
  margin-top: 12px;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.35;
}

#barabara .section__lead {
  margin-top: 12px;
  color: var(--ash);
  font-size: 15px;
}

#barabara .info-list {
  border-top: 1px solid var(--line);
}

#barabara .info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

#barabara .info-row dt {
  font-weight: 700;
  color: var(--gold-deep);
}

#barabara .award-note {
  margin-top: 0;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: #fbf7ea;
  font-weight: 600;
}

#barabara .themes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

#barabara .theme-card {
  background: #fff;
  border: 1px solid #dccfac;
  border-radius: var(--r-md);
  padding: 28px;
}

#barabara .theme-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 14px;
}

#barabara .theme-card__h3 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
}

#barabara .theme-card__p {
  color: var(--ash);
  font-size: 14px;
  line-height: 1.75;
}

#barabara .voices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

#barabara .voice-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  padding: 24px;
}

#barabara .voice-card__h3 {
  font-size: 19px;
  margin-bottom: 14px;
}

#barabara .voice-list {
  list-style: disc;
  padding-left: 1.2em;
  color: var(--ash);
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
}

#barabara .series-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ash);
  margin-bottom: 28px;
}

#barabara .series-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

#barabara .series-card {
  background: #fff;
  border: 1px solid #dccfac;
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#barabara .series-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(44, 39, 32, 0.1);
}

#barabara .series-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

#barabara .series-card__body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#barabara .series-card__part {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 10px;
}

#barabara .series-card__title {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 10px;
}

#barabara .series-card__summary {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ash);
  margin-bottom: 16px;
  flex: 1;
}

#barabara .series-card__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
}

#barabara .series-card__link:hover .series-card__more {
  color: #735114;
}

#barabara .point-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid #d8ccaa;
}

#barabara .point-row:last-child {
  border-bottom: 1px solid #d8ccaa;
}

#barabara .point-row__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: 6px;
}

#barabara .point-row__h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

#barabara .series-list,
#barabara .toc-list {
  margin-left: 1.2em;
  display: grid;
  gap: 6px;
  line-height: 1.7;
  color: var(--ash);
}

#barabara .cta {
  background: #2e2619;
  color: #fff;
  text-align: center;
  padding: 90px 24px;
}

#barabara .cta__inner {
  max-width: 760px;
  margin-inline: auto;
}

#barabara .cta__h2 {
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.4;
  margin-bottom: 18px;
}

#barabara .cta__p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  margin-bottom: 30px;
}

#barabara .cta .btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

#barabara .cta .hero__actions {
  justify-content: center;
}

@media (max-width: 860px) {
  #barabara .hero__collage {
    --cols: 4;
    --rows: 4;
    inset: -8%;
  }

  #barabara .hero__collage.is-active {
    opacity: 1;
  }

  #barabara .nav__links {
    display: none;
  }

  #barabara .section {
    padding: 58px 24px;
  }

  #barabara .themes-grid,
  #barabara .voices-grid,
  #barabara .series-cards {
    grid-template-columns: 1fr;
  }

  #barabara .info-row,
  #barabara .point-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* top page barabara block override */
.services .service-block .service-content.barabara .service-image {
  background: #fff83f;
  background-image: none;
}

.services .service-block .service-content.barabara .service-title {
  width: 100%;
  max-width: 300px;
}

.services .service-block .service-content.barabara .service-title img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.services .service-block .service-content.barabara .service-desc {
  color: #2f2a20;
}

.services .service-block .service-content.barabara .service-desc .prize {
  color: #7a5613;
}

.services .service-block .service-content.barabara .service-desc .text {
  background: transparent;
  color: #2f2a20;
  font-weight: 700;
  margin: 0;
  line-height: 1.6;
}

.services .service-block .service-content.barabara .service-arrow,
.services .service-block .service-content.barabara .service-arrow::after {
  background-color: #2f2a20;
}

.footer .footer-banners .footer-banner-barabara {
  background: #fff83f;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8d030;
  padding: 8px;
}

.footer .footer-banners .footer-banner-barabara img {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

#barabara .award-figure {
  margin-top: 0;
  width: 160px;
  flex-shrink: 0;
}

#barabara .award-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

#barabara .award-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ash);
}

#barabara .award-block {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

#barabara .award-block .award-note {
  flex: 1;
}

@media (prefers-reduced-motion: reduce) {
  #barabara .hero__collage {
    transition: none;
  }
}

@media (max-width: 700px) {
  #barabara .award-block {
    flex-direction: column;
  }

  #barabara .award-figure {
    width: 50%;
    min-width: 140px;
  }
}