/* =========================================================
  TEAM SITE - styles.css
========================================================= */

:root{
  --bg:#0b0d12;
  --bg2:#0f1420;
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.68);
  --line:rgba(255,255,255,.14);
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.04);
  --accent:#e10600;
  --accent2:#ff3b30;
  --radius:18px;
  --radius-sm:12px;
  --shadow:0 14px 40px rgba(0,0,0,.45);
  --max:1100px;
  --pad:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background: var(--bg);
  font-family:system-ui, -apple-system, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic","Meiryo", Arial, sans-serif;
  line-height:1.6;
}



a{color:inherit}
a:hover{opacity:.92}

.wrap{
  width:min(var(--max), calc(100% - (var(--pad)*2)));
  margin:0 auto;
}

/* Sticky nav offset for anchor jumps */
.section{scroll-margin-top:72px}

/* HERO */
.hero{
  position:relative;
  padding:56px 0 34px;
  border-bottom:1px solid var(--line);
  overflow:hidden;


  /* ▼ 追加：ヒーロー背景 */
  min-height: clamp(420px, 65vh, 760px);
  background-image: url("../../img/top-up.jpg");
  background-size: cover;
  background-position: 50% 20%;
  background-repeat: no-repeat;

}

/* Mobile: swap hero background image */
@media (max-width: 720px){
  .hero{ background-image: url("../../img/top-up-s.jpg"); }
}

.hero__shade{
  position:absolute; inset:0;
  background: none; /* keep image colors as-is */
  pointer-events:none;
  z-index:1; /* ← 追加 */
}
.hero .wrap{position:relative; z-index:2}

.hero__bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  z-index:0;
  filter:saturate(1.05) contrast(1.05);
  transform:scale(1.02);
}

.hero__shade{ z-index:1; }
.hero .wrap{ position:relative; z-index:2; }



.hero__badge{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(6px);
  font-size:13px;
  color:rgba(255,255,255,.86);
}
.dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 3px rgba(225,6,0,.18);
  display:inline-block;
}
.hero__title{
  margin:14px 0 10px;
  font-size:clamp(28px,3.2vw,44px);
  line-height:1.15;
  letter-spacing:.02em;
  text-shadow:0 12px 34px rgba(0,0,0,.5);
}
.hero__lead{
  margin:0;
  max-width:72ch;
  color:rgba(255,255,255,.82);
  text-shadow:0 10px 22px rgba(0,0,0,.35);
}
.hero__cta{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* ヒーローを写真背景モードに */
.hero--photo{
  min-height: clamp(520px, 75vh, 900px);
  background-size: cover;
  background-position: 50% 20%;
  background-repeat: no-repeat;

  /* 文字を下寄せにしたいならON（任意） */
  display: flex;
  align-items: flex-end;
}

.hero__shade{ z-index: 1; }
.hero .wrap{ position: relative; z-index: 2; }


/* =========================================================
  HERO: Gallery Photo (floating)
  - ギャラリーの画像を、ヒーロー右側のスペースに表示
  - 画面右上 → 停止 → 画面左上 に流れる
  - PC / スマホで位置・サイズを分けて調整（CSS変数）
========================================================= */

/* PC（デフォルト） */
.hero--photo{
  /* サイズ（縦長） */
  --nhFlyW: clamp(240px, 22vw, 340px);
  --nhFlyH: calc(var(--nhFlyW) * 1.25); /* 4:5 */

  /* 角：もっと丸く */
  --nhFlyR: clamp(26px, 2.8vw, 46px);

  /* 位置：白い四角で指定された付近（右側・やや下） */
  /* ※ .wrap の右端に寄せたいので、max 幅に合わせて inset する */
  /* ✅ PC：もう少し上 */
  --nhFlyTop: clamp(100px, 30vh, 340px);
  --nhFlyRight: calc(
    max(var(--pad), calc((100vw - var(--max)) / 2))
    /* ✅ PC：もう少し左（= 右の余白を増やす） */
    + 56px
  );

  /* 動き：右上 → 停止 → 左上 */
  --nhFlyInX: 92vw;
  --nhFlyInY: -20vh;
  --nhFlyOutX: -110vw;
  --nhFlyOutY: -20vh;

  /* 全体時間（停止=1秒） */
  --nhFlyDur: 4s;
}

/* スマホ */
@media (max-width: 720px){
  .hero--photo{
    /* サイズ（縦長） */
    --nhFlyW: min(210px, 46vw);
    --nhFlyH: calc(var(--nhFlyW) * 1.25); /* 4:5 */
    --nhFlyR: 34px;

    /* ✅ スマホ：もう少し上へ（必要なら - の数字だけ調整） */
    --nhFlyTop: calc(clamp(245px, 45vh, 510px) - 24px);
    --nhFlyRight: 18px;

    --nhFlyInX: 82vw;
    --nhFlyInY: -16vh;
    --nhFlyOutX: -110vw;
    --nhFlyOutY: -16vh;

    --nhFlyDur: 4s;
  }
}

.heroFly{
  position:absolute;
  top: var(--nhFlyTop, 140px);
  right: var(--nhFlyRight, 18px);
  width: var(--nhFlyW, 340px);
  height: var(--nhFlyH, 240px);
  pointer-events:none;
  z-index: 1; /* 背景より上、テキストより下（.wrap が z-index:2） */
}

.heroFly__move{
  position:relative;
  width:100%;
  height:100%;
  border-radius: var(--nhFlyR, 34px);
  overflow:hidden;
  /* ✅ 角丸がブレないように（PC/SP共通） */
  -webkit-clip-path: inset(0 round var(--nhFlyR, 34px));
  clip-path: inset(0 round var(--nhFlyR, 34px));
  isolation:isolate;
  background:rgba(0,0,0,.12);
  will-change: transform, opacity, filter;

  /* 初期状態（右上の外） */
  opacity:0;
  transform: translate3d(var(--nhFlyInX), var(--nhFlyInY), 0) scale(0.98);
  filter: blur(14px) saturate(0.95) contrast(1.06) brightness(0.60);
}

/* ✅ 外周だけ “同じ画像のブラー版” を重ねて、縁の線が出ないようにする */
.heroFly__move::before{
  content:"";
  position:absolute;
  inset:-14%;
  border-radius: inherit;
  pointer-events:none;
  background-image: var(--nhFlyImg, none);
  background-size:cover;
  background-position:center;
  transform: scale(1.10);
  filter: blur(26px) saturate(0.95) contrast(1.08) brightness(0.55);
  opacity:.92;

  /* 中央は見せず、外周だけ見せる（= 端だけぼける） */
  -webkit-mask-image: radial-gradient(140% 140% at 50% 50%, rgba(0,0,0,0) 56%, #000 86%);
  mask-image: radial-gradient(140% 140% at 50% 50%, rgba(0,0,0,0) 56%, #000 86%);
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;

  z-index:2;
}

.heroFly__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transform: translateZ(0) scale(1.06);
  /* 背景が透けて黒っぽくうっすら */
  opacity: .58;
  z-index:1;
}

/* うっすら暗く（枠じゃなく、画像のトーン調整） */
.heroFly__move::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius: inherit;
  background:
    radial-gradient(120% 120% at 50% 50%, rgba(0,0,0,.35), rgba(0,0,0,.60));
  mix-blend-mode:multiply;
  opacity:.85;
  z-index:3;
}

/* 再生 */
.heroFly.is-run .heroFly__move{
  animation: nhHeroFly var(--nhFlyDur, 4s) cubic-bezier(.22,.9,.18,1) both;
}

@keyframes nhHeroFly{
  0%{
    opacity:0;
    transform: translate3d(var(--nhFlyInX), var(--nhFlyInY), 0) scale(0.98);
    filter: blur(18px) saturate(0.95) contrast(1.06) brightness(0.58);
  }

  /* ふわっと登場（見えない時間を短く） */
  4%{ opacity:0; }

  /* 到着 */
  26%{
    opacity:1;
    transform: translate3d(0,0,0) scale(1);
    filter: blur(0px) saturate(0.95) contrast(1.08) brightness(0.62);
  }

  /* 停止（1秒キープ：4s × 25% = 1s） */
  51%{
    opacity:1;
    transform: translate3d(0,0,0) scale(1);
    filter: blur(0px) saturate(0.95) contrast(1.08) brightness(0.62);
  }

  /* 退場：左上へ */
  100%{
    opacity:0;
    transform: translate3d(var(--nhFlyOutX), var(--nhFlyOutY), 0) scale(0.98);
    filter: blur(18px) saturate(0.95) contrast(1.06) brightness(0.58);
  }
}

@media (prefers-reduced-motion: reduce){
  .heroFly{ display:none !important; }
}



/* NAV */
.nav{
  position:sticky;
  top:0;
  z-index:30;
  border-bottom:0;                 /* ← これだけ変更 */
  background:rgba(11,13,18,.72);
  backdrop-filter:blur(10px);
  isolation:isolate;               /* ← これ追加（線が安定する） */
}



/* 上下に“光る”グラデーションライン */
.nav::before,
.nav::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height:2px;
  pointer-events:none;
  z-index:0;

  background:
    linear-gradient(90deg,
      rgba(0,0,0,0),
      rgba(255,255,255,.16) 22%,
      rgba(255,255,255,.26) 50%,
      rgba(255,255,255,.16) 78%,
      rgba(0,0,0,0)
    ),
    linear-gradient(90deg,
      rgba(0,0,0,0),
      rgba(225,6,0,.10) 35%,
      rgba(255,59,48,.18) 50%,
      rgba(225,6,0,.10) 65%,
      rgba(0,0,0,0)
    );
  opacity:.9;
}

/* 上の線 */
.nav::before{
  top:0;
  box-shadow:0 0 12px rgba(255,59,48,.18), 0 0 2px rgba(255,255,255,.18);
}

/* 下の線 */
.nav::after{
  bottom:0;
  box-shadow:0 0 14px rgba(255,59,48,.20), 0 0 2px rgba(255,255,255,.16);
}

/* 中身が線より上に来るように */
.nav__inner{
  position:relative;
  z-index:1;
}







.nav__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:14px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.02em;
}
.brand__mark{
  width:30px;
  height:30px;
  border-radius:10px;

  background: url("../../img/s-Logo.png") center / contain no-repeat;

  /* ✅ うっすら枠の犯人を消す */
  border: 0;          /* または border: none; */
  box-shadow: none;   /* 影もいらなければ */
}






.nav__links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  font-size:13px;
  color:rgba(255,255,255,.82);
}
.nav__links a{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
}
.nav__links a:hover{
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
}


/* Current page (aria-current) */
.nav__links a[aria-current="page"]{
  border-color:rgba(225,6,0,.55);
  background:rgba(225,6,0,.18);
  box-shadow:0 16px 30px rgba(225,6,0,.10);
}




/* ---------------------------------------------------------
  PC: ナビが上に“貼り付く前”だけ大きくする
  ※ JSが .nav に is-expanded を付け外しする
--------------------------------------------------------- */
@media (min-width: 721px){
  /* 変化を気持ちよく（不要なら消してOK） */
  .nav__inner,
  .brand,
  .brand__mark{
    transition:
      padding 180ms ease,
      font-size 180ms ease,
      width 180ms ease,
      height 180ms ease,
      border-radius 180ms ease;
  }

  /* ✅ 貼り付く前の“デカい状態” */
  .nav.is-expanded .nav__inner{
    padding: 20px 0;          /* ← ナビを太く */
  }

  .nav.is-expanded .brand{
    font-size: 2em;           /* ← Naughty House文字を2倍 */
  }

  .nav.is-expanded .brand__mark{
    width: 60px;              /* ← ロゴを2倍（30→60） */
    height: 60px;
    border-radius: 20px;      /* ← 角丸もそれっぽく調整（好みでOK） */
  }

  /* もし右側メニューが小さすぎたら（任意）
  .nav.is-expanded .nav__links{ font-size: 15px; }
  .nav.is-expanded .nav__links a{ padding: 10px 12px; }
  */
}

/* 動きを減らしたい人向け */
@media (prefers-reduced-motion: reduce){
  .nav__inner, .brand, .brand__mark{ transition: none !important; }
}






/* ---------------------------------------------------------
  Mobile hamburger menu (nav)
  - works with assets/js/site-nav.js
--------------------------------------------------------- */
.nav__toggle{
  display:none;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.30);
  backdrop-filter:blur(6px);
  color:rgba(255,255,255,.92);
  cursor:pointer;
  font-weight:800;
  font-size:13px;
  user-select:none;
  transition:transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.nav__toggle:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.28);
  background:rgba(0,0,0,.38);
}
.nav__toggle:active{transform:translateY(0)}

.nav__burger{
  width:18px;
  height:12px;
  display:inline-flex;
  flex-direction:column;
  justify-content:space-between;
}
.nav__burger span{
  display:block;
  height:2px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  transition:transform 160ms ease, opacity 160ms ease;
}

/* animate to "X" when open */
.nav.is-open .nav__burger span:nth-child(1){
  transform:translateY(5px) rotate(45deg);
}
.nav.is-open .nav__burger span:nth-child(2){
  opacity:0;
}
.nav.is-open .nav__burger span:nth-child(3){
  transform:translateY(-5px) rotate(-45deg);
}

/* Text is optional (hidden for a clean look) */
.nav__toggleText{display:none}

/* Smartphone: collapse links into hamburger */
@media (max-width: 720px){
  .nav__inner{ position:relative; }

  .nav__toggle{ display:inline-flex; }

  .nav__links{
    display:none; /* default closed */
    position:absolute;
    top:calc(100% + 10px);
    right:0;

    width:min(320px, calc(100vw - 24px));
    flex-direction:column;
    flex-wrap:nowrap;
    align-items:stretch;
    gap:6px;

    padding:10px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.16);
    background:rgba(11,13,18,.92);
    box-shadow:0 22px 60px rgba(0,0,0,.55);
    backdrop-filter:blur(10px);
  }
  .nav.is-open .nav__links{ display:flex; }

  .nav__links a{
    padding:12px 12px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(0,0,0,.18);
  }
  .nav__links a:hover{
    border-color:rgba(255,255,255,.18);
    background:rgba(255,255,255,.06);
  }
}

/* Active page (when aria-current="page" is set by JS) */
.nav__links a[aria-current="page"]{
  border-color:rgba(225,6,0,.55);
  background:rgba(225,6,0,.18);
  box-shadow:0 16px 30px rgba(225,6,0,.10);
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.38);
  backdrop-filter:blur(6px);
  color:rgba(255,255,255,.92);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  text-decoration:none;
  transition:transform 140ms ease, background 140ms ease, border-color 140ms ease;
  user-select:none;
}
.btn:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.28)}
.btn:active{transform:translateY(0)}
.btn--primary{
  background:linear-gradient(135deg, rgba(225,6,0,.95), rgba(255,59,48,.85));
  border-color:rgba(255,255,255,.18);
  box-shadow:0 18px 40px rgba(225,6,0,.26);
}
.btn--ghost{background:rgba(0,0,0,.20)}
.btn__icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center}

/* SECTION */
.section{
  padding:36px 0;
  border-bottom:1px solid var(--line);
}
.section--last{border-bottom:none;padding-bottom:26px}
.section__head{margin-bottom:14px}
.section__title{margin:0 0 6px;font-size:22px;letter-spacing:.02em}
.section__sub{margin:0;color:var(--muted);font-size:14px;max-width:80ch}

/* FILTERS */
.filters{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin:16px 0 18px;
  padding:16px;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  box-shadow:0 10px 26px rgba(0,0,0,.22);
}
.filters__row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.filters__label{
  font-size:12px;
  color:rgba(255,255,255,.74);
  letter-spacing:.08em;
  text-transform:uppercase;
  min-width:76px;
}
.chipbar{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:rgba(255,255,255,.86);
  font-size:13px;
  cursor:pointer;
  transition:transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.chip:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.24);
  background:rgba(255,255,255,.06);
}
.chip[aria-pressed="true"]{
  border-color:rgba(225,6,0,.55);
  background:rgba(225,6,0,.18);
  box-shadow:0 16px 30px rgba(225,6,0,.10);
}
.searchbox{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  width:100%;
}
input[type="search"]{
  width:min(520px, 100%);
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.22);
  color:rgba(255,255,255,.92);
  outline:none;
}
input[type="search"]::placeholder{color:rgba(255,255,255,.52)}
.filters__count{
  margin-left:auto;
  color:rgba(255,255,255,.70);
  font-size:13px;
}

.empty{
  display:none;
  padding:16px;
  border-radius:var(--radius);
  border:1px dashed rgba(255,255,255,.22);
  background:rgba(0,0,0,.16);
  color:rgba(255,255,255,.78);
  margin-bottom:18px;
}

.noscript{color:var(--muted);font-size:13px}

/* GRID */
.grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:14px;
}
.card{
  grid-column:span 12;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 14px 36px rgba(0,0,0,.28);
  transition:transform 160ms ease, border-color 160ms ease;
}
.card:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.22)}
.media{
  aspect-ratio:4/5;
  background:rgba(0,0,0,.25);
  border-bottom:1px solid rgba(255,255,255,.12);
  position:relative;
}
.media__img{
  width:100%;height:100%;
  background-image:
    var(--img),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.35));
  background-size:cover;
  background-position:center;
  filter:saturate(1.05) contrast(1.03);
}
.pill{
  position:absolute;
  left:12px; top:12px;
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.48);
  backdrop-filter:blur(6px);
  font-size:12px;
  color:rgba(255,255,255,.88);
}
.pill__dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 3px rgba(225,6,0,.14);
}
.card__body{padding:14px 14px 12px}
.name{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin:0 0 8px;
}
.name strong{font-size:17px;letter-spacing:.02em}
.name span{font-size:12px;color:rgba(255,255,255,.70)}

.meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 12px;
  margin:10px 0 12px;
  padding:10px;
  border-radius:14px;
  background:rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.12);
}
.kv{display:flex;flex-direction:column;gap:2px}
.kv b{
  font-size:12px;
  color:rgba(255,255,255,.70);
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.kv i{font-style:normal;font-size:13px;color:rgba(255,255,255,.90)}

.tags{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.82);
}

/* DETAILS */
.details{
  border-top:1px solid rgba(255,255,255,.12);
  padding-top:10px;
  margin-top:10px;
}
.summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:800;
  color:rgba(255,255,255,.90);
  padding:8px 0;
}
.summary::-webkit-details-marker{display:none}
.chev{
  width:22px;height:22px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.20);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform 160ms ease;
  flex:0 0 auto;
}
details[open] .chev{transform:rotate(180deg)}
.profile{margin:0;color:rgba(255,255,255,.78);font-size:13px}
.social{margin-top:12px;display:flex;flex-wrap:wrap;gap:10px}
.social__btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.20);
  font-size:13px;
  text-decoration:none;
  color:rgba(255,255,255,.86);
}

/* FOLLOW */
.follow{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}

/* CONTACT PANEL */
.panel{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  padding:16px;
  box-shadow:0 12px 30px rgba(0,0,0,.20);
  display:grid;
  gap:10px;
}
.panel__row{
  display:grid;
  grid-template-columns:130px 1fr;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.18);
}
.panel__k{color:rgba(255,255,255,.72);font-size:13px;font-weight:800}
.panel__v a{text-decoration:underline}
.panel__cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}

/* FOOTER */
.footer{margin-top:14px;color:var(--muted);text-align:center}

/* Responsive columns */
@media (min-width: 640px){
  .card{grid-column:span 6}
}
@media (min-width: 980px){
  .card{grid-column:span 4}
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .btn,.chip,.card,.chev{transition:none !important}
  .card:hover,.btn:hover,.chip:hover{transform:none}
}

/* -----------------------------------------
  Intake / Form
----------------------------------------- */
.form-card{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  padding:16px;
  box-shadow:0 12px 30px rgba(0,0,0,.20);
}
.form-title{margin:0 0 6px;font-size:20px}
.form-sub{margin:0 0 14px;color:var(--muted);font-size:13px}

.fieldset{
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding:12px;
  margin:0 0 12px;
  background:rgba(0,0,0,.12);
}
.fieldset legend{
  padding:0 8px;
  color:rgba(255,255,255,.86);
  font-weight:800;
  letter-spacing:.02em;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
@media (min-width: 860px){
  .form-grid{grid-template-columns:1fr 1fr}
  .field--wide{grid-column:1 / -1}
}

.field label{
  display:block;
  font-size:12px;
  color:rgba(255,255,255,.74);
  margin:0 0 6px;
  font-weight:700;
}
.form-card input[type="text"],
.form-card input[type="number"],
.form-card input[type="url"],
.form-card input[type="password"],
.form-card input[type="date"],
.form-card select,
.form-card textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.22);
  color:rgba(255,255,255,.92);
  outline:none;
}
.form-card textarea{min-height:110px;resize:vertical}
.help{margin-top:6px;color:rgba(255,255,255,.62);font-size:12px}
.form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.form-note{margin:12px 0 0;color:var(--muted);font-size:12px}

.msg{
  display:block;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  margin:0 0 14px;
  color:rgba(255,255,255,.88);
}
.msg--ok{
  border-color:rgba(225,6,0,.45);
  background:rgba(225,6,0,.12);
}
.msg--err{
  border-color:rgba(255,255,255,.22);
  background:rgba(0,0,0,.26);
}

.hp{position:absolute;left:-9999px;opacity:0}

.preview{margin-top:8px}
.preview img{
  max-width:100%;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
}

/* -----------------------------------------
  Fighter detail
----------------------------------------- */
.backlink{
  display:inline-block;
  margin-bottom:12px;
  color:rgba(255,255,255,.78);
  text-decoration:none;
}
.backlink:hover{text-decoration:underline}

.fighter{
  display:block;
}
.fighter__head{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}
.fighter__name{
  margin:0;
  font-size:28px;
  line-height:1.2;
}
.fighter__sub{
  color:rgba(255,255,255,.72);
  font-size:13px;
}
.fighter__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
@media (min-width: 860px){
  .fighter__grid{grid-template-columns:1.1fr .9fr}
}

.gallery{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  overflow:hidden;
}
.gallery__main{
  aspect-ratio:4/5;
  background-size:cover;
  background-position:center;
  background-image:
    var(--img),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.35));
}
.gallery__thumbs{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1px;
  background:rgba(255,255,255,.08);
}
.gallery__thumb{
  aspect-ratio:4/5;
  background-size:cover;
  background-position:center;
  cursor:pointer;
  opacity:.92;
}
.gallery__thumb:hover{opacity:1}

.statpanel{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  padding:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.20);
}
.statpanel h3{margin:0 0 10px;font-size:16px}
.list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 12px;
}
.list .kv{padding:10px;border-radius:14px;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.12)}



/* Index (Fighters): mobile profile image square
   - スマホ表示のときだけ、一覧カードの画像を正方形に */
@media (max-width: 640px){
  #fighters #ftsGrid .media{
    aspect-ratio: 1 / 1;
  }
}


/* =========================================================
  SNS Bottom Dock (SP only)  ※このブロックで完全上書き
  - injected by assets/js/site-social.js (ssDock)
  - 5 icons, no gaps
  - background black
  - page bottom is not hidden (add bottom space)
========================================================= */

@media (max-width: 768px) and (hover: none) and (pointer: coarse) {

  /* 5個横並び = 1個の幅は 20% = 20vw
     → 高さも 20vw にして「正方形」にすると隙間が出ない */
  :root{
    --ssDockIcon: clamp(56px, 20vw, 92px);
    --ssDockSafe: env(safe-area-inset-bottom);
  }

  /* ✅ ここが「ページ最下部が見えない」対策
     SNS画像1個半分 = 1.5個分の余白を確保（ユーザー提案どおり）
     + iPhoneのホームインジケータ(safe-area)も加算 */
  body{
    padding-bottom: calc((var(--ssDockIcon) * 1.5) + var(--ssDockSafe));
  }

  .ssDock{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;

    /* ✅ 背景を黒にして「後ろが見えない」ように */
    background: #000;

    /* ✅ 下の被り（ホームインジケータ等）を回避 */
    padding-bottom: var(--ssDockSafe);

    /* 初期は非表示（下に隠す） */
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;

    transition: transform 180ms ease, opacity 180ms ease;
  }

  .ssDock.is-show{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .ssDock__row{
    display: flex;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
    background: #000; /* 念のため */
  }

  .ssDock__link{
    flex: 1 1 0;
    min-width: 0;
    display: block;
    margin: 0;
    padding: 0;

    /* ✅ ここが「隙間があきすぎ」対策：横幅と同じ高さ(=正方形) */
    height: var(--ssDockIcon);

    background: #000; /* 画像が小さくなった時に裏が見えない */
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .ssDock__img{
    display: block;
    width: 100%;
    height: 100%;

    /* ✅ 見切れない（切らない） */
    object-fit: contain;

    /* PNGが透過でも黒で埋まる */
    background: #000;
  }

  .ssDock__link:focus-visible{
    outline: 2px solid rgba(255,255,255,.9);
    outline-offset: -2px;
  }
}

@media (min-width: 769px){
  .ssDock{ display: none !important; }
}
