:root{
  --grad-left: #95c967;   /* 左色（指定色） */
  --grad-right: #de5f92;  /* 右色（指定色） */
  --hero-height: 100vh;
  --card-rotate: -8deg;   /* 白カードの回転角 */

  /* new: gradient height */
  --grad-height: clamp(10vh, 10vh, 18vh);
}
      /* ensure page top gradient (same as ja/index) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--grad-height); /* use variable */
  z-index: 130; /* below logo-card */
  pointer-events: none;
  background: linear-gradient(90deg, var(--grad-left) 0%, var(--grad-right) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  transition: height 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.35s ease;
  will-change: filter;
}


.logo-card{
  position: fixed;
  left: 50%;
  top: clamp(0px, calc(3vh - 50px), 70px);
  transform: translateX(-50%);
  z-index: 1110;
  box-sizing: border-box;
  width: min(78vw, 500px);
  max-width: calc(100% - 32px);
  /* layout as one row and vertically center items to avoid misaligned '|' */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.6vw, 18px);
  padding: clamp(10px, 2.0vw, 20px) clamp(12px, 3vw, 40px);
  transition: top 0.4s ease, width 0.4s ease, padding 0.4s ease, gap 0.2s ease;
}
.logo-card img{
  display: block;
  max-width: 100%;
  max-height: clamp(32px, 8vw, 100px);
  margin: 0;
  transition: max-height 0.4s ease;
  flex: 0 0 auto; /* keep logo size stable */
}
.logo-card img,
.logo-card svg {
  transition: max-height 0.3s ease;
}
.hero::after{
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: var(--grad-height); /* use variable */
  z-index: 100; /* グラデーションをロゴカードより前面に */
  pointer-events: none;

  /* 左右のカラーグラデーション */
  background: linear-gradient(90deg, var(--grad-left) 0%, var(--grad-right) 100%);

  /* 上から下へ不透明→透明のマスク（主要ブラウザ対応） */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  display: none;
  transition: height 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.35s ease;
  will-change: filter;
}
.logo-card::before{
  content: "";
  position: absolute;
  /* 上に100px、下に10pxはみ出す */
  inset: -100px 0 -10px 0;
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow:
    0 18px 50px rgba(0,0,0,0.25),
    0 6px 16px rgba(0,0,0,0.18),
    0 1px 2px rgba(0,0,0,0.15);
  transform: rotate(var(--card-rotate));
  transform-origin: 50% 50%;
  z-index: -1;             /* ロゴの後ろ（親の中で背面） */
  pointer-events: none;
  transition: inset 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.lang-switcher {
  position: absolute;
  bottom: 32px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 16px;
}
.lang-switcher a {
  margin: 0 8px;
  text-decoration: none;
  color: #333;
}
.lang-switcher a:hover {
  text-decoration: underline;
}

/*============
nav
=============*/
nav {
  display: block;
  position: fixed;
  top: 0;
  right: -300px;
  bottom: 0;
  width: 300px;
  background: #FFFFFF;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: all .5s;
  z-index: 999999;
  opacity: 0;
}
.open nav {
  right: 0;
  opacity: 1;
}
nav .inner {
  padding: 25px;
  padding-top: 70px;
}
nav .inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav .inner ul li {
  position: relative;
  margin: 0;
  border-bottom: 1px solid #333;
}
nav .inner ul li a {
  display: block;
  color: #333;
  font-size: 14px;
  padding: 1em;
  text-decoration: none;
  transition-duration: 0.2s;
}
nav .inner ul li a:hover {
  background: #d5cfc8;
}
@media screen and (max-width: 767px) {
  nav {
    right: -220px;
    width: 220px;
  }
  .linkartists{
    padding-left:0px;
  }
  .linkname,
  .linkseparate {
    display: none !important;
  }
}
/*============
.toggle_btn
=============*/
.toggle_btn {
  display: block;
  position: fixed;
  top: 35px;
  right: 18px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding-left: 10px;
  padding-right: 10px;
  transition: all .5s;
  cursor: pointer;
  z-index: 999999999999999999999;
}
.toggle_btn span {
  display: block;
  position: fixed;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #000000; /* default top of page is white, matches home */
  border-radius: 4px;
  transition: all .5s;
}

/* is-darkクラスが付いたら黒にする */
.toggle_btn.is-dark span {
  background-color: #000000;
}

.toggle_btn span:nth-child(1) {
  top: 4px;
}
.toggle_btn span:nth-child(2) {
  top: 14px;
}
.toggle_btn span:nth-child(3) {
  bottom: 4px;
}
.open .toggle_btn span {
  background-color: #000000;
}
.open .toggle_btn span:nth-child(1) {
  -webkit-transform: translateY(10px) rotate(-315deg);
  transform: translateY(10px) rotate(-315deg);
}
.open .toggle_btn span:nth-child(2) {
  opacity: 0;
}
.open .toggle_btn span:nth-child(3) {
  -webkit-transform: translateY(-10px) rotate(315deg);
  transform: translateY(-10px) rotate(315deg);
}
/*============
#mask
=============*/
#mask {
  display: none;
  transition: all .5s;
}
.open #mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .8;
  z-index: 7000;
  cursor: pointer;
}

/* Hero layout: image left, text right (artist main section only) */
header.hero[role="region"] {
  display: flex;
  align-items: stretch;
  gap: 0px;
  padding: 100px 20px;
  padding-left: 0px;
  margin: 60px auto 0;
  position: relative;    /* added so pseudo-element positions relative to hero */
  overflow: visible;     /* allow the oversized text to bleed out */
  z-index: 1;            /* ensure hero sits above the background text */
  width: 100vw;         /* ensure the hero spans the whole viewport */
  max-width: 100%;
  margin-left: 0;       /* remove any centering offset */
  padding-left: 0;      /* ensure no internal left padding */
  box-sizing: border-box;
}
.hero__image {
  position: relative; /* added so pseudo-element overlay can position correctly */
  flex: 0 0 48%;
  max-width: 48%;
  padding-top: 70px;
  margin-left: 0;
  padding-left: 0;
  box-sizing: border-box;
}
.hero__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: block;
  margin-left: 0;
  border-top-left-radius: 0;    /* remove rounding on left side */
  border-bottom-left-radius: 0; /* remove rounding on left side */

  /* stay fully opaque from 0% to 50%, then fade to fully transparent at 100% */
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgb(0, 0, 0) 65%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgb(0, 0, 0) 65%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Fallback overlay: transparent until 50%, then fade to background color at right edge.
   Replace rgba(255,255,255,1) with your page background color if it's not white. */
/* .hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 6px;
  background: linear-gradient(to right,
              rgba(255,255,255,0) 0%,
              rgba(255,255,255,0) 50%,
              rgba(255,255,255,1) 100%);
  mix-blend-mode: normal;
}*/
.hero__info {
  flex: 1 1 52%;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: top;
}
.hero__name {
    font-family: noto-sans-cjk-jp, sans-serif;
font-weight: 700;
font-style: normal;
  font-size: 70px;
  margin: 0 0 0px;
  letter-spacing: .02em;

  /* prevent wrapping, ensure ellipsis if overflow */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* keep inline behavior */
  display: inline-block;
  max-width: 100%;
}
.hero__romaji {
    font-family: futura-100-latin-ext, sans-serif;
font-weight: 600;
font-style: normal;
  font-size: 33px;
  color: #606060;
  margin-bottom: 0px;
  text-transform: uppercase;
}
.hero__meta {
    font-family: noto-sans-cjk-jp, sans-serif;
font-weight: 700;
font-style: normal;
  font-size: 18px;
}
.last-name {
  display: inline-block;
  margin-left: 8px;
  color: #5b2a2a;
}
.last-romaji {
  display: inline-block;
  margin-left: -1px;
  color: #2b2b2b;
}
.admin-role {
  text-transform: uppercase;
  font-weight: 600;
  color: #5b2a2a;
  font-family: futura-100-latin-ext, sans-serif;
font-weight: 600;
font-style: normal;
}
.week {
  font-family: futura-100-latin-ext, sans-serif;
font-weight: 600;
font-style: normal;
}
.day {
  font-family: futura-100-latin-ext, sans-serif;
font-weight: 600;
font-style: normal;
font-size: 25px;
padding-top:20px;
}
.date{
    color: #ae5353;
}
.week {
    color: #767676;
    font-size: 20px;
}
.event{
    font-family: noto-sans-cjk-jp, sans-serif;
font-weight: 700;
font-style: normal;
    color: #2b2b2b;
    text-decoration: none;
    cursor:default;
}
.moreinfo{
    font-family: futura-100-latin-ext, sans-serif;
font-weight: 600;
font-style: normal;
    color: #767676;
    font-size: 16px;
    letter-spacing: 4px;
    cursor: pointer;
    text-decoration: underline;
}
.hero__description {
    font-family: noto-sans-cjk-jp, sans-serif;
font-weight: 300;
font-style: normal;
  font-size: 14px;
  line-height: 1.8;
  color: #2b2b2b;
}
.hero__meta div { margin-bottom: 6px; }
.hero__description {
  font-size: 14px;
  line-height: 1.8;
  color: #2b2b2b;
}

/* Background oversized roman name — centered in the viewport */


/* small-screen tweak */
@media (max-width: 800px) {
  .hero::before {
    top: 3vh;
    font-size: clamp(80px, 28vw, 200px);
  }
}

/* make sure hero children are above the background text */
.hero__image,
.hero__info {
  position: relative;
  z-index: 2; /* raised above hero and fixed background */
}

/* tweak for smaller screens so the background doesn't overwhelm */

@media (max-width: 800px) {
  .hero {
    flex-direction: column;
    padding: 0px 0px;
    margin-top: 4px;
  }
  .hero__image, .hero__image img {
    max-width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgb(0, 0, 0) 65%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgb(0, 0, 0) 65%, rgba(0, 0, 0, 0) 100%);
  }
  .hero__name { font-size: 50px; }
}
.linkartists{
    display: none;
    font-family: futura-100-latin-ext, sans-serif;
font-weight: 600;
font-style: normal;
    font-size: 16px;
    color: #2b2b2b;
    padding-left: 50px;
    /* prevent wrapping when shown */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.linkname {
    display: none;
    font-family: futura-100-latin-ext, sans-serif;
font-weight: 400;
font-style: normal;
    font-size: 16px;
    color: #2b2b2b;
    padding-left: 1.5px;
    /* ensure the name never breaks to a new line */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.linkseparate {
    display: none;
    font-family: futura-100-latin-ext, sans-serif;
font-weight: 600;
font-style: normal;
    font-size: 16px;
    color: #2b2b2b;
    padding-left: 1.5px;
    white-space: nowrap;
    min-width: 0;
}

/* also ensure the large hero name never wraps */
.hero__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* keep inline behavior */
    display: inline-block;
    max-width: 100%;
}
/* Scrolled state: match site-wide behavior (shrunken logo + adjusted background card)
         and make top gradient height equal to half the header (hero) height */
      body.scrolled {
        --card-rotate: 0deg;
        /* set gradient height to half of the hero height so it won't grow too large */
        --grad-height: 50px;
      }

      body.scrolled .logo-card {
text-align: left;
  justify-content: left;
        width: 100%;
        max-width: 100%;
        top: -3px;
        padding: clamp(10px, 2.2vw, 28px) clamp(18px, 3vw, 40px);
        padding-bottom: 0px;
      }

      body.scrolled .logo-card img {
        display: inline-block;
        max-height: clamp(28px, 50px, 60px);
      }

      body.scrolled .logo-card img,
      body.scrolled .logo-card svg {
        transition: max-height 0.3s ease;
      }
body.scrolled .linkartists{
display: inline-block;
}
     body.scrolled .linkname{
display: inline-block;
}
     body.scrolled .linkseparate{
display: inline-block;
}
      /* hero overlay should follow the variable --grad-height (already used elsewhere) */
      body.scrolled .hero::after {
        height: var(--grad-height);
      }

      /* Ensure overlay / hero texts can be interacted with and prevent transforms while selecting */
.overlay {
  pointer-events: auto; /* allow selecting text if this overlay exists on this page */
}

/* Prevent hover/transform during selection */
.user-selecting .hero__image img,
.user-selecting .gallery-cell .gallery-item,
.user-selecting .hero__image img:hover {
  transform: none !important;
  transition: none !important;
}

/* Add hue-rotate animation (CSS-driven) */
@keyframes hueShift {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}

/* Apply animation to the gradient pseudo-elements */
body::before,
.hero::after {
  animation: hueShift 20s linear infinite;
  transform: translateZ(0); /* promote to own layer */
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  body::before,
  .hero::after {
    animation: none !important;
  }
}