@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');
*,
*:before,
*:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
:root {
  --bg-color: rgba(240, 242, 245, 1);
  --card-bg: rgba(255, 255, 255, 0.6);
  --primary-gradient: linear-gradient(135deg, rgba(34, 197, 94, 1) 0%, rgba(21, 128, 61, 1) 100%);
  --text-main: rgba(30, 41, 59, 1);
  --text-sub: rgba(100, 116, 139, 1);
  --input-border: rgba(226, 232, 240, 1);
  --accent-yellow: rgba(253, 224, 71, 1);
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  /* --- 3色のふわっとしたグラデーション設定 --- */
  background: linear-gradient(
    -45deg,
    rgba(210, 241, 223, 1), /* 薄いミントグリーン */
    rgba(211, 232, 248, 1), /* 薄いスカイブルー */
    rgba(250, 243, 224, 1)  /* 薄いクリームイエロー */
  );
  background-size: 400% 400%; /* アニメーションのために背景を大きく広げる */
  animation: gradientBG 15s ease infinite; /* 15秒かけてゆっくり動かす */
}

/* 背景を動かすためのアニメーション定義 */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* タイトルエリア */
.page-title {
  text-align: center;
  margin:0 auto 32px;
}

.title-main {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(21, 128, 61, 1);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.title-sub {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-tool {
  display: inline-block; /* 非表示を解除 */
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(21, 128, 61, 1); /* 濃い緑 */
  background: rgba(34, 197, 94, 0.1); /* 非常に薄い緑（背景） */
  padding: 4px 12px;
  border-radius: 100px; /* カプセル型の形 */
  border: 1px solid rgba(34, 197, 94, 0.2); /* 繊細な枠線 */
  vertical-align: middle;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 説明文 */
.page-description {
  max-width: 480px;
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin: 0 auto 32px;
}
.page-description .note{
  color: rgba(255, 102, 102, 1);
  display: block;
  line-height: 1.4;
}
.page-description .link{
  display: block;
  margin: 16px auto;
}
.page-description .link a{
  color: rgba(34, 197, 94, 1);
}
.page-description .link a:hover{
  text-decoration: none;
}
/* フォームのコンテナ */
.form {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px var(--shadow), 0 10px 10px -5px var(--shadow);
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safari用 */
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.field {
  display: block;
  margin-bottom: 24px;
}

.field span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

/* 入力欄のカスタマイズ */
input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  background-color: rgba(248, 250, 252, 1);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--text-main);
  transition: all 0.2s ease;
  outline: none;
}

input:focus {
  border-color: rgba(34, 197, 94, 1);
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}
input::placeholder{
  color: rgba(204,204,204,1);
}
/* 結果表示カード（グラスモーフィズム風） */
.result-card {
  width: 100%;
  max-width: 480px;
  background: var(--primary-gradient);
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 1);
  box-shadow: 0 20px 40px rgba(21, 128, 61, 0.25);
  position: relative;
  overflow: hidden;
}

/* 装飾用の背景サークル */
.result-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.team {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 4px;
  opacity: 0.9;
}

.season {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.price-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  opacity: 0.8;
}

#priceDisplay strong {
  font-size: 3rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

/* 警告メッセージ */
.attention {
  color: var(--accent-yellow);
  font-weight: bold;
  font-size: 0.9rem;
  display: block;
  margin-top: 10px;
}

/* 注釈とフッター */
.notice {
  max-width: 480px;
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-top: 24px;
}
#priceDisplay .notice{
  color: rgba(255, 255, 255, 0.8);
}
.footer {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-sub);
  text-align: center;
}

.footer a {
  color: rgba(34, 197, 94, 1);
}
.footer a:hover{
  text-decoration: none;
}
/* モバイル対応 */
@media (max-width: 480px) {
  body { padding: 24px 16px; }
  .title-sub { font-size: 1.6rem; }
  .result-card { padding: 32px 24px; }
  #priceDisplay strong { font-size: 2.5rem; }
}
