/* boat_styles.css (スマホ対応・mone_styles.cssに合わせた構成) */

/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f5f7fa;
  color: rgb(55, 10, 92);
  line-height: 1.6;
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  line-height: 60px;
  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: 0 20px;
  height: 60px;
}

.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: 10px;
    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;
  }
}

/* 背景動画 */
#bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  clip-path: inset(0 0 10% 0);
  -webkit-clip-path: inset(0 0 10% 0);
  opacity: 0.7;
}

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

/* コンテンツラッパー */
.container {
  max-width: 600px;
  width: 100%;
  margin: 80px auto 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

/* タイトル */
h1, h2 {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  color: #2d0063;
  margin-bottom: 20px;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

/* フォーム */
form {
  text-align: center;
}

form div {
  display: inline-block;
  margin: 0 10px 1rem;
  vertical-align: top;
}

form label {
  display: inline-block;
  width: 100px;
  font-weight: bold;
}

form input,
form select {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ボタン */
button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #004e7a;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #0b96e7;
}

/* 結果テーブル */
.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.result-table th,
.result-table td {
  border: 1px solid #c78933;
  padding: 8px;
  text-align: center;
}

.result-table th {
  background: #f0f0f0;
}

/* モバイル対応 */
@media (max-width: 600px) {
  body {
    /* ページ下部に余裕を入れる */
    padding-bottom: 40px;
  }

  .container {
    padding: 12px;
    /* 上 80px／左右 auto（中央寄せ）／下 40px */
    margin: 80px auto 40px;
    max-width: 600px;
  }

  h1 {
    font-size: 1.5rem;
  }
}
/* スパークル効果 */
.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%);
  }
}