/* === 共通ベース === */
body {
  font-family: 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #fdfdff, #eef5ff);
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
}

/* === タイトル見出し === */
.text_title {
  background: linear-gradient(to right, #ff9a9e, #fad0c4, #fbc2eb);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 10px 30px;
  text-shadow: 1px 1px 2px #888;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* === 入力フォーム & セレクト === */
input[type="text"],
input[type="input"],
textarea,
select {
  font-size: 1rem;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  margin-bottom: 12px;
  box-sizing: border-box;
  background: #fff;
  color: #333;
}

select {
  appearance: none;
  background-image: linear-gradient(to right, #e0f7fa, #ffffff);
}

option {
  font-size: 1rem;
  background: #fff;
  color: #333;
}

select:focus {
  border-color: #66a6ff;
  background-color: #f0faff;
  outline: none;
}

/* === ボタン（提出） === */
button.button_submit {
  background: linear-gradient(to right, #a1c4fd, #c2e9fb);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 14px 24px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 200px;
}
button.button_submit:hover {
  background: linear-gradient(to right, #fbc2eb, #a6c1ee);
}

/* === 装飾ボックス === */
.arrow_box {
  background: #fff0fc;
  border: 2px solid #ffb3e6;
  color: #ff33cc;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 10px;
  padding: 12px;
  margin: 20px auto;
}

/* === セクションボックス === */
.search_item_section, .search_other_item {
  background: #ffffffcc;
  border: 2px solid #ccf2ff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 3px 5px rgba(0,0,0,0.1);
  margin: 15px;
}

/* === セクション見出し === */
.search_section h3, .button_section h3 {
  color: #6666cc;
  margin-bottom: 1rem;
}

/* === フッター === */
footer {
  background: linear-gradient(to right, #89f7fe, #66a6ff);
  color: white;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* === ボタンセクションホバー === */
#side_button_section:hover {
  background: rgba(255, 255, 255, 0.9);
  border-right: 1px solid #ccc;
}

/* === スクロール可能エリアの共通設定 === */
.scrollable,
#side_button_section,
#search_button_list,
.earch_item_controller,
#popup_view_description {
  overflow-y: auto;
  max-height: 400px;
  scrollbar-width: thin;
  scrollbar-color: #aaa #f0f0f0;
}

.scrollable::-webkit-scrollbar {
  width: 8px;
}
.scrollable::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 4px;
}
.scrollable::-webkit-scrollbar-track {
  background-color: #f0f0f0;
}

/* === モバイル対応レスポンシブ === */
@media screen and (max-width: 768px) {
  body {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .main_contents_section,
  .character_image_section {
    display: block;
    width: 100%;
  }

  .text_title {
    font-size: 1.2rem;
    padding: 8px 16px;
    text-align: center;
  }

  input[type="text"],
  input[type="input"],
  textarea,
  select {
    font-size: 1rem;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
  }

  option {
    font-size: 1rem;
  }

  button.button_submit {
    width: 100%;
    padding: 16px 0;
    font-size: 1.1rem;
    display: block;
    margin: 15px auto;
    border-radius: 30px;
    min-width: unset;
  }

  .arrow_box {
    font-size: 1rem;
    padding: 10px;
  }

  .search_item_section,
  .search_other_item {
    margin: 10px 0;
    padding: 10px;
  }

  .search_section h3,
  .button_section h3 {
    font-size: 1rem;
    text-align: center;
  }

  footer {
    font-size: 0.8rem;
    padding: 0.7rem 0;
  }
}
.popup {
  position: absolute;
  background: #fff8ff;
  border: 2px solid #ffd6f6;
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.15);
  color: #663366;
  z-index: 1000;
  max-width: 90%;
  font-size: 0.95rem;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(to bottom right, #ffffff, #e0f7ff);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  max-width: 90%;
  width: 400px;
  color: #333;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(240, 240, 255, 0.75);
  z-index: 9998;
  backdrop-filter: blur(3px);
}

.card-style {
  background: #ffffffee;
  border: 1px solid #ddf0ff;
  border-radius: 14px;
  padding: 16px;
  margin: 10px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.card-style:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.tag {
  display: inline-block;
  background: linear-gradient(to right, #ffd5ec, #e0f7ff);
  color: #444;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 4px 6px;
  border: 1px solid #ccc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  white-space: nowrap;
}
