@charset "utf-8";

/*==========================
Project details header
==========================*/

.project-header {
  background: linear-gradient(270deg, #EDF6FD 3.5%, #DCDDE3 100%);
  height: 475px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 110px;
}

.project-title {
  font-family: Montserrat, sans-serif;
  font-size: 17rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.0;
}

.project-subtitle {
  font-size: 4.8rem;
  font-weight: 700;
  color: #515459;
  margin-top: 10px;
}

/* タブレット対応 */
@media (max-width: 768px) {
  .project-header {
    height: 350px;
    padding-top: 80px;
  }
  .project-title {
    font-size: 8rem;
  }
  .project-subtitle {
    font-size: 2.4rem;
  }
}

/* スマホ対応 */
@media (max-width: 425px) {
  .project-header {
    height: 300px;
  }
  .project-title {
    font-size: 6rem;
  }
  .project-subtitle {
    font-size: 2rem;
  }
}

/*==========================
Main contents
==========================*/
.project-description a {
  color: #007bff; /* 通常時の色（青） */
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-description a:hover {
  color: #007bff; /* ホバー時の色（青） */
  text-decoration: underline;
}
.project-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 20px;
}

.project-description-box-details{
  text-align: left;
  font-size: 2rem;
  font-weight: 700;
}

.project-image-container {
  width: 840px;
  height: 640px;
  margin-bottom: 20px;
}

.project-image {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-content {
  width: 663px;
  text-align: center;
  padding-top: 35px;
}

.project-description-title {
  font-size: 2.8rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 22px;
}

.project-description {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
  text-align: left;
  padding-bottom: 33px;
}

.section-heading {
  text-align: left;
  font-size: 2.4rem;
  font-weight: bold;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

/* タブレット対応 */
@media (max-width: 768px) {
  .project-content {
    width: 90%;
  }
  .project-description {
    font-size: 1.6rem;
  }
  .project-image-container {
    width: 440px;
    height: 315px;
  }
}

/* スマホ対応 */
@media (max-width: 425px) {
  .project-description-title {
    font-size: 1.8rem;
  }
  .project-description {
    font-size: 14px;
  }
  .project-image-container {
    width: 300px;
    height: 195px;
  }
}

/*==========================
Recommended Articles
==========================*/

.recommended-articles {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.articles-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

.article-card {
  width: 400px;
  text-align: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.article-card img {
  transition: opacity 0.3s ease;
}

.article-card:hover img {
  opacity: 0.8;
}

.article-card:hover .article-title {
  color: #A18759;
}

.article-card:hover .article-subtitle {
  color: #666666;
}

.article-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 15px;
}

.article-subtitle {
  font-size: 16px;
  color: #555;
}

/* タブレット対応 */
@media (max-width: 768px) {
  .articles-container {
    gap: 20px;
  }
  .article-card {
    width: 100%;
  }
  .article-image {
    height: 140px;
  }
}

/*==========================
Border Button
==========================*/

a.btn-border {
  border-radius: 0;
  margin-top: 100px;
  position: relative;
  padding: 10px 20px;
  border: 2px solid #000;
  text-align: center;
  display: inline-block;
  color: #000;
  font-size: 1.6rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

a.btn-border:hover {
  background-color: #000;
  color: #fff;
}

/* アニメーション */
a.btn-border:before,
a.btn-border:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #000;
  transition: all 0.3s;
}

a.btn-border:before {
  top: 0;
  left: 0;
}

a.btn-border:after {
  right: 0;
  bottom: 0;
}

a.btn-border:hover:before,
a.btn-border:hover:after {
  width: 0;
}