@charset "UTF-8";

/*=============================================
  index.html「Lステップの便利な機能」
  PCファースト / SP: max-width 640px
=============================================*/

/* ---------------------------------------------
  h2下のサブキャッチ
--------------------------------------------- */
.index_subtitle {
  margin: 0 auto 24px;
  padding: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: #000;
  font-family: "Rounded Mplus 1c", "Noto Sans JP", sans-serif;
}

/* ---------------------------------------------
  カテゴリタブナビ
--------------------------------------------- */
.tool_tab_navi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 1080px;
  margin: 0 auto;
  padding: 6px;
  list-style: none;
  background-color: #fff;
  border-radius: 30px 30px 0 0;
  box-sizing: border-box;
}

.tool_tab_navi li {
  flex: 1;
}

.tool_tab_btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: #1a1a1a;
  background-color: transparent;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.tool_tab_btn.m--active {
  color: #fff;
  background-color: #20af5a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ---------------------------------------------
  タブパネル
--------------------------------------------- */
.tool_tab_panel {
  display: none;
  width: 1080px;
  margin: 0 auto;
  padding: 40px 0;
  background: #fff;
  border-top: 2px solid #25cc52;
  box-sizing: border-box;
}

.tool_tab_panel.m--active {
  display: block;
}

/* ---------------------------------------------
  カテゴリ見出し
--------------------------------------------- */
.tool_category_heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 96%;
  margin: 0 auto 30px;
  padding: 30px 40px;
  background: linear-gradient(135deg, #e1f5ee 0%, #c8e8da 100%);
  border-radius: 12px;
  box-sizing: border-box;
}

.tool_category_content {
  flex: 1;
  min-width: 0;
}

.tool_category_label {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 8px;
}

.tool_category_label>span:first-child {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border: 2px solid #20af5a;
  border-radius: 5px;
  color: #20af5a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.tool_category_name {
  color: #1a1a1a;
  font-family: "Rounded Mplus 1c", "Noto Sans JP", sans-serif;
  font-size: 45px;
  font-weight: 900;
  line-height: 1.5;
}

.tool_category_title {
  margin: 0 0 4px;
  color: #1a1a1a;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.tool_category_text {
  margin: 0;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.tool_category_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 18px;
  box-sizing: border-box;
}

.tool_category_icon img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* ---------------------------------------------
  主要カードグリッド
--------------------------------------------- */
.tool_cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 980px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* 3枚構成：左大カード＋右小カード2枚 */
.tool_cards.m--col3 {
  grid-template-rows: repeat(2, auto);
}

.tool_cards.m--col3 .tool_card.m--large {
  grid-column: 1;
  grid-row: 1 / 3;
}

.tool_cards.m--col3 .tool_card.m--small:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1;
}

.tool_cards.m--col3 .tool_card.m--small:nth-of-type(3) {
  grid-column: 2;
  grid-row: 2;
}

/* ---------------------------------------------
  主要カード本体
--------------------------------------------- */
.tool_card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #f7fdf5;
  border: 1px solid #d9efd2;
  border-radius: 12px;
  box-sizing: border-box;
  text-decoration: none;
}

.tool_card:link,
.tool_card:visited {
  text-decoration: none;
}

.tool_card_img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #fff;
}

.tool_card_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.tool_card:hover .tool_card_img img {
  transform: scale(1.1);
}

.tool_card.m--large .tool_card_img {
  aspect-ratio: 4 / 5;
}

.tool_card_title {
  margin: 0 0 8px;
  padding: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
  font-family: "Rounded Mplus 1c", "Noto Sans JP", sans-serif;
  color: #1a1a1a;
}

.tool_card_text {
  flex-grow: 1;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 170%;
  color: #1a1a1a;
}

.tool_card .details {
  margin: 16px 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1px;
  text-align: right;
}

.tool_card .details span {
  color: #157efb;
}

.tool_card .details i {
  margin-right: 4px;
}

/* ---------------------------------------------
  主要カード：バッジ
--------------------------------------------- */
.tool_card_badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 7px 11px;
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #33a97d;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* ---------------------------------------------
  主要カード：箇条書き
--------------------------------------------- */
.tool_card_points {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tool_card_points li {
  position: relative;
  margin: 4px 0 0;
  padding-left: 18px;
  color: #1A1A1A;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.tool_card_points li::before {
  content: "・";
  position: absolute;
  top: 0;
  left: 0;
  color: #20af5a;
  font-weight: 900;
}

/* ---------------------------------------------
  その他コンテンツ
--------------------------------------------- */
.tool_other_contents {
  width: 980px;
  margin: 40px auto 0;
  box-sizing: border-box;
}

.tool_other_heading {
  margin: 0 0 14px;
  color: #555;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.tool_other_cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.tool_other_card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  background: #f7fdf5;
  border: 1px solid #d9efd2;
  border-radius: 10px;
  box-sizing: border-box;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.tool_other_card:link,
.tool_other_card:visited {
  text-decoration: none;
}

.tool_other_card:hover {
  transform: translateY(-3px);
  border-color: #20af5a;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.06);
}

/* タイトル → 画像 → 詳しく見る */
.tool_other_card .tool_card_title {
  min-height: 28px;
  margin: 5px 0 5px;
  font-size: 14px;
  line-height: 1.5;
}

.tool_other_img {
  width: 100%;
  aspect-ratio: 4 / 4;
  margin: 5px 0 5px;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}

.tool_other_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tool_other_card:hover .tool_other_img img {
  transform: scale(1.05);
}

.tool_other_details {
  margin-top: auto;
  padding-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.tool_other_details span {
  color: #157efb;
}

.tool_other_details i {
  margin-right: 4px;
}

/* ---------------------------------------------
  その他の既存ユーティリティ
--------------------------------------------- */
.cs_section_img.m--ritch img {
  max-width: 420px;
}

.cs_section_img.m--wide img {
  max-width: 600px;
}

.cs_section_img.m--full img {
  max-width: 100%;
}

.cs_section_img.m--tall img {
  width: auto;
  max-width: 100%;
  max-height: 760px;
}

.cs_section_img_caption {
  margin: 8px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.exbox.m--full {
  width: 100%;
}

.exbox.m--full .example3 {
  width: 100%;
}

.exbox.m--gap .example3 {
  margin: 0 auto 40px;
}

/*=============================================
  SP（max-width: 640px）
=============================================*/
@media (max-width: 640px) {

  .index_subtitle {
    margin: 0 auto 10px;
    font-size: 16px;
  }

  /* タブナビ */
  .tool_tab_navi {
    width: calc(100% - 30px);
    margin: 0 auto;
    padding: 6px;
  }

  .tool_tab_navi li {
    flex: none;
    width: calc(50% - 2px);
  }

  .tool_tab_btn {
    padding: 12px 8px;
    font-size: 12px;
  }

  /* タブパネル */
  .tool_tab_panel {
    width: 100%;
    padding: 20px 0;
  }

  /* カテゴリ見出し */
  .tool_category_heading {
    gap: 15px;
    width: calc(100% - 30px);
    margin: 0 15px 20px;
    padding: 20px;
    border-radius: 15px;
  }

  .tool_category_label {
    gap: 7px;
    margin-bottom: 10px;
  }

  .tool_category_label>span:first-child {
    padding: 5px 9px;
    font-size: 10px;
  }

  .tool_category_name {
    font-size: 16px;
    line-height: 1.4;
  }

  .tool_category_title {
    margin-bottom: 5px;
    font-size: 18px;
    line-height: 1.45;
  }

  .tool_category_text {
    font-size: 12px;
    line-height: 1.6;
  }

  .tool_category_icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }

  .tool_category_icon img {
    width: 32px;
    height: 32px;
  }

  /* 主要カード */
  .tool_cards,
  .tool_cards.m--col3 {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    width: 100%;
    padding: 0 15px;
  }

  .tool_cards.m--col3 .tool_card.m--large,
  .tool_cards.m--col3 .tool_card.m--small {
    grid-column: 1;
    grid-row: auto;
  }

  .tool_card.m--large .tool_card_img {
    aspect-ratio: 4 / 3;
  }

  .tool_card:hover .tool_card_img img {
    transform: none;
  }

  .tool_card_badge {
    top: 8px;
    right: 8px;
    padding: 6px 9px;
    font-size: 10px;
  }

  .tool_card_points {
    margin-top: 10px;
  }

  .tool_card_points li {
    margin-top: 3px;
    padding-left: 16px;
    font-size: 12px;
  }

  /* その他コンテンツ */
  .tool_other_contents {
    width: 100%;
    margin: 30px auto 0;
    padding: 0 15px;
  }

  .tool_other_heading {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .tool_other_cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tool_other_card {
    padding: 8px;
  }

  .tool_other_card:hover {
    transform: none;
    border-color: #d9efd2;
    box-shadow: none;
  }

  .tool_other_card .tool_card_title {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .tool_other_img {
    margin-bottom: 8px;
  }

  .tool_other_card:hover .tool_other_img img {
    transform: none;
  }

  .tool_other_details {
    font-size: 11px;
  }

  /* SPではPC用の画像幅制限を解除 */
  .cs_section_img.m--ritch img,
  .cs_section_img.m--wide img,
  .cs_section_img.m--full img,
  .cs_section_img.m--tall img {
    width: auto;
    max-width: 100%;
    max-height: none;
  }
}