:root {
  --bg: #0b0f19;
  --card: #121a2b;
  --text: #e9eefc;
  --muted: #b9c4e6;
  --accent: #7aa2ff;
  --line: rgba(255, 255, 255, .10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;

  background:
    /* 背景画像 */
    url("../assets/Icyty2nd_background.png") center center / cover no-repeat fixed,

    /* 上部にほんのり暖色ライト */
    radial-gradient(1200px 800px at 50% 0%, rgba(138, 132, 223, 0.08), transparent 65%),
    /* 画面下にごく薄い影で締める */
    radial-gradient(1000px 700px at 50% 100%, rgba(0, 0, 0, 0.25), transparent 70%),

    #2a2826;

  color: var(--text);
}


/* ============================= */
/* 上部フェード透明エフェクト */
/* ============================= */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px; /* ← 広げる */

  pointer-events: none;

  background: linear-gradient(
    to bottom,
    #2a2826 0%,
    rgba(42, 40, 38, 0.9) 20%,
    rgba(42, 40, 38, 0.6) 40%,
    rgba(42, 40, 38, 0.2) 65%,
    rgba(42, 40, 38, 0) 100%
  );

  z-index: 900;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 18px 70px; /* ← 上を増やす */
}

.topbar {
  position: fixed;
  top: 10px; /* 上から少し空ける */
  left: 50%;
  transform: translateX(-50%);

  width: 100%;
  max-width: 1000px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;

  background: rgba(18, 26, 43, .75);
  backdrop-filter: blur(8px);

  z-index: 1000;
}

.brand {
  font-weight: 800;
  letter-spacing: .4px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  margin-left: 12px;
}

nav a:hover {
  color: var(--text);
}

.hero {
  margin-top: 18px;
  padding: 22px;
  border-radius: 18px;

  background: rgba(18, 26, 43, 0.88); /* 少し濃く */
  border: 1px solid rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

h1 {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.15;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, .14);
}

.card.highlight {
  background: rgba(28, 48, 85, 0.90); /* 青寄り・落ち着いた色 */
  border: 1px solid rgba(120, 180, 255, 0.25);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 0 12px rgba(80, 150, 255, 0.12),   /* 控えめ発光 */
    0 10px 28px rgba(0, 0, 0, 0.40);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card.highlight:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 18px rgba(80, 150, 255, 0.18),
    0 16px 40px rgba(0, 0, 0, 0.45);
}

.btns {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  text-decoration: none;
  background: rgba(255, 255, 255, .06);
}

.btn.primary {
  border-color: rgba(122, 162, 255, .55);
  background: rgba(122, 162, 255, .16);
}

.section {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;

  background: rgba(18, 26, 43, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.10);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 6px 25px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.section h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.small {
  font-size: 13px;
  color: rgba(185, 196, 230, .8);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, .12);
  margin-top: 4px;
}

.item .meta {
  font-size: 13px;
  color: rgba(185, 196, 230, .85);
  margin-bottom: 6px;
}

.item .title {
  font-weight: 700;
  margin-bottom: 6px;
}

footer {
  margin-top: 26px;
  font-size: 13px;
  color: rgba(3, 9, 27, 0.75);
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 30px;
  }
}

.rule_item {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, .12);
  margin-top: 4px;
  text-decoration: none;
}

.rule_item .title {
  font-weight: 700;
  margin-bottom: 6px;
  text-decoration: none;
}

a.rule_item:hover {
  background: rgba(0, 0, 0, .2);
  transform: translateY(-2px);
  transition: 0.2s;
}

.job_header {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.job_header a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.main_logo {
  text-align: center;
  margin: 22px 0 10px;
}

.main_logo img {
  max-width: 240px;
  height: auto;
}

.index_btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.index_btns > div:first-child {
  display: flex;
  gap: 10px;
}

.index_btns > div:last-child {
  display: flex;
}

.main_logo {
  position: relative;
  width: 100%;

  height: 300px; /* 高さ調整 */

  display: flex;
  align-items: center;
  justify-content: center;

  background: url("../assets/Icyty2nd_header.png") center center / cover no-repeat;
  overflow: hidden;
}

.main_logo img {
  max-height: 95%;   /* ヘッダーの高さに対して調整 */
  max-width: 90%;
  height: auto;
  width: auto;
}
