/* ============================================
   作品ギャラリー — gallery.css
   既存 SHIROI.CSS のトークンを継承
   ============================================ */

/* --- ヘッダー --- */
.gl-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.gl-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.gl-header__logo {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--brown);
}
.gl-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.gl-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.gl-nav__link:hover { color: var(--sakura-dark); }
.gl-nav__link.is-current {
  color: var(--sakura-dark);
  border-bottom-color: var(--sakura-dark);
}
.gl-nav__link.is-disabled {
  color: var(--text-light);
  cursor: not-allowed;
  opacity: 0.6;
}
.gl-nav__link.is-disabled:hover { color: var(--text-light); }
.gl-nav__link--vote {
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(212, 120, 155, 0.12);
  color: var(--sakura-dark);
  border-bottom: 0;
  font-weight: 800;
}
.gl-nav__link--vote:hover {
  background: rgba(212, 120, 155, 0.2);
  color: var(--sakura-dark);
}

/* --- ヒーロー --- */
.gl-hero {
  padding: 64px 0 48px;
  background: linear-gradient(135deg, #fde8ef 0%, #e8f5e9 50%, #fde8ef 100%);
  text-align: center;
}
.gl-hero__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--sakura-dark);
  font-weight: 700;
  margin-bottom: 8px;
}
.gl-hero__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  color: var(--brown);
  margin-bottom: 16px;
}
.gl-hero__lead {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.9;
}

.gl-hero-vote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 680px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(212, 120, 155, 0.24);
  box-shadow: 0 18px 44px rgba(36, 53, 47, 0.12);
}

.gl-hero-vote__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink, #24352f);
}

.gl-hero-vote__label {
  color: var(--sakura-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.gl-hero-vote__text strong {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(1.04rem, 2vw, 1.32rem);
  line-height: 1.35;
}

.gl-hero-vote__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(35, 79, 59, 0.22);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.gl-hero-vote__button:hover {
  background: var(--sakura-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(212, 120, 155, 0.24);
}

/* --- 使い方（3ステップ） --- */
.gl-howto {
  padding: 40px 0 0;
}
.gl-howto .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.gl-howto__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 900;
  color: var(--brown);
  text-align: center;
  margin: 0 0 22px;
  letter-spacing: 0.02em;
}
.gl-howto__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: howto;
}
.gl-howto__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 18px 16px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(91, 163, 97, 0.18);
  box-shadow: 0 10px 24px rgba(36, 53, 47, 0.06);
  position: relative;
}
.gl-howto__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(91, 163, 97, 0.28);
}
.gl-howto__body { flex: 1; min-width: 0; }
.gl-howto__heading {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brown);
  line-height: 1.4;
}
.gl-howto__icon {
  display: inline-block;
  color: #ffb300;
  margin-right: 2px;
  font-size: 1rem;
}
.gl-howto__text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.65;
}
.gl-howto__text strong {
  color: var(--green-dark);
}

/* --- メイン --- */
.gl-main { padding: 56px 0 96px; }
.gl-main .container { max-width: 1200px; }
.gl-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 24px;
  text-align: right;
}

/* --- グリッド --- */
.gl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* --- カード --- */
.gl-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.gl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.gl-card:focus-visible {
  outline: 3px solid var(--sakura-dark);
  outline-offset: 2px;
}
.gl-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  overflow: hidden;
}
.gl-card__entry-no {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(31, 47, 42, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gl-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gl-card:hover .gl-card__thumb img { transform: scale(1.05); }
.gl-card__pending {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(77, 154, 105, 0.82), rgba(212, 120, 155, 0.78)),
    var(--green-dark);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
}
.gl-card__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity var(--transition);
}
.gl-card:hover .gl-card__play { opacity: 1; }
.gl-card__play::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 22px solid var(--white);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.gl-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.gl-card__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gl-card__creator {
  font-size: 0.85rem;
  color: var(--text-light);
}
.gl-card__excerpt {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gl-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}
.gl-card__likes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--sakura-dark);
  font-weight: 700;
}
.gl-card__date {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* --- 投票フォーム --- */
.gl-vote {
  margin-top: 64px;
  padding: 34px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(232, 245, 233, 0.78)),
    var(--white);
  border: 1px solid rgba(36, 53, 47, 0.1);
  box-shadow: 0 18px 48px rgba(36, 53, 47, 0.12);
}

.gl-vote__header {
  max-width: 760px;
  margin-bottom: 20px;
}

.gl-vote__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(212, 120, 155, 0.12);
  color: var(--sakura-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.gl-vote__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  color: var(--ink, #24352f);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.35;
  margin-bottom: 10px;
}

.gl-vote__lead {
  color: rgba(36, 53, 47, 0.78);
  font-size: 0.98rem;
  line-height: 1.85;
}

.gl-vote__notice {
  margin: 18px 0 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  border-left: 4px solid var(--sakura);
  color: var(--text);
  line-height: 1.8;
}

.gl-vote__notice p {
  margin: 0;
}

.gl-vote__terms-link {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gl-vote__actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.gl-vote__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(35, 79, 59, 0.22);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.gl-vote__button:hover {
  background: var(--sakura-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(212, 120, 155, 0.24);
}

.gl-vote__embed {
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(36, 53, 47, 0.1);
}

.gl-vote__embed iframe {
  display: block;
  width: 100%;
  border: 0 !important;
}

/* --- 投票規約ページ --- */
.gl-terms-main {
  padding: 64px 20px 96px;
  background:
    radial-gradient(circle at 12% 0%, rgba(248, 180, 200, 0.12), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(91, 163, 97, 0.12), transparent 26rem),
    #fffdf8;
}

.gl-terms {
  max-width: 920px;
  margin: 0 auto;
  padding: 42px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(36, 53, 47, 0.1);
  box-shadow: 0 20px 58px rgba(36, 53, 47, 0.12);
}

.gl-terms__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(232, 245, 233, 0.86);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.gl-terms__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  color: var(--ink, #24352f);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.3;
  margin-bottom: 18px;
}

.gl-terms__lead,
.gl-terms__section p,
.gl-terms__section li {
  color: var(--text);
  line-height: 1.9;
}

.gl-terms__lead {
  margin-bottom: 24px;
}

.gl-terms__notice {
  margin: 26px 0 30px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(253, 232, 239, 0.54);
  border-left: 4px solid var(--sakura);
  color: var(--text);
  font-weight: 700;
}

.gl-terms__notice p {
  margin: 0;
  line-height: 1.85;
}

.gl-terms__section {
  padding: 24px 0;
  border-top: 1px solid rgba(36, 53, 47, 0.1);
}

.gl-terms__section h2 {
  font-family: 'Zen Maru Gothic', sans-serif;
  color: var(--green-dark);
  font-size: 1.18rem;
  margin-bottom: 12px;
}

.gl-terms__section ol {
  margin: 0;
  padding-left: 1.4em;
}

.gl-terms__section li + li {
  margin-top: 8px;
}

.gl-terms__section--supplement p {
  margin: 4px 0;
}

.gl-terms__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(36, 53, 47, 0.1);
}

.gl-terms__sub-link {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- 空状態 --- */
.gl-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.gl-card--skeleton {
  pointer-events: none;
  cursor: default;
}
.gl-card--skeleton .gl-card__thumb,
.gl-skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(245,240,234,1) 0%, rgba(255,255,255,0.92) 50%, rgba(245,240,234,1) 100%);
  background-size: 200% 100%;
  animation: glShimmer 1.4s linear infinite;
}
.gl-skeleton {
  border-radius: 999px;
}
.gl-skeleton--title {
  width: 78%;
  height: 20px;
}
.gl-skeleton--text {
  width: 100%;
  height: 14px;
}
.gl-skeleton--short {
  width: 72%;
}
.gl-skeleton--meta {
  width: 72px;
  height: 14px;
}
.gl-skeleton--tiny {
  width: 54px;
}

/* --- モーダル --- */
.gl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gl-modal[hidden] { display: none; }
.gl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 58, 58, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.gl-modal__panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}
.gl-modal__topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.gl-modal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid rgba(91, 163, 97, 0.18);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.gl-modal__back:hover {
  background: var(--green-light);
}
.gl-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}
.gl-modal__close:hover {
  background: var(--sakura);
  color: var(--white);
  transform: rotate(90deg);
}
.gl-modal__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.gl-modal__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.gl-modal__player.is-pending::before {
  content: '動画リンク準備中';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(77, 154, 105, 0.86), rgba(212, 120, 155, 0.78)),
    var(--green-dark);
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
}
.gl-modal__body {
  padding: 28px 32px 32px;
}
.gl-modal__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 900;
  color: var(--brown);
  line-height: 1.4;
  margin-bottom: 6px;
}
.gl-modal__creator {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.gl-modal__creator::before {
  content: 'by ';
  color: var(--sakura-dark);
  font-weight: 700;
}
.gl-modal__pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.gl-modal__pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(212, 120, 155, 0.24);
  background: var(--white);
  color: var(--brown);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.gl-modal__pager-btn:hover:not(:disabled) {
  background: var(--sakura-light);
  transform: translateY(-1px);
}
.gl-modal__pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.gl-modal__message-wrap {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  border-left: 4px solid var(--sakura);
}
.gl-modal__heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sakura-dark);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.gl-modal__message {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.9;
  white-space: pre-wrap;
}
.gl-modal__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- モーダル：詳細セクション（折りたたみ） --- */
.gl-modal__details {
  margin: 0 0 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.gl-modal__details[hidden] { display: none; }
.gl-modal__details-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--sakura-dark);
  background: linear-gradient(180deg, rgba(253, 232, 239, 0.4) 0%, rgba(253, 232, 239, 0.1) 100%);
  transition: background var(--transition);
  user-select: none;
}
.gl-modal__details-summary::-webkit-details-marker { display: none; }
.gl-modal__details-summary:hover {
  background: rgba(253, 232, 239, 0.7);
}
.gl-modal__details-summary:focus-visible {
  outline: 3px solid var(--sakura-dark);
  outline-offset: -3px;
}
.gl-modal__details-label::before {
  content: '📝 ';
  margin-right: 4px;
}
.gl-modal__details-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--sakura-dark);
  transition: transform 0.25s ease;
}
.gl-modal__details[open] .gl-modal__details-icon {
  transform: rotate(180deg);
}
.gl-modal__details[open] .gl-modal__details-summary {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.gl-modal__details-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: detailsSlide 0.3s ease;
}
.gl-modal__detail-item[hidden] { display: none; }
.gl-modal__detail-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--green);
}
.gl-modal__detail-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.85;
  white-space: pre-wrap;
}
.gl-modal__detail-text a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gl-modal__detail-text a:hover {
  color: var(--sakura-dark);
}
.gl-modal__detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gl-modal__detail-list li {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  padding: 8px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--sakura);
}
.gl-modal__detail-list li strong {
  color: var(--brown);
  margin-right: 4px;
}
.gl-modal__detail-role {
  color: var(--text-light);
  font-size: 0.88rem;
}

/* クリエイターコメント（ふきだし風） */
.gl-modal__detail-item--comment .gl-modal__detail-heading {
  border-left-color: var(--sakura);
  color: var(--sakura-dark);
}
.gl-modal__detail-item--comment .gl-modal__detail-text {
  background: linear-gradient(135deg, #fff 0%, #fde8ef 100%);
  border-radius: var(--radius);
  padding: 16px 20px;
  position: relative;
  font-style: italic;
  color: var(--text);
  border: 1px dashed var(--sakura);
}
.gl-modal__detail-item--comment .gl-modal__detail-text::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 10px;
  font-size: 2.2rem;
  color: var(--sakura);
  font-family: 'Zen Maru Gothic', serif;
  line-height: 1;
}

@keyframes detailsSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- ナビ「投票」候補数バッジ --- */
.gl-nav__vote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gl-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(91, 163, 97, 0.12);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
  transition: var(--transition);
}
.gl-nav__badge.is-active {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(91, 163, 97, 0.32);
}
.gl-nav__badge.is-full {
  background: linear-gradient(135deg, var(--sakura-dark), var(--green-dark));
  color: var(--white);
  animation: voteBadgePulse 1.4s ease infinite;
}
@keyframes voteBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 6px 18px rgba(212, 120, 155, 0.4); }
}

/* --- 投票候補追加ボタン（モーダル内） --- */
.gl-vote-add {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 2px solid var(--green);
  background: var(--white);
  color: var(--green-dark);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: 0.02em;
}
.gl-vote-add:hover:not(:disabled) {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(91, 163, 97, 0.2);
}
.gl-vote-add:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 2px;
}
.gl-vote-add__icon {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--green);
  transition: var(--transition);
}
.gl-vote-add.is-added {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.gl-vote-add.is-added .gl-vote-add__icon { color: #ffd34d; }
.gl-vote-add.is-disabled {
  background: var(--bg-alt);
  border-color: var(--text-light);
  color: var(--text-light);
}
.gl-vote-add.is-disabled .gl-vote-add__icon { color: var(--text-light); }

.gl-vote-add__hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.6;
  text-align: center;
}
.gl-vote-add__hint strong {
  color: var(--green-dark);
}

/* --- 投票セクション内「あなたの候補」 --- */
.gl-vote__candidates {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(232, 245, 233, 0.5);
  border: 1px dashed var(--green);
}
.gl-vote__candidates-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green-dark);
}
.gl-vote__candidates-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.gl-vote__candidate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(36, 53, 47, 0.06);
}
.gl-vote__candidate-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.gl-vote__candidate-body { flex: 1; min-width: 0; }
.gl-vote__candidate-no {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: 0.04em;
}
.gl-vote__candidate-title {
  margin: 2px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.gl-vote__candidate-creator {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--text-light);
}
.gl-vote__candidate-remove {
  background: transparent;
  border: 1px solid var(--text-light);
  color: var(--text-light);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.gl-vote__candidate-remove:hover {
  background: var(--sakura-light);
  border-color: var(--sakura-dark);
  color: var(--sakura-dark);
}
.gl-vote__candidates-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--text-light);
}
.gl-vote__candidates-clear {
  background: transparent;
  border: none;
  color: var(--sakura-dark);
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- 投票CTAバナー（3票揃い時、画面下固定） --- */
.gl-vote-cta {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  z-index: 120;
  max-width: 560px;
  width: calc(100% - 32px);
  background: linear-gradient(135deg, var(--green-dark) 0%, #2d6a4f 100%);
  color: var(--white);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(36, 53, 47, 0.35);
  padding: 16px 18px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gl-vote-cta.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.gl-vote-cta__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.gl-vote-cta__text { flex: 1; min-width: 200px; }
.gl-vote-cta__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}
.gl-vote-cta__desc {
  margin: 2px 0 0;
  font-size: 0.8rem;
  opacity: 0.85;
}
.gl-vote-cta__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gl-vote-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--white);
  color: var(--green-dark);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: var(--transition);
}
.gl-vote-cta__btn:hover {
  background: #ffd34d;
  color: var(--brown);
  transform: translateY(-1px);
}
.gl-vote-cta__close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
}
.gl-vote-cta__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* --- トースト --- */
.gl-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(8px);
  z-index: 130;
  max-width: 360px;
  background: rgba(31, 55, 45, 0.94);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(36, 53, 47, 0.3);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}
.gl-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- いいねボタン --- */
.gl-like {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border: 2px solid var(--sakura);
  background: var(--white);
  color: var(--sakura-dark);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.gl-like:hover:not(:disabled) {
  background: var(--sakura-light);
  transform: translateY(-2px);
}
.gl-like:disabled {
  cursor: default;
  background: var(--sakura);
  color: var(--white);
}
.gl-like__icon { font-size: 1.2rem; }
.gl-like.is-loading { opacity: 0.5; pointer-events: none; }
.gl-like.is-pulse .gl-like__icon {
  animation: heartPulse 0.6s ease;
}

/* --- フッター --- */
.gl-footer {
  background: var(--bg-alt);
  padding: 32px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}
.gl-footer p { margin: 4px 0; }
.gl-footer a { color: var(--green-dark); }

/* --- アニメーション --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.4); }
  60% { transform: scale(0.9); }
}
@keyframes glShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- レスポンシブ --- */
@media (max-width: 767px) {
  .gl-header__inner { padding: 12px 16px; gap: 12px; }
  .gl-header__logo { font-size: 0.95rem; }
  .gl-nav { gap: 14px; width: 100%; }
  .gl-nav__link { font-size: 0.82rem; }
  .gl-hero { padding: 48px 0 36px; }
  .gl-main { padding: 40px 0 64px; }
  .gl-grid { grid-template-columns: 1fr; gap: 20px; }
  .gl-howto { padding: 28px 0 0; }
  .gl-howto .container { padding: 0 16px; }
  .gl-howto__list { grid-template-columns: 1fr; gap: 10px; }
  .gl-howto__step { padding: 14px; gap: 12px; }
  .gl-howto__num { width: 32px; height: 32px; font-size: 0.95rem; }
  .gl-howto__heading { font-size: 0.92rem; }
  .gl-howto__text { font-size: 0.82rem; }
  .gl-modal { padding: 0; }
  .gl-modal__panel {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }
  .gl-modal__topbar {
    padding: 10px 12px;
  }
  .gl-modal__back {
    font-size: 0.84rem;
    padding: 9px 12px;
  }
  .gl-modal__player { border-radius: 0; }
  .gl-modal__body { padding: 24px 20px 28px; }
  .gl-modal__pager {
    flex-direction: column;
    margin-bottom: 18px;
  }
  .gl-modal__pager-btn {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================
   Design refresh: gallery page
   ============================================ */
.gl-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 76px;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.82) 46%, rgba(255, 253, 248, 0.18) 100%),
    linear-gradient(180deg, rgba(35, 79, 59, 0.12), rgba(255, 250, 245, 0.88)),
    url("https://metagri-labo.com/wp-content/uploads/2026/04/914e8faa6d3c8a6659f16a7e6610390e.png");
  background-size: cover;
  background-position: center;
}

.gl-hero::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  pointer-events: none;
}

.gl-hero::after {
  content: "ARCHIVE";
  position: absolute;
  right: max(28px, calc((100vw - 1120px) / 2));
  bottom: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(36, 53, 47, 0.14);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.gl-hero .container {
  position: relative;
  z-index: 1;
}

.gl-hero__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(212, 120, 155, 0.28);
  color: var(--sakura-dark);
  box-shadow: 0 10px 26px rgba(36, 53, 47, 0.08);
}

.gl-hero__title {
  max-width: 720px;
  margin-top: 14px;
  color: var(--ink, #24352f);
  font-size: clamp(2.2rem, 6vw, 4.25rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.gl-hero__lead {
  max-width: 650px;
  color: rgba(36, 53, 47, 0.78);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.gl-main {
  position: relative;
  padding: 64px 0 104px;
  background:
    radial-gradient(circle at 8% 0%, rgba(248, 180, 200, 0.12), transparent 22rem),
    radial-gradient(circle at 92% 12%, rgba(91, 163, 97, 0.12), transparent 26rem);
}

.gl-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 34px;
  margin-bottom: 26px;
  color: var(--green-dark);
  font-weight: 800;
}

.gl-meta::before {
  content: "";
  flex: 1;
  height: 1px;
  margin-right: 18px;
  background: linear-gradient(90deg, transparent, rgba(77, 154, 105, 0.26));
}

.gl-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.gl-card {
  position: relative;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 42px rgba(36, 53, 47, 0.11);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gl-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--sakura), var(--green), var(--gold));
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  transform: scaleX(0.72);
}

.gl-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 72px rgba(36, 53, 47, 0.18);
}

.gl-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.gl-card__thumb {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 45%),
    #1f2f2a;
}

.gl-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(31, 47, 42, 0.62) 100%);
  opacity: 0.76;
  pointer-events: none;
}

.gl-card__entry-no {
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(232, 245, 233, 0.92));
  color: var(--ink, #24352f);
}

.gl-card__play {
  background: rgba(31, 47, 42, 0.18);
  opacity: 1;
}

.gl-card__play::before {
  width: 54px;
  height: 54px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0 38%, #fff 38% 62%, transparent 62%),
    rgba(255, 255, 255, 0.24);
  clip-path: polygon(34% 24%, 34% 76%, 76% 50%);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition), background var(--transition);
}

.gl-card:hover .gl-card__play::before {
  transform: scale(1.08);
  background:
    linear-gradient(90deg, transparent 0 38%, #fff 38% 62%, transparent 62%),
    rgba(77, 154, 105, 0.72);
}

.gl-card__body {
  gap: 10px;
}

.gl-card__title {
  color: var(--ink, #24352f);
}

.gl-card__creator {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(232, 245, 233, 0.76);
  color: var(--green-dark);
  font-weight: 700;
}

.gl-card__excerpt {
  color: rgba(36, 53, 47, 0.72);
}

.gl-card__footer {
  border-top: 1px solid rgba(36, 53, 47, 0.08);
}

.gl-card__likes {
  color: var(--sakura-dark);
}

.gl-modal__backdrop {
  background:
    radial-gradient(circle at 24% 18%, rgba(248, 180, 200, 0.22), transparent 24rem),
    rgba(31, 47, 42, 0.78);
}

.gl-modal__panel {
  max-width: 960px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.gl-modal__topbar {
  background: rgba(255, 253, 248, 0.9);
}

.gl-modal__player {
  border-radius: 0;
}

.gl-modal__body {
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 163, 97, 0.08), transparent 16rem),
    #fffdf8;
}

.gl-modal__message-wrap,
.gl-modal__details {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(36, 53, 47, 0.08);
  box-shadow: 0 10px 30px rgba(36, 53, 47, 0.08);
}

.gl-like {
  box-shadow: 0 12px 30px rgba(212, 120, 155, 0.2);
}

.gl-footer {
  background:
    radial-gradient(circle at 18% 0%, rgba(248, 180, 200, 0.18), transparent 18rem),
    linear-gradient(135deg, #1f372d, #24352f);
  color: rgba(255, 255, 255, 0.72);
}

.gl-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .gl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .gl-hero {
    padding: 62px 0 50px;
    text-align: center;
  }

  .gl-hero::before {
    inset: 12px;
    border-radius: 20px;
  }

  .gl-hero::after {
    position: static;
    display: inline-flex;
    margin-top: 24px;
  }

  .gl-hero__eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .gl-hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .gl-hero-vote {
    flex-direction: column;
    align-items: stretch;
    margin: 24px auto 0;
    padding: 16px;
    text-align: center;
  }

  .gl-hero-vote__button {
    width: 100%;
  }

  .gl-meta {
    justify-content: center;
    text-align: center;
  }

  .gl-meta::before {
    display: none;
  }

  .gl-grid {
    grid-template-columns: 1fr;
  }

  .gl-card {
    border-radius: 18px;
  }

  .gl-vote {
    margin-top: 42px;
    padding: 22px 16px;
    border-radius: 18px;
  }

  .gl-vote__actions {
    justify-content: stretch;
  }

  .gl-vote__button {
    width: 100%;
  }

  .gl-terms-main {
    padding: 42px 14px 64px;
  }

  .gl-terms {
    padding: 26px 18px;
    border-radius: 18px;
  }

  .gl-terms__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gl-modal__panel {
    border-radius: 0;
  }

  .gl-modal__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .gl-vote-add,
  .gl-like {
    width: 100%;
    justify-content: center;
  }
  .gl-vote-cta {
    bottom: 12px;
    border-radius: 14px;
    padding: 14px;
  }
  .gl-vote-cta__inner { gap: 10px; }
  .gl-vote-cta__btn { flex: 1; }
  .gl-nav__badge { font-size: 0.68rem; min-width: 32px; }
  .gl-toast {
    bottom: 110px;
    width: calc(100% - 32px);
    text-align: center;
  }
}
