:root{
  --bg1:#0b1020;
  --bg2:#0b0b0f;
  --text:#ffffff;
  --muted:rgba(255,255,255,.72);
  --line:rgba(255,255,255,.14);

  --p1:#6d5efc;
  --p2:#ff5ea8;

  --r:18px;
}

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

html, body{
    color: var(--text);
  min-height: 100%;
  background:
    radial-gradient(1400px 900px at 20% 20%, rgba(109,94,252,.28), transparent 78%),
    radial-gradient(1400px 900px at 80% 60%, rgba(255,94,168,.22), transparent 78%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}
body{ margin:0; }

a{ color:inherit; }

/* ===== TOP全体：中央寄せの“1カラム” ===== */
main, .container{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

/* 見出し */
h1{
  margin: 24px 0 12px;
  font-size: 54px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
p{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

/* ===== フォーム（崩れ対策：横並び→自動で折り返す） ===== */
form{
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(0,0,0,.26);
  padding: 18px;
  backdrop-filter: blur(10px);
}

label{
  display: inline-block;
  font-weight: 800;
  margin: 14px 0 8px;
}

input[type="text"], input[type="url"], textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  font-size: 15px;
}

textarea{ resize: vertical; min-height: 120px; }

input:focus, textarea:focus{
  border-color: rgba(255,255,255,.26);
}

.urls
{
  margin-bottom: 40px;
}

/* ボタン */
button, input[type="submit"]{
  border: none;
  color: #fff;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--p1), var(--p2));
}
button:hover, input[type="submit"]:hover{ filter: brightness(1.04); }
button:active, input[type="submit"]:active{ transform: translateY(1px); }

/* ボタンが複数ある場合の見た目 */
form .row, form .actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  align-items: center;
}
form .actions button{
  background: linear-gradient(90deg, rgba(109,94,252,.9), rgba(255,94,168,.8));
}

/* 下部のコピーやフッター */
footer{
  margin-top: 28px;
  padding: 12px 24px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}

/* ===== header（index用） ===== */
.site-header .container{
  padding: 0;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.14);
  padding: 12px 24px;
  height: 72px;
  align-items: center;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  min-height: 52px;
  align-items: center;
}

.brand{
  text-decoration:none;
  font-weight: 800;
  letter-spacing: .2px;
}

/* ===== main spacing（index用の余白を安定させる） ===== */
main{
  padding-top: 18px;   /* ヘッダー直下の詰まり防止 */
}

/* h1/pの余白が変になった時の保険 */
h1{ margin-top: 24px; }


/* ===== スマホ ===== */
@media (max-width: 640px){
  h1{ font-size: 40px; }
  main, .container{ padding: 18px; }
}
