/* WorksA — 作ったものの紹介（2026-09-10 本人指示）
   左に分野名と細目（Studio の Capabilities と同じ .cap の部品をそのまま使う）、
   右にその証拠になる画像。画像は1枠で、左右の三角で切り替える。
   画像の下にリンク。リンクは画像を切り替えても変わらない。横1行・スラッシュ区切り。
   このファイルは WorksA だけが読む（他のページには影響させない） */

.waSprite{ position:absolute; width:0; height:0; overflow:hidden; }

/* 1つの項目: 左に文字、右に画像とリンク */
.wa{
  display:grid;
  grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  gap:clamp(24px,4vw,64px);
  align-items:start;
}
.wa--text{ grid-template-columns:minmax(0,1fr); }          /* 画像なしの項目 */

/* 小さく・細かく載せる項目（Web / アプリ制作、AI） */
.wa--small{ padding-block:clamp(14px,1.6vw,20px); }
.wa--small .cap__name{ font-size:clamp(12px,1.1vw,13.5px); }
.wa--small .cap__list li{ font-size:11.5px; line-height:1.8; }

/* 画像の枠（1枠・左右の三角で切り替え）。比率は Works の画像仕様（3:2）に合わせる */
.waMedia{ position:relative; min-width:0; }
.waFrame{
  position:relative;
  aspect-ratio:3/2;
  overflow:hidden;
  background:#EEF3F4;
  border:1px solid rgba(37,61,75,.08);
}
.waSlide{
  position:absolute; inset:0;
  opacity:0; visibility:hidden;
  transition:opacity .45s ease, visibility 0s linear .45s;
}
.waSlide.is-on{
  opacity:1; visibility:visible;
  transition:opacity .45s ease, visibility 0s;
}
.waSlide img{ display:block; width:100%; height:100%; object-fit:cover; }

/* 素材待ちの仮枠 */
.waSlide--todo{
  display:flex; align-items:center; justify-content:center;
  font-family:var(--latin);
  font-size:10px; letter-spacing:.24em; text-transform:uppercase;
  color:var(--pale);
}

/* 左右の三角。画像の左端・右端の真ん中に置く */
.waArrow{
  position:absolute; top:50%; z-index:2;
  width:40px; height:56px;
  transform:translateY(-50%);
  display:flex; align-items:center; justify-content:center;
  border:0; background:transparent; cursor:pointer;
  opacity:.6;
  transition:opacity .3s ease;
}
.waArrow:hover, .waArrow:focus-visible{ opacity:1; }
.waArrow:focus-visible{ outline:1px solid var(--cyan); outline-offset:-4px; }
.waArrow--prev{ left:4px; }
.waArrow--next{ right:4px; }
.waArrow::before{
  content:"";
  width:0; height:0;
  border-top:8px solid transparent;
  border-bottom:8px solid transparent;
}
.waArrow--prev::before{ border-right:11px solid var(--structure); }
.waArrow--next::before{ border-left:11px solid var(--structure); }
.waMedia.is-single .waArrow{ display:none; }                 /* 画像が1枚なら三角は出さない */

/* リンク（画像の下・横1行・スラッシュ区切り） */
.waLinks{
  margin:14px 0 0; padding:0; list-style:none;
  display:flex; flex-wrap:wrap; align-items:center; row-gap:6px;
  font-family:var(--latin);
  font-size:11px; letter-spacing:.08em;
}
.waLinks li + li::before{
  content:"/";
  margin:0 12px;
  color:var(--pale);
}
.waLink{
  display:inline-flex; align-items:center; gap:6px;
  padding-bottom:2px;
  color:var(--structure);
  border-bottom:1px solid transparent;
  transition:border-color .3s ease, color .3s ease;
}
a.waLink:hover, a.waLink:focus-visible{ border-color:var(--cyan); }
.waLink svg{ width:14px; height:14px; flex:none; }
.waLink .waOut{ width:10px; height:10px; opacity:.7; }        /* 外に飛ぶことを示す斜め矢印 */
.waLink.is-todo{ color:var(--pale); cursor:default; }         /* リンク先がまだ無い仮枠 */

@media (max-width:760px){
  .wa{ grid-template-columns:minmax(0,1fr); gap:18px; }
  /* リンクは横1行を守る（折り返すと2行目の先頭に「/」が来てしまう）。
     幅が足りないときは折り返さず、横にスクロールして見せる */
  .waLinks{
    flex-wrap:nowrap; overflow-x:auto; white-space:nowrap;
    font-size:10.5px; letter-spacing:.04em;
    scrollbar-width:none;
  }
  .waLinks::-webkit-scrollbar{ display:none; }
  .waLinks li{ flex:none; }
  .waLinks li + li::before{ margin:0 8px; }
  .waLink{ gap:4px; }
  .waLink svg{ width:12px; height:12px; }
  .waLink .waOut{ width:9px; height:9px; }
}
