@charset "UTF-8";

/* フィルタ入力欄のスタイリング */
#filter-container {
  display: flex;
  justify-content: center; /* 水平中央寄せ */
  align-items: center; /* 垂直中央寄せ */
  margin: 20px auto;
}

#filter-input {
  width: 50%;
  max-width: 400px;
  padding: 14px 20px;
  border: 1px solid #ccc;
  border-radius: 50px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-size: 18px;
  outline: none;
}

/* 検索入力欄がフォーカスを受けたときのスタイル */
#filter-input:focus {
  border-color: #FFA500;
  box-shadow: 0 2px 5px rgba(255, 165, 0, 0.5);
}

/* 全体のスタイル */
#data-container {
  width: 80%;
  margin: 0 auto;
}

/* Q&Aの各枠のスタイリング */
.data-item {
  max-width: 800px;
  margin: 10px auto;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #FBFBFB;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.data-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1em 2em 1em 4em;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* デフォルトの三角を消す（一部ブラウザ用） */
}

/* chrome等でsummaryの三角が出るのを消す */
.data-item summary::-webkit-details-marker {
  display: none;
}

.data-item summary::before,
.data-item p::before {
  position: absolute;
  left: 1em;
  font-weight: 600;
  font-size: 1.3em;
}

.data-item summary::before {
  content: "Q";
  color: #fff;
  background: #FFA500;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  left: 1em;
  font-size: 24px;
  line-height: 30px;
  text-align: center;
}

.data-item summary::after {
  transform: translateY(-25%) rotate(45deg);
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-bottom: 3px solid #333333b3;
  border-right: 3px solid #333333b3;
  content: '';
  transition: transform .5s;
}

.data-item[open] summary::after {
  transform: rotate(225deg);
}

.data-item p {
  position: relative;
  transform: translateY(-10px);
  opacity: 0;
  margin: 0;
  padding: .3em 4em 1.5em;
  color: #333;
  font-weight: 600;
  transition: transform .5s, opacity .5s;
}

.data-item[open] p {
  transform: none;
  opacity: 1;
}

.data-item p::before {
  content: "A";
  color: #fff;
  background: #75bbff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  left: 1em;
  font-size: 24px;
  line-height: 30px;
  text-align: center;
}

/* タブのスタイリング */
.cp_qa *, .cp_qa *:before, .cp_qa *:after {
  box-sizing: border-box;
}

.cp_qa {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  margin-bottom: 30px;
}

.cp_qa input {
  display: none;
}

/* カテゴリー */
#cp_content {
  display: none;
  padding: 20px 0 0;
  border-top: 1px solid #dddddd;
}

.cp_qa label.cp_tabitem {
  display: inline-block;
  margin: 0 0 -1px;
  padding: 15px 25px;
  text-align: center;
  color: #bbbbbb;
  border: 1px solid transparent;
  font-weight: bold; /* フォントを少し太く */
}

.cp_qa label.cp_tabitem:hover {
  cursor: pointer;
  color: #888888;
}

.cp_qa input:checked + label {
  color: #555555;
  border: 1px solid #dddddd;
  border-bottom: 1px solid #ffffff;
}

/* 奇数番目のラベル（お支払い、契約、その他...） */
.cp_qa input:checked + label:nth-of-type(odd) {
  border-top: 5px solid #00BCD4;
}

/* 偶数番目のラベル（機能、手続き...） */
.cp_qa input:checked + label:nth-of-type(even) {
  border-top: 5px solid #FF5722;
}

/* ★追加: 検索時に表示されるカテゴリー見出しのスタイル */
.category-header {
  max-width: 800px;
  margin: 40px auto 10px;
  font-size: 1.4em;
  font-weight: bold;
  color: #333;
  border-left: 6px solid #FFA500;
  padding-left: 15px;
  background-color: #fff;
  text-align: left !important;
}