/* ==============================
   base.css
   全ページ共通CSS
   - 基本設定
   - 背景
   - ヘッダー / ナビ
   - 共通レイアウト
   - 共通パネル
   - フッター
============================== */

/* ==============================
   基本設定
============================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #e9fbff;
  font-family:
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  background:
    linear-gradient(
      rgba(3, 35, 52, 0.35),
      rgba(2, 16, 28, 0.88)
    ),
    url("../images/page_background.webp") center top / cover fixed no-repeat;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.55);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 18%, rgba(115, 238, 255, 0.24), transparent 34%),
    radial-gradient(circle at 82% 26%, rgba(255, 177, 43, 0.12), transparent 26%),
    radial-gradient(circle at 50% 80%, rgba(0, 180, 220, 0.18), transparent 42%),
    linear-gradient(to bottom, rgba(2, 42, 61, 0.28), rgba(0, 8, 17, 0.8));
  mix-blend-mode: screen;
}

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

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

/* ==============================
   ヘッダー
============================== */

.site-header {
  padding: 28px 16px 18px;
  text-align: center;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 34, 54, 0.92),
      rgba(0, 92, 120, 0.48),
      rgba(0, 24, 36, 0.1)
    );
  border-bottom: 1px solid rgba(136, 237, 255, 0.5);
  box-shadow:
    0 0 24px rgba(0, 220, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.site-title {
  margin: 0;
  color: #7cf8ff;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 8px rgba(124, 248, 255, 0.9),
    0 0 22px rgba(0, 190, 255, 0.5),
    0 3px 8px rgba(0, 0, 0, 0.7);
}

.site-subtitle {
  margin-top: 8px;
  color: #d7fbff;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.global-nav {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

.global-nav a {
  position: relative;
  padding: 4px 2px;
  color: #efffff;
  text-shadow: 0 0 8px rgba(0, 220, 255, 0.75);
  transition: color 0.2s ease;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffb21f, transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: 0.2s ease;
}

.global-nav a:hover {
  color: #ffca4b;
}

.global-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ==============================
   共通レイアウト
============================== */

.page-wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.glass-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(128, 235, 255, 0.55);
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(0, 74, 105, 0.54),
      rgba(0, 145, 175, 0.24),
      rgba(0, 29, 48, 0.58)
    );
  box-shadow:
    0 0 22px rgba(0, 210, 255, 0.25),
    inset 0 0 24px rgba(148, 239, 255, 0.08);
  backdrop-filter: blur(4px);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 36px
    );
  opacity: 0.65;
}

.section-title {
  margin: 42px 0 18px;
  padding-bottom: 9px;
  color: #35f4ff;
  font-size: 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(79, 232, 255, 0.55);
  text-shadow:
    0 0 8px rgba(53, 244, 255, 0.85),
    0 2px 5px rgba(0, 0, 0, 0.7);
}

.section-title:first-child {
  margin-top: 0;
}

/* ==============================
   フッター
============================== */

.site-footer {
  padding: 28px 16px;
  text-align: center;
  color: #9feaff;
  font-size: 0.85rem;
  border-top: 1px solid rgba(79, 232, 255, 0.35);
  background: rgba(0, 18, 30, 0.72);
}

/* ==============================
   スマホ表示：共通
============================== */

@media screen and (max-width: 760px) {
  .page-wrap {
    width: min(100% - 22px, 1080px);
    padding-top: 22px;
  }
}
