/* front-page.css - ハイブリッド版（現在のヒーロー + 新機能セクション） */

/* 基本設定とWordPress固有のスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #008b5d;
    --accent-green: #52c7a6;
    --light-green: #85e3c9;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #ffffff;
    color: #333;
}

/* WordPress管理バー対応（ログイン時のみ） */
.admin-bar body {
    padding-top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar body {
        padding-top: 46px;
    }
}

/* ========== 現在のヒーローセクションデザインを維持 ========== */

/* フロントページ専用コンテンツ */
.front-content {
    background: #EDECF1;
    padding: 40px 0;
    margin-bottom: 70px;
}

.front-content .col-left .title-wrap {
    margin-bottom: 30px;
}

.content-inner {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.left-block {
    display: flex;
    gap: 16px;
}

.col-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.title-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.green-bar {
    display: inline-block;
    width: 4px;
    height: 80px;
    background: #008b5d;
    margin-right: 16px;
    flex-shrink: 0;
}

.title-wrap h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    margin: 0;
}

.title-wrap .jp {
    font-size: 20px;
    color: #008b5d;
    display: inline;
    margin-left: 16px;
}

.col-left img,
.col-center img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.col-left img {
    height: 100%;
    object-fit: cover;
    flex: 1;
    min-height: 200px;
}

.col-center {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.col-right {
    flex: 1;
    display: flex;
}

.youtube-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.youtube-placeholder iframe {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    min-height: 400px;
}

/* ========== 新しいモダンデザイン（機能セクション以下） ========== */

/* 機能セクション */
.features-section {
    padding: 120px 0;
    background: white;
    position: relative;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 80px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 120px;
}

/* 機能カード - グラスモーフィズム */
.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 139, 93, 0.05) 0%, rgba(82, 199, 166, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 139, 93, 0.2);
    border-color: var(--accent-green);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.fallback-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-green);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* アクションカード - センター配置&詰める */
.action-cards {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 200px;
}

.action-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    width: 490px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    min-height: 140px;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.action-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding-right: 20px;
}

.action-header {
    display: flex;
    align-items: stretch;
    margin: 0;
}

.action-card .green-bar {
    display: inline-block;
    width: 4px;
    min-height: 90px;
    background: #008b5d;
    margin-right: 8px;
}

.action-titles {
    display: flex;
    flex-direction: column;
}

.action-title {
    line-height: 1.1;
    font-size: 40px;
    font-weight: 700;
    color: #000;
}

.action-subtitle {
    font-size: 12px;
    color: #008b5d;
    font-weight: 500;
    margin-top: 4px;
}

.action-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-top: auto;
}

.action-icon {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.action-icon-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.fallback-icon {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: #f0f9f6;
    border-radius: 8px;
    color: #008b5d;
}

/* レスポンシブデザイン - アクションカード対応 */

@media (max-width: 1024px) {
    .action-cards {
        gap: 16px;
        margin-bottom: 150px;
    }
}

@media (max-width: 900px) {
    .action-cards {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 120px;
    }
    
    .action-card {
        width: 90%;
        max-width: 490px;
    }
}

@media (max-width: 768px) {
    .action-cards {
        gap: 16px;
        margin-bottom: 100px;
    }
    
    .action-card {
        width: 90%;
        max-width: none;
    }
    
    .action-title {
        font-size: 32px;
    }
}

@media (max-width: 588px) {
    .action-cards {
        gap: 16px;
        margin-bottom: 80px;
    }
    
    .action-card {
        width: 100%;
        max-width: none;
    }
    
    .action-title {
        font-size: 24px;
    }
    
    .action-card .green-bar {
        min-height: 60px;
    }
    
    .action-icon-img {
        width: 80px;
        height: 80px;
    }
    
    .fallback-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
}

/* ========== レスポンシブデザイン ========== */

@media (max-width: 900px) {
    .front-content .col-left .title-wrap {
        margin-bottom: 24px;
    }

    .content-inner {
        flex-direction: column;
    }

    .left-block {
        display: flex;
        flex-direction: row;
        gap: 16px;
        margin-bottom: 16px;
    }

    .col-left {
        flex: 1;
    }

    .col-center {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .col-right {
        margin-top: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .action-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .front-content .col-left .title-wrap {
        margin-bottom: 20px;
    }

    .title-wrap h1 {
        font-size: 36px;
    }

    .green-bar {
        height: 60px;
    }

    .youtube-placeholder {
        min-height: 300px;
    }

    .youtube-placeholder iframe {
        min-height: 300px;
    }

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

    .action-cards {
        gap: 24px;
    }
}

@media (max-width: 588px) {
    .front-content .col-left .title-wrap {
        margin-bottom: 16px;
    }

    .content-inner {
        padding: 0 16px;
        flex-direction: column;
    }

    .left-block {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }

    .col-left {
        grid-column: 1;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .col-center {
        grid-column: 2;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .col-left img {
        min-height: 150px;
    }

    .col-center img {
        height: calc(50% - 4px);
        object-fit: cover;
    }

    .col-right {
        margin-top: 16px;
    }

    .youtube-placeholder {
        min-height: 200px;
    }

    .youtube-placeholder iframe {
        min-height: 200px;
    }

    .title-wrap h1 {
        font-size: 28px;
    }

    .green-bar {
        height: 50px;
        margin-right: 12px;
    }

    .features-container {
        padding: 0 16px;
    }

    .action-card {
        padding: 24px;
    }
}

@media (max-width: 400px) {
    .front-content .col-left .title-wrap {
        margin-bottom: 12px;
    }

    .content-inner {
        padding: 0 8px;
    }

    .left-block {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .col-left img {
        min-height: 120px;
    }

    .title-wrap h1 {
        font-size: 24px;
    }

    .green-bar {
        height: 40px;
    }
}