@charset "UTF-8";
/* ==========================================================
   06 — mitokiでできること
        活用シーン20カード（業務領域軸）+ ツール絞り込みチップ
   ========================================================== */

.how {
  background: var(--white);
  padding: 96px 0 88px;
}

.how__lead {
  margin-top: 20px;
  text-align: center;
  font-size: 22px; /* 2026-09-17 FB: リード文をもっと大きく（18→22） */
  line-height: 1.8;
  color: var(--ink);
  font-feature-settings: "palt" 1;
  text-wrap: pretty;
  word-break: auto-phrase;
}

/* ---------- 実数バッジ ---------- */
.how__count {
  margin: 26px auto 0;
  width: fit-content;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 30px 8px;
  border: 2px solid var(--asagi);
  border-radius: 40px;
  background: var(--white);
}
.how__count-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--asagi);
  letter-spacing: -.01em;
}
.how__count-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-strong);
  font-feature-settings: "palt" 1;
}

/* ---------- ツールマークの凡例 ---------- */
.how__legend {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  font-feature-settings: "palt" 1;
}
.how__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

/* ---------- グリッド ---------- */
.how__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

/* シーンカード: 角にツールマーク / 円形アイコン → シーン名 → #タグ */
.how__scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 3px solid #B3DFEA;
  border-radius: var(--radius);
  padding: 24px 14px 20px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.how__scene:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--asagi);
}

/* 角のツールマーク（チップと同じ色体系） */
.how__marks {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}
.how__mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-family: var(--font-en);
  font-style: normal;
  font-weight: 800;
  font-size: 10.5px;
  line-height: 1;
  color: var(--white);
}
.how__mark--notion { background: var(--ink-strong); }
.how__mark--gws { background: linear-gradient(135deg, #F9A825 0%, #EA4335 100%); }
.how__mark--ai { background: var(--asagi); font-size: 9px; letter-spacing: -.02em; }

.how__icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--bg-tint);
}
.how__icon svg {
  width: 50%;
  height: 50%;
}

.how__scene-title {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-strong);
  font-feature-settings: "palt" 1;
  letter-spacing: .02em;
  white-space: nowrap;
}
/* 折返しは「・」の直後など意味の切れ目だけに限定（単語の途中で割れないように） */
.how__scene-title span { display: inline-block; }

.how__tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--gray);
  font-feature-settings: "palt" 1;
}
.how__tags span { white-space: nowrap; }

.how__more {
  margin-top: 28px;
  text-align: center;
}

/* 折りたたみ: 初期はコア10枚。--more は「すべて見る」で表示 */
.how__grid.is-collapsed .how__scene--more { display: none; }
.how__toggle-wrap { margin-top: 24px; text-align: center; }
.how__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border: 2px solid var(--asagi);
  border-radius: 999px;
  background: var(--white);
  color: var(--asagi);
  font-size: 16px;
  font-weight: 700;
  font-feature-settings: "palt";
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.how__toggle:hover { background: var(--asagi); color: var(--white); }
.how__toggle-icon { transition: transform .25s; }
.how__toggle[aria-expanded="true"] .how__toggle-icon { transform: rotate(180deg); }

.how__note {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--gray);
}

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  /* 5列だと11文字のシーン名がカード幅を超える帯域から4列に */
  .how__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .how { padding: 72px 0 64px; }
  .how__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .how { padding: 56px 0 48px; }
  .how__lead { font-size: 17px; } /* 2026-09-17 村上FB: SPも見出しに合わせて中央揃え */
  .how__lead br { display: none; }
  .how__count { margin-top: 20px; padding: 5px 22px 7px; }
  .how__count-num { font-size: 32px; }
  .how__count-text { font-size: 15px; }
  .how__legend { margin-top: 18px; gap: 6px 16px; font-size: 12.5px; }
  .how__legend .how__mark { width: 19px; height: 19px; font-size: 9px; }
  .how__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
  }
  /* 2026-09-17 村上FB: SPは初期表示をさらに絞る。コア10枚のうち先頭6枚（3行×2列）だけ見せ、残りは「すべて見る」 */
  .how__grid.is-collapsed .how__scene:nth-child(n + 7) { display: none; }
  .how__scene { padding: 20px 8px 16px; }
  .how__marks { top: 6px; right: 6px; gap: 3px; }
  .how__mark { width: 19px; height: 19px; font-size: 9px; }
  .how__mark--ai { font-size: 8px; }
  .how__icon { width: 60px; height: 60px; }
  .how__scene-title {
    font-size: 15px;
    margin-top: 12px;
    white-space: normal; /* 2列では11文字が収まらないため折返しを許可 */
    text-wrap: balance;
    line-height: 1.4;
  }
  .how__tags { font-size: 12px; gap: 2px 6px; }
  .how__more { margin-top: 32px; }
}
