
:root {
  --navy: #003d70;
  --navy-dark: #00345f;
  --blue: #004ea2;
  --light-blue: #edf5fb;
  --line: #b5b5b5;
  --text: #333;
  --white: #fff;
  --content-width: 840px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#event-block .page-header {
  position: relative;
  overflow: hidden;
  min-height: 85px;
  display: grid;
  place-items: center;
  padding: 18px 20px;
  background: linear-gradient(150deg, #003c70 0%, #00365f 52%, #003f71 100%);
}

#event-block .page-header::before,
#event-block .page-header::after {
  content: "";
  position: absolute;
  left: -8%;
  width: 116%;
  height: 44px;
  background: rgba(0, 31, 63, .18);
  transform: rotate(-8deg);
}

#event-block .page-header::before {
  top: -22px;
}

#event-block .page-header::after {
  bottom: -27px;
  background: rgba(0, 71, 123, .22);
}

#event-block .page-header__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-align: center;
}

#event-block .detail-page {
  padding: 48px 20px 92px;
}

#event-block .case-detail {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

#event-block .case-heading {
  margin-bottom: 26px;
  padding-left: 20px;
  border-left: 5px solid var(--navy);
}

#event-block .case-heading__title,
#event-block .case-heading__term {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}

#event-block .case-heading__title {
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.45;
}

#event-block .case-heading__term {
  margin-top: 2px;
  font-size: clamp(16px, 1.4vw, 20px);
}

#event-block .gallery {
  margin-bottom: 54px;
}

#event-block .gallery__viewport {
  position: relative;
  overflow: visible;
}

#event-block .gallery__mask {
  position: relative;
  overflow: hidden;
  background: #fff;
}

#event-block .gallery__track {
  display: flex;
  transform: translateX(0);
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

#event-block .gallery__slide {
  flex: 0 0 100%;
  margin: 0;
}

#event-block .gallery__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
  background: #fff;
}

#event-block .gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(50, 50, 50, .82);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .2s ease, transform .2s ease;
}

#event-block .gallery__arrow:hover,
#event-block .gallery__arrow:focus-visible {
  background: rgba(0, 61, 112, .95);
  transform: translateY(-50%) scale(1.05);
}

#event-block .gallery__arrow--prev {
  left: -26px;
}

#event-block .gallery__arrow--next {
  right: -26px;
}

#event-block .gallery__arrow span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
}

#event-block .gallery__arrow--prev span {
  transform: translate(-35%, -50%) rotate(-135deg);
}

#event-block .gallery__arrow--next span {
  transform: translate(-65%, -50%) rotate(45deg);
}

#event-block .gallery__dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

#event-block .gallery__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  cursor: pointer;
}

#event-block .gallery__dot.is-active {
  background: #fff;
}

#event-block .gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 16px;
}

#event-block .gallery__thumb {
  position: relative;
  overflow: hidden;
  height: 145px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#event-block .gallery__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  pointer-events: none;
  transition: border-color .2s ease;
}

#event-block .gallery__thumb.is-active::after,
#event-block .gallery__thumb:hover::after,
#event-block .gallery__thumb:focus-visible::after {
  border-color: var(--blue);
}

#event-block .gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .25s ease;
}

#event-block .gallery__thumb:hover img {
  transform: scale(1.035);
}

#event-block .case-intro {
  margin-bottom: 58px;
}

#event-block .case-intro__date {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

#event-block .case-intro__text {
  padding: 15px 0;
  border-top: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

#event-block .case-intro__text p {
  margin: 0;
}

#event-block .section-title {
  margin: 0 0 20px;
  padding-left: 18px;
  border-left: 5px solid var(--navy);
  color: var(--navy);
  font-size: 23px;
  line-height: 1.35;
}

#event-block .summary-table {
  margin: 0;
  border-top: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
}

#event-block .summary-table__row {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 51px;
  border-bottom: 1px solid var(--line);
}

#event-block .summary-table__row:last-child {
  border-bottom: 0;
}

#event-block .summary-table dt,
#event-block .summary-table dd {
  margin: 0;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 16px;
  line-height: 1.6;
}

#event-block .summary-table dt {
  justify-content: center;
  border-right: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  background: var(--light-blue);
}

#event-block .back-link-wrap {
  margin-top: 110px;
  text-align: center;
}

#event-block .back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 365px;
  min-height: 46px;
  padding: 12px 28px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: var(--navy);
  transition: color .2s ease, background-color .2s ease;
}

#event-block .back-link:hover,
#event-block .back-link:focus-visible {
  color: var(--navy);
  background: #fff;
}

#event-block .back-link__icon {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 900px) {
  #event-block .gallery__arrow--prev {
    left: 10px;
  }

  #event-block .gallery__arrow--next {
    right: 10px;
  }
}

@media (max-width: 640px) {
  #event-block .page-header {
    min-height: 64px;
  }

  #event-block .detail-page {
    padding: 34px 16px 64px;
  }

 #event-block .case-heading {
    margin-bottom: 20px;
    padding-left: 13px;
    border-left-width: 4px;
  }

  #event-block .case-heading__title {
    font-size: 20px;
  }

  #event-block .case-heading__term {
    font-size: 15px;
  }

  #event-block .gallery {
    margin-bottom: 42px;
  }

  #event-block .gallery__arrow {
    width: 42px;
    height: 42px;
  }

  #event-block .gallery__arrow span {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  #event-block .gallery__dots {
    bottom: 8px;
  }

  #event-block .gallery__thumbs {
    gap: 8px;
    margin-top: 10px;
  }

  #event-block .gallery__thumb {
    height: 82px;
  }

  #event-block .gallery__thumb::after {
    border-width: 3px;
  }

  #event-block .case-intro {
    margin-bottom: 42px;
  }

  #event-block .case-intro__text {
    font-size: 14px;
  }

  #event-block .section-title {
    font-size: 20px;
  }

  #event-block .summary-table__row {
    display: block;
  }

  #event-block .summary-table dt,
  #event-block .summary-table dd {
    padding: 11px 14px;
  }

  #event-block .summary-table dt {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  #event-block .back-link-wrap {
    margin-top: 64px;
  }

  #event-block .back-link {
    width: 100%;
    min-width: 0;
    gap: 14px;
    padding-inline: 18px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}




