@charset "UTF-8";

/* ===== Case Study Page ===== */

/* --- Hero --- */
.caseHero {
  background: #E6F3EE;
  padding: 36px 0 44px;
  overflow: hidden;
}
.heroLayout {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  align-items: center;
}
.heroLeft {
  position: relative;
  padding-top: 22px;
}
.interviewTag {
  position: absolute;
  top: 0;
  left: 4px;
  transform: rotate(-8deg);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 10px;
  color: #fff;
  background: #3A8C75;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 1;
  letter-spacing: 0.03em;
}
.caseNum {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 100px;
  color: #3A8C75;
  line-height: 1;
  margin-top: 6px;
}
.heroTitle {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.6;
  color: #1A1A1A;
  margin: 0;
}

/* --- Main Content --- */
.caseContent {
  background: #fff;
  padding: 48px 0 64px;
}

/* Top grid: profile (left) | issue (right) */
.caseTopGrid {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

/* --- Profile --- */
.profileCol {
  text-align: center;
}
.profilePhoto {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  background: #ddd;
  border: 4px solid #E8932A;
  box-sizing: border-box;
}
.profilePhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profileName {
  font-weight: 700;
  font-size: 15px;
  color: #2B2B2B;
  margin-bottom: 12px;
  line-height: 1.6;
}
.infoTable {
  display: block;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
.infoTable tbody {
  display: flex;
  gap: 8px;
  width: 100%;
}
.infoTable tr {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.infoTable th {
  display: block;
  background: #3A8C75;
  color: #fff;
  padding: 5px 8px;
  font-weight: 700;
  border-radius: 3px 3px 0 0;
  line-height: 1.4;
}
.infoTable td {
  display: block;
  padding: 6px 8px;
  border: 1px solid #DCDCDC;
  line-height: 1.6;
  background: #fff;
  border-radius: 0 0 3px 3px;
  flex: 1;
}

/* --- Block sections --- */
.blockHeader {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
/* Pentagon / arrow label */
.blockLabel {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 7px 26px 7px 12px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  flex-shrink: 0;
}
.blockLabel .en {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 21px;
  line-height: 1.1;
}
.blockLabel .ja {
  font-size: 10px;
  font-weight: 700;
  margin-top: 1px;
}

/* Issue */
.blockSection.issue .blockLabel            { background: #A8D8C4; }
.blockSection.issue .blockLabel .en,
.blockSection.issue .blockLabel .ja        { color: #1B6A50; }
.blockSection.issue .blockSub              { color: #1B6A50; }

/* Support */
.blockSection.support .blockLabel          { background: #A8C8EC; }
.blockSection.support .blockLabel .en,
.blockSection.support .blockLabel .ja      { color: #1A4E8A; }
.blockSection.support .blockSub            { color: #1A1A1A; }

/* Goal */
.blockSection.goal .blockLabel             { background: #F5CC78; }
.blockSection.goal .blockLabel .en,
.blockSection.goal .blockLabel .ja         { color: #8B5A10; }
.blockSection.goal .blockSub               { color: #1A1A1A; }

/* Message */
.blockSection.message .blockLabel          { background: #A8D8C4; }
.blockSection.message .blockLabel .en,
.blockSection.message .blockLabel .ja      { color: #1B6A50; }

/* Subtitle */
.blockSub {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* Inline photo (float right inside block) */
.blockPhoto {
  float: right;
  width: 200px;
  margin: 0 0 12px 20px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.blockPhoto img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.blockBodyWrap {
  overflow: hidden;
}

/* Body text */
.blockBody {
  font-size: 14px;
  line-height: 1.95;
  color: #444;
}

/* Support + Goal 2-column */
.caseSGGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
  padding-top: 28px;
  border-top: 1px solid #EBEBEB;
}

/* Message */
.caseMessage {
  background: #E6F3EE;
  border-radius: 8px;
  padding: 28px 32px;
}
.caseMessage .msgQuote {
  font-size: 17px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 14px 0 12px;
  padding-left: 12px;
  border-left: 4px solid #3A8C75;
  line-height: 1.65;
}
.caseMessage .msgBody {
  font-size: 14px;
  line-height: 1.95;
  color: #444;
}

/* Back */
.caseBack {
  padding: 0px 0 80px;
  text-align: center;
}

/* ===== Reason Cards (index.html) ===== */
.reasonCards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.reasonCard {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.2s;
  min-height: 210px;
}
.reasonCard:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  transform: translateY(-2px);
  opacity: 1;
}
.reasonCard .cardPhoto {
  width: 140px;
  flex-shrink: 0;
  overflow: hidden;
}
.reasonCard .cardPhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reasonCard .cardBody {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.reasonCard .cardTop {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #EBEBEB;
}
.reasonCard .cardNum {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 28px;
  color: #3A8C75;
  line-height: 1;
  flex-shrink: 0;
}
.reasonCard .cardCompany {
  color: #1A1A1A;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.reasonCard .cardTitle {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: 10px;
  flex: 1;
  color: #2B2B2B;
}
.reasonCard .cardMenus {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.reasonCard .cardMenuRow {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.reasonCard .cardMenu {
  display: inline-block;
  background: #E6F3EE;
  color: #1B6A50;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.reasonCard .cardMenu--product {
  background: #FEE9CC;
  color: #8B5A10;
}
.reasonCard .cardBtn {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 30px 6px 12px;
  border-radius: 4px;
  position: relative;
  align-self: flex-start;
}
.reasonCard .cardBtn::before {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  position: absolute;
  transform: rotate(-45deg);
  top: 50%;
  right: 11px;
  margin-top: -3px;
}

/* ===== Responsive ===== */
@media screen and (min-width: 768px) {
  .heroTitle  { font-size: 32px; }
  .heroLayout { grid-template-columns: 170px 1fr; }
  .caseNum    { font-size: 120px; }
}
@media screen and (max-width: 767px) {
  .heroLayout {
    grid-template-columns: 110px 1fr;
    gap: 16px;
  }
  .caseNum    { font-size: 72px; }
  .heroTitle  { font-size: 19px; }
  .caseTopGrid  { grid-template-columns: 1fr; gap: 24px; }
  .caseSGGrid   { grid-template-columns: 1fr; gap: 20px; }
  .caseMessage  { padding: 20px; }
  .caseMessage .msgQuote { font-size: 15px; }
  .reasonCards  { grid-template-columns: 1fr; gap: 16px; }
  .reasonCard   { min-height: 150px; }
  .reasonCard .cardPhoto { width: 110px; }
  .reasonCard .cardNum   { font-size: 22px; }
  .reasonCards .reasonCard:nth-child(4) .cardPhoto img { object-position: 82% top !important; }
}
