/*
Theme Name: J3 Team Theme (Yellow/Red - Parallelogram Style)
Author: User
Version: 5.2
*/

/* --- ベース設定 --- */
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* --- ヘッダー --- */
.site-header {
    background: #FFD700;
    border-bottom: 4px solid #D60000;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-nav ul {
    display: flex;
    gap: 30px;
}

.site-nav a {
    font-weight: bold;
    font-size: 15px;
    color: #333;
}

.site-nav a:hover {
    color: #D60000;
}

.menu-toggle {
    display: none;
}

/* --- メインスライダー --- */
.main-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background: #000;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* ▼▼▼ スライドテキストのデザイン（ここを変更） ▼▼▼ */
.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    background: #FFD700;
    color: #333;
    /* 左側の斜めカットに合わせて、文字が切れないよう左余白を多めに */
    padding: 15px 50px 15px 70px;

    /* 平行四辺形（全体が右に傾くスピード感のある形） */
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);

    /* 影（clip-pathを使うとbox-shadowが消えるため、filterを使用） */
    filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.2));

    /* アニメーション初期位置（左に隠す） */
    opacity: 0;
    transform: translateX(-150px);
}

.slide-content h2 {
    font-size: 36px;
    margin: 0;
    font-weight: 900;
    font-style: italic;
    /* 文字も斜体にしてスピード感アップ */
    letter-spacing: 2px;
}

/* ▼▼▼ 高速アニメーション定義 ▼▼▼ */
@keyframes slideInFast {
    0% {
        opacity: 0;
        transform: translateX(-200px) skewX(-10deg);
        /* 勢いよく入ってくる */
    }

    100% {
        opacity: 1;
        transform: translateX(0) skewX(0deg);
    }
}

/* スライド表示時にアニメーション実行 */
.slide.active .slide-content {
    /* 0.4秒でサッと出る */
    animation: slideInFast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s forwards;
}

/* --- セクション共通見出し --- */
.section-title {
    font-size: 28px;
    margin: 60px 0 30px;
    border-left: 8px solid #FFD700;
    padding-left: 15px;
    color: #333;
    display: flex;
    flex-direction: column;
}

.section-title span {
    font-size: 14px;
    color: #D60000;
    margin-top: 5px;
    font-weight: bold;
}

/* --- NEWS --- */
.news-section {
    margin-bottom: 60px;
}

.news-list {
    border-top: 2px solid #eee;
    margin-bottom: 30px;
}

.news-list li {
    border-bottom: 1px solid #eee;
}

.news-list a {
    display: block;
    padding: 15px 10px;
    display: flex;
    align-items: center;
}

.news-date {
    width: 100px;
    color: #D60000;
    font-weight: bold;
    font-size: 14px;
}

.news-title {
    font-weight: bold;
    flex: 1;
}

.btn-more {
    display: inline-block;
    padding: 12px 50px;
    background: #D60000;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-more:hover {
    background: #b30000;
}

/* --- PLAYERS --- */
.players-section {
    margin-bottom: 80px;
    overflow: hidden;
}

.players-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.players-container {
    display: flex;
    gap: 20px;
    padding: 0 20px 0 10vw;
    width: max-content;
}

.player-card {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s;
    position: relative;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.player-img {
    height: 320px;
    background: #000;
    overflow: hidden;
}

.player-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.player-card:hover .player-img img {
    opacity: 1;
}

.player-info {
    padding: 15px;
    position: relative;
    background: #fff;
    border-top: 4px solid #FFD700;
}

.player-no {
    position: absolute;
    top: -25px;
    right: 15px;
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    text-shadow: 2px 2px 0 #D60000;
    font-style: italic;
    line-height: 1;
}

.player-position {
    display: inline-block;
    background: #000;
    color: #FFD700;
    font-size: 12px;
    padding: 2px 8px;
    font-weight: bold;
    margin-bottom: 5px;
}

.player-name {
    margin: 5px 0 0;
    font-size: 18px;
    font-weight: bold;
}

.player-name-en {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    letter-spacing: 1px;
}

/* --- PHOTO GALLERY --- */
.gallery-section {
    margin-bottom: 80px;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- SEAT VIEW --- */
.seat-view-section {
    background-color: #fff8dc;
    padding: 60px 0 80px;
}

.seat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.seat-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #FFD700;
}

.seat-img {
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 15px;
}

.seat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.seat-card:hover .seat-img img {
    transform: scale(1.05);
}

.seat-card h4 {
    margin: 0 0 10px;
    color: #D60000;
    font-weight: bold;
}

.seat-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* --- 記事詳細 (Single) --- */
.page-header-area {
    background: #000;
    color: #fff;
    padding: 60px 0 40px;
    margin-bottom: 50px;
    text-align: center;
    border-bottom: 5px solid #FFD700;
}

.page-label {
    display: inline-block;
    background: #D60000;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 10px;
    margin-bottom: 10px;
}

.page-title {
    font-size: 32px;
    margin: 0 0 15px;
    line-height: 1.4;
}

.page-meta {
    font-size: 14px;
    color: #ccc;
}

.single-main {
    max-width: 800px;
    margin: 0 auto 80px;
}

.single-thumbnail {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.single-thumbnail img {
    width: 100%;
    height: auto;
}

.entry-body {
    font-size: 16px;
    line-height: 1.8;
}

.entry-body h2 {
    font-size: 24px;
    border-left: 6px solid #D60000;
    padding-left: 15px;
    margin: 40px 0 20px;
    background: #f9f9f9;
    padding: 10px 15px;
}

.post-footer {
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.btn-back {
    display: inline-block;
    border: 2px solid #333;
    color: #333;
    padding: 10px 40px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #333;
    color: #fff;
}

/* --- スマホ対応 (Responsive) --- */
@media screen and (max-width: 768px) {

    /* メニュー */
    .menu-toggle {
        display: block;
        width: 40px;
        height: 30px;
        position: relative;
        background: transparent;
        border: none;
        z-index: 2000;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 4px;
        background: #D60000;
        position: absolute;
        border-radius: 2px;
        transition: all 0.3s;
    }

    .menu-toggle span:nth-child(1) {
        top: 0;
    }

    .menu-toggle span:nth-child(2) {
        top: 13px;
    }

    .menu-toggle span:nth-child(3) {
        bottom: 0;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg);
        top: 13px;
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 13px;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #FFD700;
        padding-top: 80px;
        transition: right 0.4s;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    }

    .site-nav.open {
        right: 0;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav li {
        border-bottom: 1px solid rgba(214, 0, 0, 0.2);
    }

    .site-nav a {
        display: block;
        padding: 20px;
        font-size: 18px;
    }

    /* その他調整 */
    .main-slider {
        height: 50vh;
        min-height: 250px;
    }

    /* スマホでのテキスト調整（パディング調整含む） */
    .slide-content {
        bottom: 30px;
        left: 20px;
        padding: 10px 30px 10px 40px;
        /* スマホ用に余白を少し小さく */
        clip-path: polygon(8% 0, 100% 0, 92% 100%, 0% 100%);
        /* 角度を少し緩める */
    }

    .slide-content h2 {
        font-size: 22px;
    }

    .section-title {
        font-size: 22px;
        margin: 40px 0 20px;
    }

    .news-date {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }

    .news-list a {
        flex-direction: column;
        align-items: flex-start;
    }

    .players-container {
        padding: 0 20px;
    }

    .player-card {
        width: 180px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

    .page-title {
        font-size: 24px;
    }

    .entry-body {
        font-size: 15px;
    }
}