@charset "utf-8";
/* CSS Document */

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ページ全体
---------------------------------------------------------------------------------*/
.t18-products {
  font-family: "M PLUS Rounded 1c", sans-serif;
}

.event-container {
  background-color: #EBFFED;
}

.event-container .t18-middle {
  overflow: visible;
}

.t18-middle-split-rgt {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.t18-middle-split {
  overflow: visible;
  position: relative;
  z-index: 1;
}

/* あしらい（PCのみ・画面両端）
---------------------------------------------------------------------------------*/
.event-body {
  display: flow-root;
  position: relative;
  overflow: visible;
}

.event-decor {
  display: none;
}

.event-sky {
  display: none;
}

.event-balloon {
  display: none;
}

@media screen and (min-width: 1470px) {
  .event-decor {
    display: block;
    position: absolute;
    top: 280px;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
  }

  .event-decor__item {
    position: absolute;
    width: clamp(160px, 14vw, 220px);
    height: auto;
    display: block;
  }

  .event-decor__item:nth-child(odd) {
    left: 0;
    right: auto;
  }

  .event-decor__item:nth-child(even) {
    left: auto;
    right: 0;
  }

  .event-body .event-content,
  .event-body .event-question,
  .event-body .kids-page-title {
    position: relative;
    z-index: 1;
  }

  .event-sky {
    display: block;
    position: absolute;
    top: 0;
    right: calc(50% - 50vw);
    width: clamp(260px, 22vw, 340px);
    aspect-ratio: 1 / 1;
    pointer-events: none;
    z-index: 2;
  }

  .event-sky__sun {
    position: absolute;
    top: 12%;
    left: 50%;
    width: 48%;
    height: auto;
    z-index: 1;
    transform: translateX(-50%) scale(1);
    transform-origin: 50% 50%;
    animation: sun-pulse 3.2s ease-in-out infinite;
    will-change: transform;
  }

  .event-sky__cloud {
    position: absolute;
    height: auto;
    z-index: 2;
  }

  .event-sky__cloud--lf {
    top: calc(4% + 10px);
    left: -60px;
    width: 38%;
  }

  .event-sky__cloud--r {
    right: 40px;
    bottom: 8%;
    width: 38%;
  }

  .event-balloon {
    display: block;
    position: absolute;
    top: 24px;
    left: calc(50% - 50vw + 2vw);
    width: 13%;
    max-width: 170px;
    height: auto;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
    animation: event-balloon-float 3.5s ease-in-out infinite;
  }
}

@media screen and (min-width: 1470px) and (hover: hover) and (pointer: fine) {
  .event-balloon {
    pointer-events: auto;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
  }

  .event-balloon.is-grabbed {
    cursor: grabbing;
    z-index: 10;
  }
}

@keyframes sun-pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.08);
  }
}

@keyframes event-balloon-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(-3deg);
  }
  50% {
    transform: translate(12px, 16px) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-sky__sun,
  .event-balloon {
    animation: none;
  }
}

h1.kids-page-title {
  color: #48af56 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0 !important;
}

/* リード文
---------------------------------------------------------------------------------*/
.event-question {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 880px;
  margin: 0 auto 80px;
  padding: 0 20px;
  box-sizing: border-box;
}

.event-question__text {
  display: block;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #000;
  margin: 0;
  text-align: center;
}

.event-question__text .u-nowrap {
  white-space: nowrap;
}

/* コンテンツ
---------------------------------------------------------------------------------*/
.event-content {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 20px;
  box-sizing: border-box;
}

.event-year + .event-year {
  margin-top: 72px;
}

/* 年見出し（リボン）
---------------------------------------------------------------------------------*/
.event-year__title {
  display: flex;
  justify-content: center;
  margin: 0 0 40px;
}

.event-year__title span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  max-width: 100%;
  padding: 19px 48px 14px;
  box-sizing: border-box;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: #fff;
  background: #819d84;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
  ruby-position: over;
}

.event-year__title ruby {
  position: relative;
  ruby-align: center;
  ruby-position: over;
}

.event-year__title rt {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 0.15em);
  transform: translateX(-50%);
  font-size: 0.38em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}

/* イベント一覧
---------------------------------------------------------------------------------*/
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
}

.event-item {
  min-width: 0;
}

.event-item__link {
  display: block;
  color: inherit;
  text-decoration: none;
  opacity: 1 !important;
}

.t18-products .event-item__link:hover,
.t18-products .event-item__link:focus,
.t18-products .event-item__link:hover img,
.t18-products .event-item__link:focus img,
.t18-products .event-item__link:hover .event-frame,
.t18-products .event-item__link:focus .event-frame,
.t18-products .event-item__link:hover .event-item__title,
.t18-products .event-item__link:focus .event-item__title,
.t18-products .event-item__link:hover .event-item__badge,
.t18-products .event-item__link:focus .event-item__badge {
  text-decoration: none;
  opacity: 1 !important;
}

.event-item__link .event-frame {
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.25s ease;
}

.event-item__link:hover .event-frame,
.event-item__link:focus .event-frame {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .event-item__link .event-frame {
    transition: none;
  }

  .event-item__link:hover .event-frame,
  .event-item__link:focus .event-frame {
    transform: none;
  }
}

.event-list .event-item:only-child {
  max-width: 460px;
}

.event-item__badge {
  position: absolute;
  top: -10px;
  left: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 16px);
  margin: 0;
  padding: 4px 14px;
  border-radius: 999px;
  box-sizing: border-box;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #fff;
}

.event-item__badge ruby {
  ruby-align: center;
}

.event-item__badge rt {
  font-size: 0.45em;
  letter-spacing: 0;
}

.event-item__badge--pink {
  background: #E24390;
}

.event-item__badge--blue {
  background: #4E95D9;
}

.event-item__title {
  margin: 14px 0 0;
  max-width: 100%;
  box-sizing: border-box;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #222;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.event-item__title ruby {
  ruby-align: center;
}

.event-item__title rt {
  font-size: 0.45em;
  letter-spacing: 0;
}

/* 画像枠
---------------------------------------------------------------------------------*/
.event-frame {
  position: relative;
  width: 100%;
  padding: 18px;
  box-sizing: border-box;
}

.event-frame__media {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
  background: #d9d9d9;
  overflow: hidden;
}

.event-frame__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-frame__caption {
  position: absolute;
  left: 50%;
  top: 54%;
  z-index: 2;
  width: 94%;
  margin: 0;
  padding: 0 4%;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  font-family: "Mochiy Pop P One", sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-align: center;
  color: #e60012;
  -webkit-text-stroke: 0.14em #fff;
  paint-order: stroke fill;
  pointer-events: none;
  ruby-position: over;
  text-shadow:
    0 0 0 #fff,
    1px 1px 0 #fff,
    -1px 1px 0 #fff,
    1px -1px 0 #fff,
    -1px -1px 0 #fff;
}

.event-frame__caption--long {
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  letter-spacing: 0.02em;
}

.event-frame__caption ruby {
  ruby-align: center;
}

.event-frame__caption rt {
  font-size: 0.38em;
  font-weight: 400;
  letter-spacing: 0;
  color: #e60012;
  -webkit-text-stroke: 0.1em #fff;
  paint-order: stroke fill;
  text-shadow:
    0 0 0 #fff,
    1px 1px 0 #fff,
    -1px 1px 0 #fff,
    1px -1px 0 #fff,
    -1px -1px 0 #fff;
}

.event-frame::before,
.event-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

/* 枠バリエーション1 */
.event-frame--1 {
  background:
    linear-gradient(#8ec8e8 0 0) 8px 8px / 42px 42px no-repeat,
    linear-gradient(#f0b070 0 0) calc(100% - 10px) 14px / 36px 36px no-repeat,
    linear-gradient(#7ad7e8 0 0) calc(100% - 8px) calc(100% - 8px) / 40px 40px no-repeat,
    linear-gradient(#f4d96a 0 0) 50% 6px / 56px 10px no-repeat,
    linear-gradient(#f4a8c0 0 0) 50% calc(100% - 6px) / 64px 10px no-repeat,
    linear-gradient(#9fd4ef 0 0) 6px 50% / 10px 52px no-repeat,
    linear-gradient(#f4d96a 0 0) calc(100% - 6px) 45% / 10px 48px no-repeat,
    #fff;
  box-shadow: inset 0 0 0 2px #f7e3a2;
}

.event-frame--1::before {
  left: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f4a8c0;
}

.event-frame--1::after {
  content: none;
}

/* 枠バリエーション2 */
.event-frame--2 {
  background:
    linear-gradient(#8ec8e8 0 0) 10px 10px / 40px 40px no-repeat,
    linear-gradient(#f0b070 0 0) calc(100% - 12px) 12px / 34px 34px no-repeat,
    linear-gradient(#7ad7e8 0 0) calc(100% - 10px) calc(100% - 10px) / 38px 38px no-repeat,
    linear-gradient(#f4a8c0 0 0) 48% 8px / 52px 10px no-repeat,
    linear-gradient(#9fd4ef 0 0) 8px 52% / 10px 48px no-repeat,
    linear-gradient(#f4d96a 0 0) calc(100% - 8px) 42% / 10px 44px no-repeat,
    #fff;
  box-shadow: inset 0 0 0 2px #f7c4d4;
}

.event-frame--2::before {
  left: 8px;
  bottom: 8px;
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: #7ad7e8;
}

.event-frame--2::after {
  content: none;
}

/* 枠バリエーション3（星付き） */
.event-frame--3 {
  background:
    linear-gradient(#8ec8e8 0 0) 8px 12px / 38px 38px no-repeat,
    linear-gradient(#f0b070 0 0) calc(100% - 10px) 10px / 40px 40px no-repeat,
    linear-gradient(#7ad7e8 0 0) calc(100% - 8px) calc(100% - 8px) / 42px 42px no-repeat,
    linear-gradient(#f4d96a 0 0) 45% 6px / 60px 10px no-repeat,
    linear-gradient(#f4a8c0 0 0) 55% calc(100% - 6px) / 58px 10px no-repeat,
    linear-gradient(#9fd4ef 0 0) 6px 48% / 10px 50px no-repeat,
    #fff;
  box-shadow: inset 0 0 0 2px #bfe4f2;
}

.event-frame--3::before {
  left: 6px;
  bottom: 6px;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: #ffd24a;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.event-frame--3::after {
  left: 42%;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #f4a8c0;
}

/* レスポンシブ
---------------------------------------------------------------------------------*/
@media screen and (max-width: 860px) {
  .event-list {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .event-list .event-item:only-child {
    max-width: none;
  }
}

@media screen and (max-width: 750px) {
  .event-question {
    margin-bottom: 40px;
    padding: 0 16px;
  }

  .event-question__text {
    font-size: 1.8rem;
    line-height: 1.5;
  }

  .event-content {
    margin-bottom: 50px;
    padding: 0 16px;
  }

  .event-year + .event-year {
    margin-top: 48px;
  }

  .event-year__title {
    margin-bottom: 28px;
  }

  .event-year__title span {
    min-width: 0;
    width: min(200px, 100%);
    padding: 18px 28px 12px;
    font-size: 2.2rem;
  }

  .event-item__badge {
    top: -8px;
    left: 0;
    max-width: calc(100% - 12px);
    padding: 3px 10px;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
  }

  .event-item__title {
    font-size: 1.6rem;
    letter-spacing: 0.02em;
  }

  .event-frame {
    padding: 14px;
  }

  .event-frame__caption {
    font-size: clamp(2rem, 5.6vw, 2.8rem);
    -webkit-text-stroke-width: 0.12em;
  }

  .event-frame__caption--long {
    font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  }
}

@media screen and (max-width: 400px) {
  .event-item__badge {
    top: -6px;
    left: 0;
    max-width: calc(100% - 10px);
    padding: 3px 8px;
    font-size: 1.1rem;
    letter-spacing: 0;
  }

  .event-item__badge rt {
    font-size: 0.4em;
  }

  .event-item__title {
    font-size: 1.4rem;
    letter-spacing: 0;
    line-height: 1.6;
    word-break: break-all;
  }

  .event-item__title rt {
    font-size: 0.4em;
  }

  .event-year__title span {
    padding: 16px 22px 10px;
    font-size: 2rem;
  }
}

ruby {
  ruby-position: over;
}

.ruby-sdgs {
  ruby-align: center;
}

.ruby-sdgs rt {
  font-size: 0.45em;
  letter-spacing: 0;
}
