@charset "UTF-8";

/* =================================================================
   Partner Page Styles
   style.css をベースにし、固有のスタイルのみ記述
   ================================================================= */

/* フォントを他ページ(Jost, Noto Sans JP)と統一 */
body {
    font-family: 'Jost', 'Noto Sans JP', sans-serif;
}

/* ★追加: ヘッダーだけはシステムフォントに戻す (Serviceページと統一) */
header {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- ヘッダーのロゴを最初から強制表示する設定 --- */
/* style.cssではスクロールするまで隠れているため、ここで上書き表示 */
.header-logo-link {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* メニュー展開時にロゴを非表示 */
header.menu-open .header-logo-link {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* =================================================================
   Partner Hero Section
   ================================================================= */

/* --- Hero --- */
.partner-hero {
    position: relative;
    padding: 160px 20px 140px; 
    background-color: #ffffff;
    text-align: center;
    overflow: hidden;
    max-width: 1280px;
    margin: 0 auto;
}

/* 背景：六角形ネットワークアニメーション */
.partner-hero::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 700px; height: 700px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(39, 174, 96, 0.1);
    background: transparent;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: rotateHex 60s linear infinite;
}

.partner-hero::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 400px; height: 400px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(39, 174, 96, 0.2);
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: rotateHexInverse 40s linear infinite;
}

@keyframes rotateHex {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes rotateHexInverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* --- コンテンツ（文字）エリア --- */
.partner-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* テック・ラベル */
.tag-badge {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-transform: uppercase;
    position: relative;
    padding-left: 20px;
    background: transparent;
    border: none;
}

.tag-badge::before {
    content: "";
    position: absolute;
    left: 0; top: 50%; transform: translateY(-50%);
    width: 8px; height: 9px;
    background-color: var(--service-green); 
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.partner-hero h1 {
    font-size: 44px; 
    color: #1a1a1a;
    margin-bottom: 30px;
    line-height: 1.3;
    font-weight: 800; 
    letter-spacing: -0.03em;
}

.partner-hero p {
    font-size: 16px;
    color: #666;
    line-height: 2.2;
    font-weight: 500;
}


/* --- Problems Section --- */
.problem-section {
    padding: 80px 20px; background: #ffffff; position: relative; z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
}
.problem-box {
    max-width: 900px; margin: 0 auto;
    border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 50px; position: relative; background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.problem-title {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: #fff; padding: 0 20px; font-weight: bold; color: var(--service-green); font-size: 16px;
    border-left: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0;
    white-space: nowrap;
}
.check-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; list-style: none;
}
.check-list li {
    position: relative; padding-left: 30px; font-size: 15px; font-weight: 500; color: #333;
}
.check-list li::before {
    content: "✔"; position: absolute; left: 0; top: 0; color: var(--service-green); font-weight: bold;
}

/* --- Merits Section --- */
.merit-section { 
    padding: 100px 20px; background: #ffffff; 
    max-width: 1280px;
    margin: 0 auto;
}

.merit-card-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
    max-width: 1100px; margin: 0 auto;
}
.merit-card {
    background: #fff; padding: 40px 30px; 
    border-radius: 0; 
    border: 1px solid #eaeaea; border-top: 4px solid var(--service-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}
.merit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: #eaeaea; border-top-color: var(--service-green);
}
.merit-card h3 {
    font-size: 14px; margin-bottom: 15px; color: #999; text-transform: uppercase;
    letter-spacing: 1px;
}
.merit-card p {
    font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 10px;
}
.merit-detail {
    list-style: none; padding: 0; border-top: 1px solid #f0f0f0; padding-top: 15px;
}
.merit-detail li {
    font-size: 13px; color: #555; margin-bottom: 8px; position: relative; padding-left: 15px;
}
.merit-detail li::before {
    content: "•"; color: var(--service-green); position: absolute; left: 0;
}

/* --- Flow Section --- */
.flow-section { 
    padding: 100px 20px; background: #ffffff; 
    max-width: 1280px;
    margin: 0 auto;
}
.flow-container {
    display: flex; justify-content: space-between; align-items: flex-start;
    max-width: 1000px; margin: 0 auto;
}
.flow-step {
    text-align: center; width: 180px; position: relative; z-index: 2;
}
.flow-step-content h3 {
    font-size: 16px; margin-bottom: 5px; font-weight: 700; color: #1a1a1a;
}
.flow-step-content p { 
    font-size: 13px; color: #777; 
}
.step-circle {
    width: 60px; height: 60px; background: #fff; border: 2px solid #eee; color: #ccc;
    border-radius: 50%; margin: 0 auto 20px; 
    display: flex; justify-content: center; align-items: center;
    font-weight: bold; font-size: 18px; transition: all 0.3s;
    font-family: 'Jost', sans-serif;
}
.flow-step:hover .step-circle {
    border-color: var(--service-green); color: var(--service-green); 
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.2);
}

/* コネクター */
.flow-connector {
    flex: 1; height: 1px; background: #e0e0e0; margin-top: 30px; position: relative;
}
.flow-connector::after {
    content: ""; position: absolute; top: -2px; left: 0; width: 6px; height: 6px;
    background: var(--service-green); border-radius: 50%; 
    animation: flowLine 2s infinite ease-in-out; opacity: 0;
}
@keyframes flowLine {
    0% { left: 0; opacity: 1; } 100% { left: 100%; opacity: 0; }
}


/* =================================================================
   RESPONSIVE STYLES (レスポンシブ対応)
   ================================================================= */
@media (max-width: 1024px) {
    /* section padding overrides */
    .partner-hero, .problem-section, .merit-section, .flow-section {
        padding-left: 40px; padding-right: 40px;
    }
}

@media (max-width: 900px) {
    .merit-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* style.css のヘッダー設定を使うため、ここでは Partner Hero などのコンテンツ調整のみ記述 */
    
    /* Partner Hero */
    .partner-hero { 
        padding: 100px 20px 60px; 
    }
    .partner-hero h1 { 
        font-size: 26px; 
        line-height: 1.4;
    }

    .partner-hero p {
        font-size: 14px;
        line-height: 1.9;
    }

    .partner-hero::before { 
        width: 300px; 
        height: 300px; 
    }
    .partner-hero::after { 
        width: 150px; 
        height: 150px; 
    }
    
    /* Problem Section */
    .problem-section {
        padding: 60px 20px;
    }
    .problem-box {
        padding: 40px 25px;
    }
    .problem-title {
        font-size: 14px;
        padding: 0 15px;
    }
    .check-list { 
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    .check-list li {
        font-size: 14px;
    }
    
    /* Merit Section */
    .merit-section {
        padding: 60px 20px;
    }
    .merit-card-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .merit-card {
        padding: 30px 25px;
    }
    
    /* Flow Section - モバイル縦並び */
    .flow-section {
        padding: 60px 20px;
    }
    .flow-container { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 0; 
    }
    .flow-connector { 
        display: none; 
    } 
    .flow-step { 
        text-align: left; 
        width: 100%; 
        display: flex; 
        align-items: flex-start; 
        gap: 20px;
        padding: 20px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .flow-step:last-of-type {
        border-bottom: none;
    }
    .step-circle { 
        margin: 0; 
        width: 50px; 
        height: 50px; 
        font-size: 16px; 
        flex-shrink: 0;
        /* モバイルでは最初から色付き */
        border-color: var(--service-green);
        color: var(--service-green);
    }
    .flow-step-content {
        flex: 1;
    }
    .flow-step-content h3 {
        margin-bottom: 8px;
    }
    .flow-step-content p {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .partner-hero h1 {
        font-size: 22px;
    }
    
    .problem-box {
        padding: 35px 20px;
    }
    
    .merit-card {
        padding: 25px 20px;
    }
}