/* ==================================================
   国税庁データ連携プラグイン（plugin_corporate.html）専用スタイル
================================================== */

.corporate-api-page {
    background-color: #ffffff;
}

/* ヒーローセクション（国税庁連携向けに少しスマートなグラデーションに） */
.hero-corporate {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%); /* 信頼のライトブルーから白へのグラデ */
    padding: 100px 0;
    text-align: center;
}

.badge-kintone {
    display: inline-block;
    background-color: #fbc02d; /* kintoneイエロー */
    color: #2c3e50;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(251, 192, 45, 0.2);
}

.corporate-title {
    font-size: 2.3rem;
    color: var(--primary-green);
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.4;
}

.corporate-subtitle {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 25px 0;
}

.corporate-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    max-width: 850px;
    margin: 0 auto 40px auto;
}

/* ボタン */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-main {
    display: inline-block;
    background-color: #fbc02d;
    color: #2c3e50;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(251, 192, 45, 0.4);
    transition: 0.3s;
}

.btn-main:hover {
    background-color: #f9a825;
    transform: translateY(-2px);
}

.btn-sub {
    display: inline-block;
    background-color: var(--primary-green);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.2);
    transition: 0.3s;
}

.btn-sub:hover {
    background-color: var(--accent-teal);
    transform: translateY(-2px);
}

/* セクションタイトル共通 */
.section-title-corporate {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 50px;
    position: relative;
    font-weight: 700;
}

/* お悩みセクション */
.pain-point {
    padding: 80px 0;
    background-color: #f9fdfa;
}

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

.pain-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-left: 4px solid #ff9800; /* 注意喚起のオレンジに調整 */
    text-align: left;
}

.pain-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
}

.pain-solution {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-top: 40px;
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
}

/* 特徴セクション */
.features {
    padding: 80px 0;
}

.feature-rows {
    max-width: 850px;
    margin: 0 auto;
}

.feature-item {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border-top: 4px solid var(--primary-green);
}

.feature-num {
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-teal);
    display: block;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.feature-text h4 {
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    color: var(--primary-green);
    font-weight: 700;
}

.feature-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* ステップセクション */
.bg-light {
    background-color: #fcfaf9; /* B-leaves共通の土ベース色 */
    border-top: 1px solid #eee0d9;
    border-bottom: 1px solid #eee0d9;
}

.steps {
    padding: 80px 0;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(93, 64, 55, 0.05);
    text-align: center;
}

.step-num {
    background: var(--soil-brown);
    color: white;
    display: inline-block;
    padding: 3px 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    border-radius: 50px;
    margin-bottom: 20px;
}

.step-card h5 {
    font-size: 1.15rem;
    color: var(--primary-green);
    margin: 0 0 15px 0;
    font-weight: 700;
}

.step-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    text-align: left;
    line-height: 1.6;
}

.step-note {
    margin-top: 40px;
    font-size: 0.85rem;
    color: #777;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    line-height: 1.6;
}

/* --------------------------------------------------
   📸 ギャラリー（画像切り替え）セクション
-------------------------------------------------- */
.corporate-gallery {
    padding: 80px 0;
    background-color: #ffffff;
}

.gallery-sub-title {
    font-size: 1.4rem;
    color: var(--primary-green);
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 700;
}

.gallery-lead-left {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.gallery-divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 60px 0;
}

/* 画像ボックスの装飾 */
.image-box {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    line-height: 0;
}

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

.image-caption {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    background: #f9fdfa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-green);
}

/* --------------------------------------------------
   🕒 2. データ取得画面：自動繰り返し切り替え（5秒ループ）
-------------------------------------------------- */

/* 自動切り替えのため、HTML側にある手動用のタブナビゲーションは完全に非表示 */
.gallery-nav {
    display: none !important;
}

.gallery-toggle-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    /* 💡 画像の高さに合わせて調整。一般的な横長画像（16:9）なら480px〜550px程度が目安です */
    height: 520px; 
}

/* 重ね合わせとアニメーションの土台設定 */
.gallery-content .gallery-item {
    display: block !important; /* 手動用の非表示を解除 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    animation: autoToggleAnimation 10s infinite; /* 10秒かけて1周するループ */
}

/* HTML側のクラス名（item-before / item-after）に正確にタイマーを紐付け */
.gallery-content .item-before {
    animation-delay: 0s;
}

.gallery-content .item-after {
    animation-delay: 5s; /* 5秒遅らせてフェードイン */
}

/* フェードイン・アウトのキーフレーム（滑らかに切り替わるように調整） */
@keyframes autoToggleAnimation {
    0% { opacity: 0; }
    5% { opacity: 1; }   /* 0.5秒かけてふわっと表示 */
    45% { opacity: 1; }  /* 4.5秒間しっかり見せる */
    50% { opacity: 0; }  /* 0.5秒かけてふわっと消える */
    100% { opacity: 0; }
}

/* 購入セクション */
.purchase-section {
    padding: 80px 0;
    background: #fff;
}

.purchase-box {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%);
    border: 2px solid var(--primary-green);
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.08);
}

.purchase-box h3 {
    font-size: 1.6rem;
    color: var(--primary-green);
    margin: 0 0 30px 0;
    font-weight: 700;
}

.price-display {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
    margin-bottom: 30px;
    border: 1px solid #e8f5e9;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.price-value {
    display: block;
    font-size: 1.6rem;
    color: #e53935;
    font-weight: 700;
    margin-bottom: 5px;
}

.price-sub {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-green);
    font-weight: 700;
}

.purchase-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 35px;
}

.btn-coconala {
    display: inline-block;
    background: #ff9800; /* ココナラオレンジ */
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    transition: 0.3s;
}

.btn-coconala:hover {
    background: #f57c00;
    transform: translateY(-3px);
}

/* お問い合わせ */
.contact-section {
    padding: 60px 0 80px 0;
    background-color: #f9fdfa;
    border-top: 1px solid #e8f5e9;
}

.contact-section h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    font-weight: 700;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .corporate-title { font-size: 1.6rem; }
    .corporate-subtitle { font-size: 1.2rem; }
    .section-title-corporate { font-size: 1.5rem; }
    .purchase-box { padding: 30px 20px; }
    .btn-coconala { padding: 15px 30px; font-size: 1.1rem; }
    
    /* スマホ時は高さを少し縮める（画像が小さくなるため） */
    .gallery-toggle-container {
        height: 280px;
    }
}

@media (min-width: 769px) {
    .text-center-desktop { text-align: center; }
}