/* mone_styles.css (更新版) */

/* ヘッダー全体 */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  backdrop-filter: blur(5px);
}

/* 内部コンテナ */
.nav-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

/* ロゴ */
.logo a {
  font-size: 1.3rem;
  font-family: 'Cormorant Garamond', serif;
  color: #9999CC;
  text-decoration: none;
  font-weight: bold;
}

/* ナビゲーションリスト */
.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-list li a {
  color: #9999CC;
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 12px;
  transition: background 0.3s, color 0.3s;
}
.nav-list li a:hover {
  background: #9999CC;
  color: #000;
  border-radius: 4px;
}

/* メニューボタン（ハンバーガー） */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  color: #9999CC;
  border: none;
  cursor: pointer;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    display: none;
  }
  .nav-list.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: auto; /* ← ここが重要：スクロールを許可 */
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
  /* 背景動画がある場合は padding を一時的に無効化 */
  padding: 0;
}

/* 動画背景 */
#bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -1;
  object-fit: cover;
}

/* オーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

/* コンテンツ */
.container {
  max-width: 900px;
  margin: 60px auto 0 auto; /* ← 上に余白を追加 */
  position: relative;
  z-index: 1;
  padding: 20px;
}

h1 {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 20px;
  color: #FFCCFF;
}

h3 {
  margin-top: 10px;
  color: #bfbfff;
}

.note {
  color: #9999CC;
}

/* アラート */
.alert {
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.alert-error {
  background: #fdecea;
  color: #b71c1c;
}
.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
}

/* フォームカード */
.form-card {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-top: 20px;
}
.form-card section {
  margin-bottom: 24px;
}

/* カレンダー */
.calendar {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.calendar th,
.calendar td {
  width: 14.285%;
  height: 50px;
  text-align: center;
  border: 1px solid #e0e0e0;
  vertical-align: middle;
  font-size: 0.95rem;
}
.calendar th {
  background: #f2f2f2;
  font-weight: bold;
  color: #555;
}
.calendar td.available {
  background-color: #fafad2;
  cursor: pointer;
  transition: background 0.2s;
}
.calendar td.available:hover {
  background-color: #f9ed0a;
}
.calendar td.unavailable {
  background-color: #f0f0f0;
  color: #c0c0c0;
}

/* 時間リスト */
.time-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.time-item {
  flex: none; /* ← 幅の指定を無効にする */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.2s;
}
.time-item:hover:not(.disabled) {
  border-color: #3498db;
}
.time-item.disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}
.time-item input {
  margin-right: 8px;
  accent-color: #3498db;
}

/* ユーザー情報フォーム */
.userinfo label {
  display: block;
  margin-bottom: 12px;
}
.userinfo input,
.userinfo textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 4px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}
.userinfo input:focus,
.userinfo textarea:focus {
  border-color: #3498db;
  outline: none;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: #003333;
  color: #fff;
  font-size: 1.1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}
.btn-submit:hover {
  background: #330033;
}

.profile-image {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* 中筮ページ：結果の中央揃え用ラップ */
.result-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  gap: 16px;
  color: #bfbfff
}

.result {
  font-size: 18px;
  color: #bfbfff
  margin-top: 20px;
}

.result-box {
  font-size: 18px;
  color: #bfbfff;
  margin-bottom: 20px;
}

/* 結果テキストを大きく見やすく中央に */
.result-box p,
.final-result {
  font-size: 1.4rem;
  margin-top: 20px;
  text-align: center;
  color: #bfbfff;
  line-height: 1.6;
}

.refresh-button {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  color:#C99DA5;
  font-size: 18px;
  border-radius: 50px; /* This makes it very round, adjust if needed */
  width: 100px;
  height: 100px;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0px 2px 4px 0px rgba(119, 88, 88, 0.5);
  background-color: #6B3A65; /* Assuming you want a basic white background */
  background-image: linear-gradient(180deg, #3a656d, #3a656d);
  margin: auto; /* This centers the button horizontally */
}

.refresh-button:hover {
  transform: translateY(2px);
  box-shadow: 0 0 #B3737F
}

.sparkle {
  position: fixed;
  pointer-events: none;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #fff9c4 30%, #ffeb3b 80%, transparent 100%);
  border-radius: 50%;
  box-shadow:
    0 0 4px 1px #fff59d,
    0 0 6px 2px #fff176;
  z-index: 9999;
  animation: sparkle-fade 0.8s ease-out forwards;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}

@keyframes sparkle-fade {
  0% {
    opacity: 1;
    transform: scale(1) translate(-50%, -50%);
  }
  100% {
    opacity: 0;
    transform: scale(1.8) translate(-50%, -50%);
  }
}

/* レスポンシブ */

@media (max-width: 600px) {
  .profile-image {
    max-width: 80%;
  }
}

@media (max-width: 600px) {
  .time-item {
    flex: 1 1 100%;
  }
  .calendar th,
  .calendar td {
    height: 40px;
    font-size: 0.85rem;
  }
  .form-card {
    padding: 16px;
  }
}
