@charset "UTF-8";
/* HOIKU-77 コラム一覧（/lp_top1/html/article.html）下部の検索フォーム・編集部おすすめ（lpa/article_bottom.php）。
   /lp4_top/css/index.css（と @import の index_pc.css・index_sp.css）のうち、/lp4_top_b/ の検索フォーム（#f）と
   編集部おすすめ（.article-item）に効いているルールを、このブロックの中だけに効くよう書き写したもの。
   ブレークポイントも lp4 と同じ（768px・767px・593px）。lp4 では詳細度で勝っているルールは、ここでは後ろに置いて同じ結果にしている。 */

#article_bottom {
  width: 966px;
  margin: 20px auto;
  font-size: 16px;
}

/* lp4 のページ全体のリセット（common.css・index_pc.css・index.css の * / img / table / button） */
#article_bottom * {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans", sans-serif;
  color: #404048;
  line-height: normal;
  box-sizing: border-box;
}
#article_bottom img {
  border: 0;
  vertical-align: top;
}
#article_bottom table {
  border-collapse: collapse;
}
#article_bottom button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
#article_bottom input[type="radio"],
#article_bottom input[type="checkbox"] {
  accent-color: #ee4096;
}

/* ===== 検索フォーム（lp4 の #f） ===== */
#article_search {
  background-color: #FFF0F9;
  border: 2px solid #F96FB4;
  border-radius: 13px;
  width: 70%;
  margin: 5px auto 0;
  max-width: 650px;
}

#article_search .search_title {
  background-color: #F96FB4;
  text-align: center;
  padding: 5px;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  display: flex;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: .2s;
}

#article_search .search_title::after {
  content: '+';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: #fff0f9;
  color: #f96fb4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  border-radius: 3px;
  line-height: 1;
}
#article_search .search_title.expanded {
  border-radius: 10px 10px 0 0;
}
#article_search .search_title.expanded::after {
  content: '-';
}

#article_search .search_body {
  padding: 10px 20px;
  background: white;
}
#article_search .search_body table {
  width: 100%;
}

#article_search .search_footer {
  text-align: center;
  padding: 0 20px;
  background: white;
  border-radius: 13px;
}

#article_search .search_footer button.search_btn {
  padding: 10px 15%;
  border-bottom: solid 3px #02549A;
  background-color: #409EEE;
  margin-bottom: 10px;
  border-radius: 5px;
}

#article_search .search_btn span {
  font-size: 17px;
  color: white;
  margin: 10px;
  font-weight: bold;
}

#article_search .box-search-item.box-checkbox nobr {
  white-space: normal;
}

#article_search th {
  min-width: 120px;
  text-align: center;
  font-weight: bold;
  background: #FFF0F9;
  border: 5px solid white;
  border-left: none;
  border-right: 3px solid white;
}

#article_search td.radio {
  background-color: #EFEFEF;
  padding: 10px 5px;
  border: 3px solid white;
  display: flex;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
}

#article_search .box-search-item.box-checkbox .title {
  text-align: center;
  padding: 10px;
  font-weight: bold;
  margin-bottom: 5px;
  background-color: #FFF0F9;
}

#article_search .box-search-item.box-checkbox .all-checkbox {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 20px 30px;
  background-color: #EFEFEF;
}

#article_search .box-search-item.box-checkbox .all-checkbox label {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: #EFEFEF;
  padding: 7px 3px 3px 4px;
}

/* ===== 編集部おすすめ（lp4 の .article-item） ===== */
#article_bottom .section-title {
  text-align: center;
  font-weight: bold;
  font-size: 24px;
  color: #EE4096;
  margin-bottom: 20px;
  margin-top: 40px;
  border-bottom: 2px solid #EE4096;
}

#article_bottom .section-title.sp {
  display: none;
}

#article_bottom .card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#article_bottom .card {
  width: 32%;
  padding: 10px;
}

#article_bottom .card.flex-1 {
  max-width: 320px;
  flex: 1;
}

#article_bottom .card .card-img {
  background-color: #ddd;
  width: 100%;
  margin-bottom: 10px;
}

#article_bottom .card .card-img img {
  width: 100%;
}

#article_bottom .card-title {
  font-weight: bold;
  font-size: 24px;
  color: #ee4096;
  margin-bottom: 5px;
}

#article_bottom .card .title {
  margin-bottom: 5px;
  text-align: center;
}

#article_bottom .card-description {
  font-size: 16px;
  font-weight: 500;
  color: #444;
}

#article_bottom .card-container .card-description span {
  color: red;
  background: yellow;
  font-weight: bold;
}

#article_bottom .card-btn {
  width: 100%;
  padding: 12px;
  background-color: #409eee;
  margin-top: 10px;
  border-radius: 25px;
  border-bottom: solid 3px #02549a;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

#article_bottom .card-btn a {
  text-decoration: none;
  color: white;
}

#article_bottom .card-btn:hover {
  opacity: 0.8;
}

#article_bottom .article-item .card {
  background-color: #fff0f9;
  padding: 25px 20px;
  border-radius: 10px;
  margin: 0 20px;
}

/* lp4 との違い：PC（横並び）では、カードの中身を「見出し・サイト名・画像・説明文・ボタン」の 5 段に分け、
   並んだカード同士で段の高さを揃える（subgrid）。見出し・サイト名・説明文は段の上端から、画像は段の上下中央、
   ボタンは同じ高さに並ぶ。列幅は lp4 の flex と同じ（1 枚あたり最大 320px＋左右 20px、余りは均等に縮む・中央寄せ） */
@media screen and (min-width: 769px) {
  #article_bottom .article-item .card-container {
    display: grid;
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 360px);
    justify-content: center;
  }

  #article_bottom .article-item .card {
    width: auto;
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
  }

  #article_bottom .article-item .card-img {
    align-self: center;
  }
}

@media (max-width: 768px) {
  #article_bottom .card-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  #article_bottom .card {
    width: 90%;
  }

  #article_bottom .card-title,
  #article_bottom .card .title {
    text-align: center;
  }
}

@media screen and (max-width: 767px) {
  #article_search .box-search-item.box-checkbox .all-checkbox {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }

  #article_search .box-search-item.box-checkbox .all-checkbox label {
    width: 48%;
    padding: 7px 3px 3px 10px;
  }

  #article_search {
    width: 85%;
  }

  #article_search .search_title {
    font-size: 15px;
    padding-right: 10%;
  }

  #article_search .search_title::after {
    width: 25px;
    height: 25px;
    font-size: 20px;
    right: 15px;
  }

  #article_search .search_body {
    padding: 10px;
  }

  #article_search th {
    min-width: 70px;
  }

  #article_search .search_footer {
    padding: 15px 10px 20px;
    background-color: #FFF0F9;
  }

  #article_search .search_footer button.search_btn {
    width: 100%;
    padding: 10px;
  }

  #article_bottom .article-item .card-container {
    flex-wrap: nowrap;
  }

  #article_bottom .card-title,
  #article_bottom .section-title {
    font-size: 18px;
  }

  #article_bottom .section-title.pc {
    display: none;
  }

  #article_bottom .section-title.sp {
    display: block;
  }

  #article_bottom .card-description {
    font-size: 14px;
  }

  #article_bottom .article-item {
    width: 95%;
    margin: 30px auto 10px;
  }
}

/* lp4 の index_sp.css（593px 以下） */
@media screen and (max-width: 593px) {
  #article_bottom {
    width: 100%;
    font-size: 14px;
  }

  #article_search .search_title,
  #article_search .search_title.expanded {
    font-size: 16px;
    background: #EE4096;
    text-align: center;
    border-radius: 0;
    padding: 10px 5px;
  }

  #article_search .search_body {
    background-color: #FFF0F9;
    font-size: 12px;
  }

  #article_search .search_body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
  }

  #article_search .search_body th {
    width: 30%;
    font-size: 16px;
    color: #fff;
    background: #FA92C5;
    padding: 8px;
    border-radius: 4px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
  }

  #article_search .search_body td {
    background: #f7f7f7;
    padding: 8px;
    border-radius: 4px;
    vertical-align: middle;
  }

  #article_search .search_body td nobr {
    width: 49%;
    box-sizing: border-box;
    height: auto;
    float: left;
    margin: 0.5%;
    font-size: 14px;
  }

  #article_search .search_body td.col-3 nobr {
    width: 32%;
  }

  #article_search .search_footer button.search_btn {
    font-size: 14px;
  }
}
