:root {
  --shell-header: 68px;
  --shell-navy: #083a53;
  --shell-teal: #087c72;
  --shell-yellow: #ffd746
}

.shell-page {
  padding-top: var(--shell-header);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden
}

/* 公開用トップページはヘッダーを表示しないため、確保済みの高さを解除 */
.shell-page.public-home {
  padding-top: 0
}

.shell-page header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: var(--shell-header);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(8, 58, 83, .15);
  box-shadow: 0 3px 18px #00000014
}

.shell-page header nav {
  width: min(100% - 24px, 1240px);
  height: 100%;
  margin: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent
}

.shell-page .drawer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%
}

.shell-page #logo {
  display: flex;
  align-items: center;
  width: min(67vw, 270px);
  height: 100%;
  margin: 0;
  padding: 0
}

.shell-page #logo a,
.shell-page #logo img {
  display: block;
  width: 100%;
  height: auto
}

.shell-page .Toggle {
  position: relative;
  display: grid;
  align-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: var(--shell-navy);
  cursor: pointer
}

.shell-page .Toggle span {
  position: static;
  display: block;
  width: 100%;
  height: 3px;
  margin: 0;
  border-radius: 2px;
  background: #fff;
  transition: .25s
}

.shell-page .Toggle.active span:first-child {
  transform: translateY(9px) rotate(45deg)
}

.shell-page .Toggle.active span:nth-child(2) {
  opacity: 0
}

.shell-page .Toggle.active span:last-child {
  transform: translateY(-9px) rotate(-45deg)
}

.shell-page .menu {
  position: fixed;
  inset: var(--shell-header) 0 auto;
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  background: var(--shell-navy);
  transition: .2s
}

.shell-page .menu.open {
  visibility: visible;
  opacity: 1;
  transform: none
}

.shell-page .menu ul {
  margin: 0;
  padding: 12px 20px 24px;
  list-style: none
}

.shell-page .menu li {
  border-bottom: 1px solid #ffffff33
}

.shell-page .menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none
}

.shell-page.nav-open {
  overflow: hidden
}

.shell-page .second {
  background-image: url("../img/bg_sp.png");
  background-attachment: scroll;
  background-position: center top;
  background-size: cover
}

.shell-page #page-top {
  width: 76px;
  height: auto;
  right: 12px;
  bottom: 12px
}

.shell-page #page-top:after {
  content: "関連サイト";
  display: block;
  padding: 3px;
  background: var(--shell-navy);
  color: #fff;
  font-size: 12px;
  text-align: center
}

.shell-page a:focus-visible,
.shell-page [role="button"]:focus-visible {
  outline: 4px solid #ffbf00;
  outline-offset: 3px
}

@media(min-width:1024px) {
  :root {
    --shell-header: 84px
  }

  .shell-page.detail-page header nav {
    width: min(100% - 32px, 1480px)
  }

  .shell-page .drawer {
    width: auto
  }

  .shell-page #logo {
    width: 310px
  }

  .shell-page .Toggle {
    display: none
  }

  .shell-page.detail-page .menu {
    position: static;
    display: block;
    min-width: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: transparent
  }

  .shell-page.detail-page .menu ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 1.4vw, 24px);
    padding: 0
  }

  .shell-page .menu li {
    border: 0
  }

  .shell-page .menu a {
    min-height: 48px;
    padding: 0;
    color: var(--shell-navy) !important;
    font-size: clamp(14px, 1.05vw, 16px);
    white-space: nowrap
  }

  .shell-page .second {
    background-image: url("../img/bg.webp")
  }
}

@media(prefers-reduced-motion:reduce) {

  .shell-page .Toggle span,
  .shell-page .menu {
    transition: none
  }
}

/* 共通ヘッダーロゴの視認性を高める */
.shell-page #logo {
  width: min(76vw, 285px)
}

@media(min-width:1024px) {
  .shell-page #logo {
    width: 380px
  }
}

/* 詳細ページでは旧CSSの max-width:40% を解除してロゴ画像を実寸表示する */
.shell-page.detail-page #logo img {
  width: 100%;
  max-width: none
}

/* event-001.htmlのトップ画像はPCだけ現在サイズの約70%で中央表示 */
@media(min-width:768px) {
  .shell-page .ive01 img.event-001-top-image {
    width: 70%;
    height: auto;
    margin-right: auto;
    margin-left: auto
  }
}

/* イベント3ページのカードはスマートフォンのみ1カラム表示 */
@media(max-width:767px) {

  .event-list-page #cardlayout-wrap>.card-list,
  .event-list-page #cardlayout-wrap>.card-list03 {
    width: 100%;
    max-width: 560px;
    margin-right: auto;
    margin-left: auto
  }

  .event-list-page #cardlayout-wrap::before,
  .event-list-page #cardlayout-wrap::after {
    display: none
  }

  .shell-page.detail-page #bn_area_inner {
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 560px
  }

  .shell-page.detail-page .bn_flex_02 {
    width: 100%;
    max-width: 560px
  }

  .shell-page.detail-page .bn_flex_02>.c-bnr {
    width: 100%;
    margin-right: auto;
    margin-left: auto
  }

  .shell-page.detail-page .bn_flex_02>.c-bnr img {
    display: block;
    width: 100%;
    height: auto
  }
}

/* スマートフォンメニューアイコンを48px内で均等配置する */
@media(max-width:1023px) {
  .shell-page .Toggle {
    position: relative;
    display: block;
    box-sizing: border-box;
    flex: 0 0 48px;
    overflow: hidden
  }

  .shell-page .Toggle span {
    position: absolute !important;
    left: 11px !important;
    right: 11px !important;
    width: auto !important;
    height: 3px !important;
    margin: 0 !important;
    transform: none !important;
    transform-origin: center
  }

  .shell-page .Toggle span:nth-child(1) {
    top: 13px !important
  }

  .shell-page .Toggle span:nth-child(2) {
    top: 22.5px !important
  }

  .shell-page .Toggle span:nth-child(3) {
    top: 32px !important
  }

  .shell-page .Toggle.active span:nth-child(1) {
    top: 22.5px !important;
    transform: rotate(45deg) !important
  }

  .shell-page .Toggle.active span:nth-child(2) {
    opacity: 0 !important
  }

  .shell-page .Toggle.active span:nth-child(3) {
    top: 22.5px !important;
    transform: rotate(-45deg) !important
  }
}

/* 全ページ共通メニュー：カテゴリ別ホバーと関連サイトロゴ */
.shell-page .menu .nav-related-site a {
  justify-content: center;
  padding: 5px;
  background: transparent !important
}

.shell-page .menu .nav-related-site img {
  display: block;
  width: 64px;
  height: 64px;
  max-width: none;
  object-fit: contain;
  transition: transform .18s ease, filter .18s ease
}

.shell-page .menu .nav-related-site a:hover img {
  transform: scale(1.04);
  filter: brightness(1.05)
}

@media(min-width:1024px) {
  .shell-page .menu a {
    padding: 0 10px;
    border-bottom: 4px solid transparent;
    border-radius: 6px;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease
  }

  .shell-page .menu li:nth-child(1) a:hover {
    color: #087c72 !important;
    background: #e8f6f4;
    border-bottom-color: #087c72
  }

  .shell-page .menu li:nth-child(2) a:hover {
    color: #315f8a !important;
    background: #edf3fa;
    border-bottom-color: #477aa0
  }

  .shell-page .menu li:nth-child(3) a:hover {
    color: #a65108 !important;
    background: #fff2e5;
    border-bottom-color: #e18a20
  }

  .shell-page .menu li:nth-child(4) a:hover {
    color: #624889 !important;
    background: #f3eef9;
    border-bottom-color: #735a9b
  }

  .shell-page.detail-page .menu .nav-related-site a {
    min-height: 64px;
    padding: 3px 0;
    overflow: hidden;
    border-bottom-color: transparent
  }

  .shell-page .menu .nav-related-site a:hover {
    background: transparent;
    border-bottom-color: transparent
  }

  .shell-page.detail-page .menu .nav-related-site img {
    width: 64px;
    height: 64px;
    max-width: 64px
  }
}

@media(prefers-reduced-motion:reduce) {

  .shell-page .menu a,
  .shell-page .menu .nav-related-site img {
    transition: none
  }
}

/* 詳細4ページ：既存レイアウトを保ったイベント感のある装飾 */
.shell-page.detail-page .second {
  isolation: isolate;
  overflow: hidden
}

/* 詳細4ページ：主催・協力・お問い合わせ欄の本文サイズ */
.shell-page.detail-page #footer_area_inner .tbl-r02 td {
  font-size: 18px
}

.shell-page.detail-page .second::after {
  content: "＋  BUILD  ＋";
  position: absolute;
  z-index: -1;
  top: 18px;
  right: 3vw;
  color: #087c72;
  font-size: clamp(34px, 5vw, 70px);
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  opacity: .065;
  transform: rotate(-4deg);
  pointer-events: none
}

.shell-page.detail-page .Ttl-main {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  color: #083a53;
  line-height: 1.45;
  padding: 16px 30px 20px
}

.shell-page.detail-page .Ttl-main::before {
  content: "DISCOVER!";
  display: block;
  margin-bottom: 3px;
  color: #087c72;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1.2
}

.shell-page.detail-page .Ttl-main::after {
  content: "";
  display: block;
  width: 74px;
  height: 6px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd746 0 58%, #e18a20 58%);
  transform: skewX(-20deg)
}

.shell-page.detail-page .card-list,
.shell-page.detail-page .card-list03 {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  border-top: 6px solid #087c72;
  box-shadow: 0 10px 26px rgba(8, 58, 83, .16);
  transition: transform .2s ease, box-shadow .2s ease
}

.shell-page.detail-page #cardlayout-wrap .card-list:nth-child(4n+2),
.shell-page.detail-page #cardlayout-wrap .card-list03:nth-child(4n+2) {
  border-top-color: #477aa0
}

.shell-page.detail-page #cardlayout-wrap .card-list:nth-child(4n+3),
.shell-page.detail-page #cardlayout-wrap .card-list03:nth-child(4n+3) {
  border-top-color: #e18a20
}

.shell-page.detail-page #cardlayout-wrap .card-list:nth-child(4n),
.shell-page.detail-page #cardlayout-wrap .card-list03:nth-child(4n) {
  border-top-color: #735a9b
}

.shell-page.detail-page .card-list::before,
.shell-page.detail-page .card-list03::before {
  content: "TRY!";
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: #087c72;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  box-shadow: 2px 2px 0 #083a53;
  transform: rotate(-2deg)
}

.shell-page.detail-page #cardlayout-wrap .card-list:nth-child(4n+2)::before,
.shell-page.detail-page #cardlayout-wrap .card-list03:nth-child(4n+2)::before {
  content: "CHECK!";
  background: #477aa0
}

.shell-page.detail-page #cardlayout-wrap .card-list:nth-child(4n+3)::before,
.shell-page.detail-page #cardlayout-wrap .card-list03:nth-child(4n+3)::before {
  content: "WOW!";
  background: #d97816
}

.shell-page.detail-page #cardlayout-wrap .card-list:nth-child(4n)::before,
.shell-page.detail-page #cardlayout-wrap .card-list03:nth-child(4n)::before {
  content: "CHALLENGE!";
  background: #735a9b
}

.shell-page.detail-page .card-figure {
  overflow: hidden
}

.shell-page.detail-page .card-figure img {
  transition: transform .25s ease
}

.shell-page.detail-page .card__f {
  position: relative;
  box-shadow: 0 12px 30px rgba(8, 58, 83, .14)
}

.shell-page.detail-page .card__f::after {
  content: "PICK UP!";
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  background: #ffd746;
  color: #083a53;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 2px 2px 0 #083a53;
  transform: rotate(1.5deg)
}

.shell-page.detail-page #bn_area {
  position: relative;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(240, 248, 247, .96))
}

.shell-page.detail-page .c-bnr a {
  display: block;
  transition: transform .18s ease, filter .18s ease
}

/* MAPページは案内サインとして見出しと地図を強調 */
.shell-page.detail-page #contents02_area {
  overflow: hidden
}

.shell-page.detail-page .maplist_contents_title {
  position: relative
}

.shell-page.detail-page .maplist_contents_title::after {
  content: "CHECK THE MAP!";
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: #ffd746;
  color: #083a53;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: 3px 3px 0 #083a53;
  transform: rotate(-1deg)
}

.shell-page.detail-page .inner_main {
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24)
}

.shell-page.detail-page .map-event-schedule {
  margin: 32px auto 0
}

.shell-page.detail-page .map-event-schedule img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #fff;
  border-radius: 16px;
  box-sizing: border-box;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24)
}

@media(hover:hover) and (pointer:fine) {

  .shell-page.detail-page .card-list:hover,
  .shell-page.detail-page .card-list03:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(8, 58, 83, .22)
  }

  .shell-page.detail-page .card-list:hover .card-figure img,
  .shell-page.detail-page .card-list03:hover .card-figure img {
    transform: scale(1.025)
  }

  .shell-page.detail-page .c-bnr a:hover {
    transform: translateY(-3px);
    filter: brightness(1.03)
  }
}

@media(max-width:767px) {
  .shell-page.detail-page .second::after {
    top: 12px;
    font-size: 34px
  }

  .shell-page.detail-page .Ttl-main {
    padding: 10px 8px 16px
  }

  .shell-page.detail-page .Ttl-main::before {
    font-size: 11px
  }

  .shell-page.detail-page .card-list::before,
  .shell-page.detail-page .card-list03::before {
    top: 10px;
    left: 10px;
    font-size: 11px
  }

  .shell-page.detail-page .card__f::after {
    top: 10px;
    right: 10px;
    font-size: 11px
  }

  .shell-page.detail-page .inner_main {
    border-width: 4px;
    border-radius: 10px
  }

  .shell-page.detail-page .map-event-schedule {
    margin-top: 20px
  }

  .shell-page.detail-page .map-event-schedule img {
    border-width: 4px;
    border-radius: 10px
  }
}

@media(prefers-reduced-motion:reduce) {

  .shell-page.detail-page .card-list,
  .shell-page.detail-page .card-list03,
  .shell-page.detail-page .card-figure img,
  .shell-page.detail-page .c-bnr a {
    transition: none
  }
}

/* 5ページ共通トーンの軽量モーション（詳細4ページ） */
@keyframes shellContentReveal {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes shellMarkerDraw {
  from {
    transform: scaleX(0) skewX(-20deg)
  }

  to {
    transform: scaleX(1) skewX(-20deg)
  }
}

@keyframes shellStickerPop {
  0% {
    opacity: 0;
    transform: translateY(7px) rotate(-4deg)
  }

  70% {
    opacity: 1;
    transform: translateY(-1px) rotate(-1deg)
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotate(-2deg)
  }
}

@keyframes shellMapGlow {

  0%,
  100% {
    box-shadow: 0 16px 38px rgba(0, 0, 0, .24)
  }

  50% {
    box-shadow: 0 18px 44px rgba(255, 215, 70, .28)
  }
}

.shell-page.detail-page .Ttl-main::after {
  transform-origin: center;
  animation: shellMarkerDraw .55s .15s ease-out both
}

.shell-page.detail-page .card-list::before,
.shell-page.detail-page .card-list03::before {
  animation: shellStickerPop .45s ease-out both
}

.shell-page.detail-page #cardlayout-wrap .card-list:nth-child(2)::before,
.shell-page.detail-page #cardlayout-wrap .card-list03:nth-child(2)::before {
  animation-delay: .07s
}

.shell-page.detail-page #cardlayout-wrap .card-list:nth-child(3)::before,
.shell-page.detail-page #cardlayout-wrap .card-list03:nth-child(3)::before {
  animation-delay: .14s
}

.shell-page.detail-page #cardlayout-wrap .card-list:nth-child(4)::before,
.shell-page.detail-page #cardlayout-wrap .card-list03:nth-child(4)::before {
  animation-delay: .21s
}

.shell-page.detail-page .ive01 img,
.shell-page.detail-page .inner_main img,
.shell-page.detail-page .map-event-schedule img {
  animation: shellContentReveal .75s ease-out both
}

@media(hover:hover) and (pointer:fine) {
  .shell-page.detail-page .map-event-schedule img {
    animation: shellContentReveal .75s ease-out both, shellMapGlow 5s 1s ease-in-out infinite
  }
}

@media(prefers-reduced-motion:reduce) {

  .shell-page.detail-page .Ttl-main::after,
  .shell-page.detail-page .card-list::before,
  .shell-page.detail-page .card-list03::before,
  .shell-page.detail-page .ive01 img,
  .shell-page.detail-page .inner_main img,
  .shell-page.detail-page .map-event-schedule img {
    animation: none
  }
}

/* イベントカードの説明本文：左寄せと自然な日本語改行 */
.shell-page.event-list-page .card-text-tax,
.shell-page.event-list-page .card-text-tax03 {
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  font-size: clamp(14px, .95vw, 15px);
  line-height: 1.65;
  letter-spacing: -.02em;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap: pretty;
}

.shell-page.event-list-page .card-text-tax03 {
  font-size: 18px;
}

.shell-page.event-list-page .card-text-tax br,
.shell-page.event-list-page .card-text-tax03 br {
  display: none
}

@supports(word-break:auto-phrase) {

  .shell-page.event-list-page .card-text-tax,
  .shell-page.event-list-page .card-text-tax03 {
    word-break: auto-phrase
  }
}

/* 参加申込アコーディオンメニュー */
.shell-page .menu .nav-entry details {
  width: 100%
}

.shell-page .menu .nav-entry summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
  cursor: pointer
}

.shell-page .menu .nav-entry summary::-webkit-details-marker {
  display: none
}

.shell-page .menu .nav-entry summary::after {
  content: "+";
  margin-left: 12px;
  font-size: 20px;
  line-height: 1
}

.shell-page .menu .nav-entry details[open]>summary::after {
  content: "-"
}

.shell-page .menu .nav-entry-submenu {
  margin: 0;
  padding: 0 0 10px 14px;
  background: #ffffff0d;
  list-style: none
}

.shell-page .menu .nav-entry-submenu li {
  border-bottom: 1px solid #ffffff24
}

.shell-page .menu .nav-entry-submenu a {
  min-height: 46px;
  padding: 0 10px;
  color: #fff !important;
  font-size: 14px;
  white-space: normal
}

@media(max-width:1023px) {
  .shell-page .menu {
    max-height: calc(100vh - var(--shell-header));
    max-height: calc(100dvh - var(--shell-header));
    overflow-y: auto;
    overscroll-behavior: contain
  }

  .shell-page .menu>ul {
    display: block !important;
    height: auto !important;
    min-height: 0;
    margin: 0;
    padding: 12px 20px 24px
  }

  .shell-page .menu>ul>li {
    display: block;
    width: 100%
  }

  .shell-page .menu a {
    width: 100%;
    box-sizing: border-box;
    padding: 0 !important;
    border-top: 0 !important
  }

  .shell-page .menu .nav-entry-submenu {
    display: block;
    height: auto !important
  }

  .shell-page .menu .nav-entry-submenu a {
    padding: 0 10px !important
  }
}

@media(min-width:1024px) {
  .shell-page .menu {
    align-self: stretch;
    height: 100%
  }

  .shell-page .menu>ul {
    align-items: stretch;
    height: 100% !important
  }

  .shell-page .menu>ul>li {
    display: flex;
    align-items: center;
    height: 100%
  }

  .shell-page .menu>ul>li>a {
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box
  }

  .shell-page .menu>ul>li>details {
    height: 100%
  }

  .shell-page .menu>ul>li>details>summary {
    height: 100%;
    box-sizing: border-box
  }

  .shell-page .menu>ul>li:nth-child(4)>a {
    width: 118px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25
  }

  .shell-page .menu .nav-entry {
    position: relative
  }

  .shell-page .menu .nav-entry summary {
    min-height: 48px;
    padding: 0 10px;
    border-bottom: 4px solid transparent;
    border-radius: 6px;
    color: var(--shell-navy);
    font-size: clamp(14px, 1.05vw, 16px);
    white-space: nowrap;
    transition: color .18s, background-color .18s, border-color .18s
  }

  .shell-page .menu .nav-entry summary::after {
    content: "▾";
    margin-left: 6px;
    font-size: 12px
  }

  .shell-page .menu .nav-entry details[open]>summary::after {
    content: "▴"
  }

  .shell-page .menu .nav-entry:hover summary,
  .shell-page .menu .nav-entry:focus-within summary {
    color: #806000;
    background: #fff8d9;
    border-bottom-color: #d6aa00
  }

  .shell-page .menu .nav-entry-submenu {
    display: none;
    position: absolute;
    z-index: 1100;
    top: 100%;
    right: 0;
    width: 250px;
    height: auto !important;
    min-height: 0;
    padding: 8px;
    border: 1px solid #d8e0df;
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 12px 30px #0003
  }

  .shell-page .menu .nav-entry:hover .nav-entry-submenu,
  .shell-page .menu .nav-entry:focus-within .nav-entry-submenu,
  .shell-page .menu .nav-entry details[open]>.nav-entry-submenu {
    display: block;
    height: auto !important
  }

  .shell-page .menu .nav-entry-submenu li {
    border: 0
  }

  .shell-page .menu .nav-entry-submenu a {
    min-height: 44px;
    margin-bottom: 4px;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: #f2f6f5;
    color: var(--shell-navy) !important;
    font-size: 14px;
    white-space: normal
  }

  .shell-page .menu .nav-entry-submenu li:nth-child(1) a {
    background: #e2f4f1;
    color: #075f58 !important
  }

  .shell-page .menu .nav-entry-submenu li:nth-child(2) a {
    background: #e7f0fa;
    color: #294f73 !important
  }

  .shell-page .menu .nav-entry-submenu li:nth-child(3) a {
    margin-bottom: 0;
    background: #fff1d6;
    color: #7b4808 !important
  }

  .shell-page .menu .nav-entry-submenu li:nth-child(1) a:hover {
    background: #ccebe6
  }

  .shell-page .menu .nav-entry-submenu li:nth-child(2) a:hover {
    background: #d3e4f5
  }

  .shell-page .menu .nav-entry-submenu li:nth-child(3) a:hover {
    background: #ffe2ad
  }
}

@media(max-width:359px) {

  .shell-page.event-list-page .card-text-tax,
  .shell-page.event-list-page .card-text-tax03 {
    font-size: 14px;
    letter-spacing: -.035em
  }
}

/* カード見出しを説明本文より明確に大きくする */
.shell-page.event-list-page .card-list .card-title,
.shell-page.event-list-page .card-list03 .card-title04 {
  font-size: clamp(19px, 1.4vw, 22px);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -.025em;
  word-break: normal;
  line-break: strict;
  text-wrap: balance;
}

.shell-page.event-list-page .card__f .card-title03,
.shell-page.event-list-page .card__f .card-title06 {
  font-weight: 800;
}

.shell-page.event-list-page .card-duration {
  display: block;
  margin-top: .35em;
  font-size: .94em;
  letter-spacing: -.025em;
  text-wrap: balance
}

@supports(word-break:auto-phrase) {

  .shell-page.event-list-page .card-list .card-title,
  .shell-page.event-list-page .card-list03 .card-title04 {
    word-break: auto-phrase
  }
}

/* 詳細4ページ下部：MORE EVENTSテキストカード */
.shell-page .shell-categories {
  padding: clamp(58px, 7vw, 88px) 0;
  background: #083a53;
  color: #fff
}

.shell-page .shell-categories-inner {
  width: min(100% - 32px, 1160px);
  margin: auto
}

.shell-page .shell-eyebrow {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .16em
}

.shell-page .shell-eyebrow::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-top: 7px;
  border-radius: 99px;
  background: #ffd746;
  transform: skewX(-20deg)
}

.shell-page .shell-categories h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.3;
  font-weight: 900
}

.shell-page .shell-categories .category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px
}

.shell-page .shell-categories .category-grid a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  padding: 52px 22px 22px;
  border: 2px solid #ffffff52;
  border-radius: 12px;
  background: #0d615f;
  color: #fff;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 8px 22px #001a2430;
  transition: transform .18s ease, background-color .18s ease
}

.shell-page .shell-categories .category-grid a::before {
  content: attr(data-label);
  position: absolute;
  top: 17px;
  left: 20px;
  padding: 4px 9px;
  border: 1px solid #ffffff99;
  border-radius: 4px;
  background: #ffffff1f;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .12em;
  transform: rotate(-1deg)
}

.shell-page .shell-categories .category-grid a::after {
  content: "→";
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 20px;
  font-weight: 900;
  transition: transform .18s ease
}

.shell-page .shell-categories .category-grid strong {
  padding-right: 26px;
  font-size: 20px;
  line-height: 1.4
}

.shell-page .shell-categories .category-grid span {
  margin-top: 7px;
  padding-right: 26px;
  font-size: 18px;
  line-height: 1.5
}

.shell-page .shell-categories .category-grid a:nth-child(2) {
  background: #315a70
}

.shell-page .shell-categories .category-grid a:nth-child(3) {
  background: #66553a
}

.shell-page .shell-categories .category-grid a:nth-child(4) {
  background: #68527e
}

.shell-page .shell-categories .category-grid a:nth-child(5) {
  background: #7a5524
}

.shell-page .shell-categories .category-grid a:nth-child(6) {
  background: #2755a2
}

@media(hover:hover) and (pointer:fine) {
  .shell-page .shell-categories .category-grid a:hover {
    transform: translateY(-4px);
    filter: brightness(1.08)
  }

  .shell-page .shell-categories .category-grid a:hover::after {
    transform: translateX(4px)
  }
}

@media(max-width:767px) {
  .shell-page .shell-categories-inner {
    width: min(100% - 28px, 1160px)
  }

  .shell-page .shell-categories .category-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px
  }

  .shell-page .shell-categories .category-grid a {
    min-height: 132px;
    padding: 48px 18px 18px
  }

  .shell-page .shell-categories .category-grid a::before {
    top: 15px;
    left: 17px;
    font-size: 12px
  }
}

@media(prefers-reduced-motion:reduce) {

  .shell-page .shell-categories .category-grid a,
  .shell-page .shell-categories .category-grid a::after {
    transition: none
  }
}

.shell-page.event-list-page .card-text-tax03 {
  font-size: 18px;
  line-height: 1.8;
}

.card-text-tax03 p {
  margin: 0 0 1em;
}

.card-text-tax03 .stamp-lead {
  margin-bottom: 1.4em;
}

.card-text-tax03 .stamp-heading {
  margin-bottom: .5em;
}

.card-text-tax03 .stamp-note {
  margin-top: 1.4em;
  font-size: .9em;
  line-height: 1.7;
}

.stamp-rally-cont {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.stamp-note {
  margin-top: 1.4em;
  font-size: .9em;
  line-height: 1.7;
}

.stamp-note p {
  margin: 0 0 .5em;
}

.stamp-note p:last-child {
  margin-bottom: 0;
}

#cardlayout-wrap04 .card__f {
  padding-bottom: 50px;
}
