:root{
  --white: #ffffff;
  --black: #000000;

  --text-dark: #111315;
  --text-light: #f7f7f7;

  --pink: rgba(255, 45, 122, 1);
  --pink-weak: rgba(255, 45, 122, 0.10);
  --pink-mid: rgba(255, 45, 122, 0.85);

  --max: 1040px;
  --pad: 18px;
  --radius: 14px;

  --border-w: rgba(255,255,255,0.14);
  --border-b: rgba(0,0,0,0.10);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
  overflow-x: hidden;
}

/* =========================================
   Background split (fixed)
========================================= */
.bg-split{
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to right, var(--white) 50%, var(--black) 50%);
}

/* Center pink line (fixed, gradient) */
.center-line{
  position: fixed;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100vh;
  transform: translateX(-50%);
  z-index: 2;

  background: linear-gradient(
    to bottom,
    var(--pink-weak) 0%,
    var(--pink-mid) 50%,
    var(--pink-weak) 100%
  );
  box-shadow: 0 0 8px rgba(255, 45, 122, 0.35);
  pointer-events: none;
}

/* Page base */
.page{
  position: relative;
  z-index: 3;
  min-height: 100vh;
}

/* =========================================
   HERO
========================================= */
.hero{
  padding: 28px var(--pad) 12px;
}

.hero-row{
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.hero-side{
  display:flex;
  align-items:center;
}

.hero-side-left{ justify-content: flex-start; }
.hero-side-right{ justify-content: flex-end; }

.avatar-link{
  display:inline-flex;
  text-decoration:none;
}

.avatar{
  width: 112px;
  height: 112px;
  border-radius: 999px;
  object-fit: cover;

  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.hero-side-right .avatar{
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
}

/* Center logo */
.hero-center{
  text-align: center;
  padding: 6px 10px;
  position: relative;
}

.logo{
  width: min(420px, 70vw);
  height: auto;
  display:block;
  margin: 0 auto;
}

.tagline{
  margin-top: 10px;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: bold;

  /* ここが肝：白黒どっちでも読める中立の薄帯 */
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.14) 50%,
    rgba(0,0,0,0.22) 50%
  );
  backdrop-filter: blur(6px);

  /* ピンク文字はそのまま */
  color: rgba(255,45,122,0.92);
  text-shadow:
    0 2px 10px rgba(0,0,0,0.55),
    0 0 12px rgba(255,45,122,0.18),
    0 0 2px rgba(255,255,255,0.55);

}

/* =========================================
   WORKS timeline
========================================= */
.works{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad) 44px;
  display: grid;
  gap: 14px;
}

/* Row (PC: 3 columns) */
.work-row{
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 12px;

  position: relative;
  padding: 14px 0;
}

/* Timeline line */
.work-row::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.10),
    rgba(255,45,122,0.14),
    rgba(255,255,255,0.10)
  );
  opacity: 0.35;
  pointer-events: none;
}

/* ===== Date node (pink badge that "bulges" the center line) ===== */
.work-row::before{
  content: attr(data-date);
  position: absolute;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);

  font-size: 10px;
  letter-spacing: 0.20em;
  padding: 4px 10px;
  border-radius: 999px;

  background: linear-gradient(
    to bottom,
    rgba(255, 45, 122, 0.95),
    rgba(255, 45, 122, 0.78)
  );
  color: rgba(255,255,255,0.96);
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);

  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    0 -12px 0 -11px rgba(255,45,122,0.95),
    0  12px 0 -11px rgba(255,45,122,0.95),
    0 10px 22px rgba(0,0,0,0.28),
    0 0 16px rgba(255,45,122,0.28);

  z-index: 7;
  pointer-events: none;
  white-space: nowrap;
}

.work-cell{
  display:flex;
}

/* Card common */
.work-card{
  display:block;
  width: 100%;
  text-decoration:none;
  border-radius: var(--radius);
  padding: 14px 14px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

/* Align (PC base) */
.align-left{ margin-right: auto; max-width: 320px; }
.align-center{ margin: 0 auto; max-width: 420px; }
.align-right{ margin-left: auto; max-width: 320px; }

/* First side card */
.work-first .work-card{
  background: rgba(255,255,255,0.88);
  color: var(--text-dark);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

/* Dual card */
.work-dual .work-card{
  background: rgba(0,0,0,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
}

.work-dual .work-title,
.work-dual .work-meta{
  color: rgba(255,45,122,0.95);
  opacity: 1;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.55),
    0 0 10px rgba(255,45,122,0.22),
    0 0 2px rgba(255,255,255,0.55);
}

/* Cocktail side card */
.work-cocktail .work-card{
  background: rgba(17,17,17,0.78);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 26px rgba(0,0,0,0.48);
}

.work-title{
  font-size: 14px;
  letter-spacing: 0.06em;
}

.work-meta{
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.75;
  letter-spacing: 0.10em;
}

/* Hover */
.work-card:hover{
  transform: translateY(-1px);
}

/* Empty cell (no card) */
.work-empty{
  min-height: 58px;
}

/* =========================================
   Timeline overlap (PC only): -10px
========================================= */
@media (min-width: 761px){
  .works{ gap: 6px; }

  .work-card.overlap-up{ margin-top: -10px; }
  .work-card.overlap-down{ margin-bottom: -10px; }
}

/* =========================================
   Footer
========================================= */
.footer{
  padding: 18px var(--pad) 28px;
}

.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.muted{
  font-size: 11px;
  color: rgba(255,45,122,0.70);
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
  opacity: 1;
}

/* =========================================
   side avatars
========================================= */
/* PC/SP共通：カード横の顔アイコン */
.work-card{ position: relative; }

.side-avatar{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  z-index: 10;
  box-shadow: 0 10px 18px rgba(0,0,0,0.25);
}

.side-avatar--first{
  background-image: url("../img/first.jpg");
  border: 2px solid rgba(0,0,0,0.10);
}

.side-avatar--cocktail{
  background-image: url("../img/cocktail.jpg");
  border: 2px solid rgba(255,255,255,0.18);
}

@media (min-width: 761px){
  .side-avatar{ width:30px; height:30px; opacity:.75; }
  .side-avatar--first{ left:-40px; }
  .side-avatar--cocktail{ right:-40px; }
}

/* 2) 1024px以下：少し内側へ（まだ外側感は残す） */
@media (max-width: 1024px) and (min-width: 761px){
  .side-avatar--first{ left: -18px; }
  .side-avatar--cocktail{ right: -18px; }
}





/* =========================================
   SP layout (1 column) + side avatars in the margin
========================================= */
@media (max-width: 760px){
  /* HERO stacked */
  .hero-row{
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }
  .hero-side-left,
  .hero-side-right{
    justify-content: center;
  }
  .avatar{
    width: 104px;
    height: 104px;
  }
  .tagline{
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  /* works becomes 1 column */
  .works{ gap: 10px; }

  .work-row{
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .work-row::before{
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  /* ★ ここが肝：カードを内側へ寄せて「余白側に顔が入る場所」を作る */
  .align-left{
    max-width: 74%;
    margin-left: 62px;
    margin-right: auto;
  }
  .align-center{
    max-width: 84%;
    margin-left: auto;
    margin-right: auto;
  }
  .align-right{
    max-width: 74%;
    margin-right: 62px;
    margin-left: auto;
  }

  .work-empty{
    min-height: 52px;
  }

  /* side avatars (place in the margin area) */
  .work-card{ position: relative; }

  .side-avatar{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background-size: cover;
    background-position: center;
    z-index: 10;
    box-shadow: 0 10px 18px rgba(0,0,0,0.25);
  }

  .side-avatar--first{
    left: -56px;
    background-image: url("../img/first.jpg");
    border: 2px solid rgba(0,0,0,0.10);
  }

  .side-avatar--cocktail{
    right: -56px;
    background-image: url("../img/cocktail.jpg");
    border: 2px solid rgba(255,255,255,0.18);
  }

  .work-empty{
    min-height: 0;
  }
  .work-row{
    padding: 8px 0;
    gap: 8px;
  }
  .works{
    gap: 8px;
  }

}

@media (max-width: 760px){

  /* 行の余白を最小に（まずこれでズレを止める） */
  .work-row{
    padding: 4px 0 !important;
    gap: 0 !important;
  }

  /* “カードがある行”だけ間隔を作る（1行1カード想定） */
  .work-row:has(a.work-card){
    padding: 10px 0 !important;
  }

  /* ピンクノードが行の上に張り付くので、SPでは少し下げて揃える */
  .work-row::before{
    top: -3px !important;
    transform: translateX(-50%) !important;
  }
}

/* extra small phones */
@media (max-width: 380px){
  .align-left{ margin-left: 46px; }
  .align-right{ margin-right: 46px; }
  .side-avatar--first{ left: -42px; }
  .side-avatar--cocktail{ right: -42px; }
}

/* ===== Modal (Work details) ===== */
.modal{
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
}

.modal.is-open{ display:block; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}

.modal-panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  overflow: auto;

  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
}

.modal-close{
  position: sticky;
  top: 0;
  float: right;
  margin: 10px 10px 0 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.modal-head{
  padding: 16px 18px 6px;
}

.modal-kicker{
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255,45,122,0.85);
  text-shadow: 0 1px 10px rgba(0,0,0,0.25);
}

.modal-title{
  margin: 8px 0 0;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: rgba(0,0,0,0.86);
}

.modal-body{
  padding: 12px 18px 18px;
  display: grid;
  gap: 14px;
}

/* 16:9 responsive iframe */
.modal-video{
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 28px rgba(0,0,0,0.20);
}

.modal-video iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.modal-desc{
  margin: 0;
  line-height: 1.8;
  color: rgba(0,0,0,0.78);
  max-width: 70ch;
}

/* links */
.modal-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-links a{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
}

/* Mobile: make modal background simpler for readability */
@media (max-width: 760px){
  .modal-panel{
    width: calc(100vw - 20px);
    background: rgba(0,0,0,0.86);
  }
  .modal-title{ color: rgba(255,255,255,0.92); }
  .modal-desc{ color: rgba(255,255,255,0.82); }
}

/* ===== Lyrics panel (expand under modal) ===== */
.modal-lyrics{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
  padding: 12px 12px;
}

.modal-lyrics-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.modal-lyrics-title{
  letter-spacing: 0.18em;
  font-size: 12px;
  color: rgba(255,45,122,0.88);
}

.modal-lyrics-close{
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,45,122,0.35);
  background: rgba(255,45,122,0.14);
  color: rgba(255,255,255,0.92);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.modal-lyrics-text{
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  white-space: pre-wrap; /* \n をそのまま改行にする */
}

.modal-links a.is-active{
  background: rgba(255,45,122,0.22);
  border-color: rgba(255,45,122,0.55);
}

/* ===== Card thumbnail ===== */
/* ===== Stacked card (title -> big thumbnail -> desc) ===== */
.work-card--stack{
  display: block;         /* 横並び解除 */
  padding: 14px 14px;
}

.work-card--stack .work-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.work-card--stack .work-title{
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.work-card--stack .work-meta{
  font-size: 11px;
  opacity: 0.75;
  letter-spacing: 0.10em;
  white-space: nowrap;
}

/* big thumbnail */
.work-thumb-lg{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 12px 22px rgba(0,0,0,0.18);
}

.work-first .work-thumb-lg{
  border-color: rgba(0,0,0,0.12);
}

.work-thumb-lg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

/* YouTube play badge */
.play-badge{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.88);
  box-shadow: 0 14px 24px rgba(0,0,0,0.30);
  display: grid;
  place-items: center;
}

/* 白い三角だけ描く */
.play-badge::after{
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px; /* 再生マークっぽく少し右寄せ */
  border-left: 14px solid rgba(255,255,255,0.96);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* description */
.work-desc{
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.82;
  letter-spacing: 0.04em;
}

/* hover */
.work-card--stack:hover .work-thumb-lg img{
  transform: scale(1.02);
  transition: transform .12s ease;
}

/* mobile: play badge slightly smaller */
@media (max-width: 760px){
  .play-badge::before{ width: 40px; height: 40px; }
  .play-badge::after{
    border-left-width: 13px;
    border-top-width: 9px;
    border-bottom-width: 9px;
  }
}

/* DUAL（中央）カードの説明文をピンクに */
.work-dual .work-desc{
  color: rgba(255,45,122,0.88);
  opacity: 1;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.55),
    0 0 10px rgba(255,45,122,0.18),
    0 0 2px rgba(255,255,255,0.45);
}