.tcg-shell {background: #fafafa; color: #242424; padding: 48px 20px 90px; line-height: 1.8; }
.tcg-shell * {box-sizing: border-box;}
.tcg-inner {max-width: 1160px; margin: 0 auto;}
.tcg-shell a {color: inherit; text-decoration: none;}
.tcg-breadcrumb {font-size: 12px; color: #777; margin-bottom: 40px; word-break: break-word;}
.tcg-breadcrumb a:hover {text-decoration: underline;}
.tcg-heading {border-bottom: 1px solid #ddd; padding-bottom: 28px; margin-bottom: 36px;}
.tcg-eyebrow {color: #ad532e; letter-spacing: .14em; font-size: 12px; font-weight: 800; margin: 0 0 8px;}
.tcg-heading h1 {font-size: clamp(26px, 4vw, 40px); color: #202020; line-height: 1.35; margin: 0 0 10px; font-weight: 750;}
.tcg-heading p {margin: 7px 0;}
.tcg-date {color: #666;}
/* 大会一覧は大会名と開催日を縦一列に表示。写真・鍵マークは表示しない。 */
.tcg-events {display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;}
.tcg-event {background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden;}
.tcg-event-link {display: block; padding: 18px 24px; transition: background-color .15s;}
.tcg-event-link:hover, .tcg-event-link:focus-visible {background: #f7f5f3;}
.tcg-event h2 {font-size: 20px; margin: 0; line-height: 1.5; font-weight: 700;}
.tcg-event-date {display: block; margin-top: 5px; color: #666; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums;}
.tcg-information {background: #f0eee9; border-left: 4px solid #aa5833; padding: 18px 24px; margin: 0 0 34px;}
.tcg-information p {margin: 4px 0;}
.tcg-information .tcg-small {font-size: 12px; color: #666; margin-top: 10px;}
.tcg-description {margin: 0 0 24px;}
.tcg-photo-grid {display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; align-items: start;}
.tcg-photo {margin: 0; background: #fff; border: 1px solid #e8e8e8; border-radius: 5px; overflow: hidden; min-width: 0;}
.tcg-photo-open {padding: 0; border: 0; width: 100%; background: #eee; position: relative; cursor: zoom-in; display: block; line-height: 0;}
.tcg-photo-open img {display: block; width: 100%; height: 190px; object-fit: contain; user-select: none; -webkit-user-drag: none;}
.tcg-enlarge {position: absolute; right: 6px; bottom: 6px; font-size: 11px; line-height: 1.2; color: #fff; padding: 5px 7px; background: rgba(0,0,0,.6); border-radius: 3px;}
.tcg-photo figcaption {display: flex; align-items: center; justify-content: space-between; gap: 4px; flex-wrap: wrap; padding: 12px;}
.tcg-photo-number {font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;}
.tcg-copy {font-size: 11px; border: 1px solid #ccc; color: #333; background: #fff; padding: 4px 7px; border-radius: 3px; cursor: pointer;}
.tcg-photo-photographer {display: block; flex-basis: 100%; color: #555; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere;}
.tcg-photo figcaption small {display: block; flex-basis: 100%; color: #777; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere;}
.tcg-password {max-width: 570px; background: white; margin: 40px auto 60px; border: 1px solid #dedede; padding: 38px; text-align: center; border-radius: 8px;}
.tcg-password h2 {font-size: 23px; margin: 12px 0;}
.tcg-lock-large {font-size: 32px;}
.tcg-password .post-password-form {text-align: left; margin: 24px 0 0;}
.tcg-password .post-password-form input[type=password] {width: 100%; padding: 12px; border: 1px solid #bbb; margin: 7px 0 10px;}
.tcg-password .post-password-form input[type=submit] {padding: 11px 24px; color: #fff; background: #a7502c; border: 0; cursor: pointer;}
.tcg-back {padding-top: 45px; font-size: 14px;}
.tcg-back a:hover {text-decoration: underline;}
.tcg-empty {background: white; border: 1px solid #e6e6e6; padding: 30px;}
.tcg-lightbox {width: min(96vw, 1160px); max-width: 1160px; max-height: 94vh; max-height: 94dvh; border: none; border-radius: 7px; background: #141414; color: white; padding: 36px 18px 18px; text-align: center;}
.tcg-lightbox::backdrop {background: rgba(0,0,0,.87);}
.tcg-lightbox-stage {position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 120px;}
.tcg-lightbox-stage img {max-width: 100%; max-height: 70vh; max-height: 70dvh; object-fit: contain; display: block; margin: 0 auto; user-select: none; -webkit-user-drag: none;}
.tcg-lightbox-prev, .tcg-lightbox-next {position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 48px; height: 58px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 5px; color: #fff; background: rgba(0,0,0,.68); font-size: 27px; line-height: 1; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; touch-action: manipulation;}
.tcg-lightbox-prev {left: 0;}
.tcg-lightbox-next {right: 0;}
.tcg-lightbox-prev:hover:not(:disabled), .tcg-lightbox-next:hover:not(:disabled) {background: rgba(0,0,0,.93);}
.tcg-lightbox-prev:disabled, .tcg-lightbox-next:disabled {opacity: .25; cursor: default;}
.tcg-lightbox button:focus-visible {outline: 3px solid #fff; outline-offset: 3px;}
.tcg-lightbox-close {position: absolute; z-index: 3; top: 5px; right: 10px; color: white; background: transparent; border: 0; cursor: pointer; font-size: 32px; line-height: 1; padding: 2px 8px;}
.tcg-lightbox-details {padding-top: 8px;}
.tcg-lightbox-number {font-size: 14px; font-weight: 700; margin: 4px 0 0; overflow-wrap: anywhere;}
.tcg-lightbox-count {font-size: 12px; color: #ccc; margin: 1px 0 0; font-variant-numeric: tabular-nums;}
.tcg-lightbox-photographer {font-size: 12px; color: #eee; margin: 5px 0 0; overflow-wrap: anywhere;}
.tcg-lightbox-credit {font-size: 12px; color: #aaa; margin: 1px 0 0; overflow-wrap: anywhere;}
@media(max-width:600px){.tcg-lightbox{width:96vw;padding:42px 6px 12px;}.tcg-lightbox-prev,.tcg-lightbox-next{width:40px;height:48px;font-size:24px;}.tcg-lightbox-stage img{max-height:68dvh;}}
.tcg-pagination {padding-top: 28px;}
@media(max-width:900px){.tcg-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:600px){.tcg-shell{padding:24px 14px 55px;}.tcg-breadcrumb{margin-bottom:20px;}.tcg-event-link{padding:16px 18px;}.tcg-event h2{font-size:18px;}.tcg-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.tcg-photo-open img{height:155px;}.tcg-photo figcaption{padding:8px;}.tcg-photo-number{font-size:10px;}.tcg-copy{font-size:10px;}.tcg-password{padding:24px 18px;}.tcg-information{padding:14px 16px;}}

/* Ver.2: ダウンロード申請フォーム */
.tcg-photo-selected {border-color:#a34e32;box-shadow:0 0 0 2px rgba(163,78,50,.15)}
.tcg-photo-select{display:flex;align-items:center;gap:6px;flex-basis:100%;padding-top:8px;border-top:1px solid #eee;font-size:12px;line-height:1.6;cursor:pointer;color:#333}
.tcg-photo-select input{width:17px;height:17px;accent-color:#a34e32;flex-shrink:0}
.tcg-download-section{margin-top:42px;padding:28px;background:#fff;border:1px solid #e3e0dc;border-radius:8px}
.tcg-download-section h2{font-size:23px;line-height:1.4;margin:0 0 12px}
.tcg-download-help,.tcg-download-privacy{color:#555;font-size:13px}
.tcg-download-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.tcg-download-fields label{font-size:14px;font-weight:700;display:block}
.tcg-download-fields input,.tcg-download-fields textarea{display:block;width:100%;margin-top:6px;min-height:42px;padding:10px;border:1px solid #bbb;border-radius:4px;background:white;color:#222;font-size:16px}
.tcg-download-consent{display:flex;align-items:flex-start;gap:8px;font-size:14px;cursor:pointer}
.tcg-download-consent input{margin-top:6px;width:17px;height:17px;accent-color:#a34e32;flex-shrink:0}
.tcg-request-button{display:block;margin-top:20px;max-width:100%;border:0;background:#a44e2c;color:white;padding:14px 18px;font-size:15px;font-weight:700;border-radius:5px;cursor:pointer}
.tcg-request-button:disabled{background:#bbb;cursor:not-allowed}
.tcg-download-notice{padding:12px 15px;border-radius:4px}
.tcg-download-notice.tcg-success{background:#e7f4e9;border:1px solid #a2caa7}
.tcg-download-notice.tcg-error{background:#fff0ef;border:1px solid #d8aaaa}
.tcg-download-trap{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.tcg-lightbox-select{display:inline-block;margin-top:10px;padding:8px 14px;background:transparent;border:1px solid #ddd;border-radius:3px;color:#fff;cursor:pointer;font-size:13px}
.tcg-lightbox-select[aria-pressed=true]{background:#a44e2c;border-color:#a44e2c}
@media(max-width:600px){.tcg-download-section{padding:18px 14px}.tcg-download-fields{grid-template-columns:1fr;gap:10px}.tcg-request-button{width:100%}}

.tcg-download-fields textarea{resize:vertical;min-height:96px;line-height:1.6;}
