@charset "UTF-8";
/* ==========================================================================
   magazine.css — 売却のコツマガジン コラム一覧（/magazine/）
   デザイン元: design/09_コツマガジントップ_04.psb（2x → 1/2 実寸 px）
   PC固定1320px / SPは @media (max-width:768px) のみ可変
   ========================================================================== */



/* ページタイトル下の太い区切り線 */
.l-lower .p-lower__ttl {
  margin-bottom: 0;
}

/* ==========================================================================
   記事カード（ピックアップ／おすすめ／新着で共通）
   ========================================================================== */
/* タイトルの行数が違ってもタグの行が列（グリッドの各行）で揃うよう、
   カードを縦フレックスにして本文側を伸ばし、タグを下端に寄せる。
   右下の丸矢印(__more)は position:absolute の bottom 基準なので自動的に揃う。 */
/* カード全体を記事へのリンクにしつつ、タグだけ絞り込み一覧への別リンクにする。
   <a> は入れ子にできないので、記事リンクを ::after で全面に広げ、
   タグを z-index で上に重ねている（voices 一覧と同じ方式）。 */
.p-mag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 2px solid var(--c-line);
  /* 長方形2/504 FrFX実測: 4px@2x #D4D9DD（角丸なし） */
  box-sizing: border-box;
  color: var(--c-black);
  text-decoration: none;
}
.p-mag-card__link {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.p-mag-card:hover {
  opacity: 1;
}
.p-mag-card:hover .p-mag-card__ttl {
  color: var(--c-blue);
}

/* PSB実測どおり 2:1（1203×603 / 702×352）。ピックアップ／おすすめ／新着で共通（2026-07-24 決定） */
.p-mag-card__thumb {
  display: block;
  aspect-ratio: 2 / 1;
  background: var(--c-gray);
  overflow: hidden;
  pointer-events: none;
  /* 画像の上でもカード全面リンクを効かせる */
}
.p-mag-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

/* ホバーで画像を拡大 */
.p-mag-card:hover .p-mag-card__thumb img,
.p-mag-card:hover .p-mag-card__thumb img {
  transform: scale(1.08);
}

.p-mag-card__body {
  position: relative;
  /* カテゴリのリンクを全面リンクより上に出すため */
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* flex 化で幅いっぱいに伸びるのを防ぐ（カテゴリの青枠） */
  flex: 1 0 auto;
  padding: 20px 16px 0;
  pointer-events: none;
  /* 文字の上でもカード全面リンクを効かせる */
}
.p-mag-card__body>a {
  pointer-events: auto;
}

.p-mag-card__date {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .075em;
  line-height: 1;
  color: var(--c-black);
}

.p-mag-card__cat {
  display: inline-block;
  text-decoration: none;
  margin-top: 16px;
  padding: 5px 11px;
  border-radius: 3px;
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
  transition: background-color .2s;
}
.p-mag-card__cat:hover {
  background: var(--c-deepblue);
  opacity: 1;
}

.p-mag-card__ttl {
  display: block;
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .025em;
  color: var(--c-black);
  transition: color .2s ease;
}

.p-mag-card__tags {
  position: relative;
  /* カード全面リンクより上に出す */
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 18px 56px 21px 16px;
  /* 右は丸ボタンに重ならない幅 */
  pointer-events: none;
  /* タグの余白部分でもカード全面リンクを効かせる */
}
.p-mag-card__tags a {
  pointer-events: auto;
}
/* タグが無い記事でもカード下端の余白を保つ */
.p-mag-card__body:last-of-type {
  padding-bottom: 21px;
}
/* タグが無い記事の下余白 */
.p-mag-card__tag {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-blue);
  border-bottom: 1px solid var(--c-blue);
  transition: color .2s, border-bottom-color .2s;
}
.p-mag-card__tag:hover {
  color: var(--c-deepblue);
  border-bottom-color: transparent;
  opacity: 1;
}

.p-mag-card__more {
  position: absolute;
  z-index: 1;
  /* 全面リンクより上（同じ記事へ飛ぶ） */
  right: 22px;
  bottom: 21px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--c-black);
  display: grid;
  place-items: center;
}
.p-mag-card__more .c-mask {
  width: 11px;
  height: 5px;
  color: var(--c-white);
}

/* ==========================================================================
   ピックアップ記事（スライダー）
   ========================================================================== */
.p-mag-pickup {
  position: relative;
  margin-top: 71px;
}
.p-mag-pickup__slider {
  overflow: hidden;
}
.p-mag-pickup__slider .swiper-wrapper {
  align-items: stretch;
}
/* Swiperの既定(flex-start)だとスライド高さが揃わないため */
.p-mag-pickup .swiper-slide {
  width: 602px;
  height: auto;
  display: flex;
}
.p-mag-pickup .swiper-slide .p-mag-card {
  width: 100%;
}

/* スライダー内のカードは大きめ */
.p-mag-pickup .p-mag-card__body {
  padding: 25px 23px 0;
}
.p-mag-pickup .p-mag-card__tags {
  padding: 16px 64px 29px 23px;
}
.p-mag-pickup .p-mag-card__body:last-of-type {
  padding-bottom: 29px;
}
.p-mag-pickup .p-mag-card__date {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
}
.p-mag-pickup .p-mag-card__cat {
  margin-top: 12px;
}
.p-mag-pickup .p-mag-card__ttl {
  margin-top: 17px;
  font-size: 22px;
  line-height: 1.6;
}
.p-mag-pickup .p-mag-card__more {
  right: 30px;
  bottom: 21px;
  width: 30px;
  height: 30px;
}
.p-mag-pickup .p-mag-card__more .c-mask {
  width: 12px;
  height: 5px;
}

/* 左右の矢印（中央スライドの外側に重なる） */
.p-mag-pickup__arrow {
  position: absolute;
  top: 212px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-black);
  border: 0;
  cursor: pointer;
  z-index: 5;
  transition: background-color .2s;
}
.p-mag-pickup__arrow:not(.swiper-button-disabled):hover {
  background: var(--c-blue);
  opacity: 1;
}
.p-mag-pickup__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--c-white);
  border-right: 2px solid var(--c-white);
}
.p-mag-pickup__arrow--prev {
  left: calc(50% - 368px);
}
.p-mag-pickup__arrow--prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}
.p-mag-pickup__arrow--next {
  left: calc(50% + 318px);
}
.p-mag-pickup__arrow--next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}
.p-mag-pickup__arrow.swiper-button-disabled {
  opacity: .35;
  cursor: default;
}

/* ページネーション（ドット） */
.p-mag-pickup__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 39px;
}
.p-mag-pickup__dots .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-line);
  opacity: 1;
  cursor: pointer;
}
.p-mag-pickup__dots .swiper-pagination-bullet-active {
  background: var(--c-black);
}

/* ==========================================================================
   カテゴリ／タグから探す
   ========================================================================== */
.p-mag-find {
  margin-top: 73px;
  box-sizing: border-box;
  border: 5px solid var(--c-black);
  background: var(--c-bg);
}

/* 開閉ボタン（枠の見出し）。閉じているときはこの1行分の高さだけになる */
.p-mag-find__head {
  margin: 0;
}
.p-mag-find__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 26px 45px;
  box-sizing: border-box;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
  color: var(--c-black);
}
/* ＋ / － のマーク */
.p-mag-find__mark {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
}
.p-mag-find__mark::before,
.p-mag-find__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 3px;
  background: var(--c-black);
  transform: translateY(-50%);
  transition: transform .3s ease;
}
.p-mag-find__mark::after {
  transform: translateY(-50%) rotate(90deg);
}
.p-mag-find__btn[aria-expanded="true"] .p-mag-find__mark::after {
  transform: translateY(-50%) rotate(0);
}

/* 中身。高さは 0fr⇔1fr で伸縮する（FAQ と同じ作り） */
.p-mag-find__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.p-mag-find__body.is-open {
  grid-template-rows: 1fr;
}
.p-mag-find__inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 45px;
}
.p-mag-find__block:first-child {
  padding-top: 8px;
}
.p-mag-find__block:last-child {
  padding-bottom: 46px;
}
.p-mag-find__block+.p-mag-find__block {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--c-line);
}
.p-mag-find__ttl {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
}

.p-mag-find__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 31px;
}
.p-mag-find__cats a {
  display: flex;
  align-items: center;
  height: 41px;
  padding: 0 15px;
  border-radius: 5px;
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color .2s;
}
.p-mag-find__cats a:hover {
  background: var(--c-deepblue);
  opacity: 1;
}

.p-mag-find__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 34px 23px;
  margin-top: 35px;
}
.p-mag-find__tags a {
  display: inline-block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-blue);
  border-bottom: 1px solid var(--c-blue);
  padding: 0 2px 2px;
  text-decoration: none;
  transition: color .2s, border-bottom-color .2s;
}
.p-mag-find__tags a:hover {
  color: var(--c-deepblue);
  border-bottom-color: transparent;
}

/* ==========================================================================
   おすすめ記事 / 新着記事（3列グリッド）
   ========================================================================== */
.p-mag-sec-ttl {
  font-size: var(--fz-h1);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1em;
}

.p-mag-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 23px;
}

.p-mag-sec-ttl+.p-mag-cards {
  margin-top: 30px
}

.p-mag-osusume {
  margin-top: 125px;
}

.p-mag-new {
  padding: 71px 0 40px;
}

.p-mag-more {
  margin-top: 88px;
  text-align: center;
}

/* ==========================================================================
   SP
   ========================================================================== */
/* ==========================================================================
   カテゴリ／タグ絞り込み一覧（/magazine/category/{slug}/ ・ /magazine/tag/{slug}/）
   PSB にデザインが無いため、一覧のカードを流用しページャだけ追加する。
   ページャの意匠は voices 一覧（07_売却された方の声_02.psb 実測）に合わせる。
   ========================================================================== */
.p-mag-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 70px;
  position: relative;
}
.p-mag-pager .page-numbers {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid var(--c-black);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}
.p-mag-pager .page-numbers.current {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: var(--c-white);
}
.p-mag-pager .page-numbers.dots {
  border: 0;
  background: none;
  width: 30px;
  font-size: 15px;
  letter-spacing: .1em;
}
/* 前へ／次へ。声の一覧（p-voices__pager）と同じ意匠・同じ位置に揃える。
   数字の並びから左右に離して絶対配置する（PSB の非表示レイヤー「btns」の意匠） */
.p-mag-pager .page-numbers.prev,
.p-mag-pager .page-numbers.next {
  position: absolute;
  width: 47px;
  height: 47px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--c-black);
  transition: background-color .2s;
}
.p-mag-pager .page-numbers.prev { left: 210px; }
.p-mag-pager .page-numbers.next { right: 210px; }
.p-mag-pager .page-numbers.prev:hover,
.p-mag-pager .page-numbers.next:hover {
  background: var(--c-blue);
  opacity: 1;
}
.p-mag-pager .page-numbers.is-disabled {
  background: #e6e9ec;
  pointer-events: none;
}
.p-mag-pager__arrow {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.p-mag-pager__arrow .c-mask {
  width: 21px;
  height: 7px;
  color: var(--c-white);
}
.p-mag-pager__arrow--prev { transform: scaleX(-1); }
.p-mag-pager .page-numbers.is-disabled .c-mask { color: #b4bbc2; }

.p-mag-empty {
  margin-top: 40px;
  font-size: var(--fz-body);
  line-height: 2;
}

@media (max-width: 768px) {
  .l-lower .l-lower__inner {
    width: 90%;
  }
  .p-mag-pickup {
    margin-top: 40px;
  }
  .p-mag-pickup__slider {
    width: 90%;
    margin-inline: auto;
  }
  .p-mag-pickup .swiper-slide {
    width: 100%;
  }
  .p-mag-pickup .p-mag-card__body {
    padding: 18px 16px 0;
  }
  .p-mag-pickup .p-mag-card__ttl {
    font-size: 18px;
    margin-top: 12px;
  }
  /* ⚠ display:flex を書かないこと。中の山形は ::before を position:absolute で
     置いているので flex は効かず、Swiper が付ける .swiper-button-lock（＝スライドが
     動かせないときの display:none）を打ち消すだけになる。実際それで記事1件のときに
     押せない矢印が残っていた（2026-08-06）。 */
  .p-mag-pickup__arrow {
    top: 18vw;
    bottom: 35px;
    /* ドット分の高さを除いた範囲内で縦中央にする */
    margin: 0;
    width: 32px;
    height: 32px;
  }
  .p-mag-pickup__arrow::before {
    width: 9px;
    height: 9px;
  }
  .p-mag-pickup__arrow--prev {
    left: 6px;
  }
  .p-mag-pickup__arrow--next {
    left: auto;
    right: 8px;
  }
  .p-mag-pickup__dots {
    margin-top: 24px;
    gap: 6px;
  }

  .p-mag-find {
    margin-top: 45px;
    border-width: 3px;
  }
  .p-mag-find__btn {
    padding: 18px 20px;
    font-size: 20px;
  }
  .p-mag-find__mark {
    width: 18px;
    height: 18px;
  }
  .p-mag-find__mark::before,
  .p-mag-find__mark::after {
    width: 18px;
    height: 2px;
  }
  .p-mag-find__inner {
    padding: 0 20px;
  }
  .p-mag-find__block:first-child {
    padding-top: 4px;
  }
  .p-mag-find__block:last-child {
    padding-bottom: 26px;
  }
  .p-mag-find__ttl {
    font-size: 20px;
  }
  .p-mag-find__block+.p-mag-find__block {
    margin-top: 28px;
    padding-top: 28px;
  }
  .p-mag-find__cats {
    gap: 8px;
    margin-top: 18px;
  }
  .p-mag-find__cats a {
    height: 34px;
    padding: 0 12px;
    font-size: 15px;
  }
  .p-mag-find__tags {
    gap: 8px 16px;
    margin-top: 20px;
  }
  .p-mag-find__tags a {
    font-size: 14px;
  }

  .p-mag-sec-ttl {
    font-size: 24px;
  }
  .p-mag-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .p-mag-sec-ttl+.p-mag-cards {
    margin-top: 20px
  }

  /* おすすめ記事・新着記事は左画像・右テキストの横並びに */
  .p-mag-osusume .p-mag-card,
  .p-mag-new .p-mag-card {
    display: grid;
    grid-template-columns: 38% 60%;
    grid-template-rows: auto auto;
    /* 明示しないと thumb の 1/-1 指定が2行目を参照できない */
    column-gap: 2%;
  }
  .p-mag-osusume .p-mag-card__thumb,
  .p-mag-new .p-mag-card__thumb {
    grid-column: 1;
    grid-row: 1 / span 2;
    /* テキスト側（body+tags）の合計高さに追従させる */
    align-self: stretch;
    aspect-ratio: auto;
    /* 基本ルールの2:1指定を解除（指定が残ると高さがそちらで決まってしまう） */
    width: 100%;
    height: 100%;
  }
  .p-mag-osusume .p-mag-card__body,
  .p-mag-new .p-mag-card__body {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    /* グリッドの伸長でbody内の行間が広がるのを防ぐ */
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    padding: 8px 0 0;
  }
  .p-mag-osusume .p-mag-card__body:last-of-type,
  .p-mag-new .p-mag-card__body:last-of-type {
    padding-bottom: 3px;
  }
  .p-mag-osusume .p-mag-card__date,
  .p-mag-new .p-mag-card__date {
    font-size: 10px;
  }
  .p-mag-osusume .p-mag-card__cat,
  .p-mag-new .p-mag-card__cat {
    margin-top: 0;
    padding: 2px 7px;
    font-size: 10px;
  }
  .p-mag-osusume .p-mag-card__ttl,
  .p-mag-new .p-mag-card__ttl {
    flex-basis: 100%;
    width: 100%;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .p-mag-osusume .p-mag-card__tags,
  .p-mag-new .p-mag-card__tags {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    gap: 2px 8px;
    padding: 3px 0 6px;
  }
  .p-mag-osusume .p-mag-card__tag,
  .p-mag-new .p-mag-card__tag {
    font-size: 10px;
  }
  .p-mag-osusume .p-mag-card__more,
  .p-mag-new .p-mag-card__more {
    display: none;
  }

  .p-mag-osusume {
    margin-top: 55px;
  }
  .p-mag-new {
    padding: 45px 0 20px;
  }
  .p-mag-more {
    margin-top: 34px;
  }

  .p-mag-pager {
    gap: 6px;
    margin-top: 44px;
    flex-wrap: wrap;
  }
  .p-mag-pager .page-numbers {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  /* SP は幅が足りないので絶対配置をやめて数字と同じ行に並べる（声の一覧と同じ） */
  .p-mag-pager .page-numbers.prev,
  .p-mag-pager .page-numbers.next {
    position: static;
    width: 40px;
    height: 40px;
  }
  .p-mag-empty {
    margin-top: 24px;
  }
}