/* ====== 色変数（公式サイトと完全一致） ====== */
:root {
  --bg-main: #050814;
  --bg-card: rgba(15, 20, 40, 0.9);
  --accent-blue: #28c7ff;
  --accent-pink: #ff2e9f;
  --text-main: #f7f7f7;
  --text-sub: #c0c4d8;
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.45);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

/* ====== 全体 ====== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  background:
    radial-gradient(circle at top left, #1b223a 0, transparent 55%),
    radial-gradient(circle at bottom right, #0b1326 0, transparent 50%),
    #050814;
  color: var(--text-main);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

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

/* ====== レイアウト ====== */
.main {
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

@media (min-width: 900px) {
  .main {
    max-width: 1080px;
    padding: 40px 40px 80px;
  }
}

/* ====== HERO（公式サイトの質感を再現） ====== */
.hero {
  position: relative;
  border-radius: 26px;
  padding: 18px 16px 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(40,199,255,0.12), rgba(255,46,159,0.05)),
    radial-gradient(circle at 10% -10%, rgba(40,199,255,0.35), transparent 60%),
    radial-gradient(circle at 100% 120%, rgba(255,46,159,0.32), transparent 60%),
    #050814;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.16);
  margin-bottom: 28px;
}

.hero-glow {
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.14), transparent 60%),
    radial-gradient(circle at 80% 120%, rgba(40,199,255,0.18), transparent 65%);
  opacity: 0.45;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.logo-mark {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--text-sub);
}

.hero-main {
  display: flex;
  gap: 14px;
}

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  border: 2px solid rgba(255,255,255,0.55);
  background: #111624;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.avatar span {
  background: linear-gradient(135deg, #fff, #d6f2ff);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-subtitle {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 10px;
}

/* ====== カード ====== */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
}

.card__inner {
  padding: 20px;
}

/* ====== タイトル ====== */
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
}

/* ====== フォーム ====== */
.form-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-sub);
}

.form-control {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(10,13,30,0.7);
  color: var(--text-main);
  margin-bottom: 14px;
}

textarea.form-control {
  min-height: 180px;
}

/* ====== ボタン ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background-image: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
  color: #050814;
  border: none;
}

/* ====== フッタ ====== */
.footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: var(--text-sub);
  text-align: center;
}

/* タイトル中央寄せ */
.hero-title-center {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

/* ナビ右寄せ */
.hero-nav {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.hero-nav a {
  color: var(--text-main);
  opacity: 0.85;
}

.hero-nav a:hover {
  opacity: 1;
}

/* ====== ガラス質フォーム（Glassmorphism） ====== */
.form {
  backdrop-filter: blur(14px);
  background: rgba(10, 13, 30, 0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 35px rgba(0,0,0,0.45);
}

/* ラベル */
.form-label {
  color: var(--text-sub);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

/* 入力欄（ガラス質） */
.form-control {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  margin-bottom: 16px;
  transition: border 0.2s, background 0.2s;
}

.form-control:focus {
  border: 1px solid var(--accent-blue);
  background: rgba(255,255,255,0.12);
  outline: none;
}

/* テキストエリア */
textarea.form-control {
  min-height: 200px;
  resize: vertical;
}

/* ボタン（ネオングラデ） */
.btn-primary {
  background-image: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
  color: #050814;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.55);
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
}

.thread-body {
  white-space: pre-wrap;
}

.thread-body {
  white-space: pre-wrap !important;
}

.thread-image {
  margin-top: 8px;
}

.thread-body {
  white-space: pre-wrap !important;
}

.thread-image {
  margin-top: 8px;
  display: block;
  clear: both;
}