html, body { margin:0; height:100%; background:#020311; color:#fff; font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;}
/* 背景用レイヤ */
#bg { 
  position:fixed; 
  top:0; 
  left:0; 
  width:100%; 
  height:100%; 
  z-index:0; 
  background:#020311;
}
/* D3レイヤ（前景） */
#constellation { position:fixed; inset:0; z-index:2; touch-action:none; }
/* リンクをはっきり表示 */
#constellation .links-group { display: block; }
/* メッセージ */
.greeting { 
  position:fixed; 
  top:0; 
  left:0; 
  width:100%;
  text-align:center; 
  z-index:5;
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/Holiday2025_s.png');
  background-size: cover;
  background-position: center;
  padding: 130px 0 30px 0; 
  line-height: 1.2; 
  pointer-events: none; 
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

@media (min-width: 768px) {
  .greeting {
    padding: 240px 0 60px 0;
  }
}
.title { 
  font-family: 'Lavishly Yours', cursive;
  font-weight: 400; 
  font-size: clamp(28px, 7vw, 42px); /* 115%拡大: 24->28, 6vw->7vw, 36->42 */
  letter-spacing: .01em; 
  margin-top: 12px;
  margin-bottom: 12px; /* スペースを1.5倍程度に拡大 */
}
.sub   { opacity:.85; font-size: clamp(10px, 2.5vw, 14px); }

/* 言語切り替えボタン */
#lang-toggle {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 100;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  pointer-events: auto; /* クリック可能にする */
}
#lang-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
#lang-toggle:active {
  transform: translateY(0);
}

.caption-container {
  position: fixed; /* absoluteからfixedに変更して常に最前面に */
  z-index: 9999;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.85);
  padding: 12px 16px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  width: 240px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, 0); /* 中央揃え */
}

/* 画面が小さい時 */
@media (max-width: 480px) {
  .caption-container {
    width: 180px;
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* 写真を丸くクリップ */
/* 動きを抑える人向け */
@media (prefers-reduced-motion: reduce) {
  .greeting { background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/Holiday2025_s.png'); background-size: cover; background-position: center; }
}


