@charset "UTF-8";
/* =========================================================
   FPS - Freeware Publishing Site  リニューアル版 共通CSS
   ========================================================= */

/* ---------- 色・サイズの設定（ここを変えると全体が変わります） ---------- */
:root {
  --bg: #04070d;            /* ページ背景 */
  --bg-panel: #0a111d;      /* ヘッダー・フッター背景 */
  --line: #1b2a40;          /* 区切り線 */
  --blue: #2f8cff;          /* ネオンブルー */
  --blue-light: #8cc8ff;    /* 明るい青（英字・装飾） */
  --text: #e8eef7;          /* 本文 */
  --text-sub: #9fb0c6;      /* 補足文字 */
  --max: 1380px;            /* コンテンツ最大幅 */
  --gap: 16px;              /* カード間の余白 */
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --font-en: "Rajdhani", "Noto Sans JP", sans-serif;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(47,140,255,.10), transparent 55%),
    radial-gradient(ellipse at 90% 85%, rgba(47,140,255,.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; vertical-align: bottom; border: 0; }
a { color: var(--blue-light); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
.pc { display: inline; }
.ib { display: inline-block; }   /* 改行位置を整える（このまとまりの途中で改行しない） */

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, #0d1522 0%, #070c15 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(47,140,255,.35), 0 6px 24px rgba(0,0,0,.6);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { width: 230px; display: block; }

.global-nav ul { display: flex; gap: 6px; }
.global-nav a {
  position: relative; display: block;
  padding: 10px 18px;
  color: var(--text); font-size: 15px; font-weight: 500; letter-spacing: .06em;
  transition: color .2s;
}
.global-nav a::after {             /* 下線（ホバー・現在ページ） */
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 4px;
  height: 2px; background: var(--blue);
  box-shadow: 0 0 8px var(--blue), 0 0 16px var(--blue);
  transform: scaleX(0); transition: transform .25s;
}
.global-nav a:hover { color: #fff; }
.global-nav a:hover::after,
.global-nav a.is-current::after { transform: scaleX(1); }
.global-nav a.is-current { color: #fff; text-shadow: 0 0 10px rgba(47,140,255,.9); }

.menu-btn { display: none; }

/* ---------- メインビジュアル ---------- */
.hero {
  position: relative;
  background: url(../images/fps/bg_hero.webp) center 40% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero::before {                    /* 文字を読みやすくする暗いグラデーション */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,7,13,.85) 0%, rgba(4,7,13,.45) 45%, rgba(4,7,13,0) 70%),
              linear-gradient(0deg, var(--bg) 0%, rgba(4,7,13,0) 25%);
}
.hero-inner {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: 72px 24px 80px 64px;
  min-height: 460px;
}
.hero-title {
  margin: 0;
  font-size: clamp(30px, 4.3vw, 62px); font-weight: 700; line-height: 1.35; letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 0 12px rgba(47,140,255,.85), 0 0 32px rgba(47,140,255,.45);
}
.hero-lead {
  margin: 18px 0 0;
  font-size: clamp(17px, 1.8vw, 24px); font-weight: 500; letter-spacing: .2em;
}
.hero-text {
  margin: 20px 0 0;
  font-size: 15px; line-height: 1.9; letter-spacing: .06em; color: #d9e3f0;
}
.hero-side {
  position: absolute; right: 48px; margin: 0;
  font-family: var(--font-en); font-weight: 500;
  font-size: 13px; line-height: 1.95; letter-spacing: .3em;
  color: var(--blue-light); opacity: .85;
}
.hero-side-top { top: 40px; }
.hero-side-top::after {
  content: ""; display: block; width: 36px; height: 1px; margin-top: 6px; background: var(--blue-light);
}
.hero-side-bottom { bottom: 28px; }

/* ---------- カード ---------- */
.cards {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: grid; gap: var(--gap); align-items: center;
}
.cards-os   { grid-template-columns: repeat(2, 1fr); margin-top: -8px; }
.cards-menu { grid-template-columns: repeat(3, 1fr); margin-top: var(--gap); margin-bottom: 40px; }

.card {
  display: block; border-radius: 6px;
  transition: transform .25s, filter .25s;
}
.card img { width: 100%; display: block; }
.card:hover, .card:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.15) drop-shadow(0 0 12px rgba(47,140,255,.6));
}
.card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- フッター ---------- */
.site-footer {
  background: linear-gradient(180deg, #0a111d 0%, #05080f 100%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 0 rgba(47,140,255,.25);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 28px; }
.footer-brand img { width: 150px; display: block; }
.footer-brand p { margin: 0; font-size: 14px; letter-spacing: .08em; color: var(--text); }
.footer-right { text-align: right; }
.footer-nav ul { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 28px; }
.footer-nav a { color: var(--text); font-size: 13px; }
.footer-nav a:hover { color: var(--blue-light); }
.copyright { margin: 6px 0 0; color: var(--text-sub); font-size: 12px; }

/* ---------- ページトップボタン ---------- */
.pagetop {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--blue); background: rgba(4,7,13,.85);
  box-shadow: 0 0 12px rgba(47,140,255,.6);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.pagetop::before {
  content: ""; position: absolute; left: 50%; top: 54%;
  width: 12px; height: 12px; border-left: 2px solid #fff; border-top: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.pagetop.is-show { opacity: 1; visibility: visible; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1100px) {
  .cards-menu { grid-template-columns: repeat(2, 1fr); }
  .hero-side { display: none; }
}

/* タブレット・スマホ：メニューを3本線ボタンに切り替え */
@media (max-width: 900px) {
  .logo img { width: 170px; }
  .menu-btn {
    display: block; position: relative;
    width: 44px; height: 44px; padding: 0;
    background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  }
  .menu-btn span {
    position: absolute; left: 11px; width: 20px; height: 2px; background: #fff;
    box-shadow: 0 0 6px var(--blue); transition: transform .25s, opacity .25s;
  }
  .menu-btn span:nth-child(1) { top: 14px; }
  .menu-btn span:nth-child(2) { top: 21px; }
  .menu-btn span:nth-child(3) { top: 28px; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .global-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,12,21,.97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .global-nav li { border-bottom: 1px solid var(--line); }
  .global-nav a { padding: 14px 8px; }
  .global-nav a::after { left: 8px; right: auto; width: 40px; bottom: 8px; }

  .hero::before {
    background: linear-gradient(90deg, rgba(4,7,13,.88) 0%, rgba(4,7,13,.6) 60%, rgba(4,7,13,.3) 100%),
                linear-gradient(0deg, var(--bg) 0%, rgba(4,7,13,0) 25%);
  }
  .hero-inner { padding: 56px 24px 64px; min-height: 0; }
  .pc { display: none; }
  .cards-os { grid-template-columns: 1fr; margin-top: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; gap: 10px; }
  .footer-right { text-align: center; }
  .footer-nav ul { justify-content: center; gap: 4px 18px; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .header-inner { padding: 8px 16px; }
  .hero { background-image: url(../images/fps/bg_hero_mobile.webp); background-position: center top; }
  .hero::before {
    background: linear-gradient(180deg, rgba(4,7,13,.55) 0%, rgba(4,7,13,.75) 60%, var(--bg) 100%);
  }
  .hero-inner { padding: 44px 16px 48px; }
  .hero-lead { letter-spacing: .12em; }
  .hero-text { font-size: 14px; }
  .cards { padding: 0 16px; gap: 12px; }
  .cards-menu { grid-template-columns: 1fr; margin-top: 12px; }
}

/* 動きを減らす設定の利用者向け */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .global-nav a::after, .pagetop { transition: none; }
}
