@charset "UTF-8";

/**********************************************/
/**********SINGLE共通**************************/
/**********************************************/
.single-wrap {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.single-wrap.inner {
  max-width: 1050px;
}

.single-wrap > div {
  flex: 1;
  background-color: var(--White);
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.single-meta time {
  font-size: 0.9rem;
  color: var(--Darkgray);
  white-space: nowrap;
}

.cat {
  display: inline-block;
  background-color: var(--LightBlue);
  color: var(--Blue);
  padding: 0px 12px 2px;
  font-size: 0.8rem;
  border-radius: 2px;
  margin: 0;
  white-space: nowrap;
}

.single-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 32px 0;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--Lightgray);
}

.single-thumb {
  margin: 0 0 30px 0;
}

.single-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.single-content {
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.single-content p {
  font-size: 0.95rem;
  margin-bottom: 1.5em;
  font-weight: 400;
}

.single-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.single-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--Blue);
}

.single-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 30px 0 15px;
}

.single-content ul,
.single-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.single-content li {
  margin-bottom: 8px;
}

.single-back {
  text-align: center;
  margin: 40px 0;
}

.single-pn {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--Lightgray);
}

.single-pn .prev,
.single-pn .next {
  flex: 1;
}

.single-pn .next {
  text-align: right;
}

.single-pn a {
  color: var(--Blue);
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.single-pn a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.single-side {
  width: 320px;
  flex-shrink: 0;
}

.single-side > p {
  padding: 0 25px;
}

.side-box {
  background-color: var(--White);
  padding: 16px 24px;
}

.side-heading {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--White);
  background-color: var(--Blue);
  margin: 0;
  padding: 8px 12px;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-list li {
  border-bottom: 1px solid var(--Lightgray);
}

.side-list li:last-child {
  border-bottom: none;
}

.side-list a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  transition: background-color 0.3s;
}

.side-list a:hover {
  background-color: #f9f9f9;
  opacity: 1;
}

.side-list time {
  font-size: 0.7rem;
  color: var(--Darkgray);
  white-space: nowrap;
}

.side-title {
  display: block;
  font-size: 0.9rem;
  line-height: 1.6;
}

.side-list a:hover .side-title {
  color: var(--Blue);
}

.side-empty {
  padding: 15px 0;
  font-size: 0.8rem;
  color: #999;
  text-align: center;
}

/**********************************************/
/**********WORKS SINGLE************************/
/**********************************************/
.single-works .side-list li {
  border: 1px solid var(--Lightgray);
}

.single-works .side-list li:not(:last-child) {
  border-bottom: 0;
}

.single-works .side-list a {
  padding: 12px 8px;
  font-size: 0.9rem;
}

.single-works .spec-label {
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 400;
}

.single-works dl {
  margin-bottom: 32px;
}

.single-works dl div:first-child {
  border-top: 1px solid #e0e0e0;
}

.single-works dl div {
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  gap: 0;
}

.single-works dt {
  width: 120px;
  padding: 8px 20px;
  font-weight: 500;
  color: var(--Black);
  text-align: left;
  vertical-align: top;
  background-color: #f9f9f9;
  font-size: 0.9rem;
}

.single-works dd {
  padding: 8px 30px;
  line-height: 1.8;
  color: var(--Black);
  font-size: 0.9rem;
  font-weight: 400;
}

.single-works .chips { 
  display:flex; 
  flex-wrap:nowrap;
  gap:6px;
  list-style:none; 
  margin:12px 0 0; 
  padding:0;
}
.single-works .chips li { 
  flex: 0 0 auto;
  max-width: 32%;
}
.single-works .chips li span { 
  display:block; 
  padding:4px 8px;
  border-radius:4px;
  font-size:0.8rem; 
  background: var(--LightBlue);
  color:var(--Blue);
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.other-works {
  background-color: var(--White);
  padding: 80px 0 100px;
  border-top: 1px solid var(--Lightgray);
}

.other-works .inner {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px;
}

.other-works .other-ttl {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  color: var(--Black);
  letter-spacing: 0.05em;
}

.other-works .other-ttl::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--Blue);
}

.other-works .works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin-top: 40px;
}

.other-works .item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.other-works .item:hover {
  opacity: 0.9;
}

.other-works .item .img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 12px;
  background-color: #f5f5f5;
}

.other-works .item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.other-works .item:hover .img img {
  transform: scale(1.05);
}

.other-works .item .cat {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--Blue);
  color: var(--White);
  padding: 4px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0;
  z-index: 1;
}

.other-works .item .name {
  font-size: 0.95rem;
  color: var(--Black);
  text-align: center;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

.other-works .item:nth-child(4) {
  display: none;
}

.other-works .chips {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.other-works .chips li {
  flex: 0 0 auto;
}

.other-works .chips li span {
  display: block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  background: var(--LightBlue);
  color: var(--Blue);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}


@media screen and (max-width: 768px) {
  .single-wrap {
    flex-direction: column;
    gap: 80px;
  }
  .single-title {
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    padding-bottom: 20px;
  }

  .other-works {
    padding: 60px 0 80px;
  }
  .other-works .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .other-works .item:nth-child(4) {
    display: block;
  }
  .other-works .list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 40px;
  }
  .other-works .item {
    width: 100%;
  }
  .other-works .item .img {
    width: 100%;
    aspect-ratio: 4 / 3;
  }
  .other-works  .item .name {
    line-height: 1.4;
  }
  .other-works .chips {
    flex-wrap: wrap;
  }
  .other-works .chips li {
    max-width: none;
  }
  .other-works .chips li span {
    font-size: 0.65rem;
  }

  .single-side {
    width: 100%;
  }
  .single-side > p {
    padding: 0;
  }
  .side-heading {
    font-size: 1rem;
  }
  .side-box {
    padding: 16px 0px;
}
}