@charset "utf-8";

/* CBT2026 トップページ用の追加スタイル
   既存の style.css を上書きしすぎないよう、このファイルに限定しています。 */

.home {
  --cbt-deep-blue: #087fa6;
  --cbt-pale-blue: #eaf8fc;
  --cbt-yellow: #ffd45c;
  --cbt-orange: #f28b35;
  --cbt-shadow: 0 12px 30px rgba(24, 89, 108, 0.14);
  --cbt-content-width: 1100px;
}

.home a:focus-visible,
.home button:focus-visible {
  outline: 3px solid var(--cbt-orange);
  outline-offset: 4px;
}

.home .mainimg-slick-parts {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.home .mainimg-slick-parts .slick-list {
  overflow: hidden;
  border-radius: 18px;
  background: #f3fafc;
  box-shadow: var(--cbt-shadow);
}

.home .mainimg-slick-parts .slick-slide {
  background: #f3fafc;
}

.home .mainimg-slick-parts img {
  width: calc(100% - 200px);
  max-width: 1000px;
  height: clamp(380px, 44vw, 640px);
  object-fit: contain;
  object-position: center;
}

.home .mainimg-slick-parts .slick-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(80, 80, 80, 0.48);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  color: rgba(245, 245, 245, 0.96);
  font-size: 0;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.home .mainimg-slick-parts .slick-arrow::before {
  display: block;
  color: rgba(245, 245, 245, 0.96);
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(2px);
}

.home .mainimg-slick-parts .slick-prev {
  left: 14px;
}

.home .mainimg-slick-parts .slick-prev::before {
  content: "❮";
}

.home .mainimg-slick-parts .slick-next {
  right: 14px;
}

.home .mainimg-slick-parts .slick-next::before {
  content: "❯";
}

.home .mainimg-slick-parts .slick-arrow:hover {
  background: rgba(65, 65, 65, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.home header {
  z-index: 100;
}

.home #menubar_hdr {
  z-index: 110;
}

.home #news {
  width: 100%;
  max-width: var(--cbt-content-width);
  margin: clamp(3.5rem, 8vw, 7rem) auto 0;
}

.home #news .new {
  padding: clamp(1rem, 3vw, 1.75rem);
  border-left: 5px solid var(--primary-color);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 89, 108, 0.1);
}

.home #news .new dt,
.home #news .new dd {
  align-self: center;
}

.home #news .new dd {
  padding-bottom: 0;
}

.entry-capacity-news {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border: 1px solid #e69aaa;
  border-left: 6px solid #b4233d;
  border-radius: 12px;
  background: #fff2f5;
  color: #70182a;
  box-shadow: 0 8px 22px rgba(132, 25, 47, 0.09);
}

.entry-capacity-news[hidden] {
  display: none;
}

.entry-capacity-news__icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 50%;
  background: #b4233d;
  color: #fff;
  font-size: 1.35rem;
}

.entry-capacity-news__label {
  margin: 0 0 0.15rem;
  color: #a01d36;
  font-size: 0.8rem;
  font-weight: 800;
}

.home #news .entry-capacity-news h3 {
  display: block;
  margin: 0 0 0.45rem;
  border: 0;
  color: #8c1930;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

.entry-capacity-news ul {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
}

.entry-capacity-news a {
  color: #8c1930;
  font-weight: 800;
}

.home #entry .list-grid2 {
  align-items: stretch;
}

/* 各セクションの内側を同じ幅に揃える
---------------------------------------------------------------------------*/
.home #entry .main-contents,
.home #sponsor .main-contents,
.home #about,
.home #outline,
.home #contact {
  width: 100%;
  max-width: var(--cbt-content-width);
  margin-right: auto;
  margin-left: auto;
}

.home #entry .entry-card {
  position: relative;
  grid-template-rows: auto auto 1fr auto;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border-top: 5px solid var(--primary-color);
  border-radius: 12px;
  box-shadow: var(--cbt-shadow);
}

.home #entry .entry-card h3 {
  display: block;
  margin: 0 0 1rem;
  border: 0;
  color: var(--cbt-deep-blue);
  font-size: 1.2rem;
  line-height: 1.6;
}

.entry-card__status {
  justify-self: start;
  margin: 0 0 0.75rem !important;
  padding: 0.2rem 0.75rem !important;
  border-radius: 999px;
  background: var(--cbt-yellow);
  color: #3d3420;
  font-size: 0.8rem !important;
  font-weight: 700;
  line-height: 1.7;
}

.entry-card__status--muted {
  background: #edf0f2;
  color: #4d5960;
}

.entry-card__status--accent {
  background: #fff0e4;
  color: #9a4b0c;
}

.entry-card__status--open {
  background: #e5f7eb;
  color: #24703e;
}

.entry-card__status--closed {
  background: #edf0f2;
  color: #4d5960;
}

.home #entry .entry-card .btn {
  align-self: end;
}

.home #entry .entry-card .btn a {
  border-radius: 8px;
}

.home #entry .entry-card .btn a.is-disabled,
.home #entry .entry-card .btn a[aria-disabled="true"] {
  border-color: #bdc8cc;
  background: #d7dde0;
  box-shadow: none;
  color: #637278;
  cursor: not-allowed;
  pointer-events: none;
}

.home #entry .entry-card .btn a.is-waiting,
.home #entry .entry-card .btn a.is-waiting[aria-disabled="true"] {
  border-color: #c9951c !important;
  background: #e7b83f !important;
  color: #4a380a !important;
}

@media (max-width: 600px) {
  .entry-capacity-news {
    grid-template-columns: 1fr;
  }

  .entry-capacity-news__icon {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* 協賛者一覧：ロゴの有無にかかわらず同じカード規格で表示
---------------------------------------------------------------------------*/
.home #sponsor .list-grid5 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0;
}

.home #sponsor .list-grid5 .list {
  display: flex;
  min-height: 155px;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  border: 1px solid rgba(39, 171, 212, 0.18);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(24, 89, 108, 0.1);
  text-align: center;
}

.home #sponsor .list-grid5 .list > a {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
}

.home #sponsor .list-grid5 figure {
  display: grid;
  min-height: 72px;
  margin-bottom: 0.6rem;
  place-items: center;
}

.home #sponsor .list-grid5 figure img {
  width: auto;
  max-width: 90%;
  max-height: 70px;
  margin: 0 auto;
  object-fit: contain;
}

.home #sponsor .list-grid5 h4 {
  line-height: 1.6;
}

/* こどものまちCBTとは
---------------------------------------------------------------------------*/
.home .section-lead {
  margin: 1.5rem 0 2.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 6px solid var(--primary-color);
  border-radius: 0 14px 14px 0;
  background: var(--cbt-pale-blue);
}

.home .section-lead p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 2;
}

.home .section-lead p + p {
  margin-top: 0.75rem;
}

.home .section-subheading {
  margin: 0 0 1.25rem;
  color: var(--cbt-deep-blue);
}

.home #about .list-grid1 {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.home #about .list-grid1 .list {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(39, 171, 212, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(24, 89, 108, 0.1);
}

.home #about .list-grid1 figure img {
  width: 100%;
  margin: 0;
}

.home #about .list-grid1 .text {
  padding: 1rem 1.1rem 1.2rem;
}

.home #about .list-grid1 h4 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  color: var(--cbt-deep-blue);
  font-size: 1rem;
  line-height: 1.5;
}

.home #about .flow-step {
  display: inline-grid;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

/* イベント概要
---------------------------------------------------------------------------*/
.home .info-table-wrap {
  overflow: hidden;
  border: 1px solid rgba(39, 171, 212, 0.2);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--cbt-shadow);
}

.home #outline .info-table {
  margin: 0;
  border: 0;
  background: #fff;
  table-layout: auto;
}

.home #outline .info-table caption {
  margin: 0;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem);
  border-radius: 0;
  background: var(--cbt-deep-blue);
  text-align: left;
}

.home #outline .info-table caption strong {
  display: block;
}

.home #outline .info-table caption strong {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.6;
}

.home #outline .info-table tr {
  border-color: #dce9ed;
}

.home #outline .info-table th,
.home #outline .info-table td {
  padding: 1.25rem clamp(1rem, 2.5vw, 1.6rem);
  word-break: normal;
}

.home #outline .info-table th {
  width: 22%;
  background: var(--cbt-pale-blue);
  color: var(--cbt-deep-blue);
  vertical-align: top;
}

.home .event-dates {
  display: grid;
  gap: 0.5rem;
}

.home .event-dates span {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.5rem;
}

.home .event-dates b {
  color: var(--cbt-deep-blue);
}

.home .info-note {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 5px solid #cf1745;
  border-radius: 8px;
  background: #ffe4ec;
  color: #9f1239;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.7;
}

.home .info-note::before {
  display: inline-block;
  margin-right: 0.6rem;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  background: #b20f36;
  color: #fff;
  content: "重要";
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: 0.08em;
}

.home .info-note--plain {
  background: #ffe4ec;
  color: #9f1239;
}

/* お問い合わせ
---------------------------------------------------------------------------*/
.home .contact-panel {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid rgba(39, 171, 212, 0.2);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #f4fbfd 100%);
  box-shadow: var(--cbt-shadow);
}

.home .contact-panel__kicker {
  display: inline-block;
  margin: 0 0 0.5rem;
  color: var(--cbt-deep-blue);
  font-size: 0.85rem;
  font-weight: 700;
}

.home .contact-panel > h3 {
  display: block;
  margin: 0;
  border: 0;
  color: var(--cbt-deep-blue);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.home .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.home .contact-card {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.15rem;
  border: 1px solid #dce9ed;
  border-radius: 12px;
  background: #fff;
}

.home .contact-card--wide {
  grid-column: 1 / -1;
}

.home .contact-card__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--cbt-pale-blue);
  color: var(--cbt-deep-blue);
  font-size: 1.1rem;
}

.home .contact-card h4,
.home .contact-card p,
.home .contact-card address {
  margin: 0;
}

.home .contact-card h4 {
  color: var(--cbt-deep-blue);
  font-size: 0.85rem;
}

.home .contact-card p,
.home .contact-card address {
  font-size: 1rem;
  font-style: normal;
  line-height: 1.8;
}

.home .contact-card__phone {
  color: var(--cbt-deep-blue);
  font-size: 1.15rem;
  font-weight: 700;
}

.home .contact-card small {
  display: block;
  margin-top: 0.25rem;
  color: #5e6d72;
  line-height: 1.6;
}

@media screen and (min-width: 600px) {
  .home #about .list-grid1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1000px) {
  .home #about .list-grid1 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 899px) {
  .home #contents {
    padding-top: 92px;
  }

  .home .mainimg-slick-parts .slick-list {
    border-radius: 12px;
  }

  .home .mainimg-slick-parts img {
    width: 100%;
    max-width: 100%;
    height: clamp(260px, 68vw, 520px);
  }

  .home .mainimg-slick-parts .slick-arrow {
    width: 42px;
    height: 42px;
  }

  .home .mainimg-slick-parts .slick-prev {
    left: 8px;
  }

  .home .mainimg-slick-parts .slick-next {
    right: 8px;
  }

  .home #outline .info-table th,
  .home #outline .info-table td {
    display: block;
    width: 100%;
    padding: 1rem;
  }

  .home #outline .info-table tr {
    display: block;
  }

  .home #outline .info-table th {
    border-bottom: 1px solid #dce9ed;
  }

  .home .event-dates span {
    grid-template-columns: 3.5rem 1fr;
  }

  .home .contact-grid {
    grid-template-columns: 1fr;
  }

  .home .contact-card--wide {
    grid-column: auto;
  }

  .home .contact-card {
    grid-template-columns: 2.5rem 1fr;
    padding: 1rem;
  }

  .home .contact-card__icon {
    width: 2.5rem;
    height: 2.5rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home *,
  .home *::before,
  .home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
