/* style.css */
/* 置き場所: public_html/style.css
   テーマ:
   - 黒背景＋白文字
   - アクセント: 紫 & ターコイズ
   - Telegram: ターコイズ強め
   - X: 黒基調でコントラスト強め
   - PCでも中央寄りで崩れない
*/

:root {
  --container-max: 520px;

  --bg: #07070a;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.70);

  --accent-purple: #8b5cf6;
  --accent-turquoise: #22d3ee;

  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.045);
  --panel-hover: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.10);

  --x-bg: #040405;
  --x-border: rgba(255, 255, 255, 0.24);

  --danger-bg: rgba(255, 80, 80, 0.11);
  --danger-border: rgba(255, 80, 80, 0.25);
  --danger-text: #ffd0d0;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 50% -160px, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(900px 600px at 15% 15%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(900px 700px at 85% 35%, rgba(139, 92, 246, 0.10), transparent 55%),
    var(--bg);
}

.container {
  width: min(var(--container-max), calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.9rem 0 3rem;
}

@media (min-width: 900px) {
  .container { padding-top: 2.4rem; }
}

/* ===== Profile ===== */

.profile { text-align: center; margin-bottom: 1rem; }

.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-turquoise));
  box-shadow:
    0 14px 52px rgba(139, 92, 246, 0.25),
    0 10px 40px rgba(34, 211, 238, 0.08);
}

.avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.profile h1 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.28rem;
  letter-spacing: 0.03em;
}

.muted { color: var(--muted); font-size: 0.95rem; }

/* 最終更新日（ピル） */
.updated {
  margin: 0.75rem auto 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.4rem 0.75rem;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}

/* ===== Notice area ===== */

.notice-area {
  display: grid;
  gap: 0.9rem;
  margin: 0.75rem 0 1.1rem;
}

.notice-card {
  position: relative;
  border-radius: 16px;
  padding: 0.95rem 0.95rem;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.notice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 260px at 20% 0%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(700px 260px at 80% 0%, rgba(139, 92, 246, 0.12), transparent 60%);
  pointer-events: none;
}

.notice-inner { position: relative; }

.notice-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.notice-title h2 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.notice-title .hint {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.notice-list {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.84);
}

.notice-list li { margin: 0.4rem 0; line-height: 1.6; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  margin-right: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.tag--important { border-color: rgba(255, 90, 90, 0.40); background: rgba(255, 90, 90, 0.12); }
.tag--update { border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.12); }
.tag--new { border-color: rgba(139, 92, 246, 0.45); background: rgba(139, 92, 246, 0.12); }

.notice-jump {
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Collapsible sections ===== */

.section {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.section-summary {
  cursor: pointer;
  padding: 0.95rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  user-select: none;
  list-style: none;
  position: relative;
  padding-right: 2.25rem;
}

.section-summary::-webkit-details-marker { display: none; }
.section-summary::marker { content: ""; }

.section-summary::after {
  content: "▾";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.75;
  transition: transform 120ms ease;
}

.section[open] .section-summary::after { transform: translateY(-50%) rotate(180deg); }
.section[open] .section-summary { border-bottom: 1px solid var(--border); }

.section-body { padding: 0.9rem 0.85rem 0.25rem; }
@media (min-width: 900px) { .section-body { padding: 1rem 1rem 0.35rem; } }

/* ===== Link buttons + badges ===== */

.link {
  width: 100%;
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  gap: 0.55rem;

  text-decoration: none;
  color: var(--text);

  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 16px;

  padding: 1.05rem 1rem 0.95rem;
  margin-bottom: 0.65rem;

  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.link:hover { background: var(--panel-hover); border-color: rgba(255, 255, 255, 0.18); }
.link:active { transform: scale(0.985); }

.link-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.icon { width: 34px; height: 34px; fill: currentColor; opacity: 0.96; }

.link-label { font-size: 1rem; font-weight: 650; letter-spacing: 0.01em; text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

.badge--new { border-color: rgba(139, 92, 246, 0.55); background: rgba(139, 92, 246, 0.14); }
.badge--update { border-color: rgba(34, 211, 238, 0.55); background: rgba(34, 211, 238, 0.14); }

/* Telegram: ターコイズ強め */
.link--telegram {
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.06) inset;
}

.link--telegram .link-icon {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.60);
  color: #d5fbff;
}

/* X: 黒基調、コントラスト強め */
.link--x { background: var(--x-bg); border-color: var(--x-border); }
.link--x:hover { background: #0b0b0c; border-color: rgba(255, 255, 255, 0.34); }
.link--x .link-icon { background: #000; border-color: rgba(255, 255, 255, 0.26); color: #fff; }

/* どこが更新されたか一発で分かる（お知らせからジャンプ時） */
.link:target {
  outline: 2px solid rgba(34, 211, 238, 0.70);
  box-shadow:
    0 0 0 6px rgba(34, 211, 238, 0.18),
    0 18px 50px rgba(34, 211, 238, 0.10);
  scroll-margin-top: 16px;
}

/* ===== Error box ===== */

.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  padding: 0.9rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

/* ===== Footer ===== */

.footer { margin-top: 1.7rem; text-align: center; }
.footer-link { color: var(--muted); text-decoration: none; }
.footer-link:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
