/*
Theme Name: DLer Custom Theme
Theme URI: https://dler.jp
Author: DLer inc.
Author URI: https://dler.jp
Description: エンタメ業界向けビジネスパートナー DLer のカスタムWordPressテーマ。ACF対応、モバイルレスポンシブ。
Version: 6.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dler
*/

/* ===================================================
   Works Page — dedicated page styles (v3.8.0)
   =================================================== */
.works-page .page-header { padding: 60px 0 48px; text-align: center; }
.works-page .page-header h1 { font-size: 32px; font-weight: 900; letter-spacing: .02em; color: var(--c-dark); }
.works-page .page-header p { font-size: 15px; color: var(--c-sub); margin-top: 8px; }
.works-page .sec-works { padding-top: 40px; }
.works-page .works-grid { padding: 0 0 60px; }
.wk-card[data-work-index] { cursor: pointer; }
.works-page .wk-card.size-large { grid-column: span 2; }

/* Category tag colors */
.wk-tag--cd-jacket { background: #e3f2fd; color: #1565c0; }
.wk-tag--logo { background: #f3e5f5; color: #6a1b9a; }
.wk-tag--key-visual { background: #e0f2f1; color: #00695c; }
.wk-tag--goods { background: #fce4ec; color: #c62828; }
.wk-tag--original { background: #fff8e1; color: #e65100; }

/* ===================================================
   Works Modal
   =================================================== */
.works-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(214,75,122,.3) transparent;
}
.works-modal::-webkit-scrollbar { width: 6px; }
.works-modal::-webkit-scrollbar-track { background: transparent; }
.works-modal::-webkit-scrollbar-thumb { background: rgba(214,75,122,.3); border-radius: 3px; }
.works-modal.active { opacity: 1; visibility: visible; }

.works-modal-content {
  background: #fff; border-radius: var(--r-lg);
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
}
.works-modal-content .modal-image { width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
.works-modal-content .modal-image img { width: 100%; height: auto; display: block; max-height: 300px; object-fit: contain; background: #f9f9f9; }
.works-modal-content .modal-image .placeholder-img { height: 300px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; color: #999; }

.works-modal-content .modal-body { padding: 32px; }
.works-modal-content .modal-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.works-modal-content .modal-meta .wk-tag { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 4px; font-weight: 600; }
.works-modal-content .modal-meta .meta-text { font-size: 13px; color: var(--c-sub); }
.works-modal-content .modal-body h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; line-height: 1.5; }
.works-modal-content .modal-body .modal-description { font-size: 15px; color: var(--c-sub); line-height: 1.8; margin-bottom: 24px; }

.works-modal-content .modal-section-label { font-size: 13px; font-weight: 700; color: var(--c-sub); margin-bottom: 8px; letter-spacing: .02em; }

.works-modal-content .creator-comment {
  background: #fafafa; border-left: 4px solid var(--c-pink);
  padding: 20px 24px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 16px;
}
.works-modal-content .creator-comment .comment-label { font-size: 12px; font-weight: 700; color: var(--c-pink); margin-bottom: 8px; }
.works-modal-content .creator-comment p { font-size: 14px; line-height: 1.8; color: var(--c-text); }

.works-modal-content .event-info {
  padding: 0;
}
.works-modal-content .event-info .event-label { font-size: 12px; font-weight: 700; color: var(--c-sub); margin-bottom: 8px; }
.works-modal-content .event-info p, .works-modal-content .event-info div { font-size: 14px; line-height: 1.8; color: var(--c-text); }
.works-modal-content .event-info a { color: #1565c0; text-decoration: underline; }
.works-modal-content .event-info a:hover { color: var(--c-pink); }

.works-modal .close-modal {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,.5); border: none; border-radius: 50%;
  color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s; z-index: 1;
}
.works-modal .close-modal:hover { background: rgba(0,0,0,.8); }

@media (max-width: 768px) {
  .works-modal { padding: 0; align-items: stretch; }
  .works-modal-content { max-width: 100%; max-height: 100%; border-radius: 0; min-height: 100vh; }
  .works-modal-content .modal-image { border-radius: 0; }
  .works-modal-content .modal-body { padding: 24px; }
  .works-modal-content .modal-body h2 { font-size: 18px; }
  .works-page .page-header h1 { font-size: 24px; }
  .works-page .wk-card.size-large { grid-column: span 1; }
}
