/* ============================================
   MALINE API LP 専用スタイル
   配色は既存トークンに統一（--maline-blue #4FA5E6 / light #6BB6EA / dark #3394E1）
   ============================================ */

/* ヘッダー：HUBロゴは雲込みの縦比のため大きめに表示 */
.header .nav-logo .logo-img {
    height: 56px !important;
    width: auto !important;
    max-width: none !important;
    display: block;
}

/* ヘッダー：ドキュメントリンク */
.nav-docs-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 50px;
    transition: color 0.3s ease, background 0.3s ease;
    white-space: nowrap;
}
.nav-docs-link:hover {
    color: #4fa5e6;
    background: rgba(79, 165, 230, 0.08);
}
@media (max-width: 768px) {
    .nav-docs-link {
        display: none;
    }
}

/* ヒーロー：APIバッジ */
.api-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}
.api-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f9fd 100%);
    border: 2px solid #6bb6ea;
    color: #3394e1;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(79, 165, 230, 0.18);
    white-space: nowrap;
}
.api-hero-chip i {
    color: #4fa5e6;
}

/* ヒーロー：CTA2本 */
.api-hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
}
.api-hero-docs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #3394e1;
    border: 2px solid #6bb6ea;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(79, 165, 230, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    white-space: nowrap;
}
.api-hero-docs-button:hover {
    transform: translateY(-2px);
    background: #f4f9fd;
    box-shadow: 0 8px 25px rgba(79, 165, 230, 0.35);
}

/* ターミナル風コード窓（白系で統一） */
.api-terminal {
    width: 100%;
    max-width: 620px;
    background: #ffffff;
    border: 1px solid rgba(79, 165, 230, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 44px rgba(79, 165, 230, 0.16);
    overflow: hidden;
    text-align: left;
    margin: 0 auto;
}
.api-terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eef4fb;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(79, 165, 230, 0.14);
}
.api-terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.api-terminal-dot.red { background: #ff5f57; }
.api-terminal-dot.yellow { background: #febc2e; }
.api-terminal-dot.green { background: #28c840; }
.api-terminal-title {
    margin-left: auto;
    color: #7891b5;
    font-size: 0.75rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}
.api-terminal-body {
    padding: 20px 22px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.82rem;
    line-height: 1.75;
    color: #33415c;
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}
.api-terminal-body .tk-cmd { color: #2563eb; }
.api-terminal-body .tk-str { color: #15803d; }
.api-terminal-body .tk-key { color: #2563eb; }
.api-terminal-body .tk-flag { color: #7c3aed; }
.api-terminal-body .tk-comment { color: #94a3b8; }

/* 「APIとは」やさしい説明 */
.api-intro-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}
.api-intro-lead {
    max-width: 820px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 1.08rem;
    line-height: 2;
    color: #4a5568;
}
.api-intro-lead strong {
    color: #3394e1;
    font-weight: 700;
}
.api-intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin-top: 50px;
}
@media (max-width: 900px) {
    .api-intro-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
}
.api-intro-card {
    background: #ffffff;
    border: 1px solid rgba(79, 165, 230, 0.2);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 10px 30px rgba(79, 165, 230, 0.08);
    text-align: center;
}
.api-intro-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6bb6ea 0%, #4fa5e6 100%);
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(79, 165, 230, 0.3);
}
.api-intro-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}
.api-intro-card p {
    color: #5a6a85;
    font-size: 0.92rem;
    line-height: 1.9;
    margin: 0;
}

/* 仕組みフロー図(SVGダイアグラム) */
.api-flow-figure {
    max-width: 100%;
    margin: 48px auto 8px;
    background: #ffffff;
    border: 1px solid rgba(79, 165, 230, 0.2);
    border-radius: 20px;
    padding: 26px 22px;
    box-shadow: 0 12px 32px rgba(79, 165, 230, 0.12);
    overflow-x: auto;
}
.api-flow-figure svg {
    width: 100%;
    min-width: 760px;
    height: auto;
    display: block;
}

/* SP用: 縦フロー(760px以下でSVGと切替) */
.api-flow-sp {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.api-flow-sp .sp-label {
    font-size: 0.78rem;
    color: #8494ad;
    font-weight: 700;
}
.api-flow-sp .sp-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}
.api-flow-sp .sp-chips span {
    border: 2px solid #6bb6ea;
    color: #4fa5e6;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    font-size: 0.85rem;
    background: #ffffff;
}
.api-flow-sp .sp-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #4fa5e6;
}
.api-flow-sp .sp-arrow i {
    font-size: 1.1rem;
}
.api-flow-sp .sp-arrow span {
    font-size: 0.7rem;
    color: #3394e1;
    font-weight: 700;
    text-align: center;
}
.api-flow-sp .sp-node {
    width: 100%;
    border: 2px solid #a8d4f2;
    border-radius: 16px;
    background: #ffffff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.api-flow-sp .sp-node img {
    height: 34px;
    width: auto;
}
.api-flow-sp .sp-node span {
    font-size: 0.75rem;
    color: #8494ad;
    font-weight: 700;
}
.api-flow-sp .sp-mails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.api-flow-sp .sp-mails span {
    background: #f4f9fd;
    border: 2px solid #6bb6ea;
    color: #3394e1;
    font-weight: 700;
    border-radius: 50px;
    padding: 9px;
    text-align: center;
    font-size: 0.85rem;
}
@media (max-width: 760px) {
    .api-flow-figure {
        overflow-x: visible;
        padding: 20px 16px;
    }
    .api-flow-figure svg {
        display: none;
    }
    .api-flow-sp {
        display: flex;
    }
}

/* コード例セクション */
.api-code-section {
    padding: 90px 0;
    background: #ffffff;
}
.api-code-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}
@media (max-width: 1024px) {
    .api-code-steps {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }
}
.api-code-step {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(79, 165, 230, 0.2);
    box-shadow: 0 10px 30px rgba(79, 165, 230, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.api-code-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(79, 165, 230, 0.16);
}
.api-code-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 14px;
}
.api-code-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6bb6ea 0%, #4fa5e6 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 165, 230, 0.35);
}
.api-code-step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.api-code-step-desc {
    padding: 0 20px 14px;
    color: #5a6a85;
    font-size: 0.88rem;
    line-height: 1.85;
    margin: 0;
}
.api-code-step-desc .api-hint {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f4f9fd;
    border-left: 3px solid #6bb6ea;
    border-radius: 4px;
    color: #3394e1;
    font-size: 0.82rem;
}
/* コードステップ内は白系で軽く（カード内に浮かぶ角丸パネル） */
.api-code-step .api-terminal {
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(79, 165, 230, 0.08);
    max-width: none;
    margin: auto 18px 20px;
    background: #f7fafd;
    border: 1px solid rgba(79, 165, 230, 0.16);
    overflow: hidden;
}
.api-code-step .api-terminal-header {
    background: #eef4fb;
    border-bottom: 1px solid rgba(79, 165, 230, 0.14);
}
.api-code-step .api-terminal-title {
    color: #7891b5;
}
.api-code-step .api-terminal-body {
    font-size: 0.76rem;
    color: #33415c;
    min-height: 236px;
}
.api-code-step .api-terminal-body .tk-cmd { color: #2563eb; }
.api-code-step .api-terminal-body .tk-str { color: #15803d; }
.api-code-step .api-terminal-body .tk-key { color: #2563eb; }
.api-code-step .api-terminal-body .tk-flag { color: #7c3aed; }
.api-code-step .api-terminal-body .tk-comment { color: #94a3b8; }

/* エンドポイント一覧 */
.api-endpoints-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}
/* ティッカー共通: コンテナ幅内で流し、矢印で送り操作もできる(自動スクロールはJS) */
.api-ticker-shell {
    position: relative;
    width: 100%;
    margin-top: 50px;
}
.api-ticker-shell .js-ticker {
    overflow-x: scroll;
    padding: 4px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.api-ticker-shell .js-ticker::-webkit-scrollbar {
    display: none;
}
.ticker-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    border: none;
    background: none;
    padding: 0;
    color: #4fa5e6;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}
.ticker-arrow:hover {
    color: #3394e1;
    transform: translateY(-50%) scale(1.15);
}
.ticker-arrow.prev {
    left: -44px;
}
.ticker-arrow.next {
    right: -44px;
}
@media (max-width: 640px) {
    .ticker-arrow.prev {
        left: -14px;
    }
    .ticker-arrow.next {
        right: -14px;
    }
}
.api-endpoint-groups {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: -webkit-max-content;
    width: max-content;
}
.api-endpoint-group {
    flex: 0 0 560px;
    margin-right: 24px;
}
@media (max-width: 640px) {
    .api-endpoint-group {
        flex-basis: 320px;
    }
}
.api-endpoint-group {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(79, 165, 230, 0.25);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(79, 165, 230, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.api-endpoint-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #87ceeb 0%, #4fa5e6 50%, #87ceeb 100%);
    z-index: 1;
}
.api-endpoint-group:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 165, 230, 0.45);
    box-shadow: 0 24px 52px rgba(79, 165, 230, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.api-endpoint-group-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #f4f9fd 0%, #eaf4fb 100%);
    border-bottom: 1px solid rgba(79, 165, 230, 0.15);
}
.api-endpoint-group-head i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, #87ceeb 0%, #4fa5e6 100%);
    color: #ffffff;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(79, 165, 230, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.api-endpoint-group-head h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
}
.api-endpoint-group-head .api-endpoint-count {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4fa5e6;
    background: rgba(79, 165, 230, 0.12);
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
}
.api-endpoint-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.api-endpoint-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    font-size: 0.85rem;
}
.api-endpoint-list li + li {
    border-top: 1px solid rgba(79, 165, 230, 0.08);
}
.api-endpoint-path {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #33415c;
    overflow-wrap: anywhere;
}
.api-endpoint-desc {
    margin-left: auto;
    color: #8494ad;
    font-size: 0.78rem;
    white-space: nowrap;
}
@media (max-width: 520px) {
    .api-endpoint-desc {
        display: none;
    }
}

/* HTTPメソッドバッジ */
.api-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 5px 0;
    border-radius: 6px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.api-method-get {
    background: #ffffff;
    color: #16a34a;
    border: 2px solid #2fd671;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}
.api-method-post {
    background: #ffffff;
    color: #3394e1;
    border: 2px solid #6bb6ea;
    box-shadow: 0 2px 8px rgba(79, 165, 230, 0.18);
}
.api-method-patch {
    background: #ffffff;
    color: #d97706;
    border: 2px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}
.api-method-delete {
    background: #ffffff;
    color: #dc2626;
    border: 2px solid #f87171;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

/* ベースURL・認証の帯 */
.api-base-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}
.api-base-info-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #2e86c1;
    border: 1px solid rgba(79, 165, 230, 0.35);
    border-radius: 50px;
    padding: 8px 18px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.api-base-info-item .label {
    color: #8494ad;
    font-weight: 600;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.76rem;
    white-space: nowrap;
}

/* ユースケース */
.api-usecase-section {
    padding: 90px 0;
    background: #ffffff;
}
.api-usecase-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: -webkit-max-content;
    width: max-content;
}
.api-usecase-grid .api-usecase-card {
    flex: 0 0 430px;
    margin-right: 24px;
}
@media (max-width: 640px) {
    .api-usecase-grid .api-usecase-card {
        flex-basis: 320px;
    }
}
.api-usecase-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(79, 165, 230, 0.25);
    border-radius: 20px;
    padding: 32px 26px 26px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(79, 165, 230, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.api-usecase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #87ceeb 0%, #4fa5e6 50%, #87ceeb 100%);
}
.api-usecase-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 165, 230, 0.45);
    box-shadow: 0 24px 52px rgba(79, 165, 230, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.api-usecase-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #87ceeb 0%, #4fa5e6 100%);
    color: #ffffff;
    font-size: 1.8rem;
    margin: 0 auto 16px;
    box-shadow: 0 10px 24px rgba(79, 165, 230, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.api-usecase-card:hover .api-usecase-icon {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 14px 30px rgba(79, 165, 230, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.api-usecase-card h3 {
    font-size: 1.14rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 12px;
    line-height: 1.5;
}
.api-usecase-card p {
    color: #5a6a85;
    font-size: 0.9rem;
    line-height: 1.9;
    margin: 0;
    text-align: left;
    flex-grow: 1;
}
.api-usecase-steps {
    margin: 16px 0 0;
    padding: 16px 0 0;
    list-style: none;
    counter-reset: uc;
    text-align: left;
    border-top: 1px dashed rgba(79, 165, 230, 0.3);
}
.api-usecase-steps li {
    position: relative;
    padding: 6px 0 6px 32px;
    color: #33415c;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.7;
    counter-increment: uc;
}
.api-usecase-steps li::before {
    content: counter(uc);
    position: absolute;
    left: 0;
    top: 7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6bb6ea 0%, #4fa5e6 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(79, 165, 230, 0.3);
}

/* AIユースケース：全幅の横長カード（目玉） */
.api-usecase-wide {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, #87ceeb 0%, #6bb6ea 50%, #5dade2 100%);
    border-radius: 20px;
    padding: 40px 44px;
    box-shadow: 0 18px 44px rgba(93, 173, 226, 0.32);
}
.api-usecase-wide-main {
    flex: 0 0 340px;
    max-width: 340px;
}
.api-usecase-wide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.api-usecase-wide-main h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.45;
}
.api-usecase-wide-main p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    line-height: 1.9;
    margin: 0;
}
.api-usecase-wide-steps {
    flex: 1;
    display: flex;
    gap: 18px;
}
.api-usecase-wide-step {
    flex: 1;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.api-usecase-wide-step .wide-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    color: #3394e1;
    font-weight: 800;
    font-size: 0.9rem;
}
.api-usecase-wide-step p {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 600;
}
@media (max-width: 900px) {
    .api-usecase-wide {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 32px 24px;
    }
    .api-usecase-wide-main {
        flex: none;
        max-width: none;
        text-align: center;
    }
    .api-usecase-wide-steps {
        flex-direction: column;
    }
}

/* 料金 */
.api-pricing-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}
.api-price-box {
    max-width: 960px;
    margin: 50px auto 0;
    background: #ffffff;
    border: 1px solid rgba(79, 165, 230, 0.2);
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(79, 165, 230, 0.12);
    padding: 44px 40px;
}
.api-price-formula {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.api-price-part {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 28px 20px;
    border-radius: 16px;
    background: #f7fafd;
    border: 1px solid rgba(79, 165, 230, 0.14);
}
.api-price-part.api-price-highlight {
    background: linear-gradient(135deg, #87ceeb 0%, #6bb6ea 50%, #5dade2 100%);
    border: none;
    box-shadow: 0 12px 30px rgba(93, 173, 226, 0.32);
}
.api-price-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
}
.api-price-highlight .api-price-label {
    color: #ffffff;
}
.api-price-note {
    font-size: 0.82rem;
    color: #8494ad;
}
.api-price-amount {
    font-size: 1.9rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
}
.api-price-amount .yen {
    font-size: 1rem;
    font-weight: 700;
    margin-left: 2px;
}
.api-price-op {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #4fa5e6;
    flex: 0 0 auto;
}
.api-price-caption {
    margin: 24px 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: #8494ad;
    line-height: 1.85;
}
@media (max-width: 760px) {
    .api-price-formula {
        flex-direction: column;
    }
}

/* 料金タイル（手本 pricing-plans-tabs.css の pricing-tile をそのまま使用）
   このページはタブ切替が無いため、モバイルのスワイプ案内は非表示にする */
#email-plans::after {
    display: none !important;
}

/* 料金タイル調整 */
.api-price-table-wrap {
    max-width: 1200px;
    margin: 22px auto 0;
}
.api-price-plan-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 30px 0 0;
}
.api-price-plan-title i {
    color: #4fa5e6;
    margin-right: 8px;
}

.api-price-table-note {
    margin: 20px 0 0;
    font-size: 0.85rem;
    color: #8494ad;
    line-height: 1.95;
    text-align: center;
}
.api-price-table-note strong {
    color: #3394e1;
}
.api-price-table-note a {
    color: #3394e1;
    font-weight: 700;
    text-decoration: underline;
}

/* ユースケース：楽天×Amazon 実ロゴを対角線で半分ずつ */
.api-usecase-icon-split {
    position: relative;
    display: block;
    width: 100%;
    height: 110px;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}
.api-usecase-icon-split .split-logo {
    position: absolute;
    width: auto;
}
.api-usecase-icon-split .split-logo-r {
    top: 10%;
    left: 5%;
    height: 40%;
}
.api-usecase-icon-split .split-logo-a {
    bottom: 8%;
    right: 5%;
    height: 40%;
}
.api-usecase-icon-split .split-logo-tl {
    top: 10%;
    left: 5%;
    height: 40%;
}
.api-usecase-icon-split .split-logo-br {
    bottom: 10%;
    right: 5%;
    height: 38%;
}
.api-usecase-icon-split .split-logo-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 62%;
}
/* 形状補正: 正方形アイコン系は大きく、縦厚ロゴは位置調整 */
.api-usecase-icon-split .split-logo[alt='Zoom'] {
    height: 28%;
    top: 16%;
}
.api-usecase-icon-split .split-logo[alt='Patreon'],
.api-usecase-icon-split .split-logo[alt='Microsoft Teams'] {
    height: 56%;
    bottom: 6%;
}
.api-usecase-icon-split .split-logo[alt='Salesforce'] {
    height: 56%;
    top: 5%;
}

/* アイコン型カードもバナー型(110px+16px)と同じ縦寸に揃えて行を整列 */
.api-usecase-card .api-usecase-icon {
    margin: 19px auto 35px;
}

/* ユースケース：利用シーンタグ */
.api-usecase-scene {
    display: inline-block;
    align-self: center;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #ffffff;
    background: linear-gradient(135deg, #6bb6ea 0%, #4fa5e6 100%);
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(79, 165, 230, 0.3);
}

/* エンドポイント：主なパラメータ */
.api-endpoint-params {
    padding: 16px 22px 20px;
    border-top: 1px dashed rgba(79, 165, 230, 0.25);
    background: linear-gradient(135deg, #fbfdff 0%, #f4f9fd 100%);
}
.api-endpoint-params .params-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #3394e1;
    margin-bottom: 10px;
}
.api-endpoint-params .param-chip {
    display: inline-block;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.76rem;
    font-weight: 600;
    color: #2e86c1;
    background: #ffffff;
    border: 1px solid rgba(79, 165, 230, 0.35);
    border-radius: 50px;
    padding: 5px 14px;
    margin: 0 6px 8px 0;
    box-shadow: 0 2px 8px rgba(79, 165, 230, 0.12);
    transition: all 0.2s ease;
}
.api-endpoint-params .param-chip:hover {
    border-color: #4fa5e6;
    box-shadow: 0 4px 12px rgba(79, 165, 230, 0.25);
    transform: translateY(-1px);
}
.api-endpoint-params .param-chip .jp {
    color: #8494ad;
    font-weight: 400;
    font-family: 'Noto Sans JP', sans-serif;
    margin-left: 5px;
}

/* 導入の流れは手本の flow-section（flow-section.css）をそのまま使用 */

/* AIエージェントセクション */
.api-ai-section {
    padding: 90px 0;
    background: #ffffff;
}
.api-ai-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 100%;
    margin: 44px auto 0;
}
/* チャットデモ(全幅) */
.api-ai-chat {
    width: 100%;
    background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
    border: 1px solid rgba(79, 165, 230, 0.25);
    border-radius: 20px;
    padding: 22px 24px 20px;
    box-shadow: 0 12px 32px rgba(79, 165, 230, 0.12);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ai-chat-header {
    font-size: 0.82rem;
    font-weight: 700;
    color: #7891b5;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(79, 165, 230, 0.15);
}
.ai-chat-header i {
    color: #4fa5e6;
    margin-right: 6px;
}
.ai-bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.8;
}
.ai-bubble.user {
    align-self: flex-end;
    background: #4fa5e6;
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 6px 16px rgba(79, 165, 230, 0.3);
}
.ai-bubble.bot {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid rgba(79, 165, 230, 0.25);
    color: #33415c;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 12px rgba(79, 165, 230, 0.1);
}
.ai-chat-log {
    margin-top: auto;
    background: #f2f7fc;
    border: 1px solid rgba(79, 165, 230, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.78rem;
    line-height: 1.9;
    color: #33415c;
}
.ai-chat-log .lg {
    color: #3394e1;
    font-weight: 700;
}
.ai-chat-log .ok {
    color: #16a34a;
}
/* 下: 3ステップ横並び */
.api-ai-steps {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
@media (max-width: 900px) {
    .api-ai-steps {
        flex-direction: column;
    }
}
.api-ai-steps .api-code-step {
    flex: 1;
    min-width: 0;
}
.api-ai-steps .step-visual {
    margin: auto 18px 20px;
    background: #ffffff;
    border: 1px solid rgba(79, 165, 230, 0.16);
    border-radius: 12px;
    padding: 0;
    box-shadow: none;
    font-size: 0.84rem;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.api-ai-steps .step-visual.sv-ailogos {
    flex-direction: row;
    gap: 22px;
    padding: 10px;
    justify-content: center;
}
.api-ai-steps .sv-ailogos .ai-grid {
    display: grid;
    grid-template-columns: auto;
    gap: 11px;
    align-items: center;
    justify-items: center;
    background: none;
    border: none;
    padding: 0;
}
.ai-pill.ai-pill-s {
    width: 118px;
    height: 34px;
}
.ai-pill-s .ai-pill-logo.apl1 {
    height: 16px;
}
.ai-pill-s .ai-pill-logo.apl2 {
    height: 13px;
}
.ai-pill-s .ai-pill-logo.apl3 {
    height: 18px;
}
.ai-pill-s .ai-pill-logo.apl4 {
    height: 15px;
}
.api-ai-steps .sv-ailogos .req-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #3394e1;
    font-weight: 700;
    font-size: 0.7rem;
}
.api-ai-steps .sv-ailogos .req-arrow i {
    font-size: 1.2rem;
}
.api-ai-steps .sv-ailogos .hub-chip {
    width: 158px;
    height: 64px;
    border-radius: 18px;
}
.api-ai-steps .sv-ailogos .hub-chip img {
    height: 42px;
    width: auto;
}
/* Step1: AIロゴ帯(フラット) */
/* AIロゴ共通: SOLUTIONのチップと同じ白ピルに収めて統一 */
.ai-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 156px;
    height: 54px;
    background: #ffffff;
    border: 1.5px solid #6bb6ea;
    border-radius: 50px;
}
.ai-pill-logo {
    width: auto;
}
.ai-pill-logo.apl1 {
    height: 24px;
}
.ai-pill-logo.apl2 {
    height: 19px;
}
.ai-pill-logo.apl3 {
    height: 26px;
}
.ai-pill-logo.apl4 {
    height: 21px;
}
.api-ai-steps .step-visual.sv-aiflat {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-content: center;
    padding: 10px;
}
.api-ai-steps .step-visual.sv-devices {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.api-ai-steps .step-visual.sv-devices img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
}
.api-ai-note {
    max-width: 1140px;
    margin: 18px auto 0;
    text-align: center;
    font-size: 0.8rem;
    color: #8494ad;
}

/* ベータ注意書き */
.api-beta-note {
    max-width: 900px;
    margin: 40px auto 0;
    background: #fffaf0;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    padding: 18px 24px;
    color: #92610a;
    font-size: 0.88rem;
    line-height: 1.9;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.api-beta-note i {
    color: #d97706;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ヒーロー枠：ターミナルの高さで被らないよう余白を確保し高さ固定を解除 */
/* ヒーロー背景(自前クラス。通常フローで高さはコンテンツ追従) */
.api-hero-area {
    width: 100%;
    background: linear-gradient(135deg, #87ceeb 0%, #6bb6ea 25%, #5dade2 50%, #6bb6ea 75%, #87ceeb 100%);
    /* ヘッダーがposition:fixedのため、その実高88px+余白64pxを上に確保 */
    padding: 152px 0 64px;
}
#hero .hero-two-column {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
}
#hero .api-hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* CLIENTSティッカー: 追加ロゴも既存と同じサイズ感に統一 */
.company-logo-img img {
    max-height: 60px !important;
    width: auto !important;
    max-width: 180px !important;
}

/* CLIENTS見出しのMALINEロゴサイズを固定(親フォント連動の巨大化を防止) */
.company-title-elegant .company-maline-logo {
    height: 48px !important;
    width: auto !important;
}

/* ヒーロー右側の調整 */
.api-hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
@media (max-width: 1024px) {
    .api-hero-right {
        margin-top: 36px;
    }
    .api-terminal-body {
        font-size: 0.72rem;
    }
}
/* SP: ターミナルの主要行(curlのURL)が右端で単語途中に切れないようフォントと余白を詰める */
@media (max-width: 560px) {
    .api-terminal-body {
        font-size: 0.68rem;
        padding: 16px 16px;
        line-height: 1.7;
    }
    .api-terminal-header {
        padding: 10px 14px;
    }
}

/* セクション共通のリード文 */
.api-section-lead {
    text-align: center;
    font-size: 1.05rem;
    color: #5a6a85;
    margin-top: 14px;
    line-height: 1.9;
}

/* 固定フッターボタン：初期非表示（手本 home.blade.php と同じ挙動） */
.fixed-footer-button {
    opacity: 0 !important;
    transform: translateY(100%) !important;
    pointer-events: none !important;
}
.fixed-footer-button.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* フッター: HUBロゴを白抜き表示(白パネルなし) */
.footer-logo-white {
    display: block;
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* 料金: Eメールプランを矢印付き横スライダーに */
.pricing-slider {
    position: relative;
}
#email-plans .pricing-tiles {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 12px;
    scrollbar-width: none;
}
#email-plans .pricing-tiles::-webkit-scrollbar {
    display: none;
}
#email-plans .pricing-tile {
    flex: 0 0 304px;
    scroll-snap-align: start;
}
.pricing-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    border: none;
    background: none;
    padding: 0;
    color: #4fa5e6;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}
.pricing-slider-arrow:hover {
    color: #3394e1;
    transform: translateY(-50%) scale(1.15);
}
.pricing-slider-arrow.prev {
    left: -44px;
}
.pricing-slider-arrow.next {
    right: -44px;
}
@media (max-width: 640px) {
    #email-plans .pricing-tile {
        flex-basis: 260px;
    }
    .pricing-slider-arrow.prev {
        left: -14px;
    }
    .pricing-slider-arrow.next {
        right: -14px;
    }
}

/* ヒーロー見出し: 本体CSSのnowrapを解除し、列幅で自然に折り返す */
.api-hero-area .hero-main-title {
    white-space: normal;
}

/* ============ SP最適化: ヒーローの縦積みを正す ============ */
/* 基底 hero-right-image.css(≤992px)は hero-left-side を display:contents 化し、
   hero-two-column を grid にする。その結果 SPで
   ・要素順が崩れ CTAボタンがターミナルの下(最下部)に埋没する
   ・grid項目の justify-self:stretch でAPIピルが全幅に間延びする
   ため、SPでは通常のflex縦積みに戻して DOM順(ピル→見出し→本文→CTA→ターミナル)を回復する */
@media (max-width: 992px) {
    #hero .hero-two-column {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    #hero .hero-left-side {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 0 0 auto;
    }
    /* APIピルは内容幅で中央寄せ(全幅化を解除) */
    #hero .hero-api-pill {
        align-self: center;
    }
    #hero .api-hero-right {
        width: 100%;
        margin-top: 8px;
    }
}

/* AIチャットデモ: 会話が順番に現れるループ演出(sent.dm風) */
.api-ai-chat .ai-bubble.user {
    animation: ai-seq-user 9s ease infinite;
}
.api-ai-chat .ai-bubble.bot {
    animation: ai-seq-bot 9s ease infinite;
}
.api-ai-chat .ai-chat-log {
    animation: ai-seq-log 9s ease infinite;
}
@keyframes ai-seq-user {
    0%, 3% { opacity: 0; transform: translateY(10px); }
    9%, 95% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(0); }
}
@keyframes ai-seq-bot {
    0%, 22% { opacity: 0; transform: translateY(10px); }
    30%, 95% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(0); }
}
@keyframes ai-seq-log {
    0%, 45% { opacity: 0; transform: translateY(10px); }
    53%, 95% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(0); }
}

/* Step2: 矢印パルス */
.api-ai-steps .sv-ailogos .req-arrow i {
    animation: req-arrow-pulse 1.4s ease-in-out infinite;
}
@keyframes req-arrow-pulse {
    0%, 100% { transform: translateX(0); opacity: 0.75; }
    50% { transform: translateX(6px); opacity: 1; }
}

/* アニメーションを好まない設定のユーザーには停止 */
@media (prefers-reduced-motion: reduce) {
    .api-ai-chat .ai-bubble.user,
    .api-ai-chat .ai-bubble.bot,
    .api-ai-chat .ai-chat-log,
    .api-ai-steps .sv-ailogos .req-arrow i {
        animation: none;
    }
}

/* SOLUTION: ぱっと見で分かるミニ図解(アニメ付き) */
.sol-visual {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f7fafd;
    border: 1px solid rgba(79, 165, 230, 0.16);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 18px;
}
.sol-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1.5px solid #6bb6ea;
    color: #3394e1;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 50px;
    white-space: nowrap;
}
.sol-chip-strong {
    background: linear-gradient(135deg, #6bb6ea 0%, #4fa5e6 100%);
    border-color: #4fa5e6;
    color: #ffffff;
}
.sol-chip-logo {
    height: 13px;
    width: auto;
    display: block;
}
.sol-flow-arrow {
    color: #4fa5e6;
    font-size: 0.95rem;
    animation: req-arrow-pulse 1.4s ease-in-out infinite;
}
.sol-mini-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 118px;
}
.sol-row {
    height: 14px;
    border-radius: 4px;
    background: #e3edf7;
}
.sol-row-new {
    height: auto;
    background: #ffffff;
    border: 1.5px solid #6bb6ea;
    color: #3394e1;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: sol-row-in 3.2s ease infinite;
}
@keyframes sol-row-in {
    0%, 8% { opacity: 0; transform: translateX(-10px); }
    22%, 92% { opacity: 1; transform: translateX(0); }
    100% { opacity: 1; }
}
.sol-sync-icon {
    color: #4fa5e6;
    font-size: 1.15rem;
    display: inline-flex;
}
.sol-sync-icon i {
    animation: sol-spin 4.5s linear infinite;
}
@keyframes sol-spin {
    to { transform: rotate(360deg); }
}
.sol-dots {
    display: grid;
    grid-template-columns: repeat(3, 14px);
    gap: 7px;
}
.sol-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #dbe7f3;
}
.sol-dot.on {
    background: linear-gradient(135deg, #6bb6ea 0%, #4fa5e6 100%);
    animation: sol-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes sol-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 165, 230, 0.45); }
    50% { box-shadow: 0 0 0 5px rgba(79, 165, 230, 0); }
}
.sol-bars {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 62px;
}
.sol-bars span {
    width: 12px;
    height: var(--h, 50%);
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #6bb6ea 0%, #4fa5e6 100%);
    transform-origin: bottom;
    animation: sol-bar-grow 2.6s ease infinite;
    animation-delay: var(--d, 0s);
}
@keyframes sol-bar-grow {
    0% { transform: scaleY(0.25); }
    40%, 100% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
    .sol-flow-arrow,
    .sol-row-new,
    .sol-sync-icon i,
    .sol-dot.on,
    .sol-bars span {
        animation: none;
    }
}

/* SOLUTION: 4カードを2列で大きく表示 */
#solution .api-intro-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 900px) {
    #solution .api-intro-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }
}
#solution .sol-visual {
    height: 140px;
    gap: 18px;
}
#solution .sol-chip {
    font-size: 0.92rem;
    padding: 9px 16px;
}
#solution .sol-chip-logo {
    height: 16px;
}
#solution .sol-flow-arrow {
    font-size: 1.15rem;
}
#solution .sol-mini-list {
    min-width: 160px;
    gap: 6px;
}
#solution .sol-row {
    height: 17px;
}
#solution .sol-row-new {
    font-size: 0.85rem;
    padding: 6px 10px;
}
#solution .sol-sync-icon {
    font-size: 1.5rem;
}
#solution .sol-dots {
    grid-template-columns: repeat(3, 18px);
    gap: 9px;
}
#solution .sol-dot {
    width: 18px;
    height: 18px;
}
#solution .sol-bars {
    height: 92px;
    gap: 9px;
}
#solution .sol-bars span {
    width: 16px;
}

/* SOLUTION: トライアルバナーは本体同様ワイドに */
#solution .platform-devices-image {
    max-width: 1040px;
    margin: 44px auto 0;
}
#solution .platform-devices-image a {
    display: block;
}
#solution .platform-devices-image img.devices-showcase {
    width: 100%;
    height: auto;
    max-width: none;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(79, 165, 230, 0.22);
}

/* ABOUT: 紙飛行機が飛ぶ演出 */
.sol-plane i {
    animation: sol-plane-fly 2s ease-in-out infinite;
}
@keyframes sol-plane-fly {
    0%, 45% { transform: translate(0, 0); opacity: 1; }
    70% { transform: translate(16px, -12px); opacity: 0; }
    71% { transform: translate(-10px, 8px); opacity: 0; }
    90%, 100% { transform: translate(0, 0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .sol-plane i {
        animation: none;
    }
}

/* 料金シミュレーション: API利用料カード */
.api-plan-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.api-plan-icon i {
    font-size: 34px;
    color: #4fa5e6;
}
.api-option-fixed {
    cursor: default;
}
/* 1枚だけのカードは last-child で右線が消えるため、選択枠線を全周に明示 */
#pricing-simulator .plan-option.api-option-fixed,
#pricing-simulator .plan-option.api-option-fixed:last-child {
    border: 2px solid #4fa5e6;
}

/* ============ ヒーローの質感強化(sent.dm風) ============ */
.api-hero-area {
    position: relative;
    overflow: hidden;
}
/* やわらかい光彩 */
.api-hero-area::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(560px 360px at 18% 28%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(640px 420px at 86% 74%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
}
/* うっすらドットグリッド */
.api-hero-area::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1.6px);
    background-size: 26px 26px;
    opacity: 0.35;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.15));
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.15));
}
.api-hero-area .hero-two-column {
    position: relative;
    z-index: 1;
}

/* H1上のAPIピル */
.hero-api-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
}
.hero-api-pill .pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a5f3c4;
    box-shadow: 0 0 0 0 rgba(165, 243, 196, 0.6);
    animation: pill-pulse 2s ease-out infinite;
}
@keyframes pill-pulse {
    0% { box-shadow: 0 0 0 0 rgba(165, 243, 196, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(165, 243, 196, 0); }
    100% { box-shadow: 0 0 0 0 rgba(165, 243, 196, 0); }
}

/* ターミナル: 浮遊感 */
.api-hero-right {
    position: relative;
}
.api-hero-right .api-terminal {
    box-shadow: 0 30px 70px rgba(20, 70, 120, 0.3);
    animation: hero-term-float 7s ease-in-out infinite;
}
@keyframes hero-term-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 配信完了トースト(ループ表示) */
.hero-toast {
    position: absolute;
    left: -14px;
    bottom: 30px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 18px 40px rgba(20, 70, 120, 0.35);
    animation: hero-toast-pop 7s ease infinite;
}
.hero-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eaf7ef;
    color: #16a34a;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.hero-toast-body {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}
.hero-toast-body strong {
    color: #1a1a2e;
    font-size: 0.88rem;
}
.hero-toast-body span {
    color: #7891b5;
    font-size: 0.74rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}
@keyframes hero-toast-pop {
    0%, 10% { opacity: 0; transform: translateY(14px) scale(0.96); }
    18%, 88% { opacity: 1; transform: translateY(0) scale(1); }
    96%, 100% { opacity: 0; transform: translateY(-6px) scale(0.98); }
}
@media (max-width: 992px) {
    /* SP: 装飾トーストはターミナルに重なり文言(maline.jp)が二重に見えるため非表示 */
    .hero-toast {
        display: none;
    }
}

/* ============ ABOUT/SOLUTIONカードの質感強化 ============ */
.api-intro-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.api-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #87ceeb 0%, #4fa5e6 50%, #6bb6ea 100%);
    opacity: 0.85;
}
.api-intro-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 165, 230, 0.45);
    box-shadow: 0 20px 44px rgba(79, 165, 230, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .api-hero-right .api-terminal,
    .hero-toast,
    .hero-api-pill .pill-dot {
        animation: none;
    }
    .hero-toast {
        opacity: 1;
    }
}

/* シミュレーション: ヘッダー青を料金ボックス(#4FA5E6単色)に統一 */
#pricing-simulator .email-header {
    background: #4fa5e6;
}
/* シミュレーション: 最終カードの右線が last-child ルールで消える見切れを修正 */
#pricing-simulator .plan-option:last-child {
    border-right: 1px solid #e8e9ea;
}

/* ヒーロー見出し: 「完全自動化。」をマーカー強調で大きく */
.api-hero-area .hero-main-title {
    line-height: 1.4;
}
.hero-accent {
    position: relative;
    display: inline-block;
    font-size: 2.05em;
    line-height: 1.2;
    z-index: 0;
}
.hero-accent::after {
    content: '';
    position: absolute;
    left: 0.02em;
    right: 0.88em;
    bottom: 0.05em;
    height: 0.26em;
    background: #ffd95e;
    border-radius: 0.13em;
    opacity: 0.92;
    z-index: -1;
    transform-origin: left center;
    animation: hero-marker-sweep 3.4s ease-in-out infinite;
}
@keyframes hero-marker-sweep {
    0% { transform: scaleX(0); opacity: 0.92; }
    45% { transform: scaleX(1); opacity: 0.92; }
    88% { transform: scaleX(1); opacity: 0.92; }
    99% { transform: scaleX(1); opacity: 0; }
    100% { transform: scaleX(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-accent::after {
        animation: none;
    }
}

/* ABOUTリード文は左寄せ */
#about .api-intro-lead {
    text-align: left;
}

/* SOLUTIONリード文も左寄せ */
#solution .api-intro-lead {
    text-align: left;
}

/* Step2: SOLUTIONと同じチップ構図(AIエージェント → HUB) */
.api-ai-steps .sv-ailogos .sol-chip {
    font-size: 0.95rem;
    padding: 11px 20px;
}
.api-ai-steps .sv-ailogos .sol-chip-logo.hub-inline {
    height: 24px;
    width: auto;
    display: block;
}

/* エンドポイント一覧のリード文は左寄せ */
#endpoints .api-section-lead {
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 料金ボックス、シミュレーション見出し帯: ヒーロー背景と同じグラデーションに統一 */
.rakuten-black-section {
    background: linear-gradient(135deg, #87ceeb 0%, #6bb6ea 25%, #5dade2 50%, #6bb6ea 75%, #87ceeb 100%) !important;
}
#pricing-simulator .email-header {
    background: linear-gradient(135deg, #87ceeb 0%, #6bb6ea 25%, #5dade2 50%, #6bb6ea 75%, #87ceeb 100%);
}

/* シミュレーション: 選択カードの浮き上がりでヘッダー帯に枠線が隠れるのを防ぐ */
#pricing-simulator .plan-option.selected {
    transform: none;
}

/* =========================================================
   SP最適化（CEOフィードバック 2026-07-28）
   ========================================================= */

/* --- SPのみ、本文リード内の強制改行を無効化（がたつき防止） --- */
@media (max-width: 768px) {
    br.sp-hide {
        display: none;
    }
}

/* --- SP: セクション上下パディングを詰める（PC向け90pxが空きすぎるため） --- */
@media (max-width: 768px) {
    .api-intro-section,
    .api-code-section,
    .api-endpoints-section,
    .api-usecase-section,
    .api-pricing-section,
    .api-ai-section {
        padding: 46px 0;
    }
    .pricing-simulator-section {
        padding: 46px 0;
    }
    /* セクション内の大きな上マージンも縮小 */
    .api-price-box {
        margin-top: 26px;
    }
    .api-ticker-shell {
        margin-top: 26px;
    }
}

/* --- CLIENTSロゴ マーキー: SPのみ横移動を速くする（PC・タブレットは元のまま。共有CSSは触らない） --- */
@media (max-width: 768px) {
    .logos-row {
        -webkit-animation-duration: 22s !important;
        animation-duration: 22s !important;
    }
    .logos-row-2 {
        -webkit-animation-duration: 25s !important;
        animation-duration: 25s !important;
    }
    /* CLIENTS: ロゴ間の"横"の余白だけ詰める（縦・枠の高さは元のまま触らない） */
    .company-logos-section .logos-row {
        gap: 0.75rem;
        /* SPで幅が画面幅(390px)に潰れ、-50%移動が195pxしか効かず途中で戻る問題を修正。
           2セット複製の全幅(max-content)を強制し、継ぎ目なし無限ループにする */
        width: -webkit-max-content !important;
        width: max-content !important;
        max-width: none !important;
        flex-wrap: nowrap !important;
    }
    .company-logos-section .company-logo-img {
        min-width: 84px;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* --- ヘッダー: SPで縮小し、左にハンバーガー --- */
.api-nav-toggle {
    display: none;
}
@media (max-width: 768px) {
    /* ヘッダーを小さく */
    .header .nav {
        padding: 9px 0;
    }
    .header .nav-logo .logo-img {
        height: 34px !important;
    }
    .header .nav-container {
        justify-content: space-between;
        padding: 0 14px;
    }
    /* ロゴを左に */
    .header .nav-logo {
        margin: 0;
        order: 0;
    }
    /* ハンバーガー(右・縦中央) */
    .api-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        order: 3;
        margin-left: auto;
        width: 42px;
        height: 42px;
        padding: 9px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }
    .api-nav-toggle span {
        display: block;
        width: 24px;
        height: 2.5px;
        background: #33415c;
        border-radius: 3px;
        transition: transform 0.3s ease, opacity 0.2s ease;
    }
    .api-nav-toggle.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .api-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .api-nav-toggle.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
    body.api-menu-lock {
        overflow: hidden;
    }
}

/* --- モバイルメニュー本体（左からスライドイン） --- */
.api-mobile-menu {
    display: none;
}
.api-menu-overlay {
    display: none;
}
@media (max-width: 768px) {
    .api-menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(18, 42, 72, 0.42);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .api-menu-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }
    .api-mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        z-index: 1001;
        padding: 80px 22px 28px;
        box-shadow: -10px 0 44px rgba(20, 70, 120, 0.2);
        transform: translateX(100%);
        /* 閉じている間はスライド後にvisibilityを切り、画面外リンクへのフォーカスを防ぐ */
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.32s;
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .api-mobile-menu.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .api-mobile-link {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 15px 6px;
        color: #33415c;
        font-weight: 700;
        font-size: 1rem;
        text-decoration: none;
        border-bottom: 1px solid #eef2f7;
    }
    .api-mobile-link:active {
        color: #3394e1;
    }
    .api-mobile-docs {
        color: #3394e1;
    }
    .api-mobile-cta {
        justify-content: center;
        margin-top: 22px;
        padding: 15px;
        border-radius: 50px;
        background: linear-gradient(135deg, #6bb6ea 0%, #4fa5e6 100%);
        color: #ffffff;
        font-weight: 800;
        font-size: 1rem;
        text-align: center;
        text-decoration: none;
        border-bottom: none;
        box-shadow: 0 10px 26px rgba(79, 165, 230, 0.35);
    }
}

/* --- AI STEP1: ロゴピルが固定高(170px)に収まらず溢れる問題を解消 --- */
@media (max-width: 768px) {
    .api-ai-steps .step-visual {
        height: auto;
        min-height: 0;
        padding: 16px 10px;
    }
    .api-ai-steps .step-visual.sv-aiflat {
        gap: 10px 10px;
    }
    /* ピルを少し小さくして2列に収める */
    .api-ai-steps .sv-aiflat .ai-pill {
        width: 132px;
        height: 46px;
    }
}

/* --- AI STEP2: 幅が足りない時にロゴchipが圧縮されて画像がつぶれる問題を解消 --- */
.api-ai-steps .sv-ailogos .sol-chip {
    flex-shrink: 0;
}
.api-ai-steps .sv-ailogos .sol-chip-logo.hub-inline {
    object-fit: contain;
    max-width: none;
}
@media (max-width: 768px) {
    .api-ai-steps .step-visual.sv-ailogos {
        flex-wrap: wrap;
        gap: 10px 14px;
    }
    .api-ai-steps .sv-ailogos .sol-chip {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}
