@charset "UTF-8";
/* ==========================================================================
   メソッド一覧ページ（/method/ の1ページ目）
   テンプレート：_includes/method-top.php ／ 読み込み：functions-lib/method-top.php
   ========================================================================== */
.mt {
  --mt-bg: #f6f7f5;
  --mt-surface: #fff;
  --mt-ink: #1b1f1e;
  --mt-muted: #5f6866;
  --mt-line: #dfe3e0;
  --mt-teal: #0f8f8a;
  --mt-sun: #f3c318;
  --mt-sun-ink: #3b2f00;
  --mt-side: #00aebb;
  --mt-side-ink: #007f88;
  color: var(--mt-ink);
  font-size: 15px;
  line-height: 1.7;
}
.mt *, .mt *::before, .mt *::after { box-sizing: border-box; }
.mt a { color: inherit; text-decoration: none; }
.mt img { display: block; max-width: 100%; }
.mt h1, .mt h2, .mt h3 { margin: 0; }

/* ヒーロー */
.mt_hero {
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
  text-align: center;
  padding: 62px 20px 44px;
  margin-bottom: 36px;
}
.mt_hero_bg {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  font-size: clamp(64px, 11vw, 128px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}
.mt_hero_title {
  position: relative;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  margin: 0 0 18px !important;
  line-height: 1.3;
  letter-spacing: .06em;
}
.mt_hero_text { position: relative; margin: 0; font-size: 15px; line-height: 1.85; }
@media (max-width: 640px) {
  .mt_hero_text br { display: none; }
  .mt_hero_text { font-size: 13.5px; text-align: left; }
}

/* レイアウト */
.mt_wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px 80px; }
.mt_body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.mt_body.has-side { grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; }
.mt_main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; min-width: 0; }
.mt_main > * { min-width: 0; }

/* 段の見出し */
.mt_sec_title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.mt_sec_title h2 { font-size: 19px; font-weight: 700; line-height: 1.5; }
.mt_sec_title small { color: var(--mt-muted); font-size: 12.5px; }
.mt_sec_title a { margin-left: auto; font-size: 13px; color: var(--mt-teal); white-space: nowrap; }
.mt_sec_title a:hover { text-decoration: underline; }

/* 横スクロールの段 */
.mt_rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.mt_rail .mt_card { scroll-snap-align: start; }

/* カード */
.mt_card { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.mt_cl { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mt_thumb { position: relative; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: #eee; }
.mt_thumb img { width: 100%; height: 100%; object-fit: cover; }
.mt_thumb img.mt_noimg { object-fit: contain; padding: 18%; }
.mt_new {
  position: absolute; left: 8px; top: 8px;
  background: var(--mt-sun); color: var(--mt-sun-ink);
  font-size: 11px; font-weight: 700; line-height: 1.7;
  border-radius: 4px; padding: 0 7px;
}
.mt_rk {
  position: absolute; left: 0; top: 0;
  background: var(--mt-ink); color: #fff;
  font-weight: 800; font-size: 13px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-bottom-right-radius: 8px;
}
.mt_meta { display: grid; gap: 2px; min-width: 0; }
.mt_kind { font-size: 11.5px; font-weight: 700; color: var(--mt-teal); }
.mt_ttl {
  font-weight: 700; font-size: 14.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mt_cl:hover .mt_ttl { text-decoration: underline; text-decoration-color: var(--mt-teal); }
.mt_au { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mt_who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.mt_who img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; background: #eee; }
.mt_nm { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.mt_who:hover .mt_nm { text-decoration: underline; }
.mt_date { margin-left: auto; flex: none; font-size: 11.5px; color: var(--mt-muted); }

/* 絞り込み */
.mt_filters { display: grid; gap: 12px; padding: 16px; border-radius: 10px; background: var(--mt-bg); }
.mt_frow { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.mt_fl { flex: none; width: 52px; font-size: 12px; font-weight: 700; color: var(--mt-muted); padding-top: 6px; }
.mt_chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.mt_chip {
  border: 1px solid var(--mt-line); background: #fff; color: var(--mt-ink);
  border-radius: 999px; padding: 5px 14px;
  font: inherit; font-size: 13px; line-height: 1.5;
  cursor: pointer; white-space: nowrap;
}
.mt_chip:hover { border-color: var(--mt-ink); }
.mt_chip[aria-pressed="true"] { background: var(--mt-ink); color: #fff; border-color: var(--mt-ink); }
.mt_chip.is-more { border-style: dashed; color: var(--mt-muted); }
.mt_chip.is-ex { display: none; }
.mt_chips.is-open .mt_chip.is-ex { display: inline-block; }
.mt_chips.is-open .mt_chip.is-more { display: none; }
@media (max-width: 640px) {
  .mt_frow { flex-direction: column; gap: 6px; }
  .mt_chips { width: 100%; }
  .mt_chip { padding: 4px 12px; font-size: 12.5px; }
}

/* すべての記事 */
.mt_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px 18px;
  margin-top: 18px;
  transition: opacity .2s;
}
.mt_grid.is-loading { opacity: .4; }
.mt_empty { grid-column: 1 / -1; text-align: center; color: var(--mt-muted); padding: 30px; margin: 0; }
@media (max-width: 1000px) {
  .mt_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .mt_grid .mt_ttl { font-size: 13.5px; }
  .mt_grid .mt_nm { font-size: 11.5px; }
  .mt_grid .mt_au { flex-wrap: wrap; row-gap: 2px; }
  .mt_grid .mt_date { margin-left: 0; width: 100%; font-size: 11px; }
}
.mt_more { display: flex; justify-content: center; margin-top: 28px; }
.mt_btn {
  display: inline-block;
  border: 1px solid var(--mt-ink); background: #fff;
  border-radius: 999px; padding: 10px 32px;
  font-weight: 700; cursor: pointer;
}
.mt_btn:hover { background: var(--mt-ink); color: #fff !important; }
.mt_btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.mt_more[hidden] { display: none; }

/* 右の列：代表コラム */
.mt_side_in {
  position: sticky;
  top: 112px;
  border-radius: 12px;
  background: var(--mt-side);
  color: #fff;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.mt_side_hd { display: flex; gap: 10px; align-items: center; }
.mt_side_hd img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.mt_side_lb { font-size: 11px; opacity: .85; font-weight: 700; letter-spacing: .12em; }
.mt_side_n { font-weight: 800; font-size: 15px; line-height: 1.4; }
.mt_side_n a, .mt_side_n span { display: block; font-size: 11.5px; font-weight: 400; }
.mt .mt_side_n a { color: #fff; text-decoration: underline; }
.mt .mt_side_lt { background: #fff; color: var(--mt-ink); border-radius: 8px; overflow: hidden; display: block; }
.mt_side_lt img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }
.mt_side_lt div { padding: 8px 10px 10px; font-weight: 800; font-size: 13.5px; line-height: 1.5; }
.mt_side_lt small { display: block; font-weight: 400; color: var(--mt-muted); font-size: 11px; }
.mt_side_lt:hover div { text-decoration: underline; }
.mt_side ul { list-style: none; margin: 0; padding: 0; }
.mt_side li { margin: 0; }
.mt .mt_side li a { display: block; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.5; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.mt .mt_side li a:hover { text-decoration: underline; }
.mt .mt_side_all { display: block; text-align: center; background: #fff; color: var(--mt-side-ink); border-radius: 999px; font-size: 13px; padding: 8px; font-weight: 700; }
.mt .mt_side_all:hover { text-decoration: underline; }

/* スマホ・タブレット：代表コラムを見出しの下に置き、コンパクトにする */
@media (max-width: 1000px) {
  .mt_body.has-side { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .mt_side { order: -1; }
  .mt_side_in { position: static; padding: 12px; gap: 10px; }
  .mt_side ul { display: none; }
  .mt_side_hd img { width: 40px; height: 40px; }
  .mt_side_n { font-size: 14px; }
  .mt .mt_side_lt { display: flex; align-items: center; }
  .mt_side_lt img { width: 38%; max-width: 200px; flex: none; align-self: stretch; object-fit: cover; aspect-ratio: auto; }
  .mt_side_lt div {
    flex: 1; min-width: 0; font-size: 12.5px; padding: 8px 10px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  }
  .mt_side_lt small { display: inline; }
  .mt_side_lt small::after { content: "\A"; white-space: pre; }
  .mt .mt_side_all { padding: 7px; font-size: 12.5px; }
}
