@charset "UTF-8";

/* nav
------------------------------------------------------------*/
.page-nav {
  position: fixed;
  top: 194px;
  right: 0;
  width: 240px;
  background: rgba(255, 255, 255, 0.9);
  border-right: 1px solid #ddd;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(188, 188, 188, 0.5);
  height: auto;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 1;
}

/* 初期は閉じた状態 */
.page-nav.closed {
  transform: translateX(100%);
}

/* トグルボタン */
.nav-toggle {
  display: inline-block;
  background: rgba(255, 151, 86);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px 0px 0px 5px;
  position: fixed;
  top: 170px;
  right: 0;
  z-index: 2;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin-bottom: 10px;
}
.nav-list a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}
.nav-list a:hover {
  color: rgba(255, 151, 86);
}

body {
  position: relative;
}
.page-nav.closed ~ .content {
  margin-left: 20px;
}

@media only screen and (max-width: 799px) {
  .nav-toggle {top: 100px;}
  .page-nav {top: 120px;}
}
/* SEC01
------------------------------------------------------------*/
.caseContents{
  background: #CCD6DD;
}
  .caseContents h1{
    margin-bottom: 30px;
}

.case-section {
  padding: 80px 5%;
  background: #f8f8f8;
}

.case-header {
  text-align: center;
  margin-bottom: 60px;
}

.case-header h2 {
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 4px;
}

.case-header p {
  font-size: 16px;
  margin-top: 10px;
  color: #666;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.case-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
}
.case-card:nth-of-type(n+3){
  margin-top: 30px;
}
.case-card:hover {
  transform: translateY(-5px);
}

.case-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.case-card h3 {
  font-size: 20px;
  padding: 20px;
  margin: 0;
  border-bottom: 1px solid #eee;
  color: #1160A4;
  text-align: center;
}

.case-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 15px 20px 20px;
}

.case-item {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: #333;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s, transform 0.3s;
  border: 1px solid #eee;
}

.case-item:hover {
  background: #ffefe8;
  transform: translateY(-4px);
}

.case-item h4 {
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
}

.case-item ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.case-item li {
  background: #eee;
  border-radius: 20px;
  font-size: 12px;
  padding: 6px 10px;
}

  @media only screen and (min-width: 1200px) {
    .case-grid {
      grid-template-columns: repeat(2, 1fr);
    }
}
@media only screen and (min-width: 800px) {
  .caseContents .inner {
    padding: 150px 0px;
}
  .case-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .case-card {
    width: calc(100% / 2 - 20px);
  }

}
  @media screen and (max-width: 799px) {
	.caseContents .inner {
    padding: 70px 0px 20px;
    }
  .caseContents .inner h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    letter-spacing: 0.2rem;
  }
  .caseContents .inner h2 {
    font-size: 1.4rem;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-items {
    grid-template-columns: 1fr;
    padding: 15px 20px 20px;
  }

  .case-card:nth-of-type(n+2){
    margin-top: 30px;
  }

  .case-header h2 {
    font-size: 32px;
  }
  }
