/**
 * Project Report
 * 案件実績ページ専用。共通ヘッダー／フッターのスタイルには影響しません。
 */

.project-report {
  --report-green: #13733d;
  --report-deep: #0e4d2b;
  --report-text: #17211b;
  --report-muted: #667069;
  --report-line: #e5eae7;
  overflow: hidden;
  color: var(--report-text);
  background: #fff;
  font-family: "Noto Sans JP", "Yu Gothic", YuGothic, sans-serif;
}

.project-report-shell {
  width: min(100% - 64px, 1540px);
  margin-inline: auto;
}

/* Hero: copy 40% / map 60% */
.project-report-hero {
  padding-top: 18px;
  border-bottom: 1px solid var(--report-line);
  background: linear-gradient(115deg, #fff 0%, #fff 42%, #f8faf9 100%);
}

/* WordPressメディアライブラリの指定画像をヒーロー全面に表示します。 */
.project-report-hero.has-image-background {
  position: relative;
  background-color: #fff;
  background-image: url("https://www.truspire.com/wp/wp-content/uploads/2026/08/hiro_achievements.png");
  background-position: center top;
  background-repeat: no-repeat;
  /* 元画像全体を切らずに表示し、北側の地形もそのまま見せる */
  background-size: contain;
}

/* 背景PNGと同じ1935×812の座標面に透明SVGを重ねる */
.has-image-background .project-report-map {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  pointer-events: none;
}

.has-image-background .project-report-map__world {
  pointer-events: none;
}

.has-image-background .project-report-map__region {
  pointer-events: none;
}

.has-image-background .project-report-map-card {
  top: 8%;
  /* 見出しと色付き地域の間に収め、左右どちらにも重ねない */
  left: 32.5%;
}

.project-report-hero__layout {
  min-height: 500px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: start;
}

.project-report-hero__copy {
  position: relative;
  z-index: 2;
  margin-left: clamp(14px, 1.25vw, 24px);
  padding: 20px clamp(28px, 4vw, 72px) 42px 0;
}

.project-report-hero__eyebrow {
  margin: 0 0 28px !important;
  color: var(--report-green);
  font-family: Arial, sans-serif;
  font-size: clamp(48px, 5vw, 78px);
  font-weight: 800;
  line-height: .94 !important;
  letter-spacing: -.025em;
}

.project-report-hero h1 {
  margin: 0 0 28px;
  color: #151b17;
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .045em;
}

.project-report-hero__lead {
  margin: 0;
  color: #4f5953;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 500;
  line-height: 2;
  letter-spacing: .025em;
}

/* Interactive SVG world map */
.project-report-map {
  position: relative;
  width: 115%;
  min-width: 0;
  margin-right: 0;
  margin-left: -15%;
}

.project-report-map__svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.project-map-country {
  fill-rule: evenodd;
  vector-effect: non-scaling-stroke;
}

.project-report-map__world {
  fill: #dce1df;
  stroke: #f8faf9;
  stroke-width: .75;
  stroke-linejoin: round;
}

.project-report-map__region {
  --region-color: #347f4e;
  cursor: pointer;
  opacity: .94;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .3s ease, transform .3s ease, filter .3s ease;
}

.project-report-map__region path {
  fill: var(--region-color);
  stroke: rgba(255, 255, 255, .8);
  stroke-width: .8;
  stroke-linejoin: round;
}

.project-report-map__region:hover,
.project-report-map__region:focus-visible,
.project-report-map__region.is-active {
  opacity: 1;
  filter: drop-shadow(0 8px 8px rgba(19, 49, 30, .25));
  transform: scale(1.02);
}

.project-report-map__svg.has-highlight .project-report-map__region:not(.is-highlighted):not(.is-active) {
  opacity: .35;
}

.project-report-map__region:focus-visible {
  outline: 3px solid #bf8c17;
  outline-offset: 4px;
}

/* 背景画像内の地図を見せ、SVGはクリック領域とホバー効果に使用します。 */
.has-image-background .project-report-map__world {
  opacity: 0;
}

.has-image-background .project-report-map__region {
  opacity: 0;
}

.has-image-background .project-report-map__region:hover,
.has-image-background .project-report-map__region:focus-visible,
.has-image-background .project-report-map__region.is-active {
  /* PNGと輪郭が異なるSVGは当たり判定専用にする */
  opacity: 0;
  filter: none;
  transform: none;
}

.has-image-background .project-report-map__svg.has-highlight .project-report-map__region:not(.is-highlighted):not(.is-active) {
  opacity: 0;
}

.project-report-map-card {
  position: absolute;
  z-index: 4;
  top: 0;
  right: auto;
  left: 1%;
  width: min(230px, 31%);
  padding: 20px 22px;
  border: 1px solid rgba(19, 115, 61, .14);
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  color: #273029;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 48px rgba(17, 54, 31, .15);
  pointer-events: none;
  transform: translateY(-7px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.project-report-map-card.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.project-report-map-card__en {
  margin: 0 0 3px;
  color: var(--region-color, var(--report-green));
  font: 800 11px/1.4 Arial, sans-serif;
  letter-spacing: .08em;
}

.project-report-map-card__title {
  margin: 0 0 7px;
  font-size: 19px;
  font-weight: 700;
}

.project-report-map-card__summary {
  margin: 0 0 10px;
  color: var(--report-muted);
  font-size: 11px;
  font-weight: 700;
}

.project-report-map-card__countries {
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--report-line);
  list-style: none;
}

.project-report-map-card__countries li {
  margin: 3px 0;
  font-size: 10px;
}

.project-report-map-card__countries li::before {
  content: "・";
}

/* Filter and legend */
.project-report-controls {
  position: relative;
  z-index: 3;
  min-height: 78px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.project-report-filter {
  margin-left: clamp(14px, 1.25vw, 24px);
  display: flex;
  align-items: stretch;
}

.project-report-filter button {
  position: relative;
  min-width: 102px;
  padding: 23px 17px 20px;
  border: 0;
  color: #3e4842;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .035em;
  cursor: pointer;
}

.project-report-filter button::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 3px;
  background: var(--report-green);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.project-report-filter button:hover,
.project-report-filter button.is-active {
  color: var(--report-green);
}

.project-report-filter button.is-active::after {
  transform: scaleX(1);
}

.project-report-filter button:focus-visible {
  outline: 2px solid #bf8c17;
  outline-offset: -3px;
}

.project-report-legend {
  /* 右端の「日本」が画面外へ出ないよう、凡例全体を左へ寄せる */
  margin: 0 clamp(28px, 3vw, 56px) 22px 0;
  padding: 0;
  display: flex;
  gap: 18px;
  list-style: none;
}

.project-report-legend li {
  --region-color: #347f4e;
  position: relative;
  padding-left: 15px;
  color: #4e5952;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.project-report-legend li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--region-color);
  transform: translateY(-50%);
}

/* Results */
.project-report-results {
  padding-top: 58px;
}

.project-report-results__heading {
  margin-bottom: 46px;
  text-align: center;
}

.project-report-results__heading > p {
  margin: 0 0 7px;
  color: var(--report-green);
  font: 700 10px/1.4 Arial, sans-serif;
  letter-spacing: .18em;
}

.project-report-results__heading h2 {
  margin: 0;
  color: #18251d;
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 500;
  letter-spacing: .08em;
}

.project-report-results__heading h2::after {
  content: "";
  width: 44px;
  height: 2px;
  margin: 18px auto 0;
  display: block;
  background: var(--report-green);
}

.project-report-list {
  min-height: 300px;
  transition: opacity .18s ease;
}

.project-report-list.is-loading {
  opacity: .35;
  pointer-events: none;
}

.project-report-region {
  --region-color: #347f4e;
  --region-pale: #eaf4ed;
  padding: 34px 0 42px;
  border-top: 1px solid var(--report-line);
  background: linear-gradient(90deg, #fafcfb, #fff 62%);
}

.project-report-region__layout {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 28px;
}

.project-report-region__intro {
  min-height: 230px;
  padding: 8px 12px 8px 18px;
  border-left: 4px solid var(--region-color);
}

.project-report-region__en {
  margin: 0 0 3px;
  color: var(--region-color);
  font: 800 14px/1.4 Arial, sans-serif;
}

.project-report-region__intro h2 {
  margin: 0 0 17px;
  color: #263229;
  font-size: 12px;
  font-weight: 700;
}

.project-report-region__intro ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-report-region__intro li {
  margin: 0 0 5px;
  color: #465149;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.55;
}

.project-report-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.project-report-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e4e8e5;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(22, 56, 34, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.project-report-card:hover {
  box-shadow: 0 15px 34px rgba(22, 56, 34, .13);
  transform: translateY(-5px);
}

.project-report-card__image {
  position: relative;
  aspect-ratio: 1.56;
  overflow: hidden;
  display: block;
  background: var(--region-pale);
}

.project-report-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.project-report-card:hover .project-report-card__image img {
  transform: scale(1.04);
}

.project-report-card__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--region-color);
  background: linear-gradient(145deg, var(--region-pale), #fff);
}

.project-report-card__fallback span {
  font: 800 10px/1.4 Arial, sans-serif;
  letter-spacing: .08em;
}

.project-report-card__body {
  flex: 1;
  padding: 14px 14px 15px;
  display: flex;
  flex-direction: column;
}

.project-report-card__country {
  margin: 0 0 6px;
  color: var(--region-color);
  font-size: 10px;
  font-weight: 800;
}

.project-report-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.project-report-card h3 a {
  color: #202922;
  text-decoration: none;
}

.project-report-card h3 a:hover {
  color: var(--region-color);
}

.project-report-card__facts {
  margin: auto 0 9px;
  color: #737c76;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
}

.project-report-card__facts span {
  color: #c5ccc7;
}

.project-report-card__tags {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}

.project-report-card__tags li {
  padding: 3px 7px;
  border-radius: 3px;
  color: var(--region-color);
  background: var(--region-pale);
  font-size: 9px;
  font-weight: 700;
}

.project-report-empty {
  min-height: 230px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px dashed #ccd5cf;
  border-radius: 6px;
  color: var(--report-muted);
  font-size: 12px;
}

/* Region colors shared by the map, legend, and cards. */
.project-report .is-central-asia { --region-color: #347f4e; --region-pale: #eaf4ed; }
.project-report .is-africa { --region-color: #ee8a08; --region-pale: #fff2df; }
.project-report .is-southeast-asia { --region-color: #3889cf; --region-pale: #e9f3fc; }
.project-report .is-middle-east { --region-color: #cd423c; --region-pale: #fcebea; }
.project-report .is-japan { --region-color: #123f75; --region-pale: #e8eff8; }

/* Cards fade up as they enter the viewport. */
.js-project-reveal {
  opacity: 0;
  transform: translateY(20px);
}

.js-project-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s ease var(--reveal-delay), transform .55s ease var(--reveal-delay), box-shadow .25s ease;
}

@media (max-width: 1180px) {
  .project-report-shell { width: min(100% - 48px, 1120px); }
  .project-report-hero__layout { grid-template-columns: 39% 61%; min-height: 450px; }
  .project-report-legend { display: none; }
  .project-report-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .project-report-shell { width: min(100% - 36px, 760px); }
  .project-report-hero { padding-top: 0; }
  .project-report-hero.has-image-background { background-position: 58% top; }
  .project-report-hero__layout { min-height: 0; padding-top: 20px; grid-template-columns: 1fr; }
  .project-report-hero__copy { padding: 22px 0 5px; }
  .project-report-hero__eyebrow { margin-bottom: 20px !important; font-size: 52px; }
  .project-report-hero h1 { margin-bottom: 18px; font-size: 25px; }
  .project-report-map { width: 112%; margin: -12px -6% 0; }
  .project-report-map-card { top: 3%; right: auto; left: 5%; }
  .has-image-background .project-report-map__region { pointer-events: none; }
  .project-report-controls { width: 100%; min-height: 64px; overflow-x: auto; padding-left: 18px; scrollbar-width: thin; }
  .project-report-filter { min-width: max-content; }
  .project-report-filter button { min-width: 88px; padding: 19px 13px 17px; }
  .project-report-results { padding-top: 45px; }
  .project-report-region__layout { grid-template-columns: 132px minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
  .project-report-hero.has-image-background {
    background-position: 63% top;
    background-size: auto 610px;
  }
  .project-report-desktop-only { display: none; }
  .project-report-map { width: 120%; margin-inline: -10%; }
  .project-report-map-card { display: none; }
  .project-report-results__heading { margin-bottom: 32px; }
  .project-report-results__heading h2 { font-size: 26px; }
  .project-report-region { padding: 28px 0 34px; }
  .project-report-region__layout { display: block; }
  .project-report-region__intro { min-height: 0; margin-bottom: 22px; padding: 3px 10px 3px 15px; }
  .project-report-region__intro h2 { margin-bottom: 8px; }
  .project-report-region__intro ul { display: flex; flex-wrap: wrap; gap: 2px 11px; }
  .project-report-region__intro li { margin: 0; }
  .project-report-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-report-card__image { aspect-ratio: 16 / 9; }
  .project-report-card__body { padding: 17px 17px 18px; }
  .project-report-card h3 { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-report *, .project-report *::before, .project-report *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .js-project-reveal { opacity: 1; transform: none; }
}
