@charset "UTF-8";
/* ==================================================================
   PONTIS リデザイン（③案）

   1. 全ページ共通の文字設計（Noto Sans JP）
   2. ヘッダーのメニュー
   3. 共通部品（.pt-page 配下）
   4. トップページ（.pt-top）
   5. プロジェクトカード（.pt-card）
   6. プロジェクト詳細（.pt-detail）

   style.css と衝突しないよう、クラスは pt- で始める。
   style.css の a:link / a:visited（詳細度 0,1,1）に負けないよう、
   ページ内の部品は .pt-page を先頭に付けて詳細度を上げている。
   ================================================================== */

:root {
  --pt-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --pt-ground: #FFFAF9;      /* PONTIS の背景色 */
  --pt-surface: #FFFFFF;
  --pt-peach: #FDF0E8;
  --pt-peach-line: #F6DCCB;
  --pt-ink: #2B2624;         /* 見出し・金額 */
  --pt-text: #3A3533;        /* 本文 */
  --pt-sub: #756B67;         /* 補足・ラベル */
  --pt-line: #EDE3DF;
  --pt-coral: #DD6532;       /* ボタン：PONTIS #FA8D62 を白文字でも読める濃さに */
  --pt-coral-hover: #C4552A;
  --pt-coral-text: #C9512A;  /* 到達率など文字としての朱色 */
  --pt-bar-track: #F1E6E0;
  --pt-bar: #F08A55;
  /* 到達率（バー・%と数字）。101%以上はネクストゴールとして黄色にする */
  --pt-rate-bar: #E8173F;
  --pt-rate-text: #D7003A;
  --pt-rate-next-bar: #F5C400;
  --pt-rate-next-text: #B08600; /* 白地でも読める濃さの黄色 */
  --pt-teal: #2B616D;        /* PONTIS のリンク色 */
  --pt-note-bg: #FFF8EC;
  --pt-note-line: #F1DDB4;
  --pt-note-ink: #7A5210;
}

/* ------------------------------------------------------------------
   1. 全ページ共通の文字設計
   本文 400 / 小見出し 500 / 見出し・金額・ボタン 700、本文の行間 1.8〜1.85
   ------------------------------------------------------------------ */
body {
  font-family: var(--pt-font);
  font-size: 1.5rem;        /* 14px → 15px（スマホの読みやすさを優先） */
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--pt-text);    /* #555 より少し濃くしてコントラストを確保 */
  -webkit-font-smoothing: antialiased;
}
@media screen and (min-width: 650px) {
  body {
    font-size: 1.6rem;
    line-height: 1.85;
  }
}
button, input, select, textarea {
  font-family: var(--pt-font);
}
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  font-feature-settings: "palt";
}
@media screen and (min-width: 650px) {
  h1, h2, h3, h4, h5 {
    line-height: 1.45;      /* style.css の固定 3rem を相対値に。2 行の見出しが詰まらないように */
  }
}
.btn-main, a.btn-main, button.btn-main,
.btn-white, a.btn-white, button.btn-white {
  font-weight: 700;
  line-height: 1.4;         /* Noto Sans JP は字面が高いので明示し、ボタンの高さが増えないようにする */
  letter-spacing: 0.03em;
}

/* ------------------------------------------------------------------
   2. ヘッダーのメニュー（PC 幅のみ。狭い画面では検索窓とボタンを優先）
   ------------------------------------------------------------------ */
header nav .pt-gnav {
  display: none;
}
/* style.css はヘッダーの高さを 120px（トップ）/ 90px（その他）に固定しており、上部の余白が大きい。
   ボタンと検索窓が収まる 76px にそろえる */
@media screen and (min-width: 650px) {
  header.header-logout nav,
  header.nobanner nav,
  header.header-login nav {
    height: 76px;
  }
  header .btn-header {
    padding-top: 0.75em;
    padding-bottom: 0.75em;
  }
}
/* メニューを出さない 650〜1199px でも、style.css の固定幅（検索欄 27vw・ボタン最大 126px）のままだと
   Noto Sans JP の字幅で検索窓がボタンに重なるため、同じように文字や列の幅に合わせる */
@media screen and (min-width: 650px) and (max-width: 1199px) {
  header nav .header-search {
    width: auto;
    min-width: 0;
    max-width: 520px;
    margin: auto 16px auto 24px;
  }
  header nav .header-search .search-group input[type=search] {
    flex: 1 1 auto;
    width: auto;
    min-width: 140px;
  }
  header nav .header-search .search-group select,
  header nav .header-search .search-group button[type=submit] {
    flex: none;
  }
  header nav .header-search .search-group select {
    width: auto;
    padding: 0 8px 0 12px;
    font-size: 14px;
  }
  header .btn-header {
    width: auto;
    margin-left: 10px;
    padding: 0.9em 1.4em;
    white-space: nowrap;
  }
}

/* メニューを出すと検索窓の幅が足りなくなるため、1200px 以上でだけ表示する */
@media screen and (min-width: 1200px) {
  header nav {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }
  header nav .pt-gnav {
    display: flex;
    align-items: center;
    gap: 22px;
    grid-row: 1 / 2;
    grid-column: 3 / 4;
    margin: auto 4px auto 24px;
  }
  header nav .header-menu,
  header nav .btn-container {
    grid-column: 4 / 5;
  }
  /* style.css は左右に clamp(…, 11vw, 200px) などの大きな余白を取り、検索窓が 200px 台まで縮む。
     ヘッダーの左右の端を本文の端にそろえる（.pt-container は最大 1160px − 左右の余白 24px ずつ = 中身 1112px） */
  header.header-logout nav,
  header.nobanner nav,
  header.header-login nav {
    padding-left: max(48px, calc((100% - 1112px) / 2));
    padding-right: max(48px, calc((100% - 1112px) / 2));
  }
  /* style.css は width: 100% + margin: auto auto auto 2em。
     右の margin が auto だと列幅に合わせて伸縮せず、メニューに重なるため、左右の余白を固定して列に収める */
  header nav .header-search {
    width: auto;
    min-width: 0;
    max-width: 520px;
    margin: auto 16px auto 32px;
  }
  /* style.css は検索欄の幅を clamp(80px, 27vw, 270px) で固定しており、列に収まらない。列幅に合わせて縮める */
  header nav .header-search .search-group input[type=search] {
    flex: 1 1 auto;
    width: auto;
    min-width: 140px;          /* キーワードが入力できる幅を必ず残す */
  }
  header nav .header-search .search-group select,
  header nav .header-search .search-group button[type=submit] {
    flex: none;
  }
  header nav .header-search .search-group select {
    width: auto;
    padding: 0 8px 0 12px;
    font-size: 14px;
  }
  /* ログイン・会員登録ボタンは固定幅（最大 126px）をやめ、文字に合わせた幅にする */
  header .btn-header {
    width: auto;
    margin-left: 10px;
    padding: 0.9em 1.4em;
    white-space: nowrap;
  }
  header nav .pt-gnav {
    gap: 18px;
    margin: auto 4px auto 8px;
  }
}
header nav .pt-gnav a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--pt-ink);
  text-decoration: none;
  white-space: nowrap;
}
header nav .pt-gnav a:hover {
  color: var(--pt-coral);
}

/* ヘッダー上の団体向けバナー（旧：オレンジ一色の太い帯）。特長の帯と同じトーンで控えめにする */
header.header-logout .pt-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 8px 16px;
  background: var(--pt-peach);
  border-bottom: 1px solid var(--pt-peach-line);
  color: var(--pt-ink);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: left;
  text-decoration: none;
}
header.header-logout .pt-cta__label {
  flex: none;
  padding: 1px 10px;
  border: 1px solid var(--pt-coral);
  border-radius: 99px;
  color: var(--pt-coral-text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
header.header-logout .pt-cta__text {
  font-weight: 500;
}
header.header-logout .pt-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pt-coral-text);
  font-weight: 700;
  white-space: nowrap;
}
header.header-logout .pt-cta__link svg {
  transition: transform 0.2s ease;
}
header.header-logout .pt-cta:hover .pt-cta__link {
  text-decoration: underline;
}
header.header-logout .pt-cta:hover .pt-cta__link svg {
  transform: translateX(3px);
}
@media (max-width: 649px) {
  header.header-logout .pt-cta__text {
    display: none;             /* スマホはラベルとリンクだけにして 1 行に収める */
  }
  /* スマホのヘッダー：ロゴ行と検索窓の間が空きすぎるので詰める（検索窓の mtem-2 = 上余白 2em を打ち消す） */
  header.header-logout nav,
  header.nobanner nav,
  header.header-login nav {
    padding: 8px 16px 12px;
    row-gap: 8px;
  }
  header nav .header-search.mtem-2 {
    margin-top: 0;
  }
  header nav .btn-container {
    padding-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  header.header-logout .pt-cta__link svg { transition: none; }
}

/* ------------------------------------------------------------------
   3. 共通部品
   ------------------------------------------------------------------ */
.pt-page *,
.pt-page *::before,
.pt-page *::after {
  box-sizing: border-box;
}
.pt-page {
  color: var(--pt-text);
}
/* display: grid / flex を指定した部品でも hidden 属性で確実に隠れるようにする
   （シェアメニュー、7件目以降の応援コメント、「もっと見る」など） */
.pt-page [hidden],
.pt-toast[hidden] {
  display: none !important;
}
.pt-page a {
  color: inherit;
  text-decoration: none;
}
.pt-page img {
  max-width: 100%;
}
/* 団体名などに長い英数字が続いても、横にはみ出さず折り返す */
.pt-page .pt-card__name,
.pt-page .pt-card__org,
.pt-detail .pt-detail__title,
.pt-detail .pt-org-link,
.pt-detail .pt-org-card__name,
.pt-detail .pt-chips li,
.pt-detail .pt-fact__value {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pt-page ul,
.pt-page ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pt-page p {
  margin: 0;
}

/* layouts/app_user は <header> を閉じずに本文を出力しているため、本文も header の中に入る。
   その結果 style.css の header nav { display: grid; padding; height } が本文の nav
   （カテゴリ、パンくず、ページ内ナビ）にも効いてしまうので打ち消す */
header .pt-page nav,
.pt-page nav {
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  grid-template-columns: none;
  grid-template-rows: none;
}

/* grid の暗黙の列（auto）は、画像の元の幅など中身の最小幅より縮まず、スマホで横にはみ出す。
   1 列で並べる部品は minmax(0, 1fr) を明示する */
.pt-page .pt-top__content,
.pt-page .pt-side,
.pt-page .pt-box,
.pt-page .pt-card,
.pt-page .pt-card__body,
.pt-page .pt-detail__head,
.pt-page .pt-detail__main,
.pt-page .pt-detail__aside,
.pt-page .pt-panel,
.pt-page .pt-block,
.pt-page .pt-note,
.pt-page .pt-org-card,
.pt-page .pt-monthly,
.pt-page .pt-returns,
.pt-page .pt-return,
.pt-page .pt-return__body {
  grid-template-columns: minmax(0, 1fr);
}
.pt-page :focus-visible {
  outline: 3px solid #F2A57E;
  outline-offset: 2px;
  border-radius: 6px;
}
.pt-page .pt-container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

.pt-page .pt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 14px/1.4 var(--pt-font);
  letter-spacing: 0.03em;
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: none;
}
.pt-page .pt-btn--fill { background: var(--pt-coral); color: #fff; }
.pt-page .pt-btn--fill:hover { background: var(--pt-coral-hover); }
.pt-page .pt-btn--line { border-color: var(--pt-coral); color: var(--pt-coral); background: var(--pt-surface); }
.pt-page .pt-btn--line:hover { background: var(--pt-peach); }
.pt-page .pt-btn--quiet { border-color: var(--pt-line); color: var(--pt-ink); background: var(--pt-surface); }
.pt-page .pt-btn--quiet:hover { border-color: #D9CDC8; background: #FBF7F5; }
.pt-page .pt-btn--ghost { border-color: rgba(255, 255, 255, 0.85); color: #fff; background: rgba(255, 255, 255, 0.06); }
.pt-page .pt-btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
.pt-page .pt-btn:disabled,
.pt-page .pt-btn[aria-disabled="true"] {
  background: #B9AFAB;
  border-color: #B9AFAB;
  color: #fff;
  cursor: not-allowed;
}
.pt-page .pt-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--pt-teal);
  white-space: nowrap;
}
.pt-page .pt-link:hover {
  text-decoration: underline;
}

.pt-page .pt-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.pt-page .pt-section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
  color: var(--pt-ink);
  letter-spacing: 0.04em;
}
.pt-page .pt-section-head small {
  font-size: 12px;
  font-weight: 500;
  color: var(--pt-sub);
  margin-left: 10px;
  letter-spacing: 0.04em;
}
.pt-page .pt-empty {
  font-size: 14px;
  color: var(--pt-sub);
}

.pt-page .pt-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--pt-bar-track);
  overflow: hidden;
}
.pt-page .pt-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pt-rate-bar);
}
/* 101%以上は満タンの紅色の上に、100%を超えた分を左端から黄色で重ねる（2周目）。
   黄色の幅（--pt-over-width）はビュー側で 到達率 - 100（最大100）として渡す */
.pt-page .is-next-goal .pt-bar i {
  background: linear-gradient(
    to right,
    var(--pt-rate-next-bar) var(--pt-over-width, 0%),
    var(--pt-rate-bar) var(--pt-over-width, 0%)
  );
}

@media (max-width: 640px) {
  .pt-page .pt-container { padding-inline: 16px; }
  .pt-page .pt-section-head h2 { font-size: 19px; }
}

/* ------------------------------------------------------------------
   4. トップページ
   ------------------------------------------------------------------ */
.pt-top {
  background: var(--pt-ground);
}

.pt-top .pt-hero {
  position: relative;
  overflow: hidden;
  background: #2B2320;
}
.pt-top .pt-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;   /* 2 頭の顔が帯の中央に入る位置 */
}
.pt-top .pt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 20, 16, 0.82) 0%, rgba(28, 20, 16, 0.55) 38%, rgba(28, 20, 16, 0) 68%);
}
.pt-top .pt-hero__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-content: center;
  min-height: 500px;
  padding-block: 56px;
  color: #fff;
}
.pt-top .pt-hero__title {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.pt-top .pt-hero__lead {
  font-size: 16px;
  line-height: 1.9;
  max-width: 32em;
  color: #FBEFE9;
  word-break: auto-phrase;
}
.pt-top .pt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.pt-top .pt-hero__actions .pt-btn {
  font-size: 15px;
  padding: 13px 26px;
  min-height: 48px;
}

.pt-top .pt-features {
  background: var(--pt-peach);
  border-bottom: 1px solid var(--pt-peach-line);
}
.pt-top .pt-features ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-block: 22px;
}
.pt-top .pt-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.pt-top .pt-features li + li {
  border-left: 1px solid var(--pt-peach-line);
}
.pt-top .pt-features svg {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--pt-coral);
}
.pt-top .pt-features strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--pt-ink);
}
.pt-top .pt-features span {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--pt-sub);
}

.pt-top .pt-news {
  padding-top: 32px;
}

.pt-top .pt-top__main {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  padding-block: 40px 72px;
}
.pt-top .pt-side {
  display: grid;
  gap: 20px;
  align-content: start;
}
.pt-top .pt-box {
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  padding: 18px;
}
.pt-top .pt-box__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pt-ink);
  letter-spacing: 0.04em;
}
.pt-top .pt-cat-list {
  display: grid;
  gap: 2px;
}
.pt-top .pt-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--pt-text);
  padding: 9px 10px;
  border-radius: 8px;
}
.pt-top .pt-cat-list a::after {
  content: "›";
  color: #C3B6B1;
  font-size: 16px;
  line-height: 1;
}
.pt-top .pt-cat-list a:hover {
  background: #FBF4F0;
}
.pt-top .pt-cat-list a[aria-current="true"] {
  background: var(--pt-peach);
  color: var(--pt-coral-text);
  font-weight: 700;
}
.pt-top .pt-cat-more summary {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pt-teal);
  cursor: pointer;
  list-style: none;
}
.pt-top .pt-cat-more summary::-webkit-details-marker {
  display: none;
}
.pt-top .pt-cat-more[open] summary {
  margin-bottom: 4px;
}
.pt-top .pt-about {
  display: grid;
  gap: 12px;
  background: var(--pt-peach);
  border-color: var(--pt-peach-line);
}
.pt-top .pt-about .pt-box__title {
  margin: 0;
}
.pt-top .pt-about p {
  font-size: 13px;
  line-height: 1.8;
}
.pt-top .pt-about .pt-btn {
  justify-self: start;
}

.pt-top .pt-top__content {
  display: grid;
  gap: 56px;
  min-width: 0;
}
.pt-top .pt-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pt-top .pt-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.pt-top .pt-more .pt-btn {
  min-width: 240px;
  min-height: 48px;
  border-radius: 99px;
  font-size: 15px;
}

/* 新着の団体・オススメの団体（style.css のスタイルは旧レイアウトの .top-content 配下にしか効かない） */
.pt-top .page-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pt-top .page-gallery .pg-slide {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.pt-top .page-gallery .pg-slide img {
  order: -1;                 /* 画像を上、団体名を下にそろえる */
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--pt-line);
  border-radius: 10px;
  background: #EFE7E3;
}
.pt-top .page-gallery .pg-slide label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--pt-ink);
  overflow-wrap: anywhere;
  cursor: pointer;
}
.pt-top .page-gallery .pg-slide:hover label {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .pt-top .page-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 1024px) {
  /* 1fr だと中身の最小幅より縮まず横にはみ出すため minmax(0, 1fr) にする */
  .pt-top .pt-top__main { grid-template-columns: minmax(0, 1fr); }
  .pt-top .pt-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-top .pt-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pt-top .pt-hero__photo { object-position: 70% 40%; }
  .pt-top .pt-hero::after { background: linear-gradient(180deg, rgba(28, 20, 16, 0.15) 0%, rgba(28, 20, 16, 0.55) 45%, rgba(28, 20, 16, 0.85) 100%); }
  .pt-top .pt-hero__body { min-height: 440px; align-content: end; padding-block: 32px 28px; gap: 14px; }
  .pt-top .pt-hero__lead { font-size: 15px; }
  .pt-top .pt-hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .pt-top .pt-hero__actions .pt-btn { padding-inline: 10px; }

  .pt-top .pt-features ul { grid-template-columns: 1fr; gap: 0; padding-block: 8px; }
  .pt-top .pt-features li { justify-content: flex-start; padding-block: 12px; }
  .pt-top .pt-features li + li { border-left: 0; border-top: 1px solid var(--pt-peach-line); }
  .pt-top .pt-features svg { width: 34px; height: 34px; }

  .pt-top .pt-news { padding-top: 24px; }
  .pt-top .pt-top__main { padding-block: 28px 56px; gap: 40px; }
  .pt-top .pt-side { grid-template-columns: minmax(0, 1fr); order: 2; }
  .pt-top .pt-card-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* ------------------------------------------------------------------
   5. プロジェクトカード
   ------------------------------------------------------------------ */
.pt-page .pt-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pt-page .pt-card:hover {
  box-shadow: 0 8px 24px rgba(80, 45, 30, 0.10);
  transform: translateY(-2px);
}
.pt-page .pt-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #EFE7E3;
}
.pt-page .pt-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pt-page .pt-card__new {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  background: var(--pt-coral);
  padding: 5px 8px;
  border-radius: 4px;
}
.pt-page .pt-card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;                /* カード全体を覆うリンクより上に置く */
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #9A8E8A;
  cursor: pointer;
}
.pt-page .pt-card__fav:hover,
.pt-page .pt-card__fav[aria-pressed="true"] {
  color: var(--pt-coral);
}
.pt-page .pt-card__fav[aria-pressed="true"] svg {
  fill: currentColor;
}
.pt-page .pt-card__body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px 16px 16px;
}
.pt-page .pt-card__title {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: inherit;
  line-height: inherit;
}
.pt-page .pt-card__title a::before {
  content: "";
  position: absolute;
  inset: 0;                  /* カード全体をクリックできるようにする */
}
.pt-page .pt-card__place {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--pt-sub);
  letter-spacing: 0.04em;
}
.pt-page .pt-card__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--pt-ink);
  word-break: auto-phrase;   /* 「スポットクーラ／ー」のような語の途中での改行を防ぐ */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.55em * 2);
}
.pt-page .pt-card__status {
  font-size: 12px;
  font-weight: 700;
  color: var(--pt-coral-text);
}
.pt-page .pt-card__progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pt-page .pt-card__progress .pt-bar {
  flex: 1;
}
.pt-page .pt-card__rate {
  min-width: 3.2em;
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  color: var(--pt-rate-text);
  font-variant-numeric: tabular-nums;
}
.pt-page .is-next-goal .pt-card__rate { color: var(--pt-rate-next-text); }
.pt-page .pt-card__rate small {
  font-size: 11px;
  margin-left: 1px;
}
.pt-page .pt-card__money {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.pt-page .pt-card__amount {
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.pt-page .pt-card__amount b {
  font-size: 18px;
  font-weight: 700;
  color: var(--pt-ink);
  letter-spacing: 0.01em;
}
.pt-page .pt-card__amount span {
  display: block;            /* 目標は金額の下の行に固定し、桁が増えても人数が折り返さないようにする */
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pt-sub);
}
.pt-page .pt-card__supporters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pt-ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pt-page .pt-card__supporters svg {
  color: var(--pt-sub);
}
.pt-page .pt-card__org {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--pt-line);
  font-size: 12px;
  line-height: 1.4;
  color: var(--pt-sub);
}
.pt-page .pt-card__org img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
@media (max-width: 640px) {
  .pt-page .pt-card__name { min-height: 0; }
  .pt-page .pt-card__amount b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-page .pt-card,
  .pt-page .pt-card:hover { transition: none; transform: none; }
}

/* ------------------------------------------------------------------
   6. プロジェクト詳細
   ------------------------------------------------------------------ */
.pt-detail {
  background: var(--pt-ground);
}
.pt-detail .pt-crumbs {
  font-size: 12px;
  color: var(--pt-sub);
  padding-top: 18px;
}
.pt-detail .pt-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.pt-detail .pt-crumbs li + li::before {
  content: "›";
  margin-right: 8px;
  color: #C3B6B1;
}
.pt-detail .pt-crumbs a {
  color: var(--pt-teal);
}

.pt-detail .pt-detail__head {
  display: grid;
  gap: 12px;
  padding-block: 16px 24px;
}
.pt-detail .pt-detail__place {
  font-size: 13px;
  font-weight: 500;
  color: var(--pt-sub);
  letter-spacing: 0.06em;
}
.pt-detail .pt-detail__title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.5;
  color: var(--pt-ink);
  text-wrap: balance;
  word-break: auto-phrase;
}
.pt-detail .pt-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.pt-detail .pt-org-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pt-ink);
}
.pt-detail .pt-org-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--pt-line);
}
.pt-detail .pt-org-link:hover span {
  text-decoration: underline;
}
.pt-detail .pt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pt-detail .pt-chips li {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--pt-sub);
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 99px;
  padding: 3px 10px;
}

/* 上段：写真＋支援パネル */
.pt-detail .pt-detail__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
.pt-detail .pt-slider {
  max-width: none;           /* style.css の .slider-container { max-width: 600px; margin: 0 auto } を打ち消す */
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 2;
  background: #EFE7E3;
}
.pt-detail .pt-slider .slider-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.pt-detail .pt-slider .slider-slide {
  flex: 0 0 100%;
  height: 100%;
}
.pt-detail .pt-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pt-detail .pt-slider .slider-controls button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  opacity: 1;
}
.pt-detail .pt-slider .slider-controls svg {
  width: 14px;
  height: 14px;
  fill: var(--pt-ink);
}
.pt-detail .pt-slider #prevBtn { left: 12px; }
.pt-detail .pt-slider #prevBtn svg { transform: scaleX(-1); }
.pt-detail .pt-slider #nextBtn { right: 12px; }
.pt-detail .pt-slider .slider-indicators {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
}
.pt-detail .pt-slider .indicator-list {
  display: flex;
  gap: 6px;
}
.pt-detail .pt-slider .indicator-btn {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.pt-detail .pt-slider .indicator-btn.active {
  background: #fff;
}

.pt-detail .pt-panel {
  display: grid;
  gap: 18px;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  padding: 24px;
}
.pt-detail .pt-panel__status {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--pt-sub);
  background: #F5EFEC;
  border-radius: 8px;
  padding: 8px 12px;
}
.pt-detail .pt-panel__status--done {
  color: var(--pt-coral-text);
  background: var(--pt-peach);
}
.pt-detail .pt-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--pt-sub);
  letter-spacing: 0.04em;
}
.pt-detail .pt-panel__total {
  display: grid;
  gap: 2px;
}
.pt-detail .pt-panel__amount {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--pt-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.pt-detail .pt-panel__goal {
  font-size: 14px;
  font-weight: 500;
  color: var(--pt-sub);
  font-variant-numeric: tabular-nums;
}
.pt-detail .pt-panel__rate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.pt-detail .pt-panel__rate {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pt-rate-text);
  font-variant-numeric: tabular-nums;
}
.pt-detail .is-next-goal .pt-panel__rate { color: var(--pt-rate-next-text); }
.pt-detail .pt-panel__rate small {
  font-size: 14px;
  margin-left: 1px;
}
.pt-detail .pt-panel .pt-bar {
  height: 10px;
  margin-top: 8px;
}
.pt-detail .pt-panel__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--pt-line);
  padding-top: 16px;
}
.pt-detail .pt-panel__stats > div {
  display: grid;
  gap: 2px;
}
.pt-detail .pt-panel__stats > div + div {
  border-left: 1px solid var(--pt-line);
  padding-left: 16px;
}
.pt-detail .pt-panel__stat {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pt-ink);
  font-variant-numeric: tabular-nums;
}
.pt-detail .pt-panel__stat small {
  font-size: 13px;
  font-weight: 500;
  margin-left: 2px;
}
.pt-detail .pt-panel__cta {
  width: 100%;
  font-size: 16px;
  padding: 15px 20px;
  min-height: 54px;
  border-radius: 10px;
}
.pt-detail .pt-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pt-detail .pt-panel__actions .pt-btn {
  width: 100%;
  font-size: 13px;
  padding: 9px 10px;
}
.pt-detail .pt-panel__actions .pt-btn.is_liked {
  color: var(--pt-coral);
  border-color: var(--pt-peach-line);
  background: var(--pt-peach);
}
.pt-detail .pt-panel__note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--pt-sub);
}

/* シェア */
.pt-detail .pt-share {
  position: relative;
}
.pt-detail .pt-share__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: grid;
  width: 232px;
  padding: 6px;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(60, 35, 25, 0.14);
}
.pt-detail .pt-share__menu a,
.pt-detail .pt-share__menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font: 500 14px/1.4 var(--pt-font);
  color: var(--pt-ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.pt-detail .pt-share__menu a:hover,
.pt-detail .pt-share__menu button:hover {
  background: #FBF4F0;
}
.pt-detail .pt-share__menu svg {
  flex: none;
  width: 20px;
  height: 20px;
}
.pt-detail .pt-share__menu hr {
  border: 0;
  border-top: 1px solid var(--pt-line);
  margin: 4px 6px;
  padding: 0;
  height: 0;
}
.pt-detail .pt-share__x { color: #111; }
.pt-detail .pt-share__line { color: #06C755; }
.pt-detail .pt-share__insta { color: #D62976; }
.pt-detail .pt-share__link { color: var(--pt-sub); }
.pt-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 1100;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 8px;
  background: #3A3533;
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* ページ内ナビ */
.pt-detail .pt-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-top: 40px;
  background: rgba(255, 250, 249, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--pt-line);
}
.pt-detail .pt-tabs ul {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pt-detail .pt-tabs a {
  display: block;
  padding-block: 14px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pt-sub);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.pt-detail .pt-tabs a:hover {
  color: var(--pt-ink);
}
.pt-detail .pt-tabs a[aria-current="true"] {
  color: var(--pt-ink);
  font-weight: 700;
  border-bottom-color: var(--pt-coral);
}
.pt-detail .pt-tabs .pt-count {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pt-sub);
  font-variant-numeric: tabular-nums;
}

/* 下段：本文＋リターン */
.pt-detail .pt-detail__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
  padding-block: 32px 80px;
}
.pt-detail .pt-detail__main,
.pt-detail .pt-detail__aside {
  display: grid;
  gap: 48px;
  min-width: 0;
}
.pt-detail .pt-block {
  display: grid;
  gap: 16px;
  scroll-margin-top: 64px;
}
.pt-detail .pt-block > h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 21px;
  line-height: 1.5;
  color: var(--pt-ink);
  letter-spacing: 0.04em;
}
.pt-detail .pt-block > h2 .pt-count {
  font-size: 14px;
  font-weight: 500;
  color: var(--pt-sub);
  font-variant-numeric: tabular-nums;
}

.pt-detail .pt-story {
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  padding: 28px 32px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.pt-detail .pt-story__text {
  max-width: 40em;
}

.pt-detail .pt-note {
  display: grid;
  gap: 12px;
  background: var(--pt-note-bg);
  border: 1px solid var(--pt-note-line);
  border-radius: 12px;
  padding: 22px 26px;
}
.pt-detail .pt-note h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--pt-note-ink);
}
.pt-detail .pt-note__text {
  font-size: 14px;
  line-height: 1.85;
  max-width: 44em;
  overflow-wrap: anywhere;
}

.pt-detail .pt-faq {
  display: grid;
  gap: 0;
  margin: 0;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 12px;
}
.pt-detail .pt-faq > div {
  padding: 16px 20px;
}
.pt-detail .pt-faq > div + div {
  border-top: 1px solid var(--pt-line);
}
.pt-detail .pt-faq dt {
  font-weight: 700;
  color: var(--pt-ink);
}
.pt-detail .pt-faq dd {
  margin: 4px 0 0;
  font-size: 14px;
}

.pt-detail .pt-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pt-detail .pt-fact {
  display: grid;
  gap: 2px;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 10px;
  padding: 14px 18px;
}
.pt-detail .pt-fact__value {
  font-size: 16px;
  font-weight: 700;
  color: var(--pt-ink);
}

.pt-detail .pt-comments {
  display: grid;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 12px;
}
.pt-detail .pt-comment {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px 20px;
}
.pt-detail .pt-comment + .pt-comment {
  border-top: 1px solid var(--pt-line);
}
.pt-detail .pt-comment__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  color: var(--pt-coral-text);
  background: var(--pt-peach);
}
.pt-detail .pt-comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pt-detail .pt-comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.pt-detail .pt-comment__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--pt-ink);
}
.pt-detail .pt-comment__time {
  font-size: 12px;
  color: var(--pt-sub);
}
.pt-detail .pt-comment__text {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.pt-detail .pt-more-row {
  display: flex;
  justify-content: center;
}
.pt-detail .pt-more-row .pt-btn {
  min-width: 220px;
  min-height: 44px;
  border-radius: 99px;
}

.pt-detail .pt-org-card {
  display: grid;
  gap: 16px;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  padding: 22px 24px;
}
.pt-detail .pt-org-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pt-detail .pt-org-card__top img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--pt-line);
}
.pt-detail .pt-org-card__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--pt-ink);
}
.pt-detail .pt-org-card__badge {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--pt-teal);
  background: #E6F0F2;
}
.pt-detail .pt-org-card dl {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}
.pt-detail .pt-org-card dt {
  font-weight: 500;
  color: var(--pt-sub);
}
.pt-detail .pt-org-card dd {
  margin: 0;
  color: var(--pt-ink);
  overflow-wrap: anywhere;
}
.pt-detail .pt-org-card .pt-btn {
  justify-self: start;
}

/* 継続サポート */
.pt-detail .pt-monthly {
  display: grid;
  gap: 12px;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  padding: 20px;
}
.pt-detail .pt-monthly h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--pt-ink);
}
.pt-detail .pt-monthly p {
  font-size: 13px;
  color: var(--pt-sub);
}
.pt-detail .pt-monthly .slim-input {
  width: 100%;
}
.pt-detail .pt-monthly .support-btn {
  width: 100%;
  margin-top: 12px;
}

/* リターン */
.pt-detail .pt-returns {
  display: grid;
  gap: 16px;
  scroll-margin-top: 64px;
}
.pt-detail .pt-return {
  display: grid;
  overflow: hidden;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 12px;
}
.pt-detail .pt-return__img {
  display: block;
  width: 100%;
  height: auto;              /* height 属性が aspect-ratio より優先されて縦に伸びるのを防ぐ */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #EFE7E3;
}
.pt-detail .pt-return__body {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
}
.pt-detail .pt-return--compact .pt-return__body {
  gap: 6px;
  padding: 14px 16px;
}
.pt-detail .pt-return__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.pt-detail .pt-return__price b {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pt-ink);
  font-variant-numeric: tabular-nums;
}
.pt-detail .pt-return--compact .pt-return__price b {
  font-size: 20px;
}
.pt-detail .pt-return__stock {
  font-size: 12px;
  font-weight: 500;
  color: var(--pt-sub);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pt-detail .pt-return__stock--low {
  font-weight: 700;
  color: var(--pt-coral-text);
}
.pt-detail .pt-return__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--pt-ink);
  word-break: auto-phrase;
}
.pt-detail .pt-return__desc {
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pt-detail .pt-return__desc.is-open {
  display: block;
}
.pt-detail .pt-return__toggle {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  font: 500 13px/1.4 var(--pt-font);
  color: var(--pt-teal);
  cursor: pointer;
}
.pt-detail .pt-return .pt-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  font-size: 15px;
}
.pt-detail .pt-return--compact .pt-btn {
  min-height: 42px;
  font-size: 14px;
}

/* スマホ下部の固定ボタン（PC では非表示） */
.pt-detail .pt-sticky-cta {
  display: none;
}

@media (min-width: 1025px) {
  /* sticky は独自の重なり順を作るため、パネル自体をページ内ナビ（z-index: 5）より上に置く。
     こうしないとシェアメニューがナビの下に隠れる */
  .pt-detail .pt-panel {
    position: sticky;
    top: 16px;
    z-index: 6;
  }
}
@media (max-width: 1024px) {
  .pt-detail .pt-detail__top,
  .pt-detail .pt-detail__body {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .pt-detail .pt-crumbs { padding-top: 12px; }
  .pt-detail .pt-detail__head { padding-block: 10px 16px; gap: 10px; }
  .pt-detail .pt-slider { margin-inline: -16px; border-radius: 0; aspect-ratio: 4 / 3; }
  .pt-detail .pt-detail__top { gap: 20px; }
  .pt-detail .pt-panel { padding: 20px; gap: 16px; }
  .pt-detail .pt-panel__amount { font-size: 32px; }
  .pt-detail .pt-panel__cta { display: none; }   /* 下部の固定ボタンに任せる */

  .pt-detail .pt-tabs { margin-top: 28px; }
  .pt-detail .pt-tabs ul { gap: 22px; }
  .pt-detail .pt-detail__body { padding-block: 24px 120px; gap: 48px; }
  .pt-detail .pt-detail__main,
  .pt-detail .pt-detail__aside { gap: 40px; }
  .pt-detail .pt-block > h2 { font-size: 19px; }
  .pt-detail .pt-story { padding: 20px 18px; border-radius: 10px; }
  .pt-detail .pt-note { padding: 18px; }
  .pt-detail .pt-comment { padding: 14px 16px; }
  .pt-detail .pt-org-card dl { grid-template-columns: 1fr; gap: 0; }
  .pt-detail .pt-org-card dd { margin-bottom: 10px; }

  .pt-detail .pt-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;              /* ヘッダー（z-index: 1000）より下 */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--pt-line);
    box-shadow: 0 -4px 16px rgba(80, 45, 30, 0.08);
  }
  .pt-detail .pt-sticky-cta__mini {
    display: grid;
    line-height: 1.3;
  }
  .pt-detail .pt-sticky-cta__mini b {
    font-size: 16px;
    font-weight: 700;
    color: var(--pt-ink);
    font-variant-numeric: tabular-nums;
  }
  .pt-detail .pt-sticky-cta__mini span {
    font-size: 12px;
    font-weight: 700;
    color: var(--pt-coral-text);
    font-variant-numeric: tabular-nums;
  }
  .pt-detail .pt-sticky-cta__mini .pt-sticky-cta__rate { color: var(--pt-rate-text); }
  .pt-detail .pt-sticky-cta__mini.is-next-goal .pt-sticky-cta__rate { color: var(--pt-rate-next-text); }
  .pt-detail .pt-sticky-cta .pt-btn {
    flex: 1;
    min-height: 48px;
    font-size: 15px;
    border-radius: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pt-detail .pt-slider .slider-wrapper { transition: none; }
}

/* ------------------------------------------------------------------
   検索ページ（search-support / search-npo）の「カテゴリから探す」
   トップの .pt-cat-list と同じ見た目にそろえる
   ------------------------------------------------------------------ */
.top-content .left-col > p,
.top-content .left-col .sidebar-title {
  margin: 0 0 8px;
  padding-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--pt-ink);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--pt-line);
}
.top-content .left-row.menu-item {
  margin: 0 0 2px;
}
.top-content .left-row.menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--pt-text);
  text-decoration: none;
}
.top-content .left-row.menu-item a::after {
  content: "›";
  flex-shrink: 0;
  color: #C3B6B1;
  font-size: 16px;
  line-height: 1;
}
.top-content .left-row.menu-item a:hover {
  background: #FBF4F0;
}
.top-content .left-row.menu-item a[aria-current="true"] {
  background: var(--pt-peach);
  color: var(--pt-coral-text);
  font-weight: 700;
}
.top-content .left-row.menu-item svg {
  display: none;
}
/* 縦並び（650px 未満）のときは、下の検索結果との間をあける */
@media (max-width: 649px) {
  .top-content .left-col {
    margin-bottom: 32px;
  }
}

/* プロジェクト詳細：写真がないときは白地＋枠線（右の支援パネルとそろえる） */
.pt-detail .pt-slider--empty {
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
}

/* ヘッダー（ロゴ・検索・ログインの行）は白地にして、下に細い線で本文と区切る。
   <header> は本文まで包んでいるため、header ではなく直下の nav に色を付ける */
header.header-logout > nav,
header.header-login > nav {
  background: var(--pt-surface);
  border-bottom: 1px solid var(--pt-line);
}

/* 検索ページ（search-support）のプロジェクト一覧：トップと同じカードを並べる */
.pt-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
@media (max-width: 640px) {
  .pt-search-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* カードを並べたとき、タイトルの行数・状態表示の有無・団体名の長さが違っても、
   到達率バー・金額・団体名の高さを同じ行のカードでそろえる（subgrid 非対応の環境では従来どおり） */
.pt-page .pt-card__head {
  display: grid;
  gap: 6px;
  align-content: start;
}
@supports (grid-template-rows: subgrid) {
  .pt-card-grid > .pt-card {
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .pt-card-grid > .pt-card > .pt-card__body {
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-content: normal;
    align-items: start;
  }
  .pt-card-grid > .pt-card > .pt-card__body > .pt-card__org {
    align-self: start;
  }
}
