html { scroll-behavior: smooth; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #d9d9d9;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: flex;
  align-items: center;
  opacity: 0;
  background-color: #d9d9d9;
  background-image: var(--hero-pc-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide__link {
  position: absolute;
  z-index: 1;
  inset: 0;
  visibility: hidden;
}

.hero-slide.active .hero-slide__link {
  visibility: visible;
}

.hero-slide__link:focus-visible {
  outline: 4px solid #fff;
  outline-offset: -8px;
}

.hero-slide__image-description {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,255,255,0.84) 36%, rgba(255,255,255,0.08) 68%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 170px;
  background:
    radial-gradient(circle, rgba(0,87,217,0.22) 1.6px, transparent 1.8px) 78px 58px / 14px 14px,
    linear-gradient(120deg, rgba(31,123,255,0.22), rgba(31,123,255,0.07) 52%, transparent 52%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero-slide .hero-copy {
  display: block;
  max-width: 500px;
  padding: 54px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-slide.active .hero-copy {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero h1 span { color: var(--blue); }

.hero p {
  margin-top: 24px;
  color: #444;
  font-size: 17px;
  line-height: 2;
}

.hero-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 50%;
  background: rgba(255,255,255,0.82);
  color: var(--blue);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: var(--soft);
}

.hero-arrow:hover {
  background: #fff;
  color: var(--navy);
}

.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

.dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.dots button.active { background: var(--blue); }

.dots button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head .title {
  margin-bottom: 0;
}

.section-head .title::after {
  display: none;
}

.more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(0, 43, 111, 0.08);
}

.more:hover {
  background: #eaf3ff;
}

.arrow {
  color: var(--blue);
  font-weight: 900;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 26px;
}

.home-grid .home-area-search .home-area-card {
  padding: 18px;
}

.home-area-search .lead {
  margin-bottom: 14px;
  font-size: 13px;
}

.home-area-search .area-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-area-search .area-card {
  border-radius: 12px;
}

.home-area-search .area-image {
  height: 88px;
  padding: 8px;
}

.home-area-search .area-body {
  min-height: 42px;
  padding: 8px 10px;
}

.home-area-search .area-name {
  font-size: 13px;
}

.topics-section .section-head {
  margin-bottom: 16px;
}

.topics-section .card {
  overflow: hidden;
}

.home-grid > div {
  position: relative;
  min-width: 0;
}

.home-grid > div::before {
  content: "";
  position: absolute;
  top: 54px;
  right: 18px;
  left: 18px;
  height: 34px;
  border-radius: 999px;
  background: rgba(36, 116, 203, .12);
  filter: blur(18px);
  pointer-events: none;
}

.home-grid > div .section-head {
  position: relative;
  z-index: 1;
  align-items: center;
  border: 1px solid #d7e7f8;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #fff, #f7fbff);
  margin-bottom: -1px;
  padding: 28px 28px 24px;
}

.home-grid > div .section-head .title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-grid > div .section-head .title::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 116, 203, .14);
}

.home-grid > div:first-child .card,
.home-grid > div:last-child .card {
  position: relative;
  border: 1px solid #d7e7f8;
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.home-grid > div:first-child .card::before,
.home-grid > div:last-child .card::before {
  content: "";
  display: none;
}

.home-grid .news-item,
.home-grid .event-feed-item {
  transition: background-color .18s ease, transform .18s ease;
}

.home-grid .news-item:hover,
.home-grid .event-feed-item:hover {
  background: linear-gradient(90deg, rgba(36, 116, 203, .08), rgba(23, 160, 93, .05));
  transform: translateX(3px);
}

.home-grid .arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf3ff;
}

.event-feed-item {
  display: grid;
  grid-template-columns: 110px 104px minmax(0, 1fr) 72px 22px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}
.event-feed-item > * { min-width: 0; }
.event-feed-item .event-title { overflow-wrap: anywhere; }

.event-feed-item:last-child { border-bottom: 0; }

.event-feed-item .event-title {
  color: #222;
  font-weight: 900;
  line-height: 1.5;
}

.event-thumb {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(220,229,242,0.85);
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-feed-item .arrow { text-align: right; }
.area-name { color: var(--navy); font-weight: 900; }

.wide-search {
  margin: 24px auto 0;
  max-width: 560px;
}

.wide-search .btn { width: 100%; }

.bottom-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.bottom-panels > * { min-width: 0; }

.coupon-band,
.family-communication {
  display: grid;
  grid-template-columns: minmax(260px, 40%) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  height: 100%;
  border-radius: 16px;
  background: #eaf3ff;
  padding: 22px 28px;
  box-shadow: var(--soft);
}

.family-communication {
  background: #fff7fb;
}

.coupon-band h2,
.family-communication h2 {
  color: var(--navy);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  line-height: 1.45;
}

.coupon-band p,
.family-communication p {
  margin-top: 12px;
  color: #444;
  line-height: 1.8;
}

.coupon-band img,
.family-communication img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.family-communication > * { min-width: 0; }

.youtube-section {
  background: #f7f9fc;
}

.youtube-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.youtube-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--soft);
}

.youtube-link {
  display: grid;
  height: 100%;
  color: inherit;
}

.youtube-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.youtube-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.youtube-link:hover .youtube-frame img {
  transform: scale(1.04);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 87, 217, 0.92);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px rgba(0, 43, 111, 0.22);
}

.youtube-title {
  display: block;
  padding: 14px 16px 16px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
}

.youtube-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 34px;
  margin: 0 16px 16px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

@media (max-width: 1024px) {
  .home-grid,
  .bottom-panels,
  .youtube-grid { grid-template-columns: 1fr; }

  .coupon-band,
  .family-communication { grid-template-columns: minmax(220px, 36%) minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .section-head {
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .home-grid > div::before {
    top: 48px;
    right: 12px;
    left: 12px;
  }

  .home-grid > div .section-head {
    margin-bottom: -1px;
    padding: 11px 12px 10px;
  }

  .home-grid > div .section-head .title::before {
    width: 10px;
    height: 10px;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(36, 116, 203, .14);
  }

  .section-head .title {
    min-width: 0;
  }

  .hero { min-height: 430px; }

  .hero-slide::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.84) 52%, rgba(255,255,255,0.22));
  }

  .hero-slide { background-image: var(--hero-sp-image, var(--hero-pc-image)); }

  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .hero-arrow.prev { left: 12px; }
  .hero-arrow.next { right: 12px; }

  .hero .hero-copy { padding: 28px 0; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); }

  .hero p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.8;
  }

  .hero .btn-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .hero .btn-row .btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
    line-height: 1.2;
  }

  .event-feed-item {
    grid-template-columns: 78px 70px minmax(0, 1fr) 48px 14px;
    gap: 8px;
    padding: 10px 12px;
  }

  .event-feed-item .date { font-size: 12px; }

  .event-feed-item .label {
    padding: 4px 8px;
    font-size: 11px;
  }

  .event-feed-item .event-title {
    font-size: 12px;
    line-height: 1.4;
  }

  .event-thumb {
    width: 48px;
    height: 36px;
  }

  .coupon-band,
  .family-communication {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .coupon-band h2,
  .family-communication h2 {
    font-size: 16px;
    line-height: 1.3;
  }

  .coupon-band p,
  .family-communication p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
  }

  .coupon-band img,
  .family-communication img { align-self: center; }

  .youtube-grid {
    gap: 12px;
  }

  .play-badge {
    width: 52px;
    height: 38px;
    border-radius: 10px;
    font-size: 17px;
  }

  .youtube-title {
    padding: 12px 13px 14px;
    font-size: 14px;
  }

  .youtube-open {
    margin: 0 13px 14px;
  }

  .wide-search {
    margin-top: 18px;
    max-width: none;
  }

  .wide-search .btn {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .bottom-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .bottom-panels .title {
    font-size: 15px;
    line-height: 1.35;
  }

  .bottom-panels .btn {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .section-head .more {
    min-height: 34px;
    padding: 6px 11px;
    font-size: 12px;
  }

  #area-home .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #event .news-item {
    grid-template-columns: 78px 72px minmax(0, 1fr) 14px;
    gap: 7px;
    align-items: center;
  }

  .home-grid .news-item:hover,
  .home-grid .event-feed-item:hover {
    transform: none;
  }

  #event .news-item .date {
    font-size: 11px;
  }

  #event .news-item .label {
    padding: 4px 6px;
    font-size: 10px;
  }

  #event .news-item strong {
    font-size: 12px;
    line-height: 1.45;
  }

  .footer-main { flex-direction: column; }
  .btn-row .btn,
  .wide-search .btn { width: 100%; }
}

/* Final top-page news/event card tuning */
.home-grid {
  align-items: start;
}

.home-grid > div::before {
  opacity: .45;
  filter: blur(16px);
}

.home-grid > div .section-head {
  position: relative;
  border-color: #d7e7f8;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #fff, #f7fbff);
  padding: 16px 20px 14px;
}

.home-grid > div .section-head::after {
  display: none;
}

.home-grid > div .section-head .title {
  color: var(--navy);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.35;
}

.home-grid > div .section-head .title::before {
  width: 14px;
  height: 14px;
  border-width: 4px;
  box-shadow: 0 0 0 4px rgba(36, 116, 203, .12);
}

.home-grid > div .more {
  min-height: 38px;
  border-color: #005BAC;
  color: #005BAC;
  padding: 8px 18px;
  font-size: 13px;
  box-shadow: none;
}

.home-grid > div:first-child .card,
.home-grid > div:last-child .card {
  border: 1px solid #d7e7f8;
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.home-grid > div:first-child .card::before,
.home-grid > div:last-child .card::before {
  display: none;
}

.home-grid .news-item {
  grid-template-columns: 112px 128px minmax(0, 1fr) 24px;
  gap: 16px;
  border-bottom-color: #e6eef8;
  padding: 22px 28px;
}

.home-grid .news-item .date,
.home-grid .event-feed-item .date {
  color: #667085;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.home-grid .label {
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.home-grid .news-item strong {
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.home-grid .arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f6fc;
  color: #005BAC;
  font-size: 18px;
  font-weight: 700;
}

.home-grid .news-item:hover,
.home-grid .event-feed-item:hover {
  background: #f8fbff;
  transform: none;
}

.home-grid .event-feed-item {
  grid-template-columns: 132px minmax(0, 1fr) 28px;
  grid-template-areas:
    "thumb meta arrow"
    "thumb title arrow";
  gap: 10px 22px;
  margin: 22px 28px;
  border: 0;
  border-bottom: 1px solid #e6eef8;
  border-radius: 0;
  background: #fff;
  padding: 0 0 22px;
  box-shadow: none;
}

.home-grid .event-feed-item + .event-feed-item {
  margin-top: 0;
}

.home-grid .event-feed-item .date {
  grid-area: meta;
  align-self: end;
}

.home-grid .event-feed-item .label {
  grid-area: meta;
  justify-self: end;
  align-self: end;
}

.home-grid .event-feed-item .event-title {
  grid-area: title;
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
}

.home-grid .event-feed-item .event-thumb {
  grid-area: thumb;
}

.home-grid .event-feed-item .arrow {
  grid-area: arrow;
  align-self: center;
}

.home-grid .event-thumb {
  width: 132px;
  height: 90px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(220,229,242,.9);
}

@media (max-width: 767px) {
  .home-grid {
    gap: 18px;
  }

  .home-grid > div .section-head {
    border-radius: 20px 20px 0 0;
    padding: 18px 16px 16px;
  }

  .home-grid > div .section-head::after {
    display: none;
  }

  .home-grid > div .section-head .title {
    font-size: 18px;
  }

  .home-grid > div .more {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .home-grid .news-item {
    grid-template-columns: 82px 82px minmax(0, 1fr) 22px;
    gap: 8px;
    padding: 15px 16px;
  }

  .home-grid .news-item .date,
  .home-grid .event-feed-item .date {
    font-size: 12px;
  }

  .home-grid .label {
    min-height: 20px;
    padding: 2px 8px;
    font-size: 10px;
  }

  .home-grid .news-item strong,
  .home-grid .event-feed-item .event-title {
    font-size: 12px;
    line-height: 1.65;
  }

  .home-grid .event-feed-item {
    grid-template-columns: 88px minmax(0, 1fr) 20px;
    gap: 6px 10px;
    margin: 16px;
    padding: 0 0 16px;
  }

  .home-grid .event-thumb {
    width: 88px;
    height: 68px;
  }

  .home-grid > div:first-child .card,
  .home-grid > div:last-child .card {
    border-radius: 0 0 20px 20px;
  }

  .home-grid .arrow {
    width: 18px;
    height: 18px;
    font-size: 14px;
  }
}

/* Slides without heading text do not need the copy-supporting gradient. */
.hero-slide[data-has-gradient="0"]::after {
  background: transparent;
}
