@charset "UTF-8";

/* =========================================================
   story.css — プロジェクトストーリー
   (/journal/story/)
   ========================================================= */

/* =========================================================
   Intro
   ========================================================= */
.story-intro {
  padding-block: clamp(60px, 8vw, 110px) clamp(40px, 5vw, 70px);
  text-align: center;
}
.story-intro__title {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--c-green);
  margin: 0 0 clamp(20px, 2.4vw, 32px);
}
.story-intro__body {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--c-text);
  margin: 0;
}
.story-intro__body + .story-intro__body {
  margin-top: 14px;
}

/* =========================================================
   Project cards (light gray, 2-column)
   ========================================================= */
.story-projects {
  padding-bottom: clamp(60px, 8vw, 120px);
}
.story-card {
  position: relative;
  background: #f5f5f5;
  padding: clamp(60px, 7vw, 100px) clamp(40px, 5vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 522fr) minmax(0, 647fr);
  column-gap: clamp(28px, 4vw, 50px);
  align-items: start;
}
.story-card + .story-card {
  margin-top: clamp(40px, 5vw, 80px);
}

/* Left column wrapper: head → media → watermark stacked */
.story-card__left {
  display: flex;
  flex-direction: column;
}
.story-card__head {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 22px);
}
.story-card__rule {
  position: absolute;
  top: 0;
  left: clamp(40px, 5vw, 70px);
  width: 182px;
  max-width: 60%;
  height: 4px;
  background: var(--c-green);
  border-radius: 0;
}
.story-card__title {
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--c-green);
  margin: 0;
}
.story-card__media {
  margin-top: clamp(14px, 1.6vw, 22px);
  border-radius: clamp(6px, 0.8vw, 10px);
  overflow: hidden;
  position: relative;
  z-index: 0;
}
.story-card__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 522 / 307;
  object-fit: cover;
}
/* Watermark sits over the bottom of the image (~5% overlap) and extends below */
.story-card__watermark {
  margin-top: clamp(-52px, -4vw, -34px);
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 60px);
  letter-spacing: 0.06em;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 0 1px rgba(0,0,0,0.04),
    0 1px 0 rgba(0,0,0,0.04);
  text-align: right;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

/* Right column: body content */
.story-card__body {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.4vw, 36px);
}
.story-card__block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text);
  letter-spacing: 0.04em;
}
.story-card__label {
  display: inline-block;
  background: var(--c-green-light);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  padding: 6px 26px;
  margin-bottom: 16px;
  min-width: 159px;
  text-align: center;
}
.story-card__block--approach { gap: 8px; }
.story-card__sub {
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 20px);
  letter-spacing: 0.04em;
  color: var(--c-green);
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 2px dotted rgba(68, 106, 86, 0.6);
  margin-bottom: 16px;
}

/* RESULTS block: green title overlaps ~50% of the white card below */
.story-card__results {
  margin-top: clamp(12px, 1.6vw, 22px);
  position: relative;
}
.story-card__results-en {
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: 0.06em;
  color: var(--c-green);
  line-height: 1;
  margin: 0;
  padding-left: clamp(20px, 2.4vw, 36px);
  position: relative;
  z-index: 1;
}
.story-card__results-body {
  background: #fff;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 36px) clamp(20px, 2.4vw, 32px);
  margin-top: clamp(-22px, -1.6vw, -14px);
  position: relative;
  z-index: 0;
}
.story-card__results-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text);
  letter-spacing: 0.04em;
}

/* =========================================================
   Responsive: collapse to single column
   ========================================================= */
@media (max-width: 1024px) {
  .story-card {
    grid-template-columns: 1fr;
    padding: clamp(36px, 5vw, 60px) clamp(24px, 4vw, 40px);
  }
  .story-card__rule { left: clamp(24px, 4vw, 40px); }
  .story-card__body { margin-top: clamp(28px, 4vw, 40px); }
}
