*{
    font-family: "Zen Maru Gothic", sans-serif;
  font-weight:400;
}
body {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
  background: linear-gradient(180deg, #F7F3E5 0%, #FFF1D6 100%);
  min-height: 100vh;
}
/* 初期状態：画面中央に配置（検索ボックスのみ表示） */
body.initial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
}


h1{
  font-weight:400;
}
/* ヘッダー：初期ヘッダー（中央表示） */
.initial-header {
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  text-align: center;
  font-size: 28px;
  margin: 0 0 20px;
}

/* フェードアウト・移動・ブラーするクラス */
.fade-out {
  opacity: 0;
  transform: translateY(-30px);
  filter: blur(3px);
}

/* 最小化ヘッダー（左上固定）。初期は非表示（opacity:0, 少し下） */
.minimized-header {
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(3px);
  position: fixed;
  top: 20px;
  left: 20px;
  margin: 0;
  font-size: 20px;
  text-align: left;
  font-family: "Inter", sans-serif;
}

/* フェードイン・移動・ブラー解除するクラス */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 検索ボックス */
.search-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  width:100%;
  max-width:600px;
  margin:10px auto;
}

input {
  flex-grow: 1;
  padding: 16px 24px;
  font-size: 16px;
  border-radius: 100px;
  border:none;
  background: rgba(251, 249, 242, 71%);
  color:#000;
  box-shadow:0px 5px 15px 0px rgba(0, 0, 0, 0.08);
  outline:none;
  transition:0.2s all ease;
}

button {
  padding: 16px 24px;
 background: linear-gradient(180deg, #FF7700 0%, #BA2500 100%);
  color: white;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  box-shadow:0px 5px 15px 0px rgba(0, 0, 0, 0.08);
}

button:hover {
  background-color: #357ae8;
}

a {
    text-decoration: none;
    color: #A96300;
}
/* 結果セクション（検索後に下からスライドアップ） */
.results-container {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease;
}

.results-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.section {
  padding: 24px;
    border-radius: 32px;
    box-shadow: 0 2px 20px 0px rgb(0 0 0 / 4%);
    background: #fff7;
    margin-bottom: 16px;
}

.section h2 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* 検索結果の個別アニメーション */
.result-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards cubic-bezier(.3,0,0,1);
  filter:blur(16px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
    filter:blur(0px);
  }
}

/* Gemini回答ボックス */
#gemini-response {
  transition: opacity 0.5s ease, filter 0.5s ease, max-height 0.5s ease;
  opacity: 0;
  filter: blur(5px);
}

#gemini-response.visible {
  opacity: 1;
  filter: blur(0);
}

/* collapsed状態：最大高さ制限 */
.collapsed {
  height: fit-content;
  overflow: scroll;
}

/* Google検索ボタン（初期非表示） */
.google-button-container {
  display: none;
  text-align: center;
  margin-top: 20px;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.debug {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
  display: none;
}

/* 「もっと表示」ボタン（アニメーション用） */
#show-more-button {
  transition: all 0.5s;
    margin: 0px auto;
  display:block;
}

.ailogo{
  border-radius:100px;
  color:#fff;
  padding:4px 8px;
  background: linear-gradient(180deg, #FF7700 0%, #FE3300 100%);
  font-family: "Inter", sans-serif;
}

@media (prefers-color-scheme: dark) {
  button,.ailogo{
    background: linear-gradient(180deg, #FFD4AE 0%, #FFB4A2 100%);
color:#000;
  }
  body{
    background: linear-gradient(180deg, #513826 0%, #1A1511 100%);
  color:#fff;
  }
  input{
    background: rgba(0, 0, 0, 28%);
    color:#fff;
  }
  .section {
    background: rgba(0, 0, 0, 28%);
color:#fff;
}
  .result-item {border-bottom: 1px solid #eeeeee33;}
  .section h2{border-bottom: 1px solid #eeeeee33;}
  a{
    color: #FFC97E;
  }
}
