.case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.case-link-card {
  --case-color: #009471;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #dce3e8;
  border-radius: 10px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0), 0 1px 3px rgba(0, 0, 0, 0), 0 2px 2px rgba(0, 0, 0, 0), 0 4px 16px rgba(0, 0, 0, 0), 8px 6px 32px rgba(0, 0, 0, .05);
  color: var(--color-txt,#333);
  text-decoration: none;
  overflow: hidden;
}

.case-card-image {
  aspect-ratio: 2.1 / 1;
  background: #f4f6f6;
  overflow: hidden;
}

.case-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.case-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.case-date-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 28px;
  margin: 0 0 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #e7f6f2;
  color: var(--case-color);
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.case-link-card .case-title {
  margin: 0;
  color: #263238;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
}

.case-link-card .case-summary {
  margin-top: 12px;
  margin-bottom: 22px;
  color: #66737d;
  font-size: 14px;
  line-height: 1.8;
}

.case-card-more {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 260px;
  margin-top: auto;
  align-self: center;
  padding: 1em 2.2em 1em 1.2em;
  border: 0;
  border-radius: 3em;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-secondary) 100%);
  background-size: 300% 100%;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1em;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  transition: box-shadow 600ms cubic-bezier(0.33, 0.11, 0.02, 0.99), background 600ms cubic-bezier(0.33, 0.11, 0.02, 0.99), transform 600ms cubic-bezier(0.33, 0.11, 0.02, 0.99);
}

.case-card-more::after {
  content: "\f138";
  position: absolute;
  right: 1em;
  top: 50%;
  display: inline-block;
  transform: translate(0, -50%);
  color: inherit;
  font-family: "Font Awesome 6 Free";
  font-weight: 900 !important;
  margin-left: .2em;
  text-decoration: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.case-link-card:hover .case-card-more,
.case-link-card:focus .case-card-more {
  background-position: 100% 0;
  color: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, .1), 0 1px 6px rgba(0, 0, 0, .05), 0 8px 8px rgba(0, 0, 0, .1), 0 16px 16px rgba(0, 0, 0, .1), 8px 32px 64px rgba(0, 0, 0, .15);
  transform: scale(1.05) translateY(-.5rem);
}
.case-detail {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0 auto 20px auto;
  max-width: 960px;
  position: relative;
}
.case-detail > .case-title {
  font-size: 1.6em;
  font-weight: bold;
  color: white;
  background: #009471;
  letter-spacing: .06em;
  padding: 8px 20px;
  line-height: 1.5;
}
.case-detail > .case-sub {
  font-size: 1.25em;
  font-weight: bold;
  color: #666;
  background: #e0f2f1;
  border-left: 6px solid var(--color-primary, #009471);
  padding: 6px 15px;
  margin-bottom: 28px;
}
.case-lead {
  font-size: 1.08em;
  color: #444;
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 500;
  background: #f4faeb;
  border-left: 4px solid #b3dfc6;
  padding: 14px 22px 14px 18px;
  border-radius: 8px;
}
.case-body {
  font-size: 1.03em;
  color: #222;
  line-height: 2.0;
  margin-bottom: 22px;
  padding: 10px 24px;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-character;
  overflow-wrap: anywhere;
}
.case-body p {
  margin: 0 0 1.25em;
}
.case-body p:last-child {
  margin-bottom: 0;
}
.case-date {
  text-align: right;
  color: #888;
  font-size: 1em;
  margin-top: -16px;
  margin-bottom: 22px;
  padding: 0 24px;
}
.case-image {
  float: right;
  width: min(280px, 38%);
  margin: 0 0 20px 36px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 5px 18px rgba(0,0,0,.1);
}
.case-reference {
  clear: both;
  margin-top: 2.6em;
  color: #333;
}
.case-reference .case-reference-title {
  margin: 0 0 2px;
  color: inherit;
  font-weight: bold;
}
.case-reference ul {
  margin: 0;
  padding-left: 1.5em;
}
.case-reference li + li {
  margin-top: 4px;
}
.case-note {
  width: 70%;
  max-width: 620px;
  margin-top: 34px;
  border: 1px solid #e1e4e8;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
.case-note-title {
  background: #555;
  color: #fff;
  font-weight: bold;
  line-height: 1.4;
  padding: 8px 14px;
}
.case-note-body {
  padding: 12px 18px;
}
.case-note ul {
  margin: 0;
  padding-left: 1.25em;
}
.case-note li + li {
  margin-top: 4px;
}
@media (max-width: 850px) {
  .case-detail {
    padding: 0;
  }
  .case-body,
  .case-date {
    padding-left: 0;
    padding-right: 0;
  }
  .case-image {
    float: none;
    width: min(260px, 100%);
    margin: 0 0 24px auto;
    display: block;
  }
  .case-note {
    width: 100%;
  }
}
@media (max-width: 700px) {
  .case-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-link-card {
    width: 100%;
  }

  .case-card-content {
    padding: 16px;
  }

  .case-link-card .case-title {
    font-size: 17px;
  }
}
