/* =====================
   works-edit.css
   画像編集ページ専用スタイル
===================== */



/* =====================
   セクション共通
===================== */
.we-section {
  padding: var(--section-pad);
  background: var(--bg-light);
}

.we-section--alt {
  background: var(--bg-light);
}

.we-section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.we-section-en {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.we-section-title {
  font-family: var(--font-ja);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-light);
}


/* =====================
   作品アイテム共通（サムネイル・文章作成）
   SP：縦積み / PC：左info＋右img
===================== */
.we-item,.we-item-wr {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.we-item:last-child {
  margin-bottom: 0;
}

.we-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.we-item-category {
  font-family: var(--font-ja);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* カテゴリ横のアクセントバー */
.we-item-bar {
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

.we-item-label {
  font-family: var(--font-ja);
  font-size: 1.2rem;
  color: var(--text-light);
  margin-top: 0.6rem;
}

.we-item-title {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text-light);
  padding-bottom: 1rem;
}
.we-item-meta {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--text-light);
}
.we-item-text--body {
  font-size: 1.2rem;
  line-height: 2;
}
.we-item-text{
    font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text-light);
}
.we-item-meta {
  font-size: 1.2rem;
  line-height: 1.8;
}
.we-item-img{
  box-shadow: -6px -2px 20px 0px black;
}

.we-item-img img {
  width: 100%;
  height: auto;
  display: block;
  background-color: #d9d9d9;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}


/* =====================
   バナーブロック
===================== */
.we-banner-block {
  margin-bottom: 3rem;
}

.we-banner-block:last-child {
  padding-top: 2rem;
  margin-bottom: 0;
}

.we-banner-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}

/* SP：縦並び（SAMPLE ↓ TRACE） / PC：横並び（SAMPLE → TRACE） */
.we-banner-pair {
  display: flex;
  flex-direction: column; /* SP は縦 */
  align-items: center;
  gap: 5rem;
}

.we-banner-img-wrap {
  display: flex;
  flex-direction: column;
  width: 300px;
  gap: 0.5rem;
  box-shadow: -6px -2px 20px 0px black;
}

.we-banner-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  background-color: #d9d9d9;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.we-banner-label {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-light);
  text-align: center;
}

.we-banner-img-wrap--wide {
  width: auto !important; }

.we-banner-img-wrap--wide img {
  aspect-ratio: auto;
}

.we-banner-pair--wide {
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}


@media (min-width: 640px) {
  .we-banner-pair {
    flex-direction: row; /* PC は横並び */
    align-items: center;
    gap: 0.75rem;
  }


  .we-banner-label {
    margin-bottom: 0;
  }

  .we-banner-pair--wide {
    flex-direction: column; /* 横長なのでPCも縦並び維持 */
    align-items: flex-start;
    gap: 2rem;
  }

}


/* =====================
   タブレット (640px ~)
===================== */
@media (min-width: 640px) {
  .we-item {
    grid-template-columns:300px 1fr;
    gap: 2rem;
    align-items: start;
  }
}


/* =====================
   デスクトップ (960px ~)
===================== */
@media (min-width: 960px) {
  .we-hero {
    padding: 5rem 2rem 4rem;
    min-height: 200px;
  }
.we-section-en{
  margin-bottom: 0;
}
.we-section-title{
  font-size: 2rem;
}
  .we-item {
    grid-template-columns: 25em 1fr;
    gap: 3rem;
  }
.we-item-category{
  font-size: 1.8rem;
}
.we-item-title{
  font-size: 1.6rem;
  padding-bottom: 1rem;
}
.we-banner-block:last-child {
  padding-top: 5rem;
}
.we-banner-info{
  display: flex;
  flex-direction: row;
  gap: 3rem;
  margin-bottom: 5rem;
}
.we-item-meta{
  font-size: 1.6rem;
  padding-top:.5em;
}
  .we-banner-pair {
    justify-content: center;
    gap: 10rem;
  }
  .we-banner-label{
    font-size: 1.6rem;
    font-weight: 400;
  }
.we-banner-img-wrap {
  width: 400px;
}
  .we-item{
    gap: 10rem;
    margin-bottom: 7rem;
  }
  .we-item-label{
    font-size: 1.1em;
    margin-top: 1em;
    margin-bottom: 1em;
  }
  .we-item-title{
    font-size: 1.8rem;
  }
  .we-item-text{
    font-size: 1.6rem;
    margin-top: 5rem;
}

  .we-banner-pair--wide {
    gap: 3rem;
  }
.we-banner-pair--wide {
  align-items: center;
  gap: 5rem;
}
.we-item-wr{
 
  grid-template-columns: 1fr 20em;
    gap: 6rem
}
}
