/* ========== Case Hero ========== */
.case-hero {
  position: relative;
  width: 100%;
  height: 350px;
  padding-top: 70px;
  overflow: hidden;
  background-color: #1a1714;
}

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

.case-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
}

.case-hero__title {
  font-family: "Source Han Serif JP", serif;
  font-size: 36px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* 単一記事は日本語タイトルのため広めに戻す */
body.single-case .case-hero__title {
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.case-hero__sub {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.8;
}

/* 英語表記の hero__sub は明朝体 */

/* ========== Case Section ========== */
.case-section {
  background: #f0f1f5;
  padding: 80px 24px 20px;
}

.case-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.case-section__heading {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 22px;
  font-weight: 600;
  color: #15181c;
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: 0.05em;
}

/* ========== Filter ========== */
.case-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #2c2154;
  border-radius: 8px;
  padding: 28px 32px;
  margin: 0 0 48px;
  color: #fff;
}

.case-filter__col + .case-filter__col {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 32px;
}

.case-filter__col {
  padding-right: 32px;
}

.case-filter__col-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
}

.case-filter__col-arrow {
  color: #fff;
  font-size: 11px;
}

.case-filter__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.case-filter__tag {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  color: #2c2154;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}

.case-filter__tag:hover,
.case-filter__tag.is-active {
  background: #6f5db5;
  color: #fff;
  border-color: #6f5db5;
}

/* ========== Case Cards ========== */
.case-list {
  list-style: none;
  padding: 20px;
  margin: 0;
  display: grid;
  background: #f8f7fd;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  background: #fff;
  border: 1px solid #d8dce2;
  border-radius: 6px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.case-card[hidden] {
  display: none;
}

.case-card__quote {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: #1f2c4d;
  margin: 0 0 18px;
}

.case-card__profile {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px 0;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
}

.case-card__avatar {
  width: 100px;
  height: 75px;
  background: #f0f1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
}

.case-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card__meta {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  color: #5a6678;
  margin: 0 0 4px;
  line-height: 1.5;
}

.case-card__name {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #15181c;
  margin: 0;
  letter-spacing: 0.04em;
}

.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}

.case-card__tags span {
  display: inline-flex;
  padding: 3px 10px;
  background: #eef0f4;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  color: #5a6678;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.case-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 18px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 1.85;
  color: #2a2a2a;
}

.case-card__body p {
  margin: 0;
}

.case-card__label {
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
  color: #1b58a8;
  letter-spacing: 0.04em;
}

.case-card__label--after {
  color: #cc5702;
}

.case-card__btn {
  display: block;
  margin-top: auto;
  text-align: center;
  color: #2d66b1;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.case-card__btn:hover {
  opacity: 0.7;
}

.case-list__empty,
.case-list__no-result {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: #5a6678;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
}

.case-list__more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.case-list__more[hidden] {
  display: none;
}

/* もっと見るボタン */
.case-section__more {
  text-align: center;
  margin-top: 48px;
}

.case-section__more-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #fff;
  border: 1px solid #c8ccd2;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #15181c;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.case-section__more-btn:hover {
  background: #f5f6f8;
  border-color: #15181c;
}

/* ========== Responsive ========== */
@media screen and (max-width: 1024px) {
  .case-hero {
    height: 220px;
  }

  .case-hero__title {
    font-size: 36px;
  }

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

  .case-filter {
    padding: 24px 24px;
  }
}

@media screen and (max-width: 768px) {
  .case-hero {
    height: 200px;
  }

  .case-hero__title {
    font-size: 26px;
    letter-spacing: 0.12em;
  }

  body.single-case .case-hero__title {
    letter-spacing: 0.02em;
    line-height: 1.4;
  }

  .case-hero__sub {
    font-size: 12px;
  }

  .case-section {
    padding: 56px 16px 64px;
  }

  .case-filter {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .case-filter__col + .case-filter__col {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-left: 0;
    padding-top: 18px;
    margin-top: 18px;
  }

  .case-filter__col {
    padding-right: 0;
  }

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

  .case-section__more-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   Single Case Article
   ======================================== */

/* ----- Hero override for single article ----- */
.page-case .case-hero__title {
  font-size: 30px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .page-case .case-hero__title {
    font-size: 20px;
    letter-spacing: 0.04em;
  }
}

/* ----- Side CTA (right fixed) ----- */
.case-side-cta {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}

.case-side-cta__btn {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  padding: 24px 8px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 6px 0 0 6px;
  transition: opacity 0.3s;
}

.case-side-cta__btn:hover {
  opacity: 0.88;
}

.case-side-cta__btn--orange {
  background: linear-gradient(180deg, #c97a3f, #9d5424);
}

.case-side-cta__btn--navy {
  background: linear-gradient(180deg, #1d3a6e, #112454);
}

@media screen and (max-width: 768px) {
  .case-side-cta {
    display: none;
  }
}

/* ----- Article wrapper ----- */
.case-article {
  background: #fff;
  padding: 64px 40px 80px;
}

.case-article__inner {
  max-width: 920px;
  margin: 0 auto;
}

/* ----- Tags ----- */
.case-article__tags {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-article__tags li {
  padding: 6px 16px;
  border: 1px solid #717171;
  border-radius: 20px;
  background: #f8f8f8;
  font-size: 12px;
  font-weight: 500;
  color: #4a5462;
  letter-spacing: 0.04em;
}

/* ----- Quote with red underline ----- */
.case-article__quote {
  position: relative;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #1c2530;
  margin: 0 0 12px;
  padding-bottom: 16px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #ededed;
}

.case-article__quote::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 80px;
  height: 2px;
  background: #b94a3d;
}

/* ----- Profile ----- */
.case-article__profile {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  align-items: center;
  margin: 40px 0 30px;
}

.case-article__profile-photo {
  width: 270px;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f2f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-article__profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-article__profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-article__profile-age,
.case-article__profile-job {
  font-size: 15px;
  color: #4a5462;
  margin: 0;
  letter-spacing: 0.04em;
}

.case-article__profile-name {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #1c2530;
  margin: 4px 0 0;
  letter-spacing: 0.06em;
}

.case-article__profile-quote {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #4a5462;
  line-height: 1.8;
  letter-spacing: 0.04em;
  margin: 14px 0 0;
  padding: 12px 16px;
  background: #faf8f3;
  border: 1px solid #e8e2d4;
  border-radius: 4px;
}

/* PCではブロック版を非表示、SPではインライン版を非表示 */
.case-article__profile-quote--block {
  display: none;
}

@media screen and (max-width: 768px) {
  .case-article__profile {
    grid-template-columns: 50% 1fr;
    gap: 16px;
  }

  .case-article__profile-photo {
    width: 100%;
    height: 130px;
  }

  .case-article__profile-quote--inline {
    display: none;
  }

  .case-article__profile-quote--block {
    display: block;
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .case-article__profile-name {
    font-size: 18px;
  }
}

/* ----- 課題 / 効果 boxes ----- */
.case-issue-effect {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 32px;
  margin: 0 0 32px;
  border-bottom: 1px solid #d8dce2;
}

.case-issue-effect__box {
  width: 100%;
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: stretch;
  border: 1px solid #c8cdd5;
}

.case-issue-effect__box--issue {
  background: #ecebf1;
}

.case-issue-effect__box--effect {
  background: #fdfdfd;
}

.case-issue-effect__label {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.case-issue-effect__label--issue {
  background: linear-gradient(135deg, #314b6f, #0f3b74);
}

.case-issue-effect__label--effect {
  background: linear-gradient(135deg, #9d323f, #c07942);
}

.case-issue-effect__list {
  list-style: none;
  margin: 0;
  padding: 16px 32px;
  display: flex;
  flex-direction: column;
}

.case-issue-effect__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #2a2f37;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgb(175 175 175);
}

.case-issue-effect__list li:last-child {
  border-bottom: none;
}

.case-issue-effect__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: 2px;
}

.case-issue-effect__icon--issue {
  background: #1a2c54;
}

.case-issue-effect__icon--effect {
  background: #b34a3d;
}

.case-issue-effect__arrow {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 16px solid #d5d3df;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .case-issue-effect__box {
    grid-template-columns: 70px 1fr;
  }

  .case-issue-effect__label {
    font-size: 14px;
    padding: 16px 0;
  }

  .case-issue-effect__list {
    padding: 8px 18px;
  }

  .case-issue-effect__list li {
    font-size: 13px;
    padding: 10px 0;
  }
}

/* ----- Article body ----- */
.case-article__body {
  font-size: 15px;
  line-height: 2.1;
  color: #2a2f37;
  letter-spacing: 0.04em;
  margin: 0 0 56px;
}

.case-article__body p {
  margin: 0 0 1.6em;
}

.case-article__body h2,
.case-article__body h3 {
  font-family: "Noto Sans JP", sans-serif;
  color: #1c2530;
  margin: 50px 0 1em;
  padding-bottom: 14px;
  border-bottom: 1px solid #c8cdd5;
  position: relative;
}

.case-article__body h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.case-article__body h2::after,
.case-article__body h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 60px;
  height: 2px;
  background: #b94a3d;
}

.case-article__body h3 {
  font-size: 21px;
  font-weight: 300;
}

.case-article__body img {
  max-width: 100%;
  height: auto;
}

.case-article__body a {
  color: #126cb5;
  text-decoration: underline;
}

/* ----- Bottom CTA ----- */
.case-article__bottom-cta {
  display: flex;
  justify-content: center;
}

.case-article__bottom-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 14px 32px;
  background: #1c3a5c;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: opacity 0.3s;
}

.case-article__bottom-cta-btn:hover {
  opacity: 0.88;
}

@media screen and (max-width: 768px) {
  .case-article {
    padding: 48px 20px 64px;
  }

  .case-article__bottom-cta-btn {
    min-width: 0;
    width: 100%;
  }
}

/* ----- Related cases carousel ----- */
.case-related {
  background: #eef1f6;
  padding: 64px 40px 80px;
}

.case-related__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.case-related__heading {
  text-align: center;
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 22px;
  font-weight: 600;
  color: #1c2530;
  margin: 0 0 32px;
  letter-spacing: 0.06em;
}

.case-related__carousel {
  position: relative;
  display: flex;
  align-items: center;
  /* gap: 12px; */
}

.case-related__arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 60px;
  background: #1c3a5c;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
}

.case-related__arrow:hover {
  opacity: 0.85;
}

.case-related__cards {
  display: flex;
  gap: 16px;
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.case-related__cards::-webkit-scrollbar {
  display: none;
}

.case-related__card {
  background: #fff;
  border: 1px solid #d8dce2;
  border-radius: 6px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
}

.case-related__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.case-related__card-quote {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: #1f2c4d;
  margin: 0 0 18px;
}

.case-related__card-profile {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px 0;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
}

.case-related__card-avatar {
  width: 100px;
  height: 75px;
  background: #f0f1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
}

.case-related__card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-related__card-info {
}

.case-related__card-meta {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  color: #5a6678;
  margin: 0 0 4px;
  line-height: 1.5;
}

.case-related__card-name {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #15181c;
  margin: 0;
  letter-spacing: 0.04em;
}

.case-related__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}

.case-related__card-tags span {
  display: inline-flex;
  padding: 3px 10px;
  background: #eef0f4;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  color: #5a6678;
  border-radius: 999px;
  letter-spacing: 0.02em;
  border: 0;
  white-space: nowrap;
}

.case-related__card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 18px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 1.85;
  color: #2a2a2a;
}

.case-related__card-body p {
  margin: 0;
}

.case-related__card-label {
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
  color: #1b58a8;
  letter-spacing: 0.04em;
}

.case-related__card-label--before {
  color: #1b58a8;
}

.case-related__card-label--after {
  color: #cc5702;
}

.case-related__card-btn {
  display: block;
  margin-top: auto;
  text-align: center;
  color: #2d66b1;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.05em;
  border-top: 0;
  padding: 0;
  transition: opacity 0.2s;
}

.case-related__card-btn:hover {
  opacity: 0.7;
  background: transparent;
}

@media screen and (max-width: 1024px) {
  .case-related__card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media screen and (max-width: 768px) {
  .case-related {
    padding: 48px 20px 64px;
  }

  .case-related__card {
    flex: 0 0 100%;
  }

  .case-related__arrow {
    width: 32px;
    height: 48px;
  }
}

