@charset "UTF-8";
/*
 * 甘噛みアマルガム 子テーマ
 *
 * 現時点ではギャラリー・動画など「機能に必要な最小限」だけ。
 * 全体のデザイン（黒基調・紫アクセント）はトンマナ承認後に載せる。
 */

:root {
  --aa-bg: #0a0a0a;
  --aa-surface: #141414;
  --aa-line: #2a2a2a;
  --aa-text: #ffffff;
  --aa-text-sub: #9a9a9a;
  --aa-purple: #6b4b9e;
  --aa-cyan: #3fd9c8;
  --aa-gallery-cols: 3;
}

/* ---------- 写真ギャラリー ---------- */

.aa-gallery {
  display: grid;
  grid-template-columns: repeat(var(--aa-gallery-cols), 1fr);
  gap: 8px;
  margin: 1.5em 0;
}

.aa-gallery__item {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--aa-surface);
  aspect-ratio: 1 / 1;
}

.aa-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, opacity .3s ease;
}

.aa-gallery__item:hover .aa-gallery__img,
.aa-gallery__item:focus-visible .aa-gallery__img {
  transform: scale(1.04);
  opacity: .85;
}

.aa-gallery__item:focus-visible {
  outline: 2px solid var(--aa-cyan);
  outline-offset: 2px;
}

/* スマホは2列に固定。3列以上だと1枚が小さすぎて何の写真か分からない。 */
@media (max-width: 599px) {
  .aa-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
}

/* ---------- 動画 ---------- */

.aa-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 1.5em 0;
}

.aa-video__trigger {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.aa-video__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .3s ease;
}

.aa-video__trigger:hover .aa-video__thumb {
  opacity: .7;
}

/* 再生ボタン。画像を追加せずCSSだけで三角を作る。 */
.aa-video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 10, 10, .72);
  border: 2px solid rgba(255, 255, 255, .9);
  transition: background .25s ease, transform .25s ease;
}

.aa-video__play::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  transform: translateX(3px);
}

.aa-video__trigger:hover .aa-video__play {
  background: var(--aa-purple);
  transform: scale(1.08);
}

.aa-video__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.aa-video__title {
  margin: .6em 0 0;
  font-size: .92rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .aa-gallery__img,
  .aa-video__thumb,
  .aa-video__play {
    transition: none;
  }
  .aa-gallery__item:hover .aa-gallery__img {
    transform: none;
  }
}
