﻿/* メインセクション背景 */
body {
  background-color: #6fa4c3;
}

.case-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 40px 0;
  flex-wrap: wrap; /* モバイル対応 */
}

.case-links a img {
  width: 220px;
  height: 40px;
  display: block;
  transition: opacity 0.3s ease;
}

.case-links a img:hover {
  opacity: 0.8;
}

.case-title-box {
  width: 890px;
  height: 93px;
  display: flex;
  align-items: center;
  background: url("../img/case-study/title.png") no-repeat left center;
  background-size: contain;
  padding-left: 80px; /* アイコン分の余白 */
  border-radius: 10px;
  margin: 40px auto;
  box-sizing: border-box;
}

.case-vol {
  position: absolute;
  margin-left: -70px; /* 画像の矢印部分に重ねる */
  text-align: center;
  line-height: 1;
  color: white;
  font-weight: bold;
}

.vol-label {
  font-size: 0.9375rem; /* 15px */
  display: block;
}

.vol-number {
  font-size: 1.5625rem; /* 25px */
  display: block;
}

.case-title-text {
  font-size: 1.5625rem; /* 25px */
  color: #6d6c6c;
}

.case-box {
  width: 913px;
  background-color: #f9fbfa;
  border-radius: 10px;
  padding: 30px;
  margin: 40px auto;
  box-sizing: border-box;
}

.case-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.case-icon {
  width: 37px;
  height: 37px;
}

.case-heading {
  font-size: 1.5625rem; /* 25pt */
  color: #6d6c6c;
  font-weight: bold;
}

.case-divider {
  border-bottom: solid 1px #909090;
  margin-bottom: 20px;
  font-size: 1.2rem; /* 18pt相当 */
  color: #6d6c6c;
}

.product-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.label {
  background-color: #6d6c6c;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

.value {
  color: #6d6c6c;
}

.price-info {
  margin-bottom: 1rem;
}

.price-normal {
  color: #6d6c6c;
  margin: 0;
}

.price-highlight {
  color: #1800ff;
  margin: 0;
}

.note {
  color: #6d6c6c;
  margin-top: 0.5rem;
}

.estimate-box {
  margin-top: 2rem;
  font-size: 0.99rem;
  color: #6d6c6c;
}

.estimate-title {
  font-weight: bold;
  margin-bottom: 1rem;
  color: #6d6c6c;
  border: 1px solid #6d6c6c;
  padding: 0.5rem 1rem;
  display: inline-block;
}

.estimate-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.estimate-label {
  background-color: #6d6c6c;
  color: #fff;
  padding: 0.3rem 1rem;
  min-width: 5rem;
  text-align: center;
  margin-right: 1rem;
}

.estimate-value {
  color: #6d6c6c;
}

.total-label {
  background-color: #1800ff;
}

.total-value {
  color: #1800ff;
  font-weight: bold;
}

.case-content {
  display: flex;
  justify-content: space-between;
}

.case-left,
.case-right {
  width: 50%;
  box-sizing: border-box;
  padding: 0 20px;
}

.case-left {
  border-right: solid 1px #909090;
}

.case-subsection {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.case-subheading {
  font-size: 1.5625rem; /* 25pt */
  color: #6d6c6c;
  font-weight: bold;
}

.case-paragraph {
  font-size: 1.125rem; /* 18pt */
  color: #6d6c6c;
  line-height: 1.6;
}

.case-recommend {
  margin-top: 30px;
  background-color: #3cb4cb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 30px;
}

.recommend-text {
  flex: 1;
}

.recommend-title {
  font-size: 1.5625rem; /* 25pt */
  color: white;
  font-weight: bold;
  margin-bottom: 10px;
}

.recommend-description {
  font-size: 1.125rem; /* 18pt */
  color: white;
  line-height: 1.6;
}

.recommend-img img {
  width: 212px;
  height: 220px;
  object-fit: cover;
}

.pagination-container {
  width: 913px;
  margin: 0px auto 0;
  border-bottom: 1px dotted #909090;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.pagination-info {
  font-size: 0.8125rem; /* 13pt */
  color: #c1c1c1;
}

.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-top: 15px;
  margin-top: 10px;
}

.page-btn {
  width: 40px;
  height: 40px;
  font-size: 1.875rem; /* 30pt */
  color: #909090;
  background-color: #dddddd;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn.active {
  background-color: #3cb4cb;
  color: #ffffff;
}

.case-paragraph-with-image {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: solid 1px #909090;
  margin-bottom: 20px;
}

.case-paragraph-with-image .case-paragraph {
  flex: 1;
  margin: 0;
  line-height: 1.6;
}

.right-image {
  width: auto;
  max-width: 200px; /* 適宜調整してください */
  height: auto;
}

.case-recommend-with-image {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: solid 1px #909090;
  margin-bottom: 20px;
  background-color: #3cb4cb;
  border-radius: 10px;
}

.recommend-text-with-image {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.recommend-text-block-with-image {
  flex: 1;
}

/* ------------------------------
   レスポンシブ対応 (768px以下)
---------------------------------*/
@media (max-width: 768px) {
  .case-title-box {
    width: 90%;
    height: auto;
    padding-left: 40px;
    background-size: contain;
  }

  .case-vol {
    margin-left: -50px;
  }

  .case-title-text {
    font-size: 1.3rem;
  }

  .case-box {
    width: 90%;
    padding: 20px;
  }

  .case-section {
    gap: 8px;
  }

  .case-icon {
    width: 30px;
    height: 30px;
  }

  .case-heading {
    font-size: 1.3rem;
  }

  .case-divider {
    font-size: 1rem;
  }

  .product-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .estimate-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .case-content {
    flex-direction: column;
  }

  .case-left,
  .case-right {
    width: 100%;
    padding: 0;
  }

  .case-left {
    border-right: none;
    border-bottom: solid 1px #909090;
    margin-bottom: 20px;
  }

  .case-subsection {
    gap: 8px;
  }

  .case-subheading {
    font-size: 1.3rem;
  }

  .case-paragraph {
    font-size: 1rem;
  }

  .case-recommend {
    flex-direction: column;
    gap: 20px;
  }

  .recommend-text {
    width: 100%;
  }

  .recommend-img img {
    width: 100%;
    height: auto;
  }

  .pagination-container {
    width: 90%;
  }

  .case-paragraph-with-image {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .right-image {
    max-width: 100%;
  }

  .case-recommend-with-image {
    flex-direction: column;
    gap: 15px;
  }

  .recommend-text-with-image {
    flex-direction: column;
    gap: 10px;
  }
}

/* ------------------------------
   レスポンシブ対応 (480px以下)
---------------------------------*/
@media (max-width: 480px) {
  .case-title-box {
    padding-left: 40px;
  }

  .case-vol {
    margin-left: -35px;
  }

  .case-title-text {
    font-size: 0.7rem;
    padding: 20px;
  }

  .case-box {
    padding: 15px;
  }

  .case-icon {
    width: 25px;
    height: 25px;
  }

  .case-heading {
    font-size: 1.1rem;
  }

  .case-divider {
    font-size: 0.9rem;
  }

  .label {
    font-size: 0.9rem;
  }

  .value {
    font-size: 0.9rem;
  }

  .estimate-label {
    font-size: 0.9rem;
    min-width: 4rem;
    padding: 0.2rem 0.8rem;
  }

  .estimate-title {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .recommend-title {
    font-size: 1.2rem;
  }

  .recommend-description {
    font-size: 1rem;
  }

  .pagination-container {
    width: 95%;
  }

  .page-btn {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }

  .pagination-info {
    font-size: 0.75rem;
  }

  .case-paragraph img {
    max-width: 100%;
  }

  .vol-label {
    font-size: 0.375rem;
    display: block;
  }
}
