/* ====================================
   フォントと全体の初期設定（リセット）
==================================== */
body {
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  margin: 0; /* すべての余白を削除してページ全体のスタイルを初期化 */
  /* background: linear-gradient(135deg, #a7c0ff, #f7d9ff); */
  padding-top: 80px;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ====================================
   各セクション共通スタイル
==================================== */
section {
 /* padding: 100px 16px;*/
 /* max-width: 1000px; */
  margin: 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* サポートされていない場合のフォールバック */
@supports not (animation-timeline: view()) {
  .item {
    opacity: 1;
    transform: none;
  }
}

/* ====================================
   ヘッダー（ナビゲーションバー）
==================================== */
#header {
  position: fixed;            /* ページ全体に対して絶対位置指定 */
  top: 0;                        /* 上端にくっつける */
  right: 0;                      /* 右端にくっつける */
  width: 100%;                   /* 横幅を画面いっぱいに広げる */
  padding: 0;           /* 上下20pxの余白を追加 */
  box-sizing: border-box;        /* パディングも含めて100%の幅にする */
  z-index: 1000;                 /* 他の要素の上に表示されるように */

  height: 64px;          /* ← ヘッダーの高さを決める */

  display: flex;
  justify-content: center; /* 横方向中央 */
  align-items: center;     /* 縦方向中央 */

  background-color: #ffffff;
  backdrop-filter: blur(6px);
}

/* ヘッダーロゴは最初非表示 */
.header-logo {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-left,
.header-center,
.header-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-left {
  justify-content: flex-start;
}

.header-center {
  justify-content: center;
}

.header-right {
  height: 100%;
  display: flex;
  align-items: stretch; /* ← 中身を縦いっぱいに */
  justify-content: flex-end;
}

/* ハンバーガーアイコン */
.hamburger-icon {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 25px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2000;
  
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 2000;
}

/* ハンバーガーの線 */
.hamburger-icon span {
  width: 30px;
  height: 3px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
  position: absolute;
}

/* 1本目（上の線） */
.hamburger-icon span:nth-child(1) {
  top: 0;
}

/* 2本目（中央の線） */
.hamburger-icon span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

/* 3本目（下の線） */
.hamburger-icon span:nth-child(3) {
  bottom: 0;
}

/* フルスクリーンメニュー */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
}

/* メニューが開いたとき */
.menu.active {
  opacity: 1;
  visibility: visible;
}

/* メニューのリンク */
.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu li {
  margin: 20px 0;
}

.menu a {
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s;
}

.menu a:hover {
  color: #ddd;
}
.hamburger-menu.active .hamburger-icon span {
  background: #fff;
}
/* ハンバーガーアイコンが「×」に変形 */
.hamburger-menu.active .hamburger-icon span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}


.header-logo {
  width: 60px;   /* 好きなサイズに */
  height: auto;
  cursor: pointer;
}

.header-logo:hover {
  opacity: 0.8;
}

.contact-btn {
  height: 100%;
  display: flex;
  align-items: center;      /* テキストを中央 */
  padding: 0 24px;      /* 横だけ余白 */
  margin-right: 0;      /* 念のため */
  background: #ffffffef;
  padding: 10px 18px;
  text-decoration: none;
  color: #333;
  font-size: 14px;

}

@media (max-width: 768px) {

  #header {
    height: 56px;
  }

  .header-logo {
    width: 44px;
  }

  /* 中央固定ロゴはスマホでは非表示 */
  .logo-image {
    display: none;
  }
}


/*#header ul {
/*  display: flex;                 /* メニュー項目を横並びにする */
/*  justify-content: center;    /* メニューを中央揃えに配置 */
/*  gap: 30px;                     /* 項目の間隔を30pxあける */
/*  list-style: none;             /* ・などの箇条書きマークを消す */
/*  margin: 0 auto;
/*  padding: 0;
/*}
*/

/*#header a {
/*  color: #ffffff;                  /* テキストの色を白に */
/*  text-decoration: none;        /* 下線を消す */
/*  font-weight: bold;            /* 太字にする */
/*  font-size: 1rem;              /* フォントサイズ1rem（だいたい16px） */
/*  transition: opacity 0.3s;     /* ホバー時に透明度がなめらかに変化 */
/*}*/

/*#header a:hover {
/*  color: #ff0000; /* ホバー時に薄くなる */
/*}*/

/* ====================================
   表紙（メインビジュアルセクション）
   表紙として使う全画面の背景画像＋中央に大きなタイトル
==================================== */
#mainvisual {
  width: 100%;               /* 画面いっぱいの横幅に広げる */
  max-width: none;           /* 最大幅の制限を解除（親の制約を打ち消す） */
  padding: 0;                /* 内側の余白なし */
  margin: 0;                 /* 外側の余白なし */
  height: 100vh;             /* 画面の高さ70%（ビューポートの高さ） */
  
  /* 背景画像の設定 */
  background: url('../images/top.jpg') no-repeat center center / cover;
  background-size: cover;    /* 縦横比を保ちつつ全面を覆う */
  background-position: top;   /* 画像の中央を基準に表示 */
  background-repeat: no-repeat; /* 画像の繰り返しなし */

  /* 中央揃えのためのFlexbox */
  display: flex;                /* 子要素をFlexで配置 */
  align-items: center;         /* 縦方向に中央揃え */
  justify-content: center;     /* 横方向に中央揃え */

  color: white;                /* テキストの色を白にする（背景に対して視認性UP） */
  text-align: center;          /* テキストを中央寄せにする */
}

/* ====================================
   メインビジュアル内の大見出し（RISECAFE）
==================================== */
#mainvisual h1 {
  font-size: 4rem;                 /* 大きめの文字サイズ */
  letter-spacing: 4px;            /* 文字間隔をあけて洗練された印象に */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* 影をつけて背景に埋もれないようにする */
  margin: 0 auto;                      /* 不要な余白を除去 */
}
/* 中央の大きいロゴ */
.logo-image {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 220px; /* 初期サイズ */
  transform: translate(-50%, -50%);
  z-index: 200;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* =========================
   About セクション
========================= */

/* Aboutセクション全体 */
#about {
  background-color: #ffffff; /* 薄いベージュ */
  padding: 120px 40px;
}
/* 見出し */
#about h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 60px;
  font-weight: normal;
  letter-spacing: 2px;
}

/* 横並びレイアウト */
.about-wrapper {
  width: 100%;
  max-width: none;
  margin: 0 auto;

  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* 画像側 */
.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* テキスト側 */
.about-content {
  flex: 1;
}

.about-title{
  flex: 1;
}

.about-text {
  line-height: 2.5;
}

.about-text hr {
  width: 850px;
  border: none;
  border-top: 2px solid #444;
  margin-bottom: 30px;
} 

.about-text p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #333;
}

@media (max-width: 768px) {

  .about-wrapper {
    flex-direction: column;
    gap: 32px;
  }

  .about-text hr {
    width: 100%;
  }
}


/* ====================================
   Musicセクション（タイトル）
==================================== */
#music {
  color: black;
  padding: 100px 16px;
  text-align: center;
  background-color: #ffffff;
}

/* 見出し */
#music h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 60px;
  font-weight: normal;
  letter-spacing: 2px;
}

#music ul>li span {
    cursor: pointer;
    color: black;
    font-size: 13px;   /* 曲名の大きさ */
    transition: all 0.2s;
}

#music ul>li span img {
  width: 30px;     /* ← ここで再生ボタンの大きさ調整 */
  height: 30px;
  cursor: pointer;
}

#music ul>li span.active img {
  filter: brightness(1.5); /* 明るくする */
}

.music-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
}

.track-item {
  display: flex;
  flex-direction: column;    /* ← タイトル → 波形 を縦にする */
  padding: 10px 0;
  border-bottom: 1px solid #969696; /* ← 仕切り線 */
}

/* 右側：タイトル + 波形の縦並び */
.track-right {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* 曲名 */
.track-name {
  text-align: left;
  font-size: 20px;
  margin-bottom: 5px; /* タイトルの下に余白 */
  display: block;
}


#s li {
    padding: 10px 65px 10px 15px;
    border-bottom: 1px solid #eee;
    color: #646464;
    font-weight: 400;
    text-align: left;
    font-size: 11px;
    position: relative;
    line-height: 150%;
}

/* 波形 */
.wave {
  height: 20px;  /* ← 小さめ波形 */
  width: 100%;
}

/* タイトル行 */
.music-card-top {
  position: absolute;
  top: 10px;            /* すりガラス内の上位置（調整OK） */
  left: 0;
  width: 100%;
  padding: 0 22px;       /* 左右余白 */
  padding-bottom: 12px; /* タイトル全体の下に余白を追加 */
  
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 15px;
  color: #444;
  opacity: 0.85;
  /*pointer-events: none;  /* 背景扱いにしてクリック邪魔しない */
}

.music-card {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;

  display: flex;
  gap: 30px;
  align-items: center;

  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);

    /* スクロール連動アニメーション(ふわっと表示させたいクラスに入れる) */
  animation: fadeIn linear;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;

  background-color: #dfdbdb;
}

.product-name {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0 auto;
  margin-bottom: 12px;
}

.company-name {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
}

.release-tabs {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 14px;
  color: #9a9a9a;
  padding: 6px 2px;
  cursor: pointer;
  position: relative;
  letter-spacing: 0.05em;
}

/* アクティブ状態 */
.tab-btn.is-active {
  color: #555;
}

/* 下線 */
.tab-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: #777;
}

.music-left {
  width: 33%; /* ← すりガラスの1/3にする */
}

.music-art-wrap {
  position: relative;
  margin-top: 20px;
  border-radius: 15px;
  overflow: hidden;
}

/* 画像・動画 共通 */
.music-art,
.music-video {
  /*margin-top: 20px;    タイトルと画像の間の余白 */
  width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
}

/* 動画は上に重ねる */
.music-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none; /* aタグのクリックを邪魔しない */
}

/* hover演出 */
.music-art-wrap:hover .music-video {
  opacity: 1;
}

.music-art-wrap:hover .music-art {
  opacity: 0;
}

.music-art:hover {
  filter: brightness(0.8);
  transition: 0.3s;
}

.music-info {
  max-height: 345px;   /* 好きな高さに調整 */
  overflow-y: auto;    /* 縦スクロールを有効化 */
  padding-right: 8px;  /* スクロールバーで内容が隠れないように余白 */

  
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #b5b5b5 transparent;
}

/* Chrome / Edge / Safari */
.music-info::-webkit-scrollbar {
  width: 6px;
}

.music-info::-webkit-scrollbar-track {
  background: transparent;
}

.music-info::-webkit-scrollbar-thumb {
  background: #b5b5b5;
  border-radius: 10px;
}

.music-info::-webkit-scrollbar-thumb:hover {
  background: #8f8f8f;
}

@media (max-width: 768px) {

  .music-card {
    padding: 20px;
  }

  .music-body {
    grid-template-columns: 1fr; /* ← 縦並び */
  }

  .music-left {
    width: 100%;
  }

  .music-art-wrap {
    max-width: 320px;
    margin: 0 auto;
  }

  .track-name {
    font-size: 13px;
  }

  .wave {
    height: 16px;
  }
}


/* =========================
   Artist セクション
========================= */

/* Artistセクション全体 */
#artist {
  background-color: #ffffff; /* 黄緑 */
  padding: 120px 40px;
  position: relative;   /* ← これを追加 */
}
/* 見出し */
#artist h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 60px;
  font-weight: normal;
  letter-spacing: 2px;
}

/* スライダー外枠 */
.artist-slider {
  overflow: hidden;
  position: relative;
}

/* 横並びトラック */
.artist-track {
  display: flex;
  gap: 40px;
  transition: transform 0.6s ease;
  pointer-events: none;
}

.artist-item a,
.artist-item button {
  pointer-events: auto;
}

/* 1人分の幅を固定 */
.artist-item {
  min-width: 80%;
  flex-shrink: 0;

  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;

  padding: 60px;
  background: rgba(255,255,255,0.4);
  border-radius: 40px;

  opacity: 0.4;
  transform: scale(0.95);
  filter: blur(1px);
  transition: opacity 0.6s, transform 0.6s, filter 0.6s;
}

/* 1人分のブロック 
.artist-item {
  margin-bottom: 120px;  /* 人ごとの間隔 
  background: rgba(255,255,255,0.4);
  border-radius: 40px;
  padding: 60px 20px;
}*/

/* 中央（アクティブ） */
.artist-item.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  box-shadow: none;
}

/* 左右ボタン */
.artist-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1000;
}

.artist-nav.prev {
  left: 20px;
}

.artist-nav.next {
  right: 20px;
}

.artist-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-image img {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
}

/* 画像側 */
.artist-image {
  flex: 1;
}

.artist-image img {
  width: 30%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.sns-btn {
  display: flex;
  justify-content: center;   /* 横中央 */
  gap: 24px;                 /* アイコン間隔 */
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

/* SNSアイコンサイズ */
.sns-btn img {
  width: 32px;
  height: auto;
  transition: transform 0.3s, opacity 0.3s;
}

.sns-btn img:hover {
  transform: translateY(-4px);
  opacity: 0.7;
}

.artist-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 経歴カード */
.career-box {
  background: #fff;
  border-radius: 32px;
  padding: 40px;
  min-height: 220px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* テキスト */
.career-box p {
  font-size: 1.5rem;
  color: #666;
  letter-spacing: 2px;
}

/* 最後だけ余白いらないなら */
.artist-item:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .artist-item {
    grid-template-columns: 1fr;
  }

  .sns-btn {
    justify-content: center;
  }
}

@media (max-width: 768px) {

  .artist-item {
    min-width: 100%;
    padding: 32px 20px;
  }

  .artist-image img {
    width: 70%;
  }

  .career-box p {
    font-size: 1.1rem;
  }

  .artist-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}


/* ====================================
   lastセクション
==================================== */
/* 全体 */
.last {
  position: relative;          /* ← ロゴ配置の基準 */
  display: flex;
  align-items: center;
  gap: 80px;

  background-color: #bfbfbf;
  padding: 120px 80px;
}

.last-menu {
  display: flex;
  flex-direction: column;
  align-items: center;   /* ← これが一番重要 */
  gap: 56px;
}

/* 左画像 */
.last-image img {
  width: 80%;
  height: auto;
  display: block;
}

/* 右メニュー */
.last-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.last-menu li {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 24px;
}

/*.last-menu a {
  text-decoration: none;
  color: inherit;
}*/

/* 左下ロゴ */
.last-logo {
  position: absolute;
  bottom: 40px;
  left: 40px;
}

.last-logo img {
  width: 160px;   /* ロゴサイズ調整 */
  height: auto;
}

/* ページリンク */
.page-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.page-links li {
  margin-bottom: 24px;
}

.page-links a {
  font-size: 1.2rem;
  color: #555;
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.page-links a:hover {
  opacity: 0.6;
}

.sns-links {
  display: flex;
  align-items: center;
  justify-content: center;   /* ← 中央に寄せる */
  gap: 0px;
  flex-wrap: wrap;

  font-size: 0.9rem;
  letter-spacing: 0.08em;

  margin: 0 auto;            /* ← ブロック自体を中央へ */
  text-align: center;        /* ← 改行時も中央 */

  max-width: 420px;   /* ← 横に広がりすぎない */
}

.sns-links .label {
  width: 100%;        /* ← 1行使う */
  text-align: center;
  color: #888;
  margin-bottom: 8px;
  letter-spacing: 0.12em;
}

.sns-links a {
  text-decoration: none;
  color: #333;
  margin-left: 12px;
}

.sns-links a:hover {
  opacity: 0.6;
}

.sns-links a::before {
  content: "/";
  margin-right: 12px;
  color: #666;
}

.sns-links a:first-of-type {
  margin-left: 0;
}

.sns-links a:first-of-type::before {
  content: "";
  margin: 0;
}


/* ====================================
   フォントと全体の初期設定（リセット）
==================================== 
body {
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  margin: 0;
}*/

/* ====================================
   スマホ対応のパララックス解除（追加）
==================================== */
@media (max-width: 768px) {
  #menu,
  #about,
  #access,
  #contact {
    background-attachment: scroll; /* ← スマホ時は背景固定を解除 */
  }
}



/* ====================================
   Google Map グレースケール（追加）
==================================== */
/* 強めの指定でラジオ・チェック項目を細字に */
.radio-group label,
.checkbox label {
  font-weight: normal !important;
  font-size: 1rem;
}

.music-body{
  display: flex;
  gap: 40px; /* 好きに */
  align-items: flex-start;
}

.release-tabs{
  display: flex;
  gap: 12px;
  justify-content: center; /* 中央寄せ。左寄せなら flex-start */
  margin: 16px 0 24px;
  width: 100%;
}

/* =========================
   Release（Musicカード）レイアウト修正：上書き用
   style.css の一番下にコピペ
========================= */

/* カード全体：flexをやめて普通の流れに戻す */
.music-card {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;

  display: block; /* ← ここが重要（既存のflexを上書き） */
}

/* タイトル行：absoluteをやめて通常フローに */
.music-card-top {
  position: static;  /* ← absolute解除 */
  top: auto;
  left: auto;

  width: 100%;
  padding: 0;
  margin-bottom: 12px;

  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* タブ：必ずタイトルの下で横並び */
.release-tabs {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 10px 0 20px;
  width: 100%;
}

/* 本体：左＝画像 / 右＝リスト を“表”っぽく */
.music-body {
  display: grid;
  grid-template-columns: 320px 1fr; /* 左固定 / 右可変 */
  gap: 30px;
  align-items: start;
  margin-top: 10px;
}

.music-left {
  width: auto; /* 33%指定があるなら無効化 */
}

.music-right {
  width: 100%;
}

/* 表っぽさ（行の見た目） */
.track-item {
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
}

.track-name {
  font-size: 14px; /* 好みで調整OK */
}

/* スマホ：縦並び */
@media (max-width: 768px) {
  .music-body {
    grid-template-columns: 1fr;
  }
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* =========================
   Scatter Gallery
========================= */

#scatter {
  padding: 80px 24px;
}

#scatter h2 {
  margin-bottom: 18px;
  font-size: 24px;
  letter-spacing: .04em;
}

/* 散りばめる“ステージ” */
.scatter-stage{
  position: relative;
  height: min(120vh, 1100px);
  overflow: hidden;
  border-radius: 24px;
  /* 背景はお好みで */
  /* background: rgba(255,255,255,0.03); */
}

/* 画像カード */
.scatter-card{
  position: absolute;
  width: 150px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;

  z-index: 1;
  opacity: .75;

  transform: translate(-50%, -50%) rotate(var(--r)) scale(1);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.scatter-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ホバーで手前に */
.scatter-card:hover{
  z-index: 999;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(var(--r)) scale(1.08);
  box-shadow: none;
}

/* “見つける感”：ステージ内でホバー中は他を少し暗く */
.scatter-stage:hover .scatter-card:not(:hover){
  opacity: .45;
  transform: translate(-50%, -50%) rotate(var(--r)) scale(.98);
}

/* スマホ調整 */
@media (max-width: 700px){
  .scatter-stage{ height: min(60vh, 520px); }
  .scatter-card{ width: 160px; border-radius: 14px; }
}

/* =========================
   Scatter Modal
========================= */

.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.img-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* モーダル本体 */
.img-modal__panel {
  position: relative;
  z-index: 1;

  background: #fff;
  border-radius: 20px;
  padding: 24px;

  max-width: 900px;
  width: 90%;
  max-height: 80vh;

 box-shadow: none;
}

/* 中身レイアウト */
.img-modal__content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

/* 画像 */
.img-modal__media img {
  max-width: 320px;   /* ← 散らばってる画像と同じくらい */
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

/* テキスト */
.img-modal__text h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.img-modal__text p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
}

/* 閉じるボタン */
.img-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* スマホ */
@media (max-width: 640px) {
  .img-modal__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .img-modal__media img {
    max-width: 70vw;
    margin: 0 auto;
  }
}

#scatter h2{
  text-align: center;
  margin: 0 0 24px; /* 好きに調整 */
}

.img-modal__panel{
  position: relative;
}

.img-modal__artist{
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  opacity: .9;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

@media (max-width: 640px) {

  .img-modal__panel {
    padding: 16px;
  }

  .img-modal__media img {
    max-width: 80vw;
  }

  .img-modal__nav {
    font-size: 32px;
  }
}

/* =========================
   Sushi Belt Gallery
========================= */

.scatter-stage.sushi{
  position: relative;
  height: auto;          /* 高さ固定やめる */
  overflow: hidden;
  border-radius: 24px;
  padding: 18px 0;
}

.sushi-viewport{
  overflow: hidden;
  width: 100%;
}

.sushi-track{
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: sushiMove 35s linear infinite; /* 速度はここ */
}
.sushi-track{
  margin-bottom: 20px;  /* ← レーン間の縦スキマ */
}
.sushi-track:last-child{
  margin-bottom: 0;
}

/* hoverで止めたいなら */
.scatter-stage.sushi:hover .sushi-track{
  animation-play-state: paused;
}

/* 回転寿司アニメ */
@keyframes sushiMove{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* JSで複製する前提 */
}

.sushi-track.reverse{
  animation-direction: reverse;
}
/* カードを“整列用”に作り直す（absolute解除） */
.scatter-stage.sushi .scatter-card{
  position: relative;
  width: 200px;          /* ← ここがカードサイズ */
  aspect-ratio: 1 /1;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;

  transform: none;       /* 回転なし */
  opacity: 1;
  box-shadow: none;
  flex: 0 0 auto;
}

.scatter-stage.sushi .scatter-card:hover{
  transform: translateY(-6px);
}

/* スマホ */
@media (max-width: 700px){
  .scatter-stage.sushi .scatter-card{ width: 160px; }
}

body.modal-open .sushi-track {
  animation-play-state: paused !important;
}

body.modal-open .scatter-stage.sushi:hover .sushi-track {
  animation-play-state: paused !important;
}
/* パネルからはみ出して表示できるように */
.img-modal__panel{
  position: relative;
  overflow: visible; /* ← これ重要（hiddenだと外に出せない） */
}

/* 矢印：パネルの外側に配置 */
.img-modal__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;

  font-size: 44px;
  font-weight: 900;
  color: #fff;          /* 外側に出すなら白が見やすい */
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  text-shadow: 0 6px 18px rgba(0,0,0,.35); /* 背景に埋もれない */
  transition: transform .18s ease, opacity .18s ease;
}

.img-modal__nav.prev{ left: -60px; }
.img-modal__nav.next{ right: -60px; }

.img-modal__nav.prev:hover{
  transform: translate(-6px, -50%);
  opacity: .75;
}
.img-modal__nav.next:hover{
  transform: translate(6px, -50%);
  opacity: .75;
}

/* スマホははみ出し量を減らす */
@media (max-width: 640px){
  .img-modal__nav.prev{ left: -34px; }
  .img-modal__nav.next{ right: -34px; }
  .img-modal__nav{ font-size: 34px; }
}

.img-modal__nav.prev{ left: 12px; }
.img-modal__nav.next{ right: 12px; }

.img-modal__nav:hover{ filter: brightness(.95); }

/* 一覧ボタン */
.img-modal__thumbBtn{
  position: absolute;
  top: 12px;
  left: 12px;
  height: 34px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  cursor: pointer;
  z-index: 3;
  font-size: 13px;
}

/* 一覧パネル（モーダル下に出す） */
.img-modal__thumbs{
  display: none;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.img-modal__thumbs.is-open{
  display: block;
}

.img-modal__thumbsGrid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
  max-height: 220px;
  overflow: auto;
  padding-right: 6px;
}

.img-modal__thumb{
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  outline: none;
}

.img-modal__thumb img{
  width: 100%;
  height: 86px;
  object-fit: cover;
  display: block;
}

.img-modal__thumb.is-active{
  box-shadow: 0 0 0 2px rgba(0,0,0,.35);
}

/* モーダル全体を基準にする */
.img-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

/* ✅ 矢印は画面固定＝絶対に切れない */
.img-modal__nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;

  font-size: 48px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  z-index: 10000; /* パネルより前 */
  line-height: 1;
  text-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .18s ease, opacity .18s ease;
  user-select: none;
}

.img-modal__nav.prev{ left: 24px; }
.img-modal__nav.next{ right: 24px; }

.img-modal__nav.prev:hover{
  transform: translate(-6px, -50%);
  opacity: .75;
}
.img-modal__nav.next:hover{
  transform: translate(6px, -50%);
  opacity: .75;
}

/* スマホ */
@media (max-width: 640px){
  .img-modal__nav{ font-size: 36px; }
  .img-modal__nav.prev{ left: 10px; }
  .img-modal__nav.next{ right: 10px; }
}

/* 一覧グリッド */
.img-modal__thumbsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
}

/* サムネ枠の比率を決める */
.img-modal__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;   /* ← ここで比率を指定 */
  padding: 0;
  border: none;
  background: none;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 20px; 
}

/* 中の画像を枠にフィットさせる */
.img-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* はみ出す分はトリミング */
  display: block;
}

.gallery-actions{
  display:flex;
  justify-content:center;
  margin:24px 0 0;
}
.gallery-seeall{
  padding:10px 18px;
  border:1px solid currentColor;
  background:transparent;
  cursor:pointer;
  letter-spacing:.08em;
}
.gallery-seeall:hover{
  opacity:.75;
}

@media (max-width: 700px) {

  .scatter-card {
    width: 120px;
  }

  .scatter-stage {
    height: 60vh;
  }

  .sushi-track {
    gap: 20px;
  }
}


/* =========================
   スマホ用
========================= */

@media (max-width: 768px) {

  body {
    padding-top: 64px; /* ヘッダー分だけ */
  }

  section {
    padding: 80px 16px;
  }

  h2 {
    font-size: 1.5rem;
  }
}
