/* 実績紹介ページ */

.works-page {
  background: #fff;
}

.works-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: grid;
  align-items: center;
  background: #fff;
}

.works-hero__visual {
  position: absolute;
  inset: 0;
  background: url("a_imges/top.png") center right / cover;
}

.works-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.65);
  opacity: 0;
  pointer-events: none;
}

.works-hero__leaf {
  position: absolute;
  top: 52px;
  left: 0;
  width: 130px;
  opacity: 0.75;
  z-index: 2;
}

.works-hero__inner {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 76px 34px;
}

.works-hero h1 {
  font-size: clamp(2.35rem, 5vw, 3.7rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

.works-hero__lead {
  color: var(--green-dark);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.works-hero__inner p:not(.works-hero__lead) {
  max-width: 440px;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 2.05;
  color: #44443e;
}

.works-gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 34px 26px;
}

.works-gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.works-gallery__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.works-notice {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 34px 42px;
}

.works-notice__box {
  min-height: 88px;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: center;
  border: 1px solid #dfd8cc;
  border-radius: 6px;
  background: #fafaf8;
}

.works-notice__box img {
  width: 42px;
  opacity: 0.72;
}

.works-notice__title {
  font-size: 1.08rem;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.works-notice__text {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: #5c5b54;
}

.works-notice__box a {
  min-width: 214px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: #7e693f;
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.works-notice__box a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(57,54,42,0.14);
  filter: brightness(1.03);
}

.works-notice__box a span {
  transition: transform 0.25s ease;
}

.works-notice__box a:hover span {
  transform: translateX(5px);
}

.works-heading {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.works-heading h2 {
  font-size: clamp(1.28rem, 2.5vw, 1.62rem);
  font-weight: 500;
  letter-spacing: 0.18em;
}

.works-heading img {
  width: 28px;
  opacity: 0.68;
}

.upcoming-contents {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 34px 54px;
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.upcoming-card {
  min-height: 230px;
  padding: 22px 0 20px 10px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 8px;
  align-items: center;
  border: 1px solid #e3ddd1;
  border-radius: 6px;
  background: #fafaf8;
}

.upcoming-card__icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 94px;
  height: 94px;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  border: 1px solid #e3e7dc;
  border-radius: 50%;
  background: #fff;
}

.upcoming-card__icon svg {
  width: 62px;
  height: 62px;
}

.upcoming-card__icon img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.upcoming-card h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  min-width: 0;
  min-height: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
}

.upcoming-card__status {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  min-width: 0;
  margin: 7px 0 0;
  color: #222;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  overflow-wrap: anywhere;
}

.upcoming-card p:last-child {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: center;
  min-width: 0;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: #595850;
  text-align: center;
  overflow-wrap: anywhere;
}

.works-initiatives {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 34px 48px;
}

.works-initiatives__lead {
  margin: -12px 0 30px;
  text-align: center;
  font-family: var(--serif);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #33332e;
}

.initiative-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.initiative-item {
  min-height: 190px;
  padding: 4px 28px 12px;
  text-align: center;
  border-right: 1px solid #e1dacd;
}

.initiative-item:last-child {
  border-right: 0;
}

.initiative-item__icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
}

.initiative-item__icon svg {
  width: 76px;
  height: 76px;
  stroke-width: 2;
}

.initiative-item__icon img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.initiative-item h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.initiative-item p {
  max-width: 210px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: #4c4b45;
}

.works-cta {
  position: relative;
  max-width: 860px;
  margin: 0 auto 54px;
  padding: 0 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.works-cta::before,
.works-cta::after {
  content: "";
  position: absolute;
  bottom: -20px;
  width: 88px;
  height: 120px;
  background: url("../assets/leafimg_3.png") center / contain no-repeat;
  opacity: 0.45;
  pointer-events: none;
}

.works-cta::before {
  left: -70px;
}

.works-cta::after {
  right: -70px;
  transform: scaleX(-1);
}

.works-cta__button {
  min-height: 72px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(57,54,42,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.works-cta__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(57,54,42,0.18);
  filter: brightness(1.04);
}

.works-cta__button:active,
.works-notice__box a:active {
  transform: translateY(-1px);
}

.works-cta__button:focus-visible,
.works-notice__box a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.works-cta__button span {
  width: 24px;
  height: 24px;
}

.works-cta__button b {
  font-family: var(--sans);
  font-weight: 400;
  transition: transform 0.25s ease;
}

.works-cta__button:hover b {
  transform: translateX(5px);
}

.works-cta__button--green {
  color: #fff;
  background: linear-gradient(135deg, #28523d, #376a50);
}

.works-cta__button--white {
  color: #7e693f;
  background: #fff;
  border: 1px solid var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .works-notice__box a,
  .works-notice__box a span,
  .works-cta__button,
  .works-cta__button b {
    transition: none;
  }
}

@media (max-width: 1010px) {
  .upcoming-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .works-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .upcoming-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .initiative-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 0;
  }

  .initiative-item:nth-child(2) {
    border-right: 0;
  }

  .initiative-item:nth-child(n + 3) {
    border-top: 1px solid #e1dacd;
    padding-top: 24px;
  }
}

@media (max-width: 700px) {
  /* スマホ：TOP画像にテキスト可読用の白オーバーレイを表示 */
  .works-hero__overlay {
    opacity: 1;
  }

  .works-hero__inner,
  .works-gallery,
  .works-notice,
  .upcoming-contents,
  .works-initiatives,
  .works-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .works-hero {
    min-height: auto;
  }

  .works-hero__inner {
    padding-top: 88px;
    padding-bottom: 68px;
  }

  .works-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .works-notice__box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .works-notice__box img {
    margin: 0 auto;
  }

  .works-notice__box a {
    min-width: 0;
    width: 100%;
  }

  .upcoming-grid,
  .initiative-grid,
  .works-cta {
    grid-template-columns: 1fr;
  }

  .upcoming-card {
    padding-left: 16px;
    padding-right: 16px;
    grid-template-columns: 82px minmax(0, 1fr);
    column-gap: 12px;
  }

  .upcoming-card__icon {
    width: 82px;
    height: 82px;
  }

  .upcoming-card__icon svg {
    width: 52px;
    height: 52px;
  }

  .initiative-item,
  .initiative-item:nth-child(2) {
    border-right: 0;
  }

  .initiative-item {
    border-top: 1px solid #e1dacd;
    padding: 24px 0;
  }

  .initiative-item:first-child {
    border-top: 0;
  }

  .works-cta::before,
  .works-cta::after {
    display: none;
  }
}
