
@charset "UTF-8";

/* =========================================================
   Variables / Reset
========================================================= */

:root {
  --yellow: #fff200;
  --yellow-deep: #ffd51a;
  --yellow-light: #fff800;
  --green: #5bc822;
  --pink: #f26ad8;
  --pale-green: #f2ffe8;
  --pale-pink: #ffe7fb;
  --blue: #064bb3;
  --purple: #884898;
  --blue-dark: #003a98;
  --purple-dark: #6d0b86;
  --text: #3e3e3e;
  --white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}

/*
body {
  margin: 0;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1.6;
}



img {
  display: block;
  max-width: 100%;
}
*/
a {
  color: inherit;
  text-decoration: none;
}

#event-block {
  box-sizing: border-box;
  font-size: 62.5%;
  line-height: 1.6;
}

br.sp {
	display:none;
}




/* =========================================================
   共通カード
   index.html / event-list.html 共通
========================================================= */

#event-block .case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

#event-block .case-card {
  min-width: 0;
  border: 1px solid #d8d8d8;
  background: var(--pale-green);
}

#event-block .case-card--drama {
  background: var(--pale-pink);
}

#event-block .case-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: inherit;
  color: inherit;
}

#event-block .case-card__link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

/* カード本体は動かさず、サムネイルだけ拡大 */
#event-block .case-card__visual {
  overflow: hidden;
  aspect-ratio: 295 / 196;
  background: #e7f4fc;
}

#event-block .case-card__visual--contain {
  background: #ffffff;
}

#event-block .case-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.3s ease;
}

#event-block .case-card__visual--contain img {
  object-fit: contain;
}

#event-block .case-card__link:hover .case-card__visual img,
#event-block .case-card__link:focus-visible .case-card__visual img {
  transform: scale(1.04);
}

#event-block .case-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 198px;
  padding: 18px 24px 28px;
}

#event-block .case-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#event-block .case-card__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 20px;
  padding: 1px 14px;
  border-radius: 3px;
  background: var(--green);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
}

#event-block .case-card__label--drama {
  background: var(--pink);
}

#event-block .case-card__date {
  margin-top: 6px;
  color: #4d4d4d;
  font-size: 1.4rem;
}

#event-block .case-card__title {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.35;
  background:none;
  padding-left:0;
  border:none;
}

#event-block .case-card__action {
  margin-top: auto;
  padding-top: 28px;
}

/* =========================================================
   ボタン（リンク種別で切り替え）
========================================================= */

/* デフォルト（イベント・外部リンク）
   白 → 紺 */
#event-block .button-outline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 42px 9px 18px;
  border: 1px solid var(--blue);
  border-radius: 5px;
  background: var(--white);
  color: var(--blue-dark);
  font-size: 1.25rem;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

#event-block .case-card__link:hover .button-outline,
#event-block .case-card__link:focus-visible .button-outline {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

/* 詳細ページだけ
   紺 → 白 */
#event-block .case-card--detail .button-outline {
  background: var(--purple);
  border-color: var(--purple-dark);
  color: var(--white);
}

#event-block .case-card--detail .case-card__link:hover .button-outline,
#event-block .case-card--detail .case-card__link:focus-visible .button-outline {
  background: var(--white);
  border-color: var(--purple-dark);
  color: var(--purple);
}


#event-block .external-icon {
  position: absolute;
  right: 10px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

#event-block .button-outline__arrow {
  position: absolute;
  right: 14px;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* =========================================================
   index.html
   トップページ掲載用セクション
========================================================= */

#event-block .case-section {
  padding: 56px 24px 74px;
  background:
    #073f6c
    url("../images/event_bg.png")
    center top / cover no-repeat;
}

#event-block .case-section__inner {
  width: min(100%, 944px);
  margin-inline: auto;
}

#event-block .case-heading {
  position: relative;
  width: min(76%, 700px);
  margin-inline: auto;
}

#event-block .case-heading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    var(--yellow-deep) 0%,
    var(--yellow) 55%,
    var(--yellow-light) 100%
  );
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transform: translate(4px, 8px);
}

#event-block .case-heading__title {
  width:100%;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 16px 60px 10px;
  background: linear-gradient(
    90deg,
    var(--yellow-light) 0%,
    var(--yellow) 48%,
    var(--yellow-deep) 100%
  );
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  color: #000000;
  font-size: clamp(2.0rem, 2.0vw, 3.0rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
/*  white-space: nowrap;*/
}

#event-block .case-section__lead {
  margin: 48px 0 0;
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
}

#event-block .case-section__more {
  margin: 47px 0 53px;
  text-align: center;
}

#event-block .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 424px;
  min-height: 52px;
  padding: 12px 22px 12px 36px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111111;
  font-size: 1.6rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

#event-block .button-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

#event-block .button-primary:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

#event-block .button-primary__arrow {
  width: 11px;
  height: 11px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
}

/* =========================================================
   event-list.html
   一覧ページ
========================================================= */

#event-block .event-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 556px;
  background:
    url("../images/event_list_bg.jpg")
    center center / cover no-repeat;
}

#event-block .event-hero__inner {
  display: grid;
  place-items: center;
  width: min(100%, 1200px);
  min-height: 556px;
  margin-inline: auto;
  padding: 40px 24px;
}

#event-block .event-hero__heading {
  position: relative;
  width: min(62vw, 600px);
}

#event-block .event-hero__heading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--yellow);
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  transform: translate(8px, 9px);
}

#event-block .event-hero__title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  margin: 0;
  padding: 14px 48px;
  overflow: hidden;
  background: linear-gradient(90deg, #064979 0%, #087fd1 100%) !important;
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  color: var(--white);
  font-size: clamp(2.4rem, 2.4vw, 3.0rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

#event-block .event-list {
  padding: 48px 24px 80px;
  background: #ffffff;
}

#event-block .event-list__inner {
  width: min(100%, 944px);
  margin-inline: auto;
}

#event-block .event-list__banner {
  margin-top: 64px;
}

#event-block .event-list__banner a {
  display: block;
}

#event-block .event-list__banner a:hover {
  opacity: 0.7;
}


#event-block .event-list__banner img {
  width: 100%;
 border:solid #ccc 1px;
}



/* =========================================================
   Tablet
========================================================= */

@media (max-width: 900px) {
  #event-block .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* index.html の3枚目だけ中央配置 */
  #event-block .case-section .case-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 28px) / 2);
    justify-self: center;
  }

  #event-block .case-section {
    padding-inline: 32px;
  }

  #event-block .case-heading {
    width: min(90%, 700px);
  }

  .event-hero {
    min-height: 440px;
  }

  #event-block .event-hero__inner {
    min-height: 440px;
  }

  #event-block .event-hero__heading {
    width: min(76vw, 560px);
  }
}

/* =========================================================
   Smartphone
========================================================= */

@media (max-width: 640px) {

br.sp {
	display:block;
}

  #event-block .case-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #event-block .case-section .case-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  #event-block .case-card__body {
    min-height: 0;
    padding: 18px 20px 22px;
  }

  #event-block .case-card__title {
    font-size: 1.9rem;
  }

  #event-block .case-card__action {
    padding-top: 24px;
  }

  #event-block .button-outline {
    min-height: 48px;
    font-size: 1.35rem;
  }

  /* index.html */
  #event-block .case-section {
    padding: 38px 16px 48px;
  }

  #event-block .case-heading {
    width: calc(100% - 16px);
  }

  #event-block .case-heading::before {
    transform: translate(3px, 6px);
  }

  #event-block .case-heading__title {
  width:100%;
    padding: 10px 28px 11px;
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  #event-block .case-section__lead {
    margin-top: 34px;
    font-size: 1.45rem;
    line-height: 1.8;
  }

  #event-block .case-section__more {
    margin: 30px 0 38px;
  }

  #event-block .button-primary {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    gap: 14px;
    padding-inline: 20px;
    font-size: 1.45rem;
  }

  /* event-list.html */
  #event-block .event-hero {
    min-height: 334px;
    background-size: auto 100%;
    background-position: center center;
  }

  #event-block .event-hero__inner {
    min-height: 334px;
    padding: 24px 10px;
  }

  #event-block .event-hero__heading {
    width: min(88vw, 470px);
  }

  #event-block .event-hero__heading::before {
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
    transform: translate(5px, 7px);
  }

  #event-block .event-hero__title {
    min-height: 70px;
    padding: 12px 24px;
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
    font-size: clamp(1.8rem, 5.1vw, 2.5rem);
    line-height: 1.15;
  }

  #event-block .event-list {
    padding: 32px 16px 56px;
  }

  #event-block .event-list__banner {
    margin-top: 40px;
  }
}

@media (max-width: 390px) {
  #event-block .event-hero__heading {
    width: 92vw;
  }

  #event-block .event-hero__title {
    min-height: 64px;
    padding-inline: 18px;
    font-size: clamp(1.65rem, 5vw, 2.1rem);
  }
}




