@charset "UTF-8";

/* Construction case studies
-------------------------------------------------------------- */
#service.constructionCases #pageHeader h2:after,
#service.constructionCaseDetail #pageHeader h2:after {
  content: "－CONSTRUCTION CASE STUDIES－";
}

.constructionCaseDetail #pageHeader {
  padding-top: 38px;
  padding-bottom: 38px;
}

.constructionCaseDetail #pageHeader h2 {
  max-width: 920px;
  font-size: 2.8rem;
  line-height: 1.45;
}

#service.constructionCaseDetail #pageHeader h2:after {
  display: none;
}

.constructionCaseDetail #pageHeader .caseCategory {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  color: #fff;
  font-size: 1.3rem;
  background-color: #003b8f;
}

.constructionCaseDetail #pageHeader .pageEn {
  margin-top: 8px;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.caseIntro .introImage {
  float: left;
  width: 32%;
}

.caseIntro .introImage img {
  width: 100%;
}

.caseIntro .introText {
  float: right;
  width: 64%;
}

.caseIntro .introText h2 {
  margin-bottom: 10px;
  font-size: 1.6rem;
  line-height: 1.6;
}

.casesFilter {
  margin-bottom: 25px;
  text-align: center;
}

.casesFilter li {
  display: inline-block;
  margin: 0 4px 8px;
}

.casesFilter button {
  display: block;
  margin: 0;
  padding: 6px 18px;
  color: #003b8f;
  font-family: inherit;
  font-size: 1.4rem;
  line-height: 1.6;
  cursor: pointer;
  border: 1px solid #003b8f;
  border-radius: 0;
  background-color: #fff;
  -webkit-appearance: none;
  appearance: none;
  transition:
    color 0.3s linear,
    background-color 0.4s linear;
}

.casesFilter .isActive button,
.casesFilter button:hover {
  color: #fff;
  background-color: #003b8f;
}

.casesCount {
  margin-bottom: 20px;
  color: #666;
  font-size: 1.4rem;
}

.casesEmpty {
  margin: 0 0 30px;
  padding: 28px 20px;
  color: #666;
  font-size: 1.4rem;
  text-align: center;
  border: 1px dashed #ccc;
  background-color: #fafafa;
}

.casesList {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 30px 2.75%;
  letter-spacing: normal;
}

.casesList > li {
  display: block;
  width: 31.5%;
  margin-bottom: 0;
  vertical-align: top;
  border: 1px solid #aaa;
  background-color: #fff;
  box-sizing: border-box;
}

.casesList a {
  display: block;
  color: inherit;
}

.casesList .caseThumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #555;
}

.casesList .caseThumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.casesList .caseTag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  padding: 3px 10px;
  color: #fff;
  font-size: 1.2rem;
  background-color: #003b8f;
}

.casesList .caseBody {
  padding: 12px 14px 16px;
}

.casesList h3 {
  margin-bottom: 8px;
  color: #333;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.4;
  line-break: strict;
  word-break: normal;
}

.casesList .caseDescription {
  margin-bottom: 12px;
  color: #555;
  font-size: 1.3rem;
  line-height: 1.6;
  line-break: strict;
  word-break: normal;
}

.casesList .caseMeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  font-size: 1.2rem;
  border-top: 1px solid #eee;
}

.casesList .casePlace {
  color: #888;
}

.casesList .caseMore {
  color: #e75a24;
  font-weight: bold;
}

.casesList .caseMore:after {
  content: " >";
}

.casesCta {
  padding: 55px 20px 60px;
  color: #fff;
  text-align: center;
  background-color: #003b8f;
}

.casesCta h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1.4;
}

.casesCta .ctaLead {
  max-width: 680px;
  margin: 0 auto 28px;
  color: #e3f4ff;
  font-size: 1.5rem;
  line-height: 1.8;
}

.casesCta .ctaActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px 36px;
}

.casesCta .ctaButton {
  width: 300px;
  margin: 0;
}

.casesCta .ctaButton a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 78px;
  padding: 12px 24px;
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.35;
  text-decoration: none;
  border: 1px solid #e75a24;
  background: linear-gradient(to bottom, #f57b4d 0%, #e75a24 100%);
  box-sizing: border-box;
}

.casesCta .ctaButton a:hover {
  color: #fff;
  background: #e75a24;
}

.casesCta .telLabel {
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.18em;
}

.casesCta .telNumber {
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.casesCta .backLink {
  margin-top: 18px;
  font-size: 1.3rem;
}

.casesCta .backLink a {
  color: #e3f4ff;
  text-decoration: underline;
}

.caseBackLink {
  margin: 30px 0 28px;
  font-size: 1.4rem;
}

.caseBackLink a {
  color: #003b8f;
  text-decoration: underline;
}

.beforeAfter {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.beforeAfterItem {
  position: relative;
  overflow: hidden;
  width: 48.5%;
  aspect-ratio: 4 / 3;
  background-color: #555;
}

.beforeAfterItem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beforeAfterItem.before img {
  filter: grayscale(0.35) brightness(0.92);
}

.beforeAfterLabel {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  padding: 4px 14px;
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.before .beforeAfterLabel {
  background-color: #003b8f;
}

.after .beforeAfterLabel {
  background-color: #e75a24;
}

.caseStory {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 45px;
}

.caseStoryItem {
  width: 48%;
}

.caseStoryItem h3 {
  position: relative;
  margin-bottom: 12px;
  padding-left: 14px;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.4;
}

.caseStoryItem h3:before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 6px;
  height: 1.1em;
  background-color: #2a51d6;
}

.caseStoryItem p {
  color: #444;
  font-size: 1.4rem;
  line-height: 1.9;
}

.caseDetails {
  margin-bottom: 50px;
}

.caseDetails h3 {
  margin-bottom: 16px;
  font-size: 2rem;
  font-weight: bold;
}

.caseDetails table {
  width: 100%;
  border-collapse: collapse;
}

.caseDetails th,
.caseDetails td {
  padding: 12px 16px;
  font-size: 1.4rem;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
  border: 1px solid #ccc;
}

.caseDetails th {
  width: 28%;
  font-weight: bold;
  background-color: #eaf3fb;
}

.relatedCases {
  padding-top: 40px;
  border-top: 2px solid #efefef;
}

.relatedCases .casesList {
  justify-content: center;
  gap: 2.75%;
}

.constructionCasesLink {
  margin-top: 35px;
  padding-top: 35px;
  text-align: center;
  border-top: 1px solid #ddd;
}

.constructionCasesLink a {
  display: inline-block;
  padding: 10px 40px;
  color: #e75a24;
  font-size: 1.6rem;
  font-weight: bold;
  border: 1px solid #e75a24;
}

.constructionCasesLink a:hover {
  color: #fff;
  background-color: #e75a24;
}

@media screen and (max-width: 767px) {
  #service.constructionCases #pageHeader h2:after {
    display: block;
    margin: 8px 0 0;
    font-size: 1.2rem;
  }

  .constructionCaseDetail #pageHeader {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .constructionCaseDetail #pageHeader h2 {
    font-size: 2rem;
  }

  .constructionCaseDetail #pageHeader .pageEn {
    font-size: 1.2rem;
  }

  .caseIntro .introImage,
  .caseIntro .introText {
    float: none;
    width: 100%;
  }

  .caseIntro .introImage {
    margin-bottom: 14px;
  }

  .casesFilter li {
    margin: 0 6px 8px 0;
  }

  .casesFilter button {
    padding: 6px 12px;
    font-size: 1.2rem;
  }

  .casesList {
    display: block;
  }

  .casesList > li {
    width: 100%;
    margin-bottom: 20px;
  }

  .casesCta {
    padding: 40px 4%;
  }

  .casesCta h2 {
    font-size: 2rem;
  }

  .casesCta .ctaLead {
    font-size: 1.3rem;
  }

  .casesCta .ctaActions {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .casesCta .ctaButton {
    width: 100%;
    max-width: 320px;
  }

  .casesCta .ctaButton a {
    min-height: 72px;
    font-size: 1.6rem;
  }

  .casesCta .telNumber {
    font-size: 1.8rem;
  }

  .caseBackLink {
    margin-top: 20px;
  }

  .beforeAfter,
  .caseStory {
    display: block;
  }

  .beforeAfterItem,
  .caseStoryItem {
    width: 100%;
  }

  .beforeAfterItem,
  .caseStoryItem {
    margin-bottom: 20px;
  }

  .caseDetails th,
  .caseDetails td {
    padding: 10px;
    font-size: 1.3rem;
  }

  .caseDetails th {
    width: 36%;
  }

  .relatedCases {
    padding-top: 20px;
  }

  .constructionCasesLink a {
    padding: 8px 25px;
    font-size: 1.4rem;
  }
}
