/* ============================================================
   隠れ隊 HP — style.css
   テーマ: ダーク × 藍 (hidden / night)  ※軽さ最優先
   ============================================================ */

:root {
  --bg:        #f6f9fe;   /* 明るい白 */
  --bg-alt:    #ffffff;
  --panel:     #ffffff;
  --panel-2:   #eef3fb;
  --ink:       #1b2436;   /* 濃い文字色 */
  --ink-dim:   #64748b;
  --accent:    #3b82f6;   /* 青 */
  --accent-2:  #0ea5e9;   /* シアン寄り */
  --line:      rgba(20,30,50,.10);
  --radius:    14px;
  --maxw:      1120px;
  --header-h:  64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.brand__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 18px;
  box-shadow: 0 4px 14px rgba(59,130,246,.4);
}
.brand__name { font-size: 18px; letter-spacing: .08em; }

.nav { display: flex; gap: 28px; }
.nav__link {
  font-size: 14px; letter-spacing: .12em; font-weight: 700;
  color: var(--ink-dim); position: relative; padding: 6px 0;
  transition: color .2s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--accent-2);
  transition: width .25s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span {
  display: block; height: 2px; width: 24px; margin: 0 auto;
  background: var(--ink); transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 25%, rgba(59,130,246,.16), transparent 70%),
    radial-gradient(50% 45% at 82% 80%, rgba(14,165,233,.12), transparent 70%),
    linear-gradient(180deg, #ffffff, var(--bg));
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%);
  opacity: .5;
}
.hero__inner { position: relative; padding: 0 20px; }
.hero__eyebrow {
  margin: 0 0 12px; font-size: 13px; letter-spacing: .4em;
  color: var(--accent-2); font-weight: 700;
}
.hero__title {
  margin: 0; font-size: clamp(56px, 15vw, 140px); font-weight: 900;
  letter-spacing: .08em;
  background: linear-gradient(180deg, #1b2436 20%, #3b82f6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin: 14px 0 34px; color: var(--ink-dim); font-size: clamp(14px, 3.6vw, 18px); }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 2px solid var(--ink-dim); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 2px; background: var(--accent-2);
  animation: scroll 1.6s ease-in-out infinite;
}
@keyframes scroll { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 100%{opacity:0;transform:translateY(14px)} }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .04em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 8px 24px rgba(59,130,246,.4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(59,130,246,.5); }
.btn--ghost {
  border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.02);
}
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ---------- セクション共通 ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 12vw, 120px) clamp(16px, 4vw, 40px); }
.section--alt { max-width: none; background: var(--panel); }
.section--alt .section__head, .section--alt .news-list { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section__head { text-align: center; margin-bottom: clamp(32px, 6vw, 56px); }
.section__label { margin: 0 0 8px; font-size: 13px; letter-spacing: .3em; color: var(--accent-2); font-weight: 700; }
.section__title { margin: 0; font-size: clamp(26px, 6vw, 40px); font-weight: 900; letter-spacing: .06em; }

/* ---------- メンバー ---------- */
.members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(16px, 3vw, 28px);
}
.member-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.member-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(20,30,50,.14);
}
.member-card__thumb {
  position: relative;
  aspect-ratio: 3 / 4;              /* ★ 画像未挿入でも高さが確定 = カクつかない */
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  display: grid; place-items: center;
}
.member-card__thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
}
.member-card__thumb img.is-empty { opacity: 0; }           /* 画像が無い時は箱だけ表示 */
.member-card__placeholder {
  font-size: 13px; letter-spacing: .3em; color: var(--ink-dim); font-weight: 700;
}
.member-card__thumb img:not(.is-empty) + .member-card__placeholder { display: none; }
.member-card__body { padding: 16px 18px 20px; }
.member-card__name { margin: 0; font-size: 18px; font-weight: 700; }
.member-card__role { margin: 4px 0 0; font-size: 13px; color: var(--ink-dim); }
.member-card__sns { display: flex; gap: 12px; margin-top: 14px; }
.member-card__sns a {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  color: var(--ink-dim);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.member-card__sns a:hover { color: #fff; background: var(--accent); transform: translateY(-2px); }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.news-item__date { font-size: 14px; color: var(--ink-dim); font-variant-numeric: tabular-nums; min-width: 96px; }
.news-item__tag {
  font-size: 11px; letter-spacing: .1em; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; background: rgba(59,130,246,.15); color: var(--accent-2);
}
.news-item__text { margin: 0; font-size: 15px; flex: 1; min-width: 200px; }

/* ---------- お問い合わせ ---------- */
.contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 3vw, 28px);
}
.contact__card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px); text-align: center;
}
.contact__card-title { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.contact__card-text { margin: 0 0 22px; color: var(--ink-dim); font-size: 14px; }

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(32px, 6vw, 56px) clamp(16px, 4vw, 40px);
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; }
.site-footer__nav a { font-size: 13px; letter-spacing: .12em; color: var(--ink-dim); }
.site-footer__nav a:hover { color: var(--ink); }
.site-footer__count { margin: 0; font-size: 13px; color: var(--ink-dim); }
.site-footer__count span { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.site-footer__copy { margin: 0; font-size: 12px; color: var(--ink-dim); }

.section__more { text-align: center; margin-top: clamp(32px, 5vw, 48px); }

/* ---------- About ---------- */
.about { max-width: 760px; margin: 0 auto; text-align: center; }
.about__lead { margin: 0 0 20px; font-size: clamp(17px, 3.4vw, 21px); font-weight: 700; line-height: 1.9; }
.about__lead span, .about__text span, .about-value p span { display: inline-block; }  /* 文節の途中で折り返さない */
.about__text { margin: 0 0 16px; color: var(--ink-dim); line-height: 1.9; }
.about__text:last-child { margin-bottom: 0; }

/* About: 3つの価値 */
.about-values {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 3vw, 28px); max-width: var(--maxw); margin: clamp(40px, 6vw, 64px) auto 0;
}
.about-value {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px); text-align: center;
}
.about-value h3 {
  margin: 0 0 10px; font-size: 17px; font-weight: 700;
  padding-top: 14px; position: relative;
}
.about-value h3::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.about-value p { margin: 0; font-size: 14px; color: var(--ink-dim); line-height: 1.8; }

/* ---------- Schedule ---------- */
.schedule__note { text-align: center; color: var(--ink-dim); margin: 0 0 26px; }
.schedule__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- フッターSNS ---------- */
.site-footer__sns { display: flex; gap: 14px; }
.site-footer__sns a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  color: var(--ink-dim); background: var(--panel-2); border: 1px solid var(--line);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.site-footer__sns a:hover { color: #fff; background: var(--accent); transform: translateY(-2px); }

/* ---------- 下層ページ共通 ---------- */
.page { padding-top: var(--header-h); }
.page__head {
  text-align: center;
  padding: clamp(48px, 9vw, 88px) 20px clamp(8px, 3vw, 24px);
}
.page__title { margin: 6px 0 0; font-size: clamp(28px, 7vw, 48px); font-weight: 900; letter-spacing: .06em; }

.detail-wrap { max-width: var(--maxw); margin: 0 auto; padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 40px) clamp(64px, 10vw, 100px); }
.back-link { display: inline-block; margin-bottom: 28px; font-size: 14px; color: var(--ink-dim); letter-spacing: .05em; }
.back-link:hover { color: var(--accent-2); }

/* ---------- メンバー詳細 ---------- */
.member-detail { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.member-detail__visual {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); display: grid; place-items: center;
  position: sticky; top: calc(var(--header-h) + 20px);
}
.member-detail__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.member-detail__visual img.is-empty { opacity: 0; }
.member-detail__visual img:not(.is-empty) + .member-card__placeholder { display: none; }

.member-detail__name { margin: 6px 0 8px; font-size: clamp(26px, 5vw, 40px); font-weight: 900; letter-spacing: .04em; }
.member-detail__catch { margin: 0 0 22px; color: var(--accent-2); font-size: 16px; }

.member-detail__sns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.member-detail__sns a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--ink); font-size: 14px; font-weight: 700;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.member-detail__sns a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.profile { margin: 0 0 30px; border-top: 1px solid var(--line); }
.profile > div { display: flex; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.profile dt { margin: 0; min-width: 96px; color: var(--ink-dim); font-size: 14px; font-weight: 700; }
.profile dd { margin: 0; font-size: 15px; }

.member-detail__bio h2 { margin: 0 0 12px; font-size: 15px; letter-spacing: .2em; color: var(--accent-2); }
.member-detail__bio p { margin: 0; color: var(--ink-dim); line-height: 1.9; }

@media (max-width: 720px) {
  .member-detail { grid-template-columns: 1fr; }
  .member-detail__visual { position: relative; top: 0; max-width: 340px; margin: 0 auto; width: 100%; }
}

/* ---------- 法務・テキストページ ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 40px) clamp(64px, 10vw, 100px); }
.legal__updated { color: var(--ink-dim); font-size: 13px; margin: 0 0 32px; }
.legal h2 {
  margin: 40px 0 12px; font-size: clamp(18px, 3.4vw, 22px); font-weight: 700;
  padding-left: 14px; border-left: 4px solid var(--accent); line-height: 1.4;
}
.legal h2:first-of-type { margin-top: 8px; }
.legal h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 700; }
.legal p { margin: 0 0 14px; line-height: 1.9; color: var(--ink); }
.legal ul { margin: 0 0 16px; padding-left: 1.4em; }
.legal li { margin: 6px 0; line-height: 1.85; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal .legal__note {
  margin-top: 40px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--panel-2); color: var(--ink-dim); font-size: 13px; line-height: 1.8;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 70svh; display: grid; place-items: center; text-align: center;
  padding: 120px 20px 80px;
}
.notfound__code {
  font-size: clamp(72px, 20vw, 160px); font-weight: 900; line-height: 1; margin: 0;
  background: linear-gradient(180deg, #1b2436 20%, #3b82f6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound__text { margin: 12px 0 28px; color: var(--ink-dim); }

/* ---------- フッター法務リンク ---------- */
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.site-footer__legal a { font-size: 12px; color: var(--ink-dim); }
.site-footer__legal a:hover { color: var(--accent-2); }

/* ---------- スクロール演出 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
    padding: 8px 0; transform: translateY(-120%);
    transition: transform .3s ease; border-bottom: 1px solid var(--line);
  }
  .nav.is-open { transform: none; }
  .nav__link { padding: 16px 24px; text-align: center; }
  .nav-toggle { display: flex; }

  /* スマホのホーム画面の所属メンバーは、頭だけ＋名前を横2列で表示 */
  #members .members { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  #members .member-card__thumb { aspect-ratio: 1 / 1; }
  #members .member-card__thumb img:not(.is-empty) { object-fit: cover; object-position: center; }
  #members .member-card__body { padding: 12px 12px 16px; }
  #members .member-card__name { font-size: 15px; }
  #members .member-card__role { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
}
