@charset "UTF-8";
/* ============================================================
   Cats in Need — Top page (front-page.php) 専用スタイル
   既存の style.css には手を入れていません。
   このファイルと assets/top/ 配下のみで完結します。

   ▼写真の差し替え
   下部「PLACEHOLDER PHOTOS」の各 --img-* に
   /assets/top/image/xxx.jpg を指定してください。
   ============================================================ */

html:has(.p-top), body:has(.p-top) { overflow-x: hidden; }
.Toppage { overflow-x: hidden; }
.p-top {
  --clay: #bd8a63;
  --ink: #3f382e;
  --cream: #f4efe6;
  --cream2: #efe7d8;
  --serif: "Cormorant Garamond", "EB Garamond", serif;
  --body: "EB Garamond", "Noto Sans JP", serif;
  --hand: "Caveat", cursive;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
}

/* トップだけ共通ヘッダーを隠し、ヒーロー内のナビを使う */
.Toppage .header { display: none; }
.Toppage .main { margin: 0 auto; }

.p-top a { color: inherit; }
.p-top img { display: block; }
.p-top__inner { max-width: 1312px; margin: 0 auto; padding: 0 64px; }

/* ---------- 共通パーツ ---------- */
.p-top_eyebrow {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  color: var(--clay);
  display: inline-block;
  transform: rotate(-1.5deg);
}
.p-top_eyebrow--light { color: #fff; font-size: 32px; }
.p-top_h2 {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 8px;
}
.p-top_h2--light { color: #fff; font-size: 52px; }
.p-top_lead { font-size: 18px; line-height: 1.8; color: rgba(63, 56, 46, 0.75); margin-top: 18px; }
.p-top_lead--light { color: rgba(255, 255, 255, 0.9); }

.p-top_btn {
  display: inline-block;
  background: var(--clay);
  color: #fff;
  text-decoration: none;
  padding: 16px 44px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  transition: 0.3s;
}
.p-top_btn:hover { opacity: 0.85; }
.p-top_hero__btns .p-top_btn:not(.p-top_btn--ghost) { background: #a86f45; font-weight: 600; }
.p-top_btn--ghost {
  background: rgba(35, 28, 20, 0.42);
  border: 1.5px solid #fff;
  font-weight: 600;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.p-top_btn--outline { background: none; border: 1px solid rgba(63, 56, 46, 0.35); color: var(--ink); }
.p-top_textlink {
  display: inline-block;
  font-size: 17px;
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 56, 46, 0.3);
  padding-bottom: 6px;
}

/* ---------- 写真背景バンド ---------- */
.p-top_band { position: relative; overflow: hidden; display: flex; align-items: center; }
.p-top_band__bg { position: absolute; inset: 0; background-color: #c6bba7; background-position: center; background-size: cover; }
.p-top_band__veil { position: absolute; inset: 0; }
.p-top_band__body { position: relative; width: 100%; max-width: 1312px; margin: 0 auto; padding: 0 64px; color: #fff; }
.p-top_band__body > div { max-width: 760px; }
.p-top_band--right .p-top_band__body { display: flex; justify-content: flex-end; text-align: right; }

/* 猫イラスト＋吹き出し */
.p-top_cat { position: absolute; z-index: 4; display: flex; flex-direction: column; align-items: center; }
.p-top_cat svg { width: 128px; height: auto; overflow: visible; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45)); }
.p-top_bubble {
  position: relative;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  padding: 6px 16px 9px;
  border-radius: 16px;
  white-space: nowrap;
  margin-bottom: 12px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
}
.p-top_bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, 0) rotate(45deg);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.p-top_cat--tr { right: 100px; top: 150px; }
.p-top_cat--br { right: 96px; bottom: 56px; }
.p-top_cat--bl { left: 96px; bottom: 58px; }

/* 一筆書きアニメーション（画面に入ったら描かれる／効かない環境では即描画） */
.p-top_catline {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: p-top-catDraw 2.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes p-top-catDraw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .p-top_catline { animation: none; stroke-dashoffset: 0; }
}
@keyframes p-top-softIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- HERO ---------- */
.p-top_hero { position: relative; height: 720px; overflow: hidden; }
.p-top_hero__bg { position: absolute; inset: 0; background-color: #c6bba7; background-position: center; background-size: cover; }
.p-top_hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 28, 20, 0.5) 0%, rgba(35, 28, 20, 0.05) 30%, rgba(35, 28, 20, 0.1) 55%, rgba(35, 28, 20, 0.72) 100%);
}
.p-top_nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1312px;
  margin: 0 auto;
  padding: 22px 64px;
  color: #fff;
}
.p-top_nav__logo { width: 88px; flex: none; }
.p-top_nav__menu { display: flex; align-items: center; gap: 30px; font-size: 16px; }
.p-top_nav__menu a { color: #fff; text-decoration: none; }
.p-top_nav__menu .p-top_btn { padding: 11px 26px; font-size: 16px; }
.p-top_nav__toggle { display: none; background: none; border: none; padding: 6px; cursor: pointer; z-index: 6; }
.p-top_nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: 0.25s; }
.p-top_nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.p-top_nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.p-top_nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.p-top_nav__sp { display: none; }
.p-top_hero__copy { position: absolute; left: 0; right: 0; bottom: 70px; z-index: 3; }
.p-top_hero__copy .p-top__inner > * { animation: p-top-softIn 0.9s ease both; }
.p-top_hero__hand {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  transform: rotate(-2deg);
  display: inline-block;
}
.p-top_hero__title {
  font-family: var(--hand);
  font-size: 96px;
  font-weight: 700;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 3px 26px rgba(25, 16, 8, 0.45);
  margin-top: 6px;
}
.p-top_hero__lead { font-size: 20px; line-height: 1.6; color: rgba(255, 255, 255, 0.92); margin-top: 22px; max-width: 560px; }
.p-top_hero__btns { display: flex; gap: 16px; margin-top: 30px; }

/* ---------- ABOUT ---------- */
.p-top_about { padding: 88px 0; }
.p-top_about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.p-top_about__photos { display: block; }
.p-top_about__photos span {
  display: block;
  border-radius: 22px;
  aspect-ratio: 4/3;
  background-color: #e0d4bd;
  background-position: center;
  background-size: cover;
}
.p-top_stats { display: flex; gap: 44px; margin-top: 34px; }
.p-top_stats dt { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1; color: var(--clay); }
.p-top_stats dd { font-size: 14px; color: rgba(63, 56, 46, 0.6); margin: 2px 0 0; }

/* ---------- CARDS（Our work / Volunteer） ---------- */
.p-top_cards { padding: 88px 0; background: var(--cream2); }
.p-top_cards__head { text-align: center; margin-bottom: 46px; }
.p-top_cards__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.p-top_cards__cta { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- NEWS（活動報告） ---------- */
.p-top_news__list { grid-template-columns: repeat(3, 1fr); }
.p-top_news__card { display: block; padding: 0; overflow: hidden; text-decoration: none; color: var(--ink); }
.p-top_news__thumb { background-color: #e0d4bd; aspect-ratio: 4/3; overflow: hidden; }
.p-top_news__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-top_news__body { padding: 22px 24px 26px; }
.p-top_news__meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(63, 56, 46, 0.6); }
.p-top_news__cat { background: var(--cream2); border-radius: 999px; padding: 4px 12px; color: #8a5834; }
.p-top_news__card .p-top_card__title { font-size: 23px; line-height: 1.3; margin-top: 10px; }
.p-top_news__card--empty { opacity: 0.55; }
.p-top_news__card--empty .p-top_news__thumb {
  background-image: repeating-linear-gradient(45deg, rgba(120, 90, 55, 0.09) 0 10px, rgba(120, 90, 55, 0) 10px 20px);
}
.p-top_card {
  background: #f7f2e8;
  border: 1px solid rgba(120, 90, 55, 0.14);
  border-radius: 22px;
  padding: 30px 28px 32px;
}
.p-top_card__img {
  border-radius: 16px;
  aspect-ratio: 4/3;
  background-color: #e0d4bd;
  background-position: center;
  background-size: cover;
}
.p-top_card__num { font-family: var(--hand); font-size: 26px; color: var(--clay); line-height: 1; }
.p-top_card__title { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-top: 16px; }
.p-top_card__txt { font-size: 15px; line-height: 1.7; color: rgba(63, 56, 46, 0.7); margin-top: 8px; }

.p-top_sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.p-top_sechead__side { max-width: 420px; }

/* ---------- ADOPT ---------- */
.p-top_adopt { padding: 88px 0; }
.p-top_adopt__head { text-align: center; margin-bottom: 40px; }
.p-top_adopt__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.p-top_adopt__item { text-decoration: none; display: block; }
.p-top_adopt__img {
  border-radius: 20px;
  aspect-ratio: 1;
  background-color: #e0d4bd;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.p-top_adopt__img img { width: 100%; height: 100%; object-fit: cover; }
.p-top_adopt__name { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-top: 12px; }
.p-top_adopt__meta { font-size: 14px; color: rgba(63, 56, 46, 0.6); }
.p-top_adopt__btns { display: flex; justify-content: center; gap: 28px; margin-top: 46px; }

/* Adopt スライダー */
.p-top_adopt__slider { position: relative; }
.p-top_adopt__swiper { overflow: hidden; }
.p-top_adopt__swiper .swiper-slide { height: auto; }
.p-top_adopt__nav {
  position: absolute;
  top: calc((100% - 74px) / 2);
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border: 1px solid rgba(63, 56, 46, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  z-index: 3;
  padding: 0;
  transition: 0.3s;
}
.p-top_adopt__nav:hover { background: #fff; border-color: var(--clay); }
.p-top_adopt__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
}
.p-top_adopt__nav--prev { left: -26px; }
.p-top_adopt__nav--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.p-top_adopt__nav--next { right: -26px; }
.p-top_adopt__nav--next::before { transform: translate(-65%, -50%) rotate(45deg); }
.p-top_adopt__nav.swiper-button-disabled { opacity: 0.3; pointer-events: none; }
.p-top_adopt__pager { display: none; }

/* ---------- WHERE ---------- */
.p-top_where { padding: 88px 0; background: var(--cream); }
.p-top_where__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.p-top_where__img {
  border-radius: 20px;
  aspect-ratio: 16/10;
  background-color: #e0d4bd;
  background-position: center;
  background-size: cover;
}
.p-top_where__name { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-top: 14px; }
.p-top_where__txt { font-size: 15px; color: rgba(63, 56, 46, 0.65); margin-top: 4px; }

/* ---------- 各バンドの高さ・ベール ---------- */
.p-top_band--work { height: 560px; }
.p-top_band--work .p-top_band__veil { background: linear-gradient(90deg, rgba(35, 28, 20, 0.7) 0%, rgba(35, 28, 20, 0.3) 60%, rgba(35, 28, 20, 0.5) 100%); }
.p-top_band--stories { height: 620px; }
.p-top_band--stories .p-top_band__veil { background: linear-gradient(90deg, rgba(35, 28, 20, 0.72) 0%, rgba(35, 28, 20, 0.34) 55%, rgba(35, 28, 20, 0.5) 100%); }
.p-top_band--donate { height: 600px; }
.p-top_band--donate .p-top_band__veil { background: linear-gradient(90deg, rgba(35, 28, 20, 0.32) 0%, rgba(35, 28, 20, 0.42) 45%, rgba(35, 28, 20, 0.74) 100%); }
.p-top_band--contact { height: 560px; }
.p-top_band--contact .p-top_band__veil { background: linear-gradient(90deg, rgba(35, 28, 20, 0.74) 0%, rgba(35, 28, 20, 0.34) 60%, rgba(35, 28, 20, 0.44) 100%); }
.p-top_quote { font-family: var(--serif); font-size: 52px; font-weight: 500; line-height: 1.3; color: #fff; margin-top: 12px; }
.p-top_quote__by { font-size: 18px; color: rgba(255, 255, 255, 0.86); margin-top: 22px; }
.p-top_contact__info { font-size: 17px; line-height: 1.9; color: rgba(255, 255, 255, 0.9); margin-top: 16px; }

/* ============================================================
   PLACEHOLDER PHOTOS — assets/top/image/ に同名ファイルを置くと差し替わります
   （置くまでは仮写真が表示されます）
   ============================================================ */
.p-top_hero__bg { background-image: url("../image/hero.jpg"); }
.p-top_about__photos span { background-image: url("../image/about-1.jpg"); }
.p-top_band--work .p-top_band__bg { background-image: url("../image/work.jpg"); background-position: center 78%; }
.p-top_card--rescue .p-top_card__img { background-image: url("../image/work-rescue.jpg"); }
.p-top_card--medical .p-top_card__img { background-image: url("../image/work-medical.jpg"); }
.p-top_card--community .p-top_card__img { background-image: url("../image/work-community.jpg"); }
.p-top_card--impact .p-top_card__img { background-image: url("../image/work-impact.jpg"); }
.p-top_band--stories .p-top_band__bg { background-image: url("../image/stories.jpg"); }
.p-top_where--pp .p-top_where__img { background-image: url("../image/where-phnompenh.jpg"); }
.p-top_where--sr .p-top_where__img { background-image: url("../image/where-siemreap.jpg"); }
.p-top_where--vl .p-top_where__img { background-image: url("../image/where-villages.jpg"); }
.p-top_band--donate .p-top_band__bg { background-image: url("../image/donate.jpg"); }
.p-top_band--contact .p-top_band__bg { background-image: url("../image/contact.jpg"); background-position: center 72%; }
.p-top_adopt__img--ph1 { background-image: url("../image/adopt-1.jpg"); }
.p-top_adopt__img--ph2 { background-image: url("../image/adopt-2.jpg"); }
.p-top_adopt__img--ph3 { background-image: url("../image/adopt-3.jpg"); }
.p-top_adopt__img--ph4 { background-image: url("../image/adopt-4.jpg"); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 1200px) {
  .p-top__inner,
  .p-top_band__body,
  .p-top_nav { padding-left: 40px; padding-right: 40px; }
  .p-top_hero__title { font-size: 72px; }
  .p-top_h2 { font-size: 38px; }
  .p-top_h2--light { font-size: 42px; }
  .p-top_quote { font-size: 40px; }
  .p-top_adopt__list,
  .p-top_cards__list { grid-template-columns: repeat(2, 1fr); }
  .p-top_nav__menu { gap: 20px; font-size: 15px; }
  .p-top_adopt__nav--prev { left: -6px; }
  .p-top_adopt__nav--next { right: -6px; }
}

@media screen and (max-width: 768px) {
  .p-top__inner,
  .p-top_band__body,
  .p-top_nav { padding-left: 24px; padding-right: 24px; }

  .p-top_hero { height: 620px; }
  .p-top_nav { padding-top: 16px; padding-bottom: 16px; background: transparent; position: relative; z-index: 1000; }
  .p-top_nav.is-open { background: #f4efe6; }
  .p-top_nav.is-open .p-top_nav__toggle span { background: #3f382e; }
  .p-top_nav__logo { width: 64px; }
  .p-top_nav__menu { display: none; }
  .p-top_nav__toggle { display: block; }
  .p-top_nav__sp.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #f4efe6;
    padding: 30px 24px 26px;
    overflow-y: auto;
  }
  .p-top_nav__sp a { color: #3f382e; text-decoration: none; font-size: 19px; }
  .p-top_nav__sp .p-top_btn { color: #fff; align-self: flex-start; margin-top: 6px; }
  .p-top_hero__hand { font-size: 24px; }
  .p-top_hero__title { font-size: 46px; }
  .p-top_hero__lead { font-size: 15px; margin-top: 16px; }
  .p-top_hero__btns { flex-direction: column; align-items: stretch; gap: 10px; }
  .p-top_hero__btns .p-top_btn { text-align: center; padding: 15px 0; }
  .p-top_hero__copy { bottom: 40px; }

  .p-top_about,
  .p-top_cards,
  .p-top_adopt,
  .p-top_where { padding: 56px 0; }
  .p-top_about__grid { grid-template-columns: 1fr; gap: 32px; }
  .p-top_stats { gap: 26px; }
  .p-top_stats dt { font-size: 32px; }

  .p-top_eyebrow { font-size: 22px; }
  .p-top_eyebrow--light { font-size: 24px; }
  .p-top_h2 { font-size: 30px; }
  .p-top_h2--light { font-size: 32px; }
  .p-top_lead { font-size: 15px; }

  .p-top_cards__list,
  .p-top_adopt__list,
  .p-top_where__list { grid-template-columns: 1fr 1fr; gap: 16px; }
  .p-top_news__list { grid-template-columns: 1fr; }
  .p-top_card { padding: 20px 18px 22px; border-radius: 18px; }
  .p-top_card__title { font-size: 20px; margin-top: 12px; }
  .p-top_card__txt { font-size: 13px; }
  .p-top_adopt__name { font-size: 20px; }
  .p-top_adopt__nav {
    display: flex;
    top: auto;
    bottom: -58px;
    width: 40px;
    height: 40px;
    margin-top: 0;
  }
  .p-top_adopt__nav--prev { left: calc(50% - 46px); }
  .p-top_adopt__nav--next { right: calc(50% - 46px); }
  .p-top_adopt__swiper { overflow: visible; }
  .p-top_adopt__pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
  .p-top_adopt__pager {
    margin-top: 62px;
  }
  .p-top_adopt__pager .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(63, 56, 46, 0.25);
    opacity: 1;
    transition: 0.3s;
  }
  .p-top_adopt__pager .swiper-pagination-bullet-active { background: var(--clay); width: 20px; border-radius: 4px; }
  .p-top_where__list { grid-template-columns: 1fr; }
  .p-top_where__name { font-size: 22px; }
  .p-top_adopt__btns { flex-direction: column; align-items: center; gap: 12px; }

  .p-top_sechead { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 28px; }

  .p-top_band { min-height: 520px; height: auto; padding: 72px 0 190px; }
  .p-top_band--right .p-top_band__body { justify-content: flex-start; text-align: left; }
  .p-top_band__body > div { max-width: 100%; }
  .p-top_quote { font-size: 26px; }
  .p-top_quote__by { font-size: 14px; margin-top: 14px; }
  .p-top_contact__info { font-size: 14px; }

  .p-top_cat svg { width: 92px; }
  .p-top_bubble { font-size: 17px; padding: 5px 12px 7px; }
  .p-top_cat--tr,
  .p-top_cat--br,
  .p-top_cat--bl { top: auto; bottom: 32px; left: auto; right: 24px; }
}
