/* ==========================================================================
   クラウド会計ページ専用スタイル
   ========================================================================== */

/* ==========================================================================
   ページヘッダー（共通スタイル）
   ========================================================================== */
.page-header {
    position: relative;
    padding: 100px 0 60px;
    color: white;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 61, 92, 0.85) 0%, rgba(46, 82, 102, 0.85) 100%);
    z-index: 1;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    z-index: 2;
}

.page-header .container {
    position: relative;
    z-index: 3;
}

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

.page-title .title-en {
    display: block;
    font-size: 14px;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    opacity: 0.8;
    font-weight: 400;
}

.page-title .title-ja {
    display: block;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.breadcrumb {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb .separator {
    margin: 0 8px;
    opacity: 0.5;
}

/* ==========================================================================
   DX化の推進セクション
   ========================================================================== */
.dx-promotion-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.dx-promotion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 50%, #1976d2 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.dx-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.dx-header {
    text-align: center;
    margin-bottom: 50px;
}

.dx-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a3d5c;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
}

.dx-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
    border-radius: 2px;
}

.dx-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
    margin-top: 20px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.05em;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon svg {
    width: 24px;
    height: 24px;
}

.dx-description {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #1976d2;
}

.dx-note {
    background: #e3f2fd;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
}

.note-label {
    font-weight: 600;
    color: #1976d2;
    font-size: 14px;
}

.note-text {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.dx-main-content {
    line-height: 2;
}

.dx-main-content p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.9;
}

.dx-main-content p:last-child {
    margin-bottom: 0;
}

.dx-services {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.dx-services .highlight {
    color: #1976d2;
    font-weight: 600;
    background: linear-gradient(120deg, rgba(25, 118, 210, 0.1) 0%, rgba(66, 165, 245, 0.1) 100%);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin: 0 2px;
}

/* ==========================================================================
   クラウド会計入力セクション
   ========================================================================== */
.cloud-input-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1976d2;
}

/* クラウド機能カード */
.cloud-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #1976d2;
}

.feature-card h3 {
    font-size: 24px;
    color: #1976d2;
    margin-bottom: 20px;
    font-weight: 700;
}

.feature-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.feature-content p:last-child {
    margin-bottom: 0;
}

.feature-content .highlight {
    color: #1976d2;
    font-weight: 600;
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 10px;
}

/* ==========================================================================
   クラウドデータ連携セクション
   ========================================================================== */
.cloud-data-section {
    padding: 80px 0;
    background: white;
}

/* クラウド図 (CSS製) */
.cloud-diagram {
    max-width: 600px;
    margin: 60px auto;
    position: relative;
    height: 400px;
}

.cloud-center {
    position: relative;
    width: 100%;
    height: 100%;
}

/* メインのクラウドバブル */
.cloud-bubble {
    position: absolute;
    background: #5c8dc9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: white;
    font-size: 14px;
    padding: 15px;
}

.cloud-bubble.main {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #3b5e99;
    z-index: 10;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.cloud-bubble.small {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #7ba7d9;
    padding: 10px;
}

.cloud-bubble.medium {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #7ba7d9;
    font-size: 13px;
    line-height: 1.3;
    padding: 20px;
}

.cloud-bubble.active {
    background: white;
    color: #2c5aa0;
    border: 2px solid #5c8dc9;
}

/* アイテムの配置 */
.cloud-item {
    position: absolute;
}

/* 各アイテムの個別配置 */
.cloud-item:nth-child(2) { /* アイテム1 */
    top: 20%;
    left: 10%;
}

.cloud-item:nth-child(3) { /* アイテム2 */
    top: 10%;
    left: 40%;
}

.cloud-item:nth-child(4) { /* freee認定アドバイザー */
    top: 15%;
    right: 15%;
}

.cloud-item:nth-child(5) { /* アイテム4 */
    top: 50%;
    right: 5%;
}

.cloud-item:nth-child(6) { /* アイテム5 */
    bottom: 20%;
    right: 10%;
}

.cloud-item:nth-child(7) { /* Money Forward */
    bottom: 10%;
    left: 45%;
    transform: translateX(-50%);
}

.cloud-item:nth-child(8) { /* 弥生会計 */
    bottom: 25%;
    left: 10%;
}

.cloud-item:nth-child(9) { /* メールアイコン */
    top: 45%;
    left: 5%;
}

.cloud-bubble:hover {
    transform: scale(1.1);
    z-index: 20;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.cloud-bubble.main:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.stars {
    font-size: 14px;
    color: #ffa726;
    margin-top: 3px;
}

/* アイコンのスタイル */
.cloud-bubble svg {
    width: 100%;
    height: 100%;
    max-width: 35px;
    max-height: 35px;
}

/* クラウド説明文 */
.cloud-description {
    text-align: center;
    max-width: 600px;
    margin: 50px auto 0;
}

.cloud-description p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ==========================================================================
   選ばれる理由セクション
   ========================================================================== */
.reasons-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.reasons-list {
    margin-top: 60px;
}

.reason-item {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    padding-left: 120px;
}

.reason-item::before {
    content: attr(data-number);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: white;
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
    font-family: 'Arial', sans-serif;
}

.reason-item:nth-child(1)::before {
    background: #e06d69;
}

.reason-item:nth-child(2)::before {
    background: #f5a65b;
}

.reason-item:nth-child(3)::before {
    background: #ef8354;
}

.reason-item:nth-child(4)::before {
    background: #7ca9d8;
}

.reason-item:nth-child(5)::before {
    background: #4e7cc4;
}

.reason-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.reason-content {
    flex: 1;
    background: white;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.reason-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.reason-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* クラウドアイコン上昇アニメーション */
@keyframes cloudFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.cloud-item {
    animation: cloudFloat 3s ease-in-out infinite;
}

.cloud-item:nth-child(2) { animation-delay: 0s; }
.cloud-item:nth-child(3) { animation-delay: 0.3s; }
.cloud-item:nth-child(4) { animation-delay: 0.6s; }
.cloud-item:nth-child(5) { animation-delay: 0.9s; }
.cloud-item:nth-child(6) { animation-delay: 1.2s; }
.cloud-item:nth-child(7) { animation-delay: 1.5s; }
.cloud-item:nth-child(8) { animation-delay: 1.8s; }
.cloud-item:nth-child(9) { animation-delay: 2.1s; }

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */
@media (max-width: 1024px) {
    .cloud-features {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .cloud-diagram {
        height: 350px;
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    /* ヘッダー */
    .page-header {
        padding: 80px 0 50px;
    }
    
    .page-title .title-ja {
        font-size: 28px;
    }
    
    .page-title .title-en {
        font-size: 12px;
    }
    
    /* DX化の推進セクション */
    .dx-promotion-section {
        padding: 60px 0;
    }
    
    .dx-content {
        padding: 0 15px;
    }
    
    .dx-title {
        font-size: 28px;
    }
    
    .dx-badge {
        padding: 10px 20px;
        font-size: 14px;
        flex-direction: column;
        gap: 8px;
    }
    
    .dx-description {
        padding: 25px 20px;
    }
    
    .dx-note {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }
    
    .dx-main-content p {
        font-size: 15px;
        line-height: 1.8;
    }
    
    /* セクションタイトル */
    .section-title {
        font-size: 26px;
    }
    
    /* フィーチャーカード */
    .feature-card {
        padding: 30px 20px;
    }
    
    /* クラウド図 */
    .cloud-diagram {
        height: 300px;
        transform: scale(0.6);
        margin: 40px auto;
    }
    
    /* 選ばれる理由 */
    .reason-item {
        flex-direction: column;
        padding-left: 0;
        padding-top: 80px;
        text-align: center;
    }
    
    .reason-item::before {
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }
    
    .reason-icon {
        left: 50%;
        top: 30px;
        transform: translateX(-50%);
    }
    
    .reason-content {
        width: 100%;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 26px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}