* { box-sizing: border-box; margin: 0; padding: 0; }

:root { color-scheme: dark; }

body {
  min-height: 100vh;
  background-color: #0a0f2e;
  background-image:
    radial-gradient(circle at 80% 10%, rgba(67,84,180,0.35) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(250,204,21,0.10) 0%, transparent 50%),
    linear-gradient(to bottom, #070b24, #0c1236 45%, #0a0f2e);
  font-family: 'Zen Maru Gothic', Arial, sans-serif;
  color: #e8eaf6;
  overflow-x: hidden;
}

/* 背景ブロブ */
.blob {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.blob-top    { top: -15%;  right: -15%;  background: rgba(80,102,224,0.28); }
.blob-bottom { bottom: -15%; left: -15%; background: rgba(250,204,21,0.12); }

/* 星空レイヤー */
.star-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 25px 35px,  #ffec99 50%, transparent 51%),
    radial-gradient(1px 1px at 160px 120px, #fff9db 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 90px 210px, #ffe066 50%, transparent 51%),
    radial-gradient(1px 1px at 210px 60px,  #fff3bf 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 300px 170px, #ffd43b 50%, transparent 51%),
    radial-gradient(1px 1px at 350px 300px, #fff9db 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 130px 330px, #ffe066 50%, transparent 51%);
  background-size: 380px 380px;
}
.star-field-2 {
  background-image:
    radial-gradient(1.8px 1.8px at 60px 80px,  #ffd43b 50%, transparent 51%),
    radial-gradient(1px 1px at 250px 40px,  #fff9db 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 180px 260px, #ffec99 50%, transparent 51%),
    radial-gradient(1px 1px at 320px 220px, #ffe066 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40px 300px,  #fff3bf 50%, transparent 51%);
  background-size: 460px 460px;
  animation: twinkle 4.5s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 1; }
  to   { opacity: 0.35; }
}

/* 風ライン SVG */
.wind-svg {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.wind-line {
  stroke-dasharray: 600 2400;
  animation: wind-flow 12s linear infinite;
}
@keyframes wind-flow {
  from { stroke-dashoffset: 3000; }
  to   { stroke-dashoffset: 0; }
}

/* ヘッダー */
header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1rem 2rem;
}

/* 言語トグルボタン */
.lang-toggle-wrapper {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 23, 62, 0.7);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 2rem;
  padding: 0.3rem;
  backdrop-filter: blur(8px);
}
.lang-btn {
  background: transparent;
  border: none;
  color: #a5b0dd;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}
.lang-btn.active {
  background: linear-gradient(to right, #fde047, #f59e0b);
  color: #1c2354;
  box-shadow: 0 2px 10px rgba(250,204,21,0.25);
}

.header-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #facc15;
  margin-bottom: 0.75rem;
}
h1 {
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(to right, #fde047, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(250, 204, 21, 0.25);
}
.header-desc {
  margin-top: 1rem;
  color: #a5b0dd;
  font-size: 0.9rem;
  max-width: 400px;
  margin-inline: auto;
  line-height: 1.7;
  font-weight: 500;
}

/* メイン */
main {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ガラスカード */
.glass-card {
  background: rgba(16, 23, 62, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 32px rgba(4, 8, 30, 0.6), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* 入力フォーム */
.torii-icon {
  width: 80px; height: 80px;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #facc15;
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.15);
}
.torii-icon svg { width: 40px; height: 40px; }

#form-section h2 {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f1f4ff;
  margin-bottom: 1.5rem;
}

.date-input {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  background: #0d1440;
  border: 1px solid #303e85;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #e8eaf6;
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.date-input:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250,204,21,0.2);
}

.btn-primary {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  background: linear-gradient(to right, #fde047, #f59e0b);
  border: none;
  border-radius: 1rem;
  color: #1c2354;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 4px 20px rgba(250,204,21,0.3);
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* 結果：運勢カード */
.card-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fbbf24;
  margin-bottom: 0.75rem;
}
.stars-row {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.star { font-size: 1.5rem; }
.star.filled { color: #f472b6; }
.star.empty  { color: #fbcfe8; }

.message-box {
  background: rgba(22, 31, 80, 0.6);
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.message-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #facc15;
  margin-bottom: 0.5rem;
}
.message-text {
  font-size: 0.82rem;
  color: #ccd4f2;
  line-height: 1.75;
  font-weight: 500;
}

.lucky-row {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid #e9d5ff;
  border-bottom: 1px solid #e9d5ff;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}
.lucky-item {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}
.lucky-item + .lucky-item { border-left: 1px solid #e9d5ff; }
.lucky-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.lucky-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #db2777;
}

.lucky-area-box { text-align: center; }
.lucky-area-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4338ca;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.lucky-wards {
  display: inline-block;
  background: rgba(238,242,255,0.6);
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #374151;
}

/* パワースポットカード */
.spot-card {
  border-top: 4px solid #ec4899;
  padding: 0;
  overflow: hidden;
}
.spot-badge {
  display: inline-block;
  margin: 2rem 2rem 0.75rem;
  padding: 0.3rem 1rem;
  background: #fce7f3;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #be185d;
}
.spot-name {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #1e1b4b;
  padding: 0 2rem;
  margin-bottom: 0.5rem;
}
.spot-area {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  padding: 0 2rem 1.5rem;
}

.benefit-box {
  background: #f5f3ff;
  border-top: 1px solid #ede9fe;
  border-bottom: 1px solid #ede9fe;
  padding: 1rem 2rem;
  margin-bottom: 1.5rem;
}
.benefit-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6d28d9;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}
.benefit-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e1b4b;
}

.spot-desc {
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.8;
  font-weight: 500;
  padding: 0 2rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e1b4b;
  border-bottom: 1px solid #e9d5ff;
  padding: 0 2rem 0.6rem;
  margin-bottom: 0.75rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 2rem;
  margin-bottom: 1.5rem;
}
.feature-list li {
  font-size: 0.82rem;
  font-weight: 500;
  color: #1f2937;
  display: flex;
  gap: 0.5rem;
}
.feature-list li::before { content: "•"; color: #ec4899; flex-shrink: 0; }

.water-hint {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.6;
  padding: 0 2rem;
  margin-bottom: 0.75rem;
}

.water-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 2rem;
  margin-bottom: 1.5rem;
}
.water-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255,255,255,0.95);
  border: 1px solid #ede9fe;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.water-item:hover {
  background: #fdf2f8;
  box-shadow: 0 4px 12px rgba(219,39,119,0.1);
  transform: translateY(-2px);
}
.water-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}
.water-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 0.25rem;
}
.water-desc {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.5;
}

.btn-map {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: calc(100% - 4rem);
  margin: 0 2rem 2rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e9d5ff;
  border-radius: 1rem;
  color: #6d28d9;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.btn-map:hover { background: #f5f3ff; }

.btn-reset {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: none;
  color: #fbbf24;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.15s;
}
.btn-reset:hover { color: #fde047; }

.hidden { display: none !important; }

/* ===== 食の占星術 追加スタイル ===== */
#result-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sign-display {
  text-align: center;
  margin-bottom: 0.25rem;
}
.sign-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 50%;
  font-size: 2.2rem;
  color: #db2777;
}
.sign-name {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #1e1b4b;
  margin-bottom: 1.25rem;
}
.water-item .water-name,
.water-item .water-desc { display: block; }

/* ほかにもおすすめ（料理チップ） */
.alt-box {
  padding: 0 2rem;
  margin-bottom: 1.5rem;
}
.alt-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6d28d9;
  letter-spacing: 0.12em;
  margin: 0.9rem 0 0.4rem;
}
.alt-dishes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.alt-chip {
  display: inline-block;
  background: #fff;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4c1d95;
}

/* 場所名で検索 */
.loc-row {
  display: flex;
  gap: 0.5rem;
  padding: 0 2rem;
  margin-bottom: 1rem;
}
.loc-input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
}
.btn-loc {
  width: auto;
  flex-shrink: 0;
  margin-top: 0;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-radius: 0.9rem;
}
.resto-status {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.7;
  text-align: center;
  padding: 0.5rem 0;
}
