/* ========================== 全体共通 ========================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  text-align: center;
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* ========================== ヘッダー ========================== */
header { margin: 0; padding: 0; }

.site-header {
  background: linear-gradient(135deg,#ff9a9e 0%,#fad0c4 100%);
  padding: 0;
  text-align: center;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .container {
  padding: 5px 0;
}

.site-header .logo-text,
.site-header .logo-text a {
  color: inherit;
  text-decoration: none;
  display: block;
  font-weight: bold;
}

.site-header .logo-text h1 {
  margin: 0;
  font-size: 28px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-subtitle {
  margin: 2px 0 0 0;
  font-size: 14px;
  line-height: 1.1;
}

header .header-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.1;
}

/* ========================== 共通ボタン ========================== */
button,
.vote-btn {
  cursor: pointer;
  border: none;
  border-radius: 5px;
  color: #fff;
  transition: background 0.2s;
}

button { background-color: #ff6b81; padding: 10px; }
button:hover { background-color: #e55a6e; }

.vote-btn { background: #ff6a9e; padding: 6px 10px; border-radius: 6px; }
.vote-btn:hover { background: #e55a6e; }

/* ========================== ページネーション ========================== */
.pagination {
  margin: 25px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.page-btn {
  padding: 6px 14px;
  background: #ff6a9e;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

.page-btn:hover { background: #e05588; }
.page-info { color: #555; }

/* ========================== フッター ========================== */
footer {
  background: linear-gradient(135deg, #fad0c4 0%,#ff9a9e 100%);
  padding: 25px 15px;
  text-align: center;
  color: #fff;
  margin-top: 30px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* ========================== 見出し統一 ========================== */
h1 { margin:20px 0; font-size:22px; }
h2 { margin:15px 0; font-size:18px; color:#555; }

/* ========================== レスポンシブ ========================== */
@media (max-width: 768px){
  .vote-area { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .feature-card { width: 90%; }
  .logo-text { font-size:1.2rem; }
  .header-subtitle { font-size:0.9rem; }
}
@media (max-width: 480px){
  .top5-card { width:45%; }
  .header-subtitle { font-size:12px; }
}


/* ========================== プロジェクトカード ========================== */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project {
  background: linear-gradient(180deg,#fff 0%,#fdfdfd 100%);
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.project:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  border-color: #ddd;
}

.project img {
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.5s, opacity 0.5s;
}

.project img.loaded { opacity: 1; transform: translateY(0); }
.project:hover img { transform: scale(1.05); }

.project h2 { font-size: 18px; margin: 10px 0; text-align: center; color:#222; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.project p { font-size: 14px; line-height: 1.5; text-align: center; margin: 5px 0; color:#555; }

.project .tags a {
  display: inline-block;
  background: linear-gradient(135deg,#f3f3f3 0%,#eaeaea 100%);
  color: #333;
  padding: 3px 8px;
  border-radius: 12px;
  margin: 2px;
  text-decoration: none;
  font-size: 12px;
  transition: 0.2s;
}
.project .tags a:hover {
  background: linear-gradient(135deg,#0073e6 0%,#005bb5 100%);
  color: #fff;
}

/* ========================== vote.php 専用 ========================== */
.vote-area {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 15px;
  padding: 10px 0;
  max-width: 900px;
  margin: 0 auto 20px;
}

.vote-area .card {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.vote-area .card:hover { transform: scale(1.02); }
.vote-area img { width: 100%; border-radius:8px; }

.container.vote-page { max-width:900px; display:grid; gap:20px; margin:20px auto; padding:0 15px; }
.container.vote-page .card { transition:transform 0.3s,box-shadow 0.3s; }
.container.vote-page .card:hover { transform:translateY(-3px); box-shadow:0 6px 18px rgba(0,0,0,0.2); }
.card-content { padding:12px 15px; }
.card-content h2 { margin:8px 0 6px; font-size:18px; }
.card-content p { margin:0; font-size:14px; }

/* レスポンシブ vote.php */
@media(min-width:600px){ .container.vote-page { grid-template-columns: repeat(2,1fr); } }
@media(min-width:900px){ .container.vote-page { grid-template-columns: repeat(3,1fr); } }


/* ========================== veronica.php 専用 ========================== */
.veronica-page { background-color:#000; color:#ddd; overflow-x:hidden; }
.veronica-page .image-grid { display:flex; flex-wrap:wrap; justify-content:space-between; gap:20px; }
.veronica-page .image-item {
  display:block;
  width:calc(50% - 10px);
  max-width:280px;
  margin-bottom:20px;
  box-sizing:border-box;
  text-decoration:none;
  color:inherit;
  transition: all 0.3s ease;
}
.veronica-page .image-item img {
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:10px;
  box-shadow:0 4px 20px rgba(255,0,60,0.3);
  transition: all 0.3s ease;
}
.veronica-page .image-item:hover img { filter: brightness(1.2); transform: scale(1.03); }

.veronica-page .image-item p { color:#ccc; text-align:center; margin-top:10px; font-size:14px; line-height:1.5; }

.veronica-page .veronica-auto-slide {
  width:100%;
  max-width:447px;
  height:400px;
  overflow:hidden;
  position:relative;
  margin:0 auto 40px;
}
.veronica-page .veronica-auto-slide img { width:100%; height:auto; position:absolute; top:0; left:0; }

/* レスポンシブ veronica.php */
@media(max-width:600px){
  .veronica-page .image-item { width:calc(50% - 10px); max-width:none; }
}

/* ========================== TOP5カード ========================== */
.top5-wrap {
  max-width: 920px;
  margin: 18px auto;
  padding: 8px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.top5-card {
  width: 110px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.top5-rank { font-weight:700; color:#ff4d79; margin-bottom:6px; font-size:14px; }
.top5-thumb { width:100%; height:80px; object-fit:cover; border-radius:6px; display:block; margin-bottom:6px; }
.top5-count { font-size:13px; color:#333; }

/* ========================== VERONICA / Featureカード ========================== */
.VERONICA-feature {
  background:#fff;
  padding:2px 0;
  text-align:center;
}
.VERONICA-feature h2 { font-size:22px; margin-bottom:25px; color:#333; }
.feature-grid { display:flex; justify-content:center; gap:20px; flex-wrap:wrap; }
.feature-card {
  display:block;
  width:45%;
  max-width:280px;
  text-decoration:none;
  color:#333;
  transition:transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card img {
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:10px;
  box-shadow:0 2px 10px rgba(0,0,0,0.1);
}
.feature-card p { margin-top:10px; font-size:14px; line-height:1.4; }

/* ========================== Voteバナー ========================== */
.vote-banner {
  width:360px !important;
  height:180px !important;
  object-fit:contain !important;
  display:block;
  margin:0 auto;
  border-radius:10px;
}
.vote-feature .feature-card {
  aspect-ratio:auto;
  width:100%;
  max-width:400px;
  margin:0 auto;
  overflow:visible;
  background:none;
  box-shadow:none;
}
.vote-feature .feature-card img.vote-banner {
  width:100%;
  height:auto;
  object-fit:contain;
  display:block;
  margin:0 auto;
  border-radius:10px;
}

/* ========================== 見出し中央揃え ========================== */
.vote-feature h2,
.introduction h2,
.ranking + h2,
.gallery + h2,
.ranking h2,
.gallery h2 { text-align:center; margin:30px 0 15px; }

/* ========================== vote.php 専用 ========================== */
body.vote-page {
  background: #f9f9f9;
  color: #333;
}

/* カードグリッド */
body.vote-page .vote-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  padding: 10px 0;
  max-width: 900px;
  margin: 0 auto 20px;
}

/* voteカード */
body.vote-page .vote-area .card {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: #333;
}

body.vote-page .vote-area .card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

body.vote-page .vote-area img {
  width: 100%;
  border-radius: 8px;
}

body.vote-page .card-content {
  padding: 12px 15px;
}

body.vote-page .card-content h2 {
  margin: 8px 0 6px;
  font-size: 18px;
}

body.vote-page .card-content p {
  margin: 0;
  font-size: 14px;
}

/* レスポンシブ */
@media (min-width: 600px) {
  body.vote-page .vote-area { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  body.vote-page .vote-area { grid-template-columns: repeat(3, 1fr); }
}

/* TOP5カード */
body.vote-page .top5-wrap {
  max-width: 920px;
  margin: 18px auto;
  padding: 8px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

body.vote-page .top5-card {
  width: 110px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

body.vote-page .top5-rank { font-weight:700; color:#ff4d79; margin-bottom:6px; font-size:14px; }
body.vote-page .top5-thumb { width:100%; height:80px; object-fit:cover; border-radius:6px; display:block; margin-bottom:6px; }
body.vote-page .top5-count { font-size:13px; color:#333; }


/* VERONICA FEATURE */
.VERONICA-feature {
  background:#fff;
  padding:20px 0;
  text-align:center;
}
.VERONICA-feature h2 {
  font-size:22px;
  margin-bottom:25px;
  color:#333;
}

/* グリッド化 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap:16px;
  justify-items:center;
  align-items:start;
  padding:0 10px;
}

.feature-card {
  display:block;
  width:100%;
  max-width:300px;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration:none;
  color:#333;
  position:relative;
}

/* 画像 */
.feature-card img {
  width:100%;
  height:auto;
  object-fit:cover;
  display:block;
  border-radius:0;
}

/* テキスト下部に */
.feature-card p {
  margin:8px 0 0 0;
  font-size:14px;
  color:#333;
  line-height:1.3;
  text-align:center;
}

/* ホバー */
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow:0 6px 14px rgba(0,0,0,0.15);
}

/* スマホ対応 */
@media(max-width:768px) {
  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap:12px;
  }
  .feature-card {
    max-width:100%;
  }
  .feature-card p {
    font-size:13px;
  }
}


.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.tags a {
  display: inline-block;
  background: linear-gradient(135deg,#f3f3f3 0%,#eaeaea 100%);
  color: #333;
  padding: 5px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  transition: 0.2s;
}

.tags a:hover {
  background: linear-gradient(135deg,#0073e6 0%,#005bb5 100%);
  color: #fff;
}

#hidden-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

#show-hidden-tags, #close-hidden-tags {
  cursor: pointer;
  padding: 6px 12px;
  border: none;
  background: #ff6b81;
  color: #fff;
  border-radius: 6px;
  margin-top: 5px;
  transition: 0.2s;
}

#show-hidden-tags:hover, #close-hidden-tags:hover {
  background: #e55a6e;
}

.container.vote-page {
  max-width: 900px;
  display: grid;
  gap: 20px;
  margin: 20px auto;
  padding: 0 15px;
  grid-template-columns: repeat(1, 1fr); /* デフォルトは1列 */
}




/* ========================== vote.php 専用（独自クラス） ========================== */
body.myvote-page {
  background: #f9f9f9;
  color: #333;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
}

/* ========================== カードグリッド ========================== */
.myvote-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 10px;
}

/* ========================== カード ========================== */
.myvote-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: #333;
}

.myvote-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.myvote-card img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.myvote-card-content {
  padding: 12px 15px;
}

.myvote-card-content h2 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.myvote-card-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #555;
}

/* ========================== TOP5カード（任意表示用） ========================== */
.myvote-top5-wrap {
  max-width: 920px;
  margin: 18px auto;
  padding: 8px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.myvote-top5-card {
  width: 110px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.myvote-top5-rank {
  font-weight: 700;
  color: #ff4d79;
  margin-bottom: 6px;
  font-size: 14px;
}

.myvote-top5-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 6px;
}

.myvote-top5-count {
  font-size: 13px;
  color: #333;
}

/* ========================== レスポンシブ ========================== */
@media (min-width: 600px) {
  .myvote-area {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .myvote-area {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .myvote-card-content h2 {
    font-size: 16px;
  }
  .myvote-card-content p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .myvote-area {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* ========================== TOP ========================== */
picture img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1; /* 600x300 の比率を維持 */
  display: block;
}

/* ========================== 投票入口ページだけスマホで1列 ========================== */
@media (max-width: 600px) {
  body.vote-top-page .vote-area {
    grid-template-columns: 1fr !important;
  }
}


