@charset "utf-8";
/* CSS Document */

/* ========== sectionの基礎設定 ========== */
section {
  margin: 0 0 4rem 0;
}

.page-title-note{
  margin-top: -1.5rem;
  margin-bottom: 4rem;
  font-weight: 700;
  text-align: center;
}
@media (max-width: 850px) {
  .page-title-note{
    text-align: justify;
  }
}

/* タイトル */
section h2.section-title {
  background-color: #136740;
  border-radius: 0.375rem;
  margin: 0 0 1em 0;
  padding: 0.5em 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}
section h2.section-title.color_none {
  /*背景色なし*/
  padding-left: 0;
  background-color: initial;
}
/* タイトルテキスト */
section h2 .txt {
  color: #ffffff;
  font-size: 1.125em; /* 18px ÷ 16px = 1.125 */
  font-weight: 700;
}
section h2.section-title.color_none .txt {
  /*背景色なしの場合の文字色*/
  color: #222;
}
/* タイトル補足 */
section h2 .supplement {
  color: #ffffff;
  font-size: 0.875em; /* 14px ÷ 16px = 0.875 */
  font-weight: 400;
}

/* ============================================
   写真検索エリア
============================================ */
.pict-search-area {
  margin: 2em 0;
}

.pict-search {
  background-color: #FBFBDF;
  border-radius: 0.375rem;
  padding: 1em;
  border: solid 1px #0068B7;
}

/* タイトル */
/* タイトル */
.pict-search-title {
  display: flex;
  align-items: center;
  gap: 0.25em;
  font-weight: 700;
  color: #005eaa; /* 千葉市 ブルー */
  font-size: 1.5em;
}

.pict-search-title .material-symbols-outlined {
  font-size: 1.33em; /* 24px相当 */
}

/* 説明文 */
.pict-search-txt {
  color: #0068B7; /* 千葉市 ブルー */
  line-height: 1.6;
  margin-bottom: 1.5em;
  font-size:  0.875em;
}

/* ボタン */
.pict-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  max-width: 32em; /* 320px相当 */
  margin: 0 auto;
  padding: 1em 2em;
  background-color: #0068B7; /* 千葉市 ブルー */
  color: #FFFFFF;
  font-weight: bold;
  border: none;
  border-radius: 0.4em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pict-search-btn:hover {
  background-color: #005293; /* ホバー時少し暗く */
}

.pict-search-btn:active {
  transform: scale(0.98);
}

.pict-search-btn .material-symbols-outlined {
  font-size: 1.5em; /* 24px相当 */
}

/* ============================================
   レスポンシブ対応
============================================ */

/* タブレット */
@media screen and (max-width: 768px) {
  .pict-search {
    padding: 1.5em;
  }
  
  .pict-search-title {
    font-size: 1.6em;
  }
}

/* モバイル */
@media screen and (max-width: 639px) {
  .pict-search {
    padding: 1.5em 1.2em;
  }
  
  .pict-search-title {
    font-size: 1.5em;
  }
  
  .pict-search-txt {
    font-size: 1.3em;
  }
  
  .pict-search-btn {
    font-size: 1.5em;
    padding: 0.9em 1.5em;
  }
}

/* 極小 */
@media screen and (max-width: 480px) {
  .pict-search {
    padding: 1.2em 1em;
  }
  
  .pict-search-title {
    font-size: 1.4em;
  }
  
  .pict-search-txt {
    font-size: 1.2em;
  }
  
  .pict-search-btn {
    font-size: 1.4em;
  }
}

/* ========== 検索 ========== */

/*「お知らせ」エリア*/
.information-area {
  /**/
}

/*「タブ切り替え」エリア*/
.notice-tab-wrap {
  display: flex;
  gap: 0;
  margin-bottom: 1em;
}

/*タブボタン基礎*/
.notice-tab {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 1.2rem;
  font-size: 0.9375em;
  line-height: 1.3em;
  font-weight: 600;
  border: 1px solid #e0e0e0;
  background-color: #f5f5f5;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}
/*テキスト検索*/
.notice-tab.s-txt {
  border-radius: 1rem;
}
/*あいうえお検索*/
.notice-tab.s-aiueo {
  border-radius: 1rem;
  border-left: none;
}
/*よくある*/
.notice-tab.s-yokuaru {
  border-radius: 1rem;
  border-left: none;
}

/*タブボタン アクティブ状態*/
.notice-tab.active {
  background-color: #ecf9d9;
  color: #222;
  font-weight: 700;
}
/*タブボタン アクティブではない状態*/
.notice-tab:hover:not(.active) {
  background-color: #f5f5f5;
}

/*「タブ切り替え」の「メイン」エリア*/
.notice-content {
  border: 1px solid #e0e0e0;
  border-radius: 1rem;
  background-color: #ffffff;
  padding: 2rem;
  margin-bottom: 1em;
}

/* タブコンテンツの表示切り替え */
.notice-tab-content {
  display: none;
}
.notice-tab-content.active {
  display: block;
}

/* セレクト・インプットの設定 */
/* 各種入力欄のラッパー */
.input-set {
  padding: 0 3rem;
}

/* 入力グループ */
.input-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* モバイルは縦並び */
/*@media (max-width: 639px) {*/
@media (max-width: 900px) {
  .input-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* フォームグループ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ラベル */
.form-label {
  font-size: 1.3rem;
  color: #666;
  font-weight: 500;
}

/* 入力フィールド共通 */
.form-input,
.form-select {
  padding: 0.8em 1em;
  border: 1px solid #d0d0d0;
  border-radius: 0.4rem;
  font-size: 1em;
  color: #222;
  background-color: white;
  transition: all 0.3s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #136740;
  box-shadow: 0 0 0 3px rgba(255, 146, 38, 0.1);
}

.form-input.input_s {
  width: 8em;
}
.form-input.input_m {
  width: 15em;
}
.form-input.input_l {
  width: 15em;
}
.form-input.input_xl {
  width: 25em;
}

@media (max-width: 900px) {
  .form-input.input_xl {
    width: 100%;
  }
}

.form-input::placeholder {
  color: #999;
}

/* セレクトボックス */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 1em;
  padding-right: 2.5em;
  cursor: pointer;
}
/*@media (max-width: 639px) {*/
@media (max-width: 900px) {
  .form-select {
    width: 100%;
  }
}

/* 区切り文字 */
.form-separator {
  font-size: 1.6rem;
  color: #666;
  align-self: center;
  margin-bottom: 0.5rem; /* ラベル分の調整 */
}

/* モバイルでは区切り文字を非表示 */
@media (max-width: 639px) {
  .form-separator {
    display: none;
  }
}

/*検索ボタン*/
.search_btn {
  padding: 1em 1.6em;
  background-color: #136740;
  color: white;
  border: none;
  border-radius: 0.3rem;
  font-size: 0.875em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}
/* モバイルは縦並び */
/*@media (max-width: 639px) {*/
@media (max-width: 900px) {
  .search_btn {
    width: 10em;
  }
  .search_btn.long{
    width: auto;
  }
}

.search_btn:hover {
  background-color: #e67e1a;
}

/*「あ～わ」ボタン*/
.hiragana-list-area {
  margin-top: 1em;
}
.hiragana-list {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin: 0 auto;
}
.hiragana-col {
  background-color: #ffffff;
  border: solid 1px #136740;
  color: #136740;
  border-radius: 0.25em;
  font-weight: 700;
  transition: all 0.3s;
  padding: 0.5em 1em;
}
@media (max-width: 639px) {
  .hiragana-col {
    padding: 0.5em 2em;
  }
}
@media (max-width: 407px) {
  .hiragana-col {
    padding: 0.5em 0;
    width: 47%;
  }
}
@media (max-width: 333px) {
  .hiragana-col {
    padding: 0.5em 0;
    width: 100%;
  }
}
.hiragana-col:hover {
  background-color: #ecf9d9;
}

/* ========== 合計金額エリア ========== */
.total-amount-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #136740;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 0;
}

/* 開いた状態 */
.total-amount_open-close {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  gap: 2rem;
  transition: all 0.3s ease;
}

/* モバイル */
@media (max-width: 768px) {
  .total-amount_open-close {
    padding: 1rem;
    gap: 1rem;
  }
}

/* 合計金額表示エリア */
.total-amount {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

/* モバイル */
@media (max-width: 768px) {
  .total-amount {
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

.total-amount p {
  margin: 0;
  color: white;
  font-size: 1em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.total-amount #item {
  font-size: 0.9em;
}

.total-amount #amount {
  font-size: 1.2em;
  font-weight: 700;
}

/* モバイル */
@media (max-width: 768px) {
  .total-amount p {
    font-size: 0.875em;
  }

  .total-amount #amount {
    font-size: 1em;
  }
}

/* 数値を強調 */
.total-amount #item-total,
.total-amount #amount-total {
  font-size: 1.3em;
  font-weight: 700;
  margin: 0em;
}

/* ボタンエリア */
.open-close {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* モバイル */
@media (max-width: 768px) {
  .open-close {
    gap: 0.5rem;
  }
}

/* 排出品目の確認ボタン */
input[type="submit"].conf-item-btn,
input[type="button"].conf-item-btn {
  padding: 0.5em 1em;
  background-color: white;
  color: #136740;
  border: 2px solid #136740;
  border-radius: 0.5rem;
  font-size: 0.875em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

input[type="submit"].conf-item-btn:hover,
input[type="button"].conf-item-btn:hover {
  background-color: #f5f5f5;
}

/* モバイル */
@media (max-width: 768px) {
  input[type="submit"].conf-item-btn,
  input[type="button"].conf-item-btn {
    padding: 0.7em 1.5em;
    font-size: 0.8125em;
  }
}

/* 開閉トグルボタン（右端のアイコン） */
.toggle-btn {
  padding: 0.5em;
  background-color: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4em;
  min-height: 2.4em;
}

.toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.toggle-btn .material-symbols-outlined {
  font-size: 1.3em;
}

/* ========== 閉じた状態の表示 ========== */
.collapsed-view {
  display: none;
  padding: 0.8rem;
  text-align: right;
  margin-top: 5em;
}

/* 合計金額を表示ボタン */
.show-total-btn {
  padding: 0.5em 1em;
  background-color: #136740;
  color: white;
  border: 1px solid #136740;
  border-radius: 0.5rem;
  font-size: 0.875em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  pointer-events: auto; /* オーバーレイ中のボタン操作は許可 */
}

.show-total-btn:hover {
  background-color: #6bd985;
  border-color: #4dd27c;
}

.show-total-btn .material-symbols-outlined {
  font-size: 1.2em;
  border: solid 1px #ffffff;
  padding: 0.5em;
}

/* 閉じた状態のクラス */
.total-amount-area.collapsed {
  background-color: transparent;
  box-shadow: none;
  pointer-events: none; /*要素の下をクリック可能に変更*/
}

.total-amount-area.collapsed .total-amount_open-close {
  display: none;
}

.total-amount-area.collapsed .collapsed-view {
  display: block;
}

/* コンテンツエリアの下部余白（固定バーの分） */
.container {
  padding-bottom: 100px;
}

/* モバイル */
@media (max-width: 768px) {
  .container {
    padding-bottom: 100px;
  }
}

/* 閉じた状態では余白を小さく */
.total-amount-area.collapsed ~ .container,
body:has(.total-amount-area.collapsed) .container {
  padding-bottom: 100px;
}
