/*
Theme Name: CYGNUS NEXT Theme
Theme URI: https://example.com/
Author: Cascade
Author URI: https://example.com/
Description: A custom theme for CYGNUS NEXT.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme
Text Domain: cygnus-next
*/

/* Basic Styles */
html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', 'Helvetica Neue', 'Arial', 'Hiragino Sans', 'Meiryo', sans-serif;
    overflow-x: hidden; /* JS起因のレイアウト崩れによる横スクロールを強制的に禁止 */
    color: #333;
    background-color: #fff;
}

/* Sponsor Carousel */
.sponsor-carousel {
    background-color: #fff;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
}

.sponsor-track {
    display: inline-block;
    animation: scroll-sponsor 40s linear infinite;
}

.sponsor-slide {
    display: inline-block;
    margin: 0 20px;
    height: 50px; /* 高さを指定 */
}

.sponsor-slide img {
    height: 100%;
    width: auto;
    vertical-align: middle;
}

@keyframes scroll-sponsor {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover{
    transition: 0.3s;
    opacity: 0.7;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: fixed; /* スクロールしても追従するように変更 */
    top: 0;
    left: 0;
    right: 0; /* width: 100% の代わりに左右の端を固定 */
    box-sizing: border-box;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6); /* 背景を半透明の黒に */
    color: #fff;
    padding: 10px 0;
    transition: top 0.3s;
}

/* WordPress Admin Bar support */
.admin-bar .site-header {
    top: 32px;
}

/* Push down header on front page to show sponsor bar (PC) */
@media screen and (min-width: 783px) {
    /* Initial position */
    body.home .site-header {
        top: 51px;
    }
    body.home.admin-bar .site-header {
        top: calc(51px + 32px);
    }
    /* Scrolled position */
    body.home.scrolled .site-header {
        top: 0;
    }
    body.home.scrolled.admin-bar .site-header {
        top: 32px;
    }
}


@media screen and (max-width: 782px) {
    /* Adjust for taller admin bar on mobile */
    .admin-bar .site-header {
        top: 46px;
    }

    /* Initial header position on mobile front page */
    body.home .site-header {
        top: 51px;
    }
    body.home.admin-bar .site-header {
        top: 97px; /* 51px + 46px */
    }

    /* Scrolled header position on mobile front page */
    body.home.scrolled .site-header {
        top: 0 !important; /* !importantで強制的に上書き */
    }
    body.home.scrolled.admin-bar .site-header {
        top: 46px;
    }
}

/* New Header Layout */
/* Hamburger Menu Default (Hidden on PC) */
.hamburger-menu {
    display: none;
}

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

.logo {
    margin-right: 20px;
}

.header-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 700px;
}

.header-top-row, .header-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.header-top-row {
    max-width: 700px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-right: 20px;
}

.header-sponsor-link a {
    border: 1px solid #fff;
    padding: 5px 15px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.header-sponsor-link a:hover {
    background-color: #fff;
    color: #333;
}

.site-header .logo img {
    max-height: 80px;
}

.site-header .site-title h1 {
    margin: 0;
}

.site-header .site-title img {
    max-height: 40px;
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-navigation li {
    margin: 0 25px;
}

.main-navigation li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.main-navigation li a:hover {
    color: #f07d21; /* Accent color */
}

.header-social img {
    max-height: 30px;
}

/* Main Content */

/* Footer */
.site-footer {
    background-color: #1a1a1a; /* Fallback color */
    background-image: url('images/bg_footer.png');
    background-size: cover;
    background-position: bottom;
    color: #fff;
    padding: 7% 0 5px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 上揃えに変更 */
    margin-bottom: 20px;
}

.footer-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 50px;
}

.footer-center-top {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-right {
    display: flex;
    align-items: center;
}

.site-footer .logo img {
    max-height: 80px;
}

.site-footer .site-title h2 {
    margin: 0;
}

.site-footer .site-title img {
    max-height: 40px;
    margin-right: 15px;
}

.footer-social img {
    max-height: 30px;
}

.footer-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.footer-navigation li {
    margin: 0 25px;
}
.footer-navigation li a:hover {
    color: #f07d21; /* Accent color */
}
.site-footer .jsb-logo img {
    max-height: 60px;
}

.copyright {
    text-align: center;
    font-size: 14px;
    padding-top: 30px;
}

/* Slider */
.main-visual-slider {
    position: relative; /* z-indexを効かせるため */
    width: 100%;
    height: 100vh; /* 画面全体の高さに */
    z-index: 1;
}

.main-visual-slider .swiper-slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.main-visual-catchphrase {
    position: absolute;
    top: 55%; /* 中央よりやや下 */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.main-visual-catchphrase h1 {
    font-size: 64px;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #ccc;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-align: center;
}

.scroll-down-indicator::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 50px;
    background: #ccc;
    animation: scroll-animation 2s infinite;
}

@keyframes scroll-animation {
    0% {
        height: 0;
        top: 100%;
    }
    50% {
        height: 50px;
        top: 100%;
    }
    100% {
        height: 0;
        top: 150%;
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #ccc;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-align: center;
    animation: scroll-animation 2.5s infinite;
}

.scroll-down::after {
    content: '';
    position: absolute;
    top: 120%; /* テキストの下に配置 */
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 50px;
    background: #ccc;
}

@keyframes scroll-animation {
    0% {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
}

/* Information Section */
.information-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    margin: 0;
}

.section-title p {
    font-size: 16px;
    margin-top: 0;
}

.information-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 800px;
}

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

.information-list a {
    display: flex;
    padding: 20px 0;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.information-list a:hover {
    background-color: #f9f9f9;
}

.information-list .post-date {
    margin-right: 30px;
    color: #777;
    min-width: 100px;
}

.view-more-button {
    text-align: center;
    margin: 8px 0;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

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

/* Match Details Section */
.match-details-section {
    padding: 80px 0;
    background-image: url('images/bg_match.jpg');
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0; /* Fallback */
    background-blend-mode: multiply;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555;
    line-height: 1.8;
}

.match-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.match-item {
    border: 1px solid #ddd;
    background-color: #fff;
}

.match-item-header {
    background-color: #002d5d;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.match-item-content {
    padding: 20px;
    text-align: center;
    background-image: url('images/logo-bg.png'); /* ロゴの透かし画像 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.team-info span {
    font-weight: bold;
    font-size: 18px;
}

.vs {
    margin: 10px 0;
    font-size: 14px;
}

.score {
    font-size: 36px;
    font-weight: bold;
    margin: 15px 0;
}

.score span:first-child {
    color: #c00;
}

.match-result {
    font-size: 24px;
    font-weight: bold;
}

.match-result.win { color: #c00; }
.match-result.lose { color: #005a9e; }

.match-schedule {
    font-size: 24px;
    font-weight: bold;
    padding: 30px 0;
}

.match-item-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.match-item-footer .post-date {
    margin-right: 10px;
}

.match-item-footer .match-status-label {
    font-weight: bold;
    color: #c00;
    margin-right: 10px;
}

.match-item-footer p {
    margin: 5px 0 0;
    font-weight: bold;
}


/* About Us Section */
.about-us-section {
    background-color: #002d5d;
    color: #fff;
    padding: 50px 0; /* 上下の余白を追加 */
}

.about-us-container {
    display: grid;
    /* 左右の余白(5%)、画像(20%)、中央コンテンツ、画像、左右の余白 に列を分割 */
    grid-template-columns: 5% 20% 1fr 20% 5%;
    align-items: center;
    gap: 30px; /* 各列の間のスペース */
}

.about-us-image.left {
    grid-column: 2 / 3;
}

.about-us-content {
    grid-column: 3 / 4;
}

.about-us-image.right {
    grid-column: 4 / 5;
}

.about-us-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-us-content {
    padding: 30px;
    text-align: center;
}

.about-us-content .section-title h2 {
    color: #fff;
}

.about-us-content .section-title p {
    color: #eee;
}

.about-us-content h3 {
    font-size: 24px;
    margin: 30px 0;
}

.about-us-content p {
    line-height: 2;
    margin-bottom: 40px;
}

.btn.btn-light {
    background-color: #fff;
    color: #002d5d;
    border-color: #ccc;
    position: relative;
    padding-right: 40px; /* > のスペースを確保 */
}

.btn.btn-light::after {
    content: '>';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.btn.btn-light:hover {
    background-color: transparent;
    color: #fff;
}

/* Override for light background sections */
.information-section .btn.btn-light,
.match-details-section .btn.btn-light {
    background-color: #fff;
    color: #333;
    border-color: #ccc;
}

.information-section .btn.btn-light:hover,
.match-details-section .btn.btn-light:hover {
    background-color: #333;
    border-color: #333;
    color: #fff;
}


/* Team Section */
.team-section {
    background-color: #f07d21; /* オレンジ色 */
    color: #fff;
    padding: 80px 0;
}

.team-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.team-image img {
    width: 100%;
    height: auto;
    display: block;
}

.team-content .section-title {
    text-align: center;
}

.team-content .section-title h2 {
    color: #fff;
}

.team-content .section-title p {
    color: #eee;
}

.team-content h3 {
    font-size: 24px;
    margin: 30px 0;
    text-align: center;
}

.team-content p {
    line-height: 2;
    margin-bottom: 40px;
    text-align: center;
}

.team-content .view-more-button {
    text-align: center;
}


/* CTA Section */
.cta-section {
    background-color: #fff;
    padding: 80px 20px;
}

.cta-banner {
    background-image: url('images/bg_cta.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.cta-content {
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    align-items: center; /* 中央揃えに変更 */
    color: #fff;
    text-align: center;
}

.cta-text .section-title {
    text-align: center;
    margin-bottom: 30px; /* 下の要素との間隔 */
}

.cta-text .section-title h2 {
    color: #fff;
}

.cta-text .section-title p {
    color: #eee;
}

.cta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.cta-bottom p {
    margin: 0;
    text-align: left;
}

.cta-button .btn {
    min-width: 200px; /* 少し幅を調整 */
    text-align: center;
    white-space: nowrap; /* ボタンテキストが改行しないように */
}


/* Fade-in Animation */
.fade-in-target {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-target.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: translate(-50%, -25%) rotate(45deg);
}

.back-to-top-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}


/* Page Header */
.page-header {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    padding-top: 80px; /* ヘッダーの高さ分の余白 */
    box-sizing: border-box; /* paddingを含めて高さを計算 */
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.page-header-inner {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 40px;
    margin: 0;
}

.page-subtitle {
    font-size: 18px;
    margin: 10px 0 0;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.breadcrumbs a {
    color: #0073aa;
}

.breadcrumbs span[property="itemListElement"]:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #666;
}

.page-content {
    padding: 80px 20px;
}


/* About Us Page Content */
.section-title-centered {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-centered h2 {
    font-size: 32px;
    margin: 0;
}

.section-title-centered p {
    font-size: 16px;
    color: #666;
    margin: 5px 0 0;
}

.about-us-flex-container {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.about-us-text {
    flex: 1;
    line-height: 2;
}
.about-us-table {
    flex: 1;
}

.about-us-table table,
.about-us-table tbody,
.about-us-table tr,
.about-us-table th,
.about-us-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
}
.about-us-table td {
    border-top: 1px solid #333!important;
}
.about-us-table table {
    border: none;
}

.about-us-table tr {
    margin-bottom: 20px;
}

.about-us-table tr:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.about-us-table th {
    background-color: #002d5d; /* Dark blue color */
    color: #fff;
    padding: 10px;
    text-align: center;
    border: none;
    margin: 0 auto;
    font-weight: bold;
    width: 200px;
    max-width: 100%;
}

.about-us-table td {
    padding: 10px 0;
    text-align: center;
    border: none;
}

.greeting-section p {
    line-height: 2;
}

.greeting-section .representative-name {
    text-align: right;
    margin-top: 30px;
}


/* Name Origin Section */
.name-origin-section {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    margin-bottom: 50px;
    position: relative;
    background-color: #fff;
    border: 1px solid #005a9e;
    z-index: 1;
}

.name-origin-section::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    border: 1px solid #005a9e;
    z-index: -1;
}

.name-origin-logo {
    flex-shrink: 0;
}

.name-origin-logo img {
    max-width: 150px;
}

.name-origin-text h4, .activity-text h4 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
}

.name-origin-text p, .activity-text p {
    line-height: 1.8;
    margin: 0;
}

/* Activity Section */
.activity-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}
/* History / Timeline Section */
.history-section {
    margin-top: 80px;
}

.history-section h4 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 50px;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100px; /* 年の右側に線を引く */
    width: 2px;
    background-color: #ccc;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-year {
    flex-shrink: 0;
    width: 80px;
    font-weight: bold;
    text-align: right;
    margin-right: 40px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 100px; /* 縦線と同じ位置 */
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: #f07d21; /* Accent color */
    border-radius: 50%;
}

.timeline-content {
    padding-left: 20px;
}

.timeline-content p {
    margin: 0 0 10px;
    line-height: 1.8;
}


/* Team Page Content */
.team-main-photo {
    margin-bottom: 50px;
}

.team-main-photo img {
    max-width: 100%;
    height: auto;
}

.players-section .section-subtitle {
    font-size: 24px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.member-card {
    text-align: left;
}

.member-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.2;
    object-fit: cover;
    background-color: #f0f0f0;
}

.member-info h4 {
    font-size: 18px;
    margin: 15px 0 10px;
}

.member-info p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
    line-height: 1.6;
}
.team-photo img{
    width: 100%;
}

/* Staff Section */
.staff-section {
    margin-top: 80px;
}
.staff-section .section-subtitle {
    font-size: 24px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

.staff-info h4 {
    font-size: 16px;
    font-weight: normal;
    color: #333;
    margin-bottom: 5px;
}

.staff-info .staff-name {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}
/* contact-section */
.contact-section {
    margin-top: 700px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Sponsor Page Content */
.sponsor-page-content .section-title-centered {
    margin-bottom: 60px;
}

.sponsor-flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.sponsor-text {
    flex: 1.5;
    line-height: 2.2;
}

.sponsor-image {
    flex: 1;
}

.sponsor-image img {
    max-width: 100%;
    height: auto;
}

.sponsor-contact-prompt {
    text-align: center;
    font-weight: bold;
    padding: 0 0 5px 0; /* 下線の位置を調整 */
    border-bottom: 4px solid #f07d21;
    display: inline-block; /* 要素の幅をテキストに合わせる */
    
}

/* Fee Section */
.fee-section {
    background-color: #c9d2dc;
    padding: 50px 20px;
    margin-top: 60px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    text-align: center;
}

.fee-section h3 {
    font-size: 24px;
    margin-bottom: 40px;
}

.fee-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: inline-block;
    text-align: left;
}

.fee-list li {
    margin-bottom: 25px;
}

.fee-list .fee-category {
    color: #f07d21;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.fee-list p {
    margin: 5px 0;
}

.fee-note {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* Request Form Banner */
.request-form-banner {
    display: block;
    background-image: url('images/bg_sps_form.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    position: relative;
    max-width: 700px;
    margin: 50px auto 0; /* 上マージンのみ、左右中央揃え */
}

.request-form-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.request-form-banner .banner-content {
    position: relative;
    z-index: 1;
}

.request-form-banner h3 {
    font-size: 32px;
    margin: 0 0 10px;
}

.request-form-banner p {
    font-size: 18px;
    margin: 0 0 30px;
}

.request-form-banner .banner-button {
    display: inline-block;
    background-color: #fff;
    color: #333;
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.request-form-banner:hover .banner-button {
    background-color: #f07d21;
    color: #fff;
}


/* Official Sponsor Section */
.official-sponsor-section {
    padding: 80px 0;
}

.section-title-centered-h2 {
    text-align: center;
    font-size: 32px;
    margin: 0;
    color: #002d5d;
}

.section-title-centered-p {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin: 5px 0 40px;
}

.sponsor-logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: center;
}

.sponsor-logo-item {
    background-color: #fff;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    border: 1px solid #333;
}

.sponsor-logo-item img {
    max-width: 100%;
    height: auto;
}

.sponsor-logo-item:hover img {
    filter: grayscale(0%);
}



/* Match Grid Layout */
.match-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.match-grid-item a {
    display: block;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.match-grid-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.match-grid-thumbnail {
    width: 100%;
    background-color: #f5f5f5; /* 画像がない場合の背景色 */
}

.match-grid-thumbnail img {
    width: 100%;
    height: auto;
    display: block; /* 画像下の余白を消す */
    object-fit: contain;
}
.match-grid-content {
    padding: 20px;
}

.match-grid-content .post-meta {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.match-grid-content .post-category {
    font-weight: bold;
}

.match-grid-content .category-match {
    color: #E53935; /* 赤色 */
}

.match-grid-content .category-schedule {
    color: #1E88E5; /* 青色 */
}
.match-grid-content .post-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
}


/* Information Page Grid Layout */
.page-container {
    padding-top: 60px;
    padding-bottom: 60px;
}

.information-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.info-grid-item a {
    display: block;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.info-grid-item a:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.info-grid-thumbnail {
    width: 100%;
    padding-top: 100%; /* Aspect ratio 1:1 */
    position: relative;
    background-color: #f5f5f5;
}

.info-grid-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-grid-content {
    padding: 15px;
}

.info-grid-content .post-date {
    font-size: 13px;
    color: #888;
    margin-right: 10px;
}

.info-grid-content .post-category {
    font-size: 13px;
    color: #888;
    background-color: #eee;
    padding: 2px 8px;
    border-radius: 4px;
}

.info-grid-content .post-title {
    font-size: 15px;
    font-weight: bold;
    margin: 10px 0 0 0;
    line-height: 1.5;
}

/* Pagination */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #002c5c;
    color: #fff;
    border-color: #002c5c;
}


/* Recent Posts Section */
.recent-posts-section {
    background-color: #002c5c;
    color: #fff;
    padding: 60px 0;
    margin-top: 60px;
}

.recent-posts-section .section-title-en {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #fff;
    text-align: left;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.recent-posts-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.recent-posts-list a:hover {
    background-color: rgba(255,255,255,0.1);
}

.recent-posts-list .arrow {
    font-weight: bold;
}


/* Footer Widgets Section */
.footer-widgets-section {
    background-color: #002b5b;
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 70px;
}

.footer-widget-area .widget-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

.footer-widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area ul li {
    margin-bottom: 10px;
}

.footer-widget-area ul li a {
    text-decoration: none;
    color: #fff;
}

.footer-widget-area ul li a:hover {
    color: #f07d21;
}

.footer-widget-area p {
    color: #555;
    line-height: 1.7;
}


/* Single Post Layout */
.single-post-content {
    max-width: 800px;
    margin: 0 auto 60px;
}

.single-post-content .entry-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.single-post-content .entry-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.single-post-content .entry-title {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
}

.single-post-content .entry-content {
    line-height: 1.8;
}

.single-post-content .entry-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #002c5c;
}

.single-post-content .entry-content h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 5px solid #002c5c;
    padding-left: 10px;
}

.single-post-content .entry-content p {
    margin-bottom: 1.5em;
}

.single-post-content .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    display: block;
}

/* Post Navigation */
.post-navigation {
    margin-top: 50px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
    background-color: #002c5c;
    color: #fff;
}

.post-navigation .nav-back-to-list a {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.post-navigation .nav-back-to-list a:hover {
    background-color: #f5f5f5;
}


/* Contact Form 7 Styles */
.wpcf7-form {
    max-width: 800px;
    margin: 0 auto;
}

.wpcf7-form p {
    margin-bottom: 25px;
}

.wpcf7-form label {
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

.wpcf7-form .required-badge {
    background-color: #c93a3a;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: normal;
    vertical-align: middle;
}

.wpcf7-form-control:not([type="submit"]) {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.wpcf7-form-control:not([type="submit"]):focus {
    border-color: #002c5c;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 44, 92, 0.2);
}

.wpcf7-textarea {
    height: 200px;
    resize: vertical;
}

.wpcf7-submit {
    display: block;
    width: 250px;
    margin: 40px auto 0;
    padding: 15px 20px;
    background-color: #002c5c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wpcf7-submit:hover {
    background-color: #004a99;
}
/* Responsive */
@media (min-width: 993px) {
    .sp_disp{
        display: none;
    }
    .pc_disp{
        display: block;
    }
    .mobile-nav{
        display: none;
    }
}
@media (max-width: 992px) {
    .about-us-flex-container {
        flex-direction: column;
    }

    .name-origin-section,
    .activity-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }



    .container {
        width: auto;
        max-width: none;
        padding: 0 20px; /* スマホ表示用の左右の余白 */
    }

    /* Header for Mobile */
    .header-inner {
        position: relative; /* Set context for absolute positioning */
        display: flex;
        justify-content: space-between; /* Push logo and menu to edges */
        align-items: center;
    }

    .site-header .header-social,
    .site-header .main-navigation {
        display: none; /* Hide PC nav and social links */
    }
    .sp_disp{
        display: block;
    }
    .pc_disp{
        display: none;
    }
    .hamburger-menu {
        display: block; /* Show hamburger menu */
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger-menu-line {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #ffffff;
        margin: 6px 0;
        transition: all 0.3s;
    }

    .site-header .logo img {
        max-height: 60px;
    }

    .site-header .logo,
    .hamburger-menu {
        flex: 0 0 40px; /* Adjust width to match hamburger icon */
    }
    .logo {
        margin-left: 10px;
    }
    .site-header .site-title {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        display: block;
    }

    .site-header .site-title img {
        max-height: 25px; /* サイズ調整 */
    }
    .site-header .container{
        padding: 0;
    }
    /* Main Visual for Mobile */
    .main-visual-slider .swiper-slide img {
        display: none; /* Hide PC images on mobile */
    }

    .main-visual-slider .swiper-slide {
        background-size: cover;
        background-position: center;
    }

    .main-visual-slider .swiper-slide:nth-child(1) {
        background-image: url('images/slide01_sp.jpg');
    }

    .main-visual-slider .swiper-slide:nth-child(2) {
/*         background-image: url('images/slide02_sp.jpg'); */
        background-image: url('https://cygnus-next.com/wp-content/uploads/2026/01/sp-slider-2.png');
    }

    /* 余白の原因となっていたpaddingを削除 */

    .main-visual-catchphrase h1 {
        font-size: 48px;
        white-space: nowrap; /* テキストが途中で改行されるのを防ぐ */
    }

    /* General Grid Layouts for Mobile */
    .information-grid,
    .match-grid,
    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }

    /* About Us Section for Mobile */
    .about-us-container {
        display: flex;
        flex-direction: column;
    }

    /* Hamburger Menu for Mobile */
    .hamburger-menu {
        display: block;
        z-index: 1001; /* メニューより手前に表示 */
    }

    .hamburger-menu.is-active .hamburger-menu-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.is-active .hamburger-menu-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.is-active .hamburger-menu-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Navigation Panel */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #000;
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
        display: none; /* Initially hidden */
        flex-direction: column;
        justify-content: space-between;
    }

    .mobile-nav.is-active {
        display: flex;
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
   
    }

    .mobile-nav-header .logo img {
        max-height: 40px;
    }

    .mobile-nav-header .site-title img {
        max-height: 25px;
        margin-left: 15px;
    }

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

    .mobile-navigation li {
        margin: 30px 0;
        text-align: center;
    }

    .mobile-navigation a {
        color: #fff;
        text-decoration: none;
        font-size: 18px;
    }

    .mobile-nav-footer {
        text-align: center;
    }

    .mobile-nav-footer .header-sponsor-link a {
        border: none;
        font-size: 16px;
    }

    .mobile-social {
        margin: 30px 0;
    }

    .mobile-social img {
        max-height: 30px;
    }

    .mobile-logo-bottom img:first-child {
        max-height: 60px;
        display: block;
        margin: 0 auto 10px;
    }

    .mobile-logo-bottom img:last-child {
        max-height: 30px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
    }

    /* Team Section for Mobile */
    .team-container {
        grid-template-columns: 1fr; /* 1カラムに変更 */
        padding: 40px 20px;
    }

    .team-content h3 {
        font-size: 28px;
    }

    /* About Us Section for Mobile */
    .about-us-container {
        padding: 0;
    }

    .about-us-content {
        padding: 40px 20px;
    }

    .about-us-content h3 {
        font-size: 21px;
    }

    /* CTA/Contact Section for Mobile */
    .cta-section {
        padding: 0; /* 上下の余白を削除 */
    }

    .cta-banner {
        border-radius: 0; /* 角丸をなくす */
    }

    .cta-content {
        padding: 60px 20px; /* 上下は維持し、左右の余白を調整 */
    }

    .cta-bottom {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        margin-top: 20px;
    }

    /* Team Page for Mobile */
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Sponsor Page for Mobile */
    .sponsor-flex-container {
        flex-direction: column;
    }

    .sponsor-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mobile Menu Open State */
    .mobile-menu-open .site-header .main-navigation {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #000;
        z-index: 1000;
        padding-top: 100px;
        text-align: center;
        justify-content: center;
        align-items: flex-start
    }

    .mobile-menu-open .main-navigation ul {
        flex-direction: column;
    }

    .mobile-menu-open .main-navigation li {
        margin: 20px 0;
    }

    .mobile-menu-open .main-navigation a {
        font-size: 20px;
        color: #fff;
    }

    /* Hamburger to X Animation */
    .mobile-menu-open .hamburger-menu-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-open .hamburger-menu-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-open .hamburger-menu-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .mobile-menu-open .hamburger-menu-line {
        background-color: #fff;
    }
    .footer-left {
        flex-direction: column;
    }

    .footer-center {
        align-items: center; /* 中央揃えに */
        margin-left: 0;
        margin-top: 30px;
    }

    .footer-navigation ul {
        flex-direction: column;
        text-align: center;
    }

    .footer-navigation li {
        margin: 10px 0;
    }

    .footer-social {
        margin-left: 0;
        margin-top: 15px;
    }

    .footer-right {
        text-align: center;
        margin-top: 30px;
    }
    .site-footer .site-title img{
        max-height: 25px;
    }
}

/* ギャラリー */

