/*
 * SCC Custom Styles
 * 札幌コミュニティクラブ カスタムスタイルシート
 * Version: 1.2
 */

/* =======================================================
 * ベーステーマの上書き
 * ======================================================= */
#main_content {
    float: none !important;
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
}

#sidebar {
    display: none;
}

/* =======================================================
 * カラー変数
 * ======================================================= */
:root {
    --scc-red: #E63946;
    --scc-black: #1D1D1B;
    --scc-gray: #F5F5F5;
}

/* 以下、既存のCSS... */
/* =======================================================
 * ヘッダー調整
 * ======================================================= */
#wrapper {
    border-top: none;
    top: 0;
    margin-top: 0;
}

/* =======================================================
 * フルスクリーンヒーローセクション
 * ======================================================= */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    margin-left: calc(50% - 50vw);
    margin-bottom: 0;
    margin-top: 0;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-message-main {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 30px;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-message-sub {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.9;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* =======================================================
 * セクション共通スタイル
 * ======================================================= */
.scc-section {
    padding: 60px 0;
    clear: both;
}

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

.section-title-en {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--scc-black);
    margin: 0 0 5px;
    letter-spacing: 1px;
}

.section-title-ja {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.section-underline {
    width: 60px;
    height: 4px;
    background: var(--scc-red);
    margin: 12px auto 0;
}

/* =======================================================
 * ミッションセクション
 * ======================================================= */
.mission-section {
    padding: 80px 0 40px;
    background: white;
    position: relative;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--scc-red) 0%, var(--scc-black) 100%);
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
    background: linear-gradient(135deg, rgba(230,57,70,0.03), rgba(29,29,27,0.03));
    border-left: 5px solid var(--scc-red);
    position: relative;
}

.mission-content::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 80px;
    color: var(--scc-red);
    opacity: 0.1;
    font-family: serif;
}

.mission-text {
    font-size: 19px;
    line-height: 2;
    color: var(--scc-black);
    font-weight: 500;
    margin-bottom: 0;
}

.mission-text br {
    display: block;
    margin: 10px 0;
}

/* ミッションポイント */
.mission-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 50px auto 0;
}

.mission-point {
    text-align: center;
    padding: 20px;
}

.mission-icon {
    width: 120px;  /* 60px → 80px に拡大 */
    height: 120px;
    margin: 0 auto 15px;
    background: var(--scc-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;  /* 絵文字の場合 */
}

/* 🔴 アイコン画像用のスタイルを追加 */
.mission-icon img {
    width: 50px;   /* アイコンのサイズ */
    height: 50px;
    object-fit: contain;  /* アスペクト比を維持 */
}

.mission-point h4 {
    font-size: 16px;
    color: var(--scc-black);
    margin: 0 0 10px;
    font-weight: 700;
}

.mission-point p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* =======================================================
 * プログラムカード
 * ======================================================= */
.program-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.program-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.program-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.program-card-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.program-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(29,29,27,0.9), transparent);
    padding: 30px 20px 20px;
}

.program-card-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.program-card-content {
    padding: 25px;
}

.program-card-desc {
    color: #666;
    line-height: 1.7;
    margin: 0 0 20px;
    font-size: 15px;
}

.program-card-link {
    color: var(--scc-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.program-card-link:hover {
    text-decoration: underline;
}

/* =======================================================
 * ニュース＆サイドバーセクション
 * ======================================================= */
.news-sidebar-section {
    background: var(--scc-gray);
}

.news-sidebar-wrapper {
    display: flex;
    gap: 30px;
}

.news-main-content {
    flex: 1;
}

/* 3カラムグリッドニュース */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-grid-item {
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-grid-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.news-grid-item a {
    text-decoration: none;
    display: block;
}

.news-grid-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

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

.news-grid-category {
    display: inline-block;
    padding: 3px 10px;
    background: var(--scc-red);
    color: white;
    font-size: 11px;
    margin-right: 10px;
    font-weight: 600;
}

.news-grid-date {
    color: #999;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
}

.news-grid-title {
    font-size: 15px;
    color: var(--scc-black);
    margin: 10px 0 0;
    line-height: 1.5;
}

/* リスト形式のニュース */
.news-list-section {
    margin-top: 40px;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.news-date {
    flex-shrink: 0;
    width: 100px;
    color: var(--scc-red);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.news-category {
    flex-shrink: 0;
    padding: 4px 12px;
    background: var(--scc-black);
    color: white;
    font-size: 11px;
    margin: 0 15px;
}

.news-title {
    flex: 1;
}

.news-title a {
    color: var(--scc-black);
    text-decoration: none;
    font-size: 15px;
}

.news-title a:hover {
    color: var(--scc-red);
}

/* ニュース スライダー（Mazda風・横長画像4カラム） */
.news-hero-slider-section {
    margin-top: 0;
    padding: 80px 0 0;
    background: white;
}

.news-hero-slider-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.news-hero-slider {
    margin: 0 -15px;
}

.news-hero-card {
    padding: 0 15px;
    outline: none;
}

.news-hero-card a {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-hero-card a:hover {
    transform: translateY(-5px);
}

/* 横長画像（固定高さ180px） */
.news-hero-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #e0e0e0;
    transition: transform 0.3s ease;
}

.news-hero-card a:hover .news-hero-card-image {
    transform: scale(1.02);
}

.news-hero-card-content {
    padding: 15px 0 0;
}

.news-hero-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--scc-black);
    margin: 0 0 10px;
    line-height: 1.5;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* 🔴 カテゴリ＆日付のメタ情報 */
.news-hero-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-hero-card-category {
    display: inline-block;
    padding: 5px 14px;  /* 🔴 上下5px、左右14pxに変更 */
    background: var(--scc-black);  /* 🔴 黒背景 */
    color: #fff;  /* 🔴 白文字を明示 */
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    border-radius: 2px;  /* 🔴 少し角丸にするとおしゃれ */
}
/* Slick設定 */
.news-hero-slider .slick-list {
    overflow: visible;
}

.news-hero-slider .slick-track {
    display: flex;
}

.news-hero-slider .slick-slide {
    height: auto;
}

/* 矢印ボタン */
.news-hero-slider .slick-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    z-index: 100;
}

.news-hero-slider .slick-arrow:before {
    display: none;
}

.news-hero-slider .slick-arrow:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
}

.news-hero-slider .slick-prev {
    left: -70px;
}

.news-hero-slider .slick-prev:after {
    transform: translate(-30%, -50%) rotate(-135deg);
}

.news-hero-slider .slick-next {
    right: -70px;
}

.news-hero-slider .slick-next:after {
    transform: translate(-70%, -50%) rotate(45deg);
}

/* ドット */
.news-hero-slider .slick-dots {
    bottom: -50px;
}

.news-hero-slider .slick-dots li button:before {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
}

.news-hero-slider .slick-dots li.slick-active button:before {
    background: #333;
}
/* リンク */
.news-hero-link {
    color: var(--scc-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-hero-link:hover {
    color: var(--scc-red);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .news-hero-card-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .news-hero-card-image {
        height: 200px;
    }
}
/* ドットナビゲーション */
.news-hero-slider .slick-dots {
    bottom: -50px;
    z-index: 10;
}

.news-hero-slider .slick-dots li {
    width: 8px;
    height: 8px;
    margin: 0 4px;
}

.news-hero-slider .slick-dots li button {
    width: 8px;
    height: 8px;
    padding: 0;
}

.news-hero-slider .slick-dots li button:before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    opacity: 1;
}

.news-hero-slider .slick-dots li.slick-active button:before {
    background: #333;
}

/* リンク */
.news-hero-link {
    color: var(--scc-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-hero-link:hover {
    color: var(--scc-red);
}

.news-hero-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.news-hero-link:hover::after {
    transform: translateX(5px);
}

/* レスポンシブ */
@media (max-width: 1200px) {
    .news-hero-slider-wrapper {
        padding: 0 60px;
    }
    
    .news-hero-slider .slick-prev {
        left: -60px;
    }
    
    .news-hero-slider .slick-next {
        right: -60px;
    }
}

@media (max-width: 1024px) {
    .news-hero-slider-wrapper {
        padding: 0 50px;
    }
    
    .news-hero-slider .slick-prev {
        left: -50px;
    }
    
    .news-hero-slider .slick-next {
        right: -50px;
    }
}

@media (max-width: 768px) {
    .news-hero-slider-section {
        padding: 60px 0 0;
    }
    
    .news-hero-slider-wrapper {
        padding: 0 40px;
    }
    
    .news-hero-card-title {
        font-size: 14px;
        min-height: 42px;
    }
    
    .news-hero-slider .slick-prev {
        left: -40px;
    }
    
    .news-hero-slider .slick-next {
        right: -40px;
    }
    
    .news-hero-slider .slick-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .news-hero-slider-wrapper {
        padding: 0 30px;
    }
    
    .news-hero-slider .slick-prev {
        left: -30px;
    }
    
    .news-hero-slider .slick-next {
        right: -30px;
    }
    
    .news-hero-card-title {
        min-height: 40px;
    }
}
/* =======================================================
 * アクティビティセクション
 * ======================================================= */
.activity-section {
    background: white;
}

/* =======================================================
 * 入会案内セクション
 * ======================================================= */
.join-section {
    background: linear-gradient(135deg, rgba(230,57,70,0.05), rgba(29,29,27,0.05));
}

.join-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.join-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--scc-black);
}

/* =======================================================
 * ボタンスタイル
 * ======================================================= */
.scc-button {
    display: inline-block;
    padding: 16px 45px;
    background: var(--scc-red);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 15px;
    letter-spacing: 1px;
}

.scc-button:hover {
    background: var(--scc-black);
    transform: translateY(-2px);
    border: none;
    color: white;
}

.button-center {
    text-align: center;
    margin-top: 30px;
}

/* =======================================================
 * ページヒーローセクション
 * ======================================================= */
.page-hero {
    width: 100%;
    margin-bottom: 40px;
}

.page-hero-image {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230,57,70,0.7), rgba(29,29,27,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-simple {
    background: linear-gradient(135deg, rgba(230,57,70,0.05), rgba(29,29,27,0.05));
    padding: 60px 0;
    text-align: center;
}

.page-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-hero-simple .page-hero-title {
    color: var(--scc-black);
    text-shadow: none;
}

/* =======================================================
 * パンくずリスト
 * ======================================================= */
.breadcrumb-wrapper {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 40px;
}

#breadcrumb {
    font-size: 13px;
}

#breadcrumb .topic_path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

#breadcrumb .topic_path li {
    margin-right: 5px;
}

#breadcrumb .topic_path li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

#breadcrumb .topic_path li a:hover {
    color: var(--scc-red);
    border: none;
}

#breadcrumb .topic_path li.current-crumb a,
#breadcrumb .topic_path li.current-crumb span {
    color: var(--scc-black);
    font-weight: 600;
}

/* =======================================================
 * ページコンテンツ
 * ======================================================= */
.page-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.page-content {
    line-height: 1.9;
    font-size: 16px;
    color: #333;
}

.page-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--scc-black);
    margin: 60px 0 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--scc-red);
}

.page-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--scc-black);
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid var(--scc-red);
}

.page-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--scc-black);
    margin: 30px 0 15px;
}

.page-content h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--scc-black);
    margin: 25px 0 15px;
}

.page-content p {
    margin: 0 0 20px;
    line-height: 1.9;
}

.page-content ul,
.page-content ol {
    margin: 0 0 20px 0;
    padding-left: 25px;
}

.page-content ul li,
.page-content ol li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 4px;
}

.page-content blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(230,57,70,0.03), rgba(29,29,27,0.03));
    border-left: 5px solid var(--scc-red);
    font-style: italic;
    color: #555;
}

.page-content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
}

.page-content table th,
.page-content table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.page-content table th {
    background: var(--scc-gray);
    font-weight: 700;
    color: var(--scc-black);
}

.page-content table tr:nth-child(even) {
    background: #f9f9f9;
}

/* ページナビゲーション */
.page-navigation {
    margin: 60px 0 0;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

/* アイコンカードグリッド */
.icon-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.icon-card {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.icon-card:hover {
    border-color: var(--scc-red);
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.1);
    transform: translateY(-5px);
}

.icon-card-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--scc-black);
    margin: 0 0 15px;
}

.icon-card-description {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* エラーコンテンツ */
.error-content {
    text-align: center;
    padding: 80px 20px;
}

.error-content h2 {
    font-size: 32px;
    color: var(--scc-black);
    margin: 0 0 20px;
}

.error-content p {
    font-size: 16px;
    color: #666;
    margin: 0 0 40px;
}

/* =======================================================
 * レスポンシブ対応
 * ======================================================= */
@media (max-width: 1024px) {
    /* アイコンカード：タブレットで2カラム */
    .icon-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        min-height: 500px;
        margin-top: 0;
        padding-top: 100px;
        background-attachment: scroll !important;
    }
    
    .hero-message-main {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .hero-message-sub {
        font-size: 16px;
    }
    
    .section-title-en {
        font-size: 28px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .scc-section {
        padding: 40px 0;
    }
    
    .mission-section {
        padding: 50px 0 30px;
    }
    
    .mission-content {
        padding: 40px 20px;
    }
    
    .mission-text {
        font-size: 16px;
    }
    
    .mission-points {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px auto 0;
    }
    
    .program-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .news-sidebar-wrapper {
        flex-direction: column;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-sidebar {
        width: 100%;
        margin-top: 40px;
    }
    
    .sidebar-banner {
        max-width: 328px;
        margin: 0 auto 20px;
    }
    
    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-date,
    .news-category {
        margin: 5px 0;
    }
    
    .news-slider-wrapper {
        padding: 0 20px;
    }
    
    .news-slider .slick-prev {
        left: 0;
    }
    
    .news-slider .slick-next {
        right: 0;
    }
    
    .news-slider .slick-arrow {
        width: 40px;
        height: 40px;
    }
    
    .news-slider .slick-arrow:before {
        font-size: 25px;
    }
    
    .news-slide-content {
        min-height: auto;
    }
    
    /* ページヒーロー - レスポンシブ */
    .page-hero-image {
        height: 300px;
    }
    
    .page-hero-title {
        font-size: 32px;
    }
    
    .page-hero-simple {
        padding: 40px 0;
    }
    
    /* ページコンテンツ - レスポンシブ */
    .page-content-wrapper {
        padding: 0 15px 40px;
        max-width: 100%;
    }
    
    .page-content {
        font-size: 15px;
    }
    
    .page-content h2 {
        font-size: 26px;
        margin: 40px 0 20px;
    }
    
    .page-content h3 {
        font-size: 22px;
        margin: 30px 0 15px;
    }
    
    .page-content h4 {
        font-size: 18px;
    }
    
    .breadcrumb-wrapper {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    #breadcrumb {
        font-size: 12px;
    }
    
    /* アイコンカード：スマホで2カラム維持 */
    .icon-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .icon-card {
        padding: 30px 20px;
    }
    
    /* 2カラムグリッドを1カラムに */
    div[style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"] > div {
        margin-bottom: 30px;
    }
    
    /* CTAボタンを縦並びに */
    div[style*="display: flex"][style*="gap: 20px"] {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    div[style*="display: flex"][style*="gap: 20px"] a {
        width: 100% !important;
        max-width: 300px !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    /* 小画面：アイコンカード1カラム */
    .icon-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}