/* ======================================================
   🌌 Galactic HALO 共通テーマ（予兆ノート用）
   - 由来: 銀河ハロー占星術 top.css の雰囲気を踏襲
   - Service Worker 不使用（オンライン専用想定）
====================================================== */

:root{
  --bg:#0b1020;
  --bg2:#0f1630;
  --card:rgba(255,255,255,.07);
  --card2:rgba(255,255,255,.10);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);
  --line:rgba(255,255,255,.14);
  --accent:#8bd3ff;
  --accent2:#c8a8ff;
  --shadow:0 14px 40px rgba(0,0,0,.35);
  --radius:18px;
  --radius2:26px;
}

*{ box-sizing:border-box; }

html{
  min-height:100%;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(139,211,255,.20), transparent 60%),
              radial-gradient(900px 500px at 85% 0%, rgba(200,168,255,.18), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  background-color: var(--bg2); /* 念のための保険 */
}

body{
  min-height:100vh;
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  color:var(--text);
  background: transparent; /* 背景は html 側に任せる */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


/* 画面全体をダーク配色として扱わせる（フォーム部品の見え方安定） */
html{ color-scheme: dark; }

/* date入力（カレンダーアイコンを暗背景でも確実に見せる）
   - ネイティブアイコンは透明化し、右端に白いSVGアイコンを表示 */
input[type="date"]{
  color-scheme: dark;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}
input[type="date"]::-webkit-calendar-picker-indicator{
  opacity: 0;        /* ネイティブアイコンは見せない */
  width: 44px;       /* 右側クリック領域 */
  height: 100%;
  cursor: pointer;
}


a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{
  width:min(980px, 92vw);
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:10;
  background: rgba(10,14,30,.65);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
}

/* Card */
.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  padding: 14px;
}
.card-title{
  font-weight:800;
  letter-spacing:.02em;
  margin:0 0 8px;
}
.sub{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Button */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  padding: 12px 14px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  text-decoration:none !important;
  box-shadow: none;
}
.btn:hover{
  background: rgba(255,255,255,.10);
}
.btn.primary{
  border-color: rgba(139,211,255,.45);
  background: linear-gradient(135deg, rgba(139,211,255,.30), rgba(200,168,255,.20));
}
.btn.ghost{
  color: var(--accent);
}
.btn.small{
  padding:10px 12px;
  font-size: 14px;
}

/* チップ/タグ */
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 12.5px;
}
.tag{
  padding: 4px 10px;
  border:1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 12.5px;
}

/* フォーム（予兆ノート用） */
.input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
}
textarea{ min-height: 90px; resize: vertical; }
.input::placeholder, textarea::placeholder{ color: rgba(255,255,255,.45); }
.input:focus, select:focus, textarea:focus{
  border-color: rgba(139,211,255,.45);
  box-shadow: 0 0 0 3px rgba(139,211,255,.12);
}




/* date入力：右側のカレンダーボタン（どの端末でも確実に開けるように） */
.date-wrap{
  position: relative;
}
.date-wrap input[type="date"]{
  width: 100%;
}
.date-btn{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.date-btn:hover{
  background: rgba(255,255,255,.10);
}
.date-btn svg{
  width: 18px;
  height: 18px;
}

.hr{
  border:0;
  border-top:1px solid var(--line);
  margin: 12px 0;
}

@media (max-width: 860px){
  .wrap{ width:min(980px, 94vw); }
}
