﻿@charset "utf-8";
/* 黄金の一矢　CSS */

/* =====================================
  ギャラリー専用スタイル
===================================== */

:root {
  --bg1:#020409;
  --bg2:#050b18;
  --glass: rgba(255,255,255,0.08);
  --line: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.9);
  --muted: rgba(255,255,255,0.6);
}

body {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  color: var(--text);

  /* =====================================
     背景（グラデーションのみ）
  ===================================== */
  
  /*background:
    radial-gradient(circle at 20% 10%, rgba(80,120,200,0.12), transparent 40%),
    linear-gradient(to bottom, var(--bg1), var(--bg2));
　　linear-gradient(to bottom, rgba(2,4,9,0.7), rgba(2,4,9,0.95)),
    radial-gradient(circle at 60% 30%, rgba(120,160,255,0.08), transparent 40%), */


  

  /* =====================================
     背景画像＋グラデーション重ね
  ===================================== */
  background:
    /*radial-gradient(circle at 20% 10%, rgba(80,120,200,0.12), transparent 100%),*/
    linear-gradient(to bottom, rgba(2,4,9,0.45), rgba(2,4,9,0.45)),
    url("../kabe-port.png") top center / 100% auto repeat-y fixed;
}

/*

center          中央 　　　画像の表示基準位置
top center      上中央
bottom center   下中央
left top        左上

 / cover        画面いっぱいに 必ず覆う、はみ出した部分はカット
 / contain     全体表示
 / 100% auto   横幅100%、縦は自動
 / auto 100%   縦100%、横は自動
 / 120%        少し拡大

repeat        縦横に繰り返す
repeat-x      横だけ
repeat-y      縦だけ

fixed;　背景を 画面に固定（スマホでは重くなる）
*/


.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

h1 {
  font-weight: 300;
  letter-spacing: 0.16em;
}

.note {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.6rem;
}

.gallery-item {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}


.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.caption {
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* ← 3行 */
  overflow: hidden;
}


.gallery-item {
  position: relative;
}

.badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #d4af37;
  color: #000;
  font-size: 0.6rem;
  padding: 0.2em 0.6em;
  border-radius: 999px;
}

/* ===============================
   モーダル（PCのみ）
=============================== */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.modal img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  display: block;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
  border-radius: 12px;
}


/* スマホではモーダル無効 */
@media (max-width: 768px) {
  .modal {
    display: none !important;
  }
}


/* ===============================
   NEWバッジ：淡く発光
=============================== */

@keyframes newGlow {
  0% {
    box-shadow: 0 0 6px rgba(212,175,55,0.4);
  }
  50% {
    box-shadow: 0 0 12px rgba(212,175,55,0.8);
  }
  100% {
    box-shadow: 0 0 6px rgba(212,175,55,0.4);
  }
}

.gallery-item.new .badge {
  animation: newGlow 2.5s ease-in-out infinite;
}



/* スマホ */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

