:root{
  --bg: #111;
  --text: #eee;
  --muted: rgba(238,238,238,.7);
  --accent: #d85558;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP','Hiragino Kaku Gothic Pro','Meiryo',sans-serif;
  line-height: 1.8;
}

a{
  color: inherit;
  text-decoration: underline;
}
a:hover{
  opacity: .8;
  text-decoration: none;
}

/* ===== emergence: link color (no blue) ===== */
#hero a,
.section a,
.hero-card a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.35);
  text-underline-offset: .18em;
}
#hero a:hover,
.section a:hover,
.hero-card a:hover {
  opacity: .85;
  text-decoration-color: rgba(255,255,255,.7);
}

.hero{
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 48px 16px 80px;
}
.hero-card{
  width: min(78vw, 360px);
  aspect-ratio: 2 / 3;
  background: #151515;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  will-change: transform, opacity;
}
.hero-date{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-label{
  font-size: 11px;
  letter-spacing: .18em;
  opacity: .55;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.hero-title{
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.1;
  white-space: nowrap;
}
.hero-title .en{
  display: inline;
  font-size: 14px;
  letter-spacing: .18em;
  color: var(--muted);
  margin-top: 0;
  opacity: .7;
  font-weight: 400;
}
.hero-catch{ margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.hero-meta{
  margin-top: auto;
  font-size: 13px;
  color: var(--muted);
}
.hero-meta div{ display: flex; gap: 12px; }
.hero-meta dt{ min-width: 48px; }
.hero-meta dd{ margin: 0; }

.scroll-hint{
  position: absolute;
  bottom: 24px;
  font-size: 12px;
  letter-spacing: .3em;
  opacity: .5;
}

.content{
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 80px;
}
.section{ padding: 64px 0; border-top: 1px solid rgba(255,255,255,.06); }
.section h2{ margin: 0 0 16px; font-size: 20px; letter-spacing: .08em; }
.info-list div{ display: flex; gap: 16px; margin: 0 0 10px; }
.info-list dt{ min-width: 72px; color: var(--muted); }
.info-list dd{ margin: 0; }
.members{ list-style: none; padding: 0; margin: 0; }
.members li{ margin: 0 0 8px; }

.footer{
  padding: 32px 16px 48px;
  text-align: center;
  color: var(--muted);
}

/* ===== emergence: responsive map ===== */
.map-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 900px){
  .hero-card{ width: 420px; padding: 36px 32px; }
  .hero-title{ font-size: 34px; }
}

/* ===== PC layout ===== */
@media (min-width: 769px) {
  /* hero two columns */
  header.hero,
  #hero.hero {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 48px;
    align-items: center;
    padding: 96px 24px;
  }

  /* keep card look on PC */
  .hero-card,
  #heroCard {
    max-width: 520px;
  }

  /* right visual placeholder */
  .hero-visual {
    min-height: 560px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
    position: relative;
    overflow: hidden;
  }
  .hero-visual::before{
    content:"";
    position:absolute;
    inset:-40px;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 55%),
                radial-gradient(circle at 70% 60%, rgba(255,255,255,.05), transparent 55%);
    filter: blur(0px);
    opacity:.9;
  }

  /* title descender fix */
  .hero-title {
    line-height: 1.12;
    padding-bottom: .10em;
    overflow: visible;
  }
  .hero-card,
  #heroCard {
    overflow: visible; /* if card had hidden, prevent cutting descenders */
  }

  /* sections width */
  .section {
    max-width: 1040px;
    margin: 0 auto;
    padding: 96px 24px;
  }
}
@media (min-width: 769px){
  .hero-label{ font-size: 12px; }
}

@media (max-width: 768px) {
  .hero-card,
  #heroCard {
    border: none;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }
}

.slash{
  opacity: .6;
  margin: 0 .2em;
}

@media (max-width: 768px){

  /* 全体の文字サイズ基準を少し下げる */
  .hero-card{
    padding: 28px 22px;
  }

  /* hero 全体を縦積みに統一 */
  .hero-card{
    display: flex;
    flex-direction: column;
  }

  /* Project（最上段） */
  .hero-project{
    font-size: 14px;
    letter-spacing: .06em;
    opacity: .9;
    margin: 0 0 10px 0;
  }

  /* StarMachineProject を必ず表示し、最上段へ */
  .hero-project{
    display: block !important;
    order: -10;
  }

  /* 新作ラベル：小さく、詰める */
  .hero-label{
    font-size: 11px;
    letter-spacing: .18em;
    opacity: .55;
    margin: 0 0 14px 0;
  }

  /* 日付：さらに小さく、細く */
  .hero-date{
    font-size: 12px;
    letter-spacing: .14em;
    opacity: .55;
    margin: 0 0 18px 0;
  }

  /* タイトルを主役に */
  .hero-title{
    font-size: 34px;      /* ここが主役 */
    line-height: 1.05;
    letter-spacing: .02em;
    margin: 0 0 14px 0;
    white-space: nowrap;  /* 創発/Emergenceを折り返さない */
  }

  /* 英語側を少し控えめにしてバランス */
  .hero-title .en{
    font-size: .72em;
    opacity: .65;
    font-weight: 400;
  }

  .hero-title .slash{
    opacity: .55;
    margin: 0 .18em;
  }

  /* キャッチ：読みやすく、余白を短く */
  .hero-catch{
    font-size: 14px;
    line-height: 1.75;
    opacity: .75;
    margin: 0 0 14px 0;
  }

  /* 場所：キャッチ直下の“署名”として */
  .hero-venue{
    font-size: 13px;
    letter-spacing: .06em;
    opacity: .75;
    margin: 0 0 6px 0;
  }

  /* 下の「会場/チケット」ブロックがある場合は少し小さく */
  .hero-meta,
  .hero-info,
  .hero-bottom{
    font-size: 12px;
    opacity: .6;
  }
  .hero-meta{ display: none !important; }

  /* hero-card 内の縦リズムを詰める */
  #heroCard > *{
    margin-top: 0;
    margin-bottom: 0;
  }
  .hero-project{ margin-bottom: 6px; }
  .hero-label{ margin-bottom: 10px; }
  .hero-date{ margin-bottom: 14px; }
  .hero-title{ margin-bottom: 12px; }
  .hero-catch{ margin-bottom: 10px; }
  .hero-venue{ margin-bottom: 4px; }

  /* まず親のクリップを疑う */
  .hero-card,
  #heroCard{
    overflow: visible;
    height: auto;
  }

  /* タイトル行の余白確保 */
  .hero-title{
    line-height: 1.18;
    overflow: visible;
    padding-bottom: .08em; /* g の尻尾分 */
  }

  /* Safariで英字だけ切れる対策 */
  .hero-title .en{
    display: inline-block;
    padding-bottom: .08em;
  }
}
/* =========================================================
   PC: pixel flow background (CSS only)
   置き場所：emergence.css いちばん下
   ========================================================= */

@media (min-width: 769px) {
  /* 背景を出す器：いまある hero-visual を使う（既存のdivを活かす） */
  .hero-visual{
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0; /* カードより下にしたいので、hero-card側を1にする */
    overflow: hidden;
  }

  /* 念のためカードを前に */
  #heroCard.hero-card{
    position: relative;
    z-index: 1;
  }

  /* 1枚目：ピクセル格子 */
  .hero-visual::before{
    content:"";
    position:absolute;
    inset:-20%;
    background:
      /* ピクセル感の正体：小さい正方形のドット */
      linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px),
      linear-gradient(0deg,  rgba(255,255,255,.10) 1px, transparent 1px);
    background-size: 10px 10px;              /* ピクセル粒の大きさ */
    opacity: .18;
    filter: blur(.2px);
    transform: translateZ(0);
    animation: pixelDrift 10s linear infinite;
    mix-blend-mode: screen;                 /* うっすら光る */
  }

  /* 2枚目：砂時計/水流っぽい「縦の流れ」 */
  .hero-visual::after{
    content:"";
    position:absolute;
    inset:-30%;
    background:
      radial-gradient(closest-side at 50% 0%, rgba(255,255,255,.10), transparent 60%),
      radial-gradient(closest-side at 50% 100%, rgba(255,255,255,.10), transparent 60%),
      linear-gradient(180deg, transparent, rgba(255,255,255,.06), transparent);
    opacity: .18;
    filter: blur(6px);
    animation: flowPulse 6s ease-in-out infinite;
    transform: translateZ(0);
  }

  @keyframes pixelDrift{
    0%   { transform: translate3d(0,0,0) scale(1); }
    50%  { transform: translate3d(-30px, 40px,0) scale(1.05); }
    100% { transform: translate3d(-60px, 80px,0) scale(1); }
  }

  @keyframes flowPulse{
    0%   { transform: translate3d(0,-2%,0) scaleY(1);   opacity:.10; }
    50%  { transform: translate3d(0, 2%,0) scaleY(1.25);opacity:.22; }
    100% { transform: translate3d(0,-2%,0) scaleY(1);   opacity:.10; }
  }

  /* 動きが苦手な人向け（OS設定で自動停止） */
  @media (prefers-reduced-motion: reduce){
    .hero-visual::before,
    .hero-visual::after{ animation: none !important; }
  }
}
