/* case page */
.case-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.case-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.case-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 18, 35, 0.68), rgba(20, 18, 35, 0.28), rgba(20, 18, 35, 0.1));
}

.case-hero-bg img,
.case-hero-bg .photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px;
  color: var(--white);
}

.case-hero h1 {
  margin: 0 0 28px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.photo-placeholder {
  min-height: 280px;
  background: linear-gradient(135deg, #ddd2c6, #f5f0ea);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant", serif;
  font-size: 22px;
  letter-spacing: 0.12em;
}

.case-summary {
  max-width: 1080px;
  margin: -54px auto 120px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0,0,0,0.1);
}

.case-intro,
.case-gallery,
.voice-section,
.planner-message {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 130px;
}

.case-intro {
  text-align: center;
  max-width: 980px;
}

.case-intro h2,
.case-section h2,
.case-gallery h2,
.voice-section h2,
.planner-message h2 {
  margin: 0 0 34px;
  color: var(--main);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.55;
  font-weight: 500;
}

.case-intro p:not(.section-label),
.case-section-text p:not(.section-label),
.voice-section p,
.planner-message p {
  color: var(--sub-text);
  font-size: 17px;
}

.case-section {
  background: #fff;
  padding: 100px 6%;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.case-section-text {
  max-width: 460px;
  margin-left: auto;
}

.case-section-text p:last-child {
  color: #555;
}

.point-list {
  max-width: 560px;
  display: grid;
  gap: 18px;
}

.point-list div {
  background: #f8f6f1;
  padding: 30px;
}

.point-list span {
  color: #9b7b52;
  letter-spacing: 0.16em;
  font-size: 13px;
}

.point-list h3 {
  font-size: 21px;
  font-weight: 400;
  margin: 8px 0 10px;
}

.point-list p {
  color: #555;
  margin-bottom: 0;
}
.case-gallery {
  text-align: center;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.case-gallery-grid .photo-placeholder,
.case-gallery-grid img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.voice-section {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 70px 54px;
  margin-bottom: 130px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.06);
}

.qa-list {
  margin-top: 36px;
}

.qa-box {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.qa-box:first-child {
  border-top: 1px solid var(--line);
}

.question,
.answer {
  display: flex;
  gap: 14px;
  margin: 0;
}

.question {
  margin-bottom: 12px;
  color: var(--main) !important;
  font-weight: bold;
}

.answer {
  color: var(--sub-text);
}

.question span,
.answer span {
  min-width: 32px;
  font-family: "Cormorant", serif;
  font-size: 26px;
  color: var(--gold);
  line-height: 1.4;
}

.planner-message {
  max-width: 980px;
  text-align: center;
  margin-bottom: 50px;
}

.planner-message {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 70px 54px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.06);
}

/* 写真を入れる場合 */
.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* tablet */
@media screen and (max-width: 1024px) {
  .case-section {
    grid-template-columns: 1fr;
  }

  .case-section-text,
  .case-point-list {
    max-width: 900px;
    margin: 0 auto;
  }
}

/* smartphone */
@media screen and (max-width: 768px) {
  .case-hero {
    min-height: 720px;
  }

  .case-hero-bg::after {
    background: rgba(20, 18, 35, 0.58);
  }

  .case-hero-content {
    padding: 80px 22px;
  }

  .case-hero h1 {
    font-size: 36px;
  }

  .case-summary {
    margin: -35px 18px 80px;
    grid-template-columns: repeat(2, 1fr);
  }

  .case-summary .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .case-summary .trust-item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .case-intro,
  .case-gallery,
  .voice-section,
  .planner-message {
    padding: 0 20px 90px;
  }

  .case-intro h2,
  .case-section h2,
  .case-gallery h2,
  .voice-section h2,
  .planner-message h2 {
    font-size: 30px;
  }

  .case-section {
    padding: 80px 20px;
    margin-bottom: 90px;
  }

  .case-gallery-grid {
    grid-template-columns: 1fr;
  }

  .case-gallery-grid .photo-placeholder,
  .case-gallery-grid img {
    height: 300px;
  }

  .voice-section,
  .planner-message {
    margin: 0 20px 90px;
    padding: 40px 22px;
  }

  .question,
  .answer {
    display: block;
  }

  .question span,
  .answer span {
    display: inline-block;
    margin-right: 8px;
  }
}

/* small smartphone */
@media screen and (max-width: 420px) {
  .case-hero h1 {
    font-size: 31px;
  }

  .case-summary {
    grid-template-columns: 1fr;
  }

  .case-summary .trust-item:nth-child(odd) {
    border-right: none;
  }

  .case-gallery-grid .photo-placeholder,
  .case-gallery-grid img {
    height: 250px;
  }
}